From 22fb5e235f7a4c6adc6eb7503b5d42df211747c1 Mon Sep 17 00:00:00 2001 From: Louis-Philippe Gauthier Date: Sat, 13 Jan 2018 09:22:20 -0500 Subject: [PATCH] Upgrade Foil --- rebar.config | 2 +- rebar.config.script | 2 +- rebar.lock | 4 ++-- src/shackle_pool.erl | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/rebar.config b/rebar.config index 433864b..7a53c9a 100644 --- a/rebar.config +++ b/rebar.config @@ -15,7 +15,7 @@ {coveralls_service_name, "travis-ci"}. {deps, [ - {foil, "0.1.0"}, + {foil, "0.1.1"}, {granderl, "0.1.5"}, {metal, "0.1.1"} ]}. diff --git a/rebar.config.script b/rebar.config.script index 9fa8ea9..bd8318b 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -4,7 +4,7 @@ Config = case erlang:function_exported(rebar3, main, 1) of false -> [{deps, [ {foil, ".*", - {git, "https://github.com/lpgauth/foil.git", {tag, "0.1.0"}}}, + {git, "https://github.com/lpgauth/foil.git", {tag, "0.1.1"}}}, {granderl, ".*", {git, "https://github.com/tokenrove/granderl.git", {tag, "v0.1.5"}}}, {metal, ".*", diff --git a/rebar.lock b/rebar.lock index 001d368..5d59106 100644 --- a/rebar.lock +++ b/rebar.lock @@ -1,10 +1,10 @@ {"1.1.0", -[{<<"foil">>,{pkg,<<"foil">>,<<"0.1.0">>},0}, +[{<<"foil">>,{pkg,<<"foil">>,<<"0.1.1">>},0}, {<<"granderl">>,{pkg,<<"granderl">>,<<"0.1.5">>},0}, {<<"metal">>,{pkg,<<"metal">>,<<"0.1.1">>},0}]}. [ {pkg_hash,[ - {<<"foil">>, <<"16406493144743F633505E51406F7BE6BF17A3772DFD62BCDE3107C654704BEE">>}, + {<<"foil">>, <<"4D07B62C114636BBC3EEBD5CEE04B23A7AAB1262B0F68AA79005A6FBC3790472">>}, {<<"granderl">>, <<"F20077A68BD80B8D8783BD15A052813C6483771DEC1A5B837D307CBE92F14122">>}, {<<"metal">>, <<"5D3D1322DA7BCD34B94FED5486F577973685298883954F7A3E517EF5EF6953F5">>}]} ]. diff --git a/src/shackle_pool.erl b/src/shackle_pool.erl index 4f2b1fc..edbe51d 100644 --- a/src/shackle_pool.erl +++ b/src/shackle_pool.erl @@ -109,6 +109,8 @@ options(Name) -> case foil:lookup(?MODULE, Name) of {ok, Options} -> {ok, Options}; + {error, foil_not_started} -> + {error, shackle_not_started}; {error, key_not_found} -> {error, pool_not_started}; {error, module_not_found} ->