Packages
Watch and fetch application's configuration from a server, and compile them into Elixir modules.
Current section
13 Versions
Jump to
Current section
13 Versions
Compare versions
3
files changed
+15
additions
-12
deletions
| @@ -1,20 +1,21 @@ | |
| 1 1 | {<<"links">>,[{<<"Github">>,<<"https://github.com/qhwa/formular-client">>}]}. |
| 2 2 | {<<"name">>,<<"formular_client">>}. |
| 3 | - {<<"version">>,<<"0.4.0-alpha.1">>}. |
| 3 | + {<<"version">>,<<"0.4.0-alpha.2">>}. |
| 4 4 | {<<"description">>, |
| 5 5 | <<"Watch and fetch application's configuration from a server, and compile them into Elixir modules.">>}. |
| 6 6 | {<<"elixir">>,<<">= 1.10.0">>}. |
| 7 7 | {<<"app">>,<<"formular_client">>}. |
| 8 8 | {<<"licenses">>,[<<"MIT">>]}. |
| 9 9 | {<<"files">>, |
| 10 | - [<<"lib">>,<<"lib/formular">>,<<"lib/formular/client">>, |
| 11 | - <<"lib/formular/client/supervisor.ex">>,<<"lib/formular/client/pubsub.ex">>, |
| 12 | - <<"lib/formular/client/listener.ex">>,<<"lib/formular/client/adapter">>, |
| 13 | - <<"lib/formular/client/adapter/mock.ex">>, |
| 10 | + [<<"lib">>,<<"lib/formular">>,<<"lib/formular/client.ex">>, |
| 11 | + <<"lib/formular/client">>,<<"lib/formular/client/cache.ex">>, |
| 12 | + <<"lib/formular/client/compiler.ex">>, |
| 13 | + <<"lib/formular/client/supervisor.ex">>,<<"lib/formular/client/config.ex">>, |
| 14 | + <<"lib/formular/client/adapter">>, |
| 14 15 | <<"lib/formular/client/adapter/websocket.ex">>, |
| 15 | - <<"lib/formular/client/cache.ex">>,<<"lib/formular/client/forecast">>, |
| 16 | - <<"lib/formular/client/compiler.ex">>,<<"lib/formular/client/config.ex">>, |
| 17 | - <<"lib/formular/client/application.ex">>,<<"lib/formular/client.ex">>, |
| 16 | + <<"lib/formular/client/adapter/mock.ex">>, |
| 17 | + <<"lib/formular/client/application.ex">>,<<"lib/formular/client/forecast">>, |
| 18 | + <<"lib/formular/client/listener.ex">>,<<"lib/formular/client/pubsub.ex">>, |
| 18 19 | <<"mix.exs">>]}. |
| 19 20 | {<<"requirements">>, |
| 20 21 | [[{<<"name">>,<<"phoenix_gen_socket_client">>}, |
| @@ -5,8 +5,10 @@ defmodule Formular.Client.MockError do | |
| 5 5 | defexception [:message] |
| 6 6 | |
| 7 7 | @impl true |
| 8 | - def exception({:missing, _missing_formulas}) do |
| 9 | - %Formular.Client.MockError{message: "Not all the formulas were mocked"} |
| 8 | + def exception({:missing, missing}) do |
| 9 | + %Formular.Client.MockError{ |
| 10 | + message: "Not all the formulas are mocked, missing: #{inspect(missing)}" |
| 11 | + } |
| 10 12 | end |
| 11 13 | end |
| 12 14 | |
| @@ -64,7 +66,7 @@ defmodule Formular.Client.Adapter.Mock do | |
| 64 66 | end |
| 65 67 | |
| 66 68 | defp ensure_all_formulas_provided(required, provided) do |
| 67 | - required = required |> Enum.map(&elem(&1, 1)) |
| 69 | + required = required |> Enum.map(&elem(&1, 0)) |
| 68 70 | provided = provided |> Enum.map(&elem(&1, 0)) |
| 69 71 | |
| 70 72 | case required -- provided do |
| @@ -6,7 +6,7 @@ defmodule Formular.Client.MixProject do | |
| 6 6 | app: :formular_client, |
| 7 7 | description: |
| 8 8 | "Watch and fetch application's configuration from a server, and compile them into Elixir modules.", |
| 9 | - version: "0.4.0-alpha.1", |
| 9 | + version: "0.4.0-alpha.2", |
| 10 10 | elixir: ">= 1.10.0", |
| 11 11 | start_permanent: Mix.env() == :prod, |
| 12 12 | deps: deps(), |