Skip to content

Commit

Permalink
Move to rebar3
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrk committed Apr 12, 2016
1 parent 309e3cf commit a347d19
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ An Erlang library for Pocket API (www.getpocket.com) v3. For more details see [d

Project depends on [jiffy][3] library for JSON parsing.
```
$ rebar3 update compile
```
or
```
$ rebar get-deps compile
```

Expand Down
6 changes: 1 addition & 5 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

{erl_opts, [debug_info]}.

{deps, [
{jiffy, ".*",
{git, "git://github.com/davisp/jiffy.git", {branch, "master"}
}}
]}.
{deps, [ {jiffy, "0.14.7"} ]}.

{cover_enabled, true}.
{cover_print_enabled, true}.
Expand Down
12 changes: 12 additions & 0 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
case erlang:function_exported(rebar3, main, 1) of
true ->
%% rebar3
CONFIG;
false ->
%% rebar 2.x or older
NewConf = lists:keystore(deps_dir, 1, CONFIG, {deps_dir, "deps"}),
Deps = [{jiffy, "0.*",
{git, "https://github.com/davisp/jiffy.git", "0.14.7"}}
],
lists:keystore(deps, 1, NewConf, {deps, Deps})
end.
6 changes: 4 additions & 2 deletions src/erlpocket.app.src
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{application, erlpocket,
[{description, "Erlang library for Pocket API"},
{vsn, "0.1"},
{vsn, "v1.2"},
{registered, []},
{applications, [stdlib,
kernel
]},
{modules, []},
{env, [{verbose, false}]}
{maintainers,["Martin Wiso"]},
{licenses,["MIT"]},
{links,[{"Github","https://github.com/tgrk/erlpocket"}]}
]
}.

0 comments on commit a347d19

Please sign in to comment.