-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from NelsonVides/slim_dependencies
Remove dependencies if not needed
- Loading branch information
Showing
10 changed files
with
88 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{Deps0, Config0} = case lists:keytake(deps, 1, CONFIG) of | ||
false -> {[], CONFIG}; | ||
{value, {deps, D}, Cfg} -> {D, Cfg} | ||
end, | ||
|
||
Deps = case list_to_integer(erlang:system_info(otp_release)) of | ||
N when N >= 27 -> | ||
Deps0; | ||
N when N >= 21 -> | ||
[{jsx, "3.1.0"} | Deps0]; | ||
_ -> | ||
[{jsx, "3.1.0"}, {rfc3339, "0.9.0"} | Deps0] | ||
end, | ||
|
||
[{deps, Deps} | Config0]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,6 @@ | |
, public_key | ||
, ssl | ||
, inets | ||
, jsx | ||
, rfc3339 | ||
]} | ||
, {env, [ {re_options, [unicode, ucp]} | ||
]} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[{application, jesse, Config}] = CONFIG, | ||
|
||
{Apps0, Config0} = case lists:keytake(applications, 1, Config) of | ||
false -> | ||
{[], CONFIG}; | ||
{value, {applications, A}, Cfg} -> | ||
{A, Cfg} | ||
end, | ||
|
||
Apps = case list_to_integer(erlang:system_info(otp_release)) of | ||
N when N >= 27 -> | ||
Apps0; | ||
N when N >= 21 -> | ||
[jsx | Apps0]; | ||
_ -> | ||
[jsx, rfc3339 | Apps0] | ||
end, | ||
|
||
[{application, jesse, [{applications, Apps} | Config]}]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters