Bladeren bron

update mustache to v0.3.0 and relx to 2.0.0

pull/405/head
Tristan Sloughter 10 jaren geleden
bovenliggende
commit
d53d3b56be
3 gewijzigde bestanden met toevoegingen van 29 en 9 verwijderingen
  1. +21
    -5
      rebar.config
  2. +7
    -3
      rebar.lock
  3. +1
    -1
      src/rebar_templater.erl

+ 21
- 5
rebar.config Bestand weergeven

@ -9,11 +9,11 @@
{git, "https://github.com/tsloughter/providers.git",
{tag, "v1.3.1"}}},
{relx, "",
{git, "https://github.com/tsloughter/relx.git",
{branch, "mustache"}}},
{git, "https://github.com/erlware/relx.git",
{tag, "v2.0.0"}}},
{mustache, ".*",
{git, "https://github.com/soranoba/mustache.git",
{branch, "master"}}},
{tag, "v0.3.0"}}},
{getopt, "",
{git, "https://github.com/jcomellas/getopt.git",
{branch, "master"}}}]}.
@ -51,5 +51,21 @@
]}.
%% Overrides
{overrides, [{override, erlware_commons, [{deps, []}, {plugins, []}]},
{override, mustache, [{deps, []}, {plugins, []}]}]}.
{overrides, [{override, erlware_commons, [
{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
{platform_define, "^R1[4|5]", deprecated_crypto},
no_debug_info,
warnings_as_errors]},
{deps, []}, {plugins, []}
]},
{override, mustache, [
{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
no_debug_info]},
{deps, []}, {plugins, []}]},
{override, getopt, [{erl_opts, [no_debug_info]}]},
{override, providers, [{erl_opts, [no_debug_info]}]},
{override, relx, [{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
{platform_define, "^R1[4|5]", deprecated_crypto},
no_debug_info,
warnings_as_errors]}]}
]}.

+ 7
- 3
rebar.lock Bestand weergeven

@ -1,10 +1,14 @@
[{<<"providers">>,
[{<<"relx">>,
{git,"https://github.com/erlware/relx.git",
{ref,"2e59b1c95575b3c104cc191e954c82baadc43c6c"}},
0},
{<<"providers">>,
{git,"https://github.com/tsloughter/providers.git",
{ref,"7563ba7e916d5a35972b25b3aa1945ffe0a8e7a5"}},
0},
{<<"mustache">>,
{git,"https://github.com/tsloughter/mustache.git",
{ref,"fe99ec4fcc4cf3f169d4851b4d1b7b5780b8d464"}},
{git,"https://github.com/soranoba/mustache.git",
{ref,"e5401042c66039eef20ee81abc1537ced1f22bc7"}},
0},
{<<"getopt">>,
{git,"https://github.com/jcomellas/getopt.git",

+ 1
- 1
src/rebar_templater.erl Bestand weergeven

@ -380,4 +380,4 @@ write_file(Output, Data, Force) ->
%% Render a binary to a string, using mustache and the specified context
%%
render(Bin, Context) ->
mustache:render(ec_cnv:to_binary(Bin), Context).
mustache:render(ec_cnv:to_binary(Bin), Context, [{key_type, atom}]).

Laden…
Annuleren
Opslaan