Current section
40 Versions
Jump to
Current section
40 Versions
Compare versions
4
files changed
+26
additions
-41
deletions
| @@ -1,10 +0,0 @@ | |
| 1 | - use Mix.Config |
| 2 | - |
| 3 | - config :islands_guesses, |
| 4 | - book_ref: |
| 5 | - """ |
| 6 | - Based on the book [Functional Web Development] |
| 7 | - (https://pragprog.com/book/lhelph/functional-web-development- |
| 8 | - with-elixir-otp-and-phoenix) by Lance Halvorsen. |
| 9 | - """ |
| 10 | - |> String.replace("\n", "") |
| @@ -1,30 +1,20 @@ | |
| 1 1 | {<<"app">>,<<"islands_guesses">>}. |
| 2 2 | {<<"build_tools">>,[<<"mix">>]}. |
| 3 3 | {<<"description">>,<<"Creates a guesses struct for the Game of Islands.">>}. |
| 4 | - {<<"elixir">>,<<"~> 1.7">>}. |
| 4 | + {<<"elixir">>,<<"~> 1.10">>}. |
| 5 5 | {<<"files">>, |
| 6 6 | [<<"lib">>,<<"lib/islands">>,<<"lib/islands/guesses.ex">>,<<"mix.exs">>, |
| 7 | - <<"README.md">>,<<"config/persist_book_ref.exs">>]}. |
| 7 | + <<"README.md">>]}. |
| 8 8 | {<<"licenses">>,[<<"MIT">>]}. |
| 9 9 | {<<"links">>, |
| 10 10 | [{<<"GitHub">>,<<"https://github.com/RaymondLoranger/islands_guesses">>}]}. |
| 11 11 | {<<"name">>,<<"islands_guesses">>}. |
| 12 12 | {<<"requirements">>, |
| 13 | - [[{<<"app">>,<<"poison">>}, |
| 14 | - {<<"name">>,<<"poison">>}, |
| 13 | + [[{<<"app">>,<<"islands_config">>}, |
| 14 | + {<<"name">>,<<"islands_config">>}, |
| 15 15 | {<<"optional">>,false}, |
| 16 16 | {<<"repository">>,<<"hexpm">>}, |
| 17 | - {<<"requirement">>,<<"~> 3.0">>}], |
| 18 | - [{<<"app">>,<<"jason">>}, |
| 19 | - {<<"name">>,<<"jason">>}, |
| 20 | - {<<"optional">>,false}, |
| 21 | - {<<"repository">>,<<"hexpm">>}, |
| 22 | - {<<"requirement">>,<<"~> 1.0">>}], |
| 23 | - [{<<"app">>,<<"persist_config">>}, |
| 24 | - {<<"name">>,<<"persist_config">>}, |
| 25 | - {<<"optional">>,false}, |
| 26 | - {<<"repository">>,<<"hexpm">>}, |
| 27 | - {<<"requirement">>,<<"~> 0.2">>}], |
| 17 | + {<<"requirement">>,<<"~> 0.1">>}], |
| 28 18 | [{<<"app">>,<<"islands_coord">>}, |
| 29 19 | {<<"name">>,<<"islands_coord">>}, |
| 30 20 | {<<"optional">>,false}, |
| @@ -34,5 +24,15 @@ | |
| 34 24 | {<<"name">>,<<"islands_island">>}, |
| 35 25 | {<<"optional">>,false}, |
| 36 26 | {<<"repository">>,<<"hexpm">>}, |
| 37 | - {<<"requirement">>,<<"~> 0.1">>}]]}. |
| 38 | - {<<"version">>,<<"0.1.12">>}. |
| 27 | + {<<"requirement">>,<<"~> 0.1">>}], |
| 28 | + [{<<"app">>,<<"poison">>}, |
| 29 | + {<<"name">>,<<"poison">>}, |
| 30 | + {<<"optional">>,false}, |
| 31 | + {<<"repository">>,<<"hexpm">>}, |
| 32 | + {<<"requirement">>,<<"~> 3.1">>}], |
| 33 | + [{<<"app">>,<<"jason">>}, |
| 34 | + {<<"name">>,<<"jason">>}, |
| 35 | + {<<"optional">>,false}, |
| 36 | + {<<"repository">>,<<"hexpm">>}, |
| 37 | + {<<"requirement">>,<<"~> 1.0">>}]]}. |
| 38 | + {<<"version">>,<<"0.1.13">>}. |
| @@ -2,13 +2,9 @@ | |
| 2 2 | # │ Based on the book "Functional Web Development" by Lance Halvorsen. │ |
| 3 3 | # └────────────────────────────────────────────────────────────────────┘ |
| 4 4 | defmodule Islands.Guesses do |
| 5 | - use PersistConfig |
| 6 | - |
| 7 | - @book_ref Application.get_env(@app, :book_ref) |
| 8 | - |
| 9 5 | @moduledoc """ |
| 10 6 | Creates a `guesses` struct for the _Game of Islands_. |
| 11 | - \n##### #{@book_ref} |
| 7 | + \n##### #{Islands.Config.get(:book_ref)} |
| 12 8 | """ |
| 13 9 | |
| 14 10 | alias __MODULE__ |
| @@ -4,8 +4,8 @@ defmodule Islands.Guesses.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :islands_guesses, |
| 7 | - version: "0.1.12", |
| 8 | - elixir: "~> 1.7", |
| 7 | + version: "0.1.13", |
| 8 | + elixir: "~> 1.10", |
| 9 9 | start_permanent: Mix.env() == :prod, |
| 10 10 | name: "Islands Guesses", |
| 11 11 | source_url: source_url(), |
| @@ -27,7 +27,7 @@ defmodule Islands.Guesses.MixProject do | |
| 27 27 | |
| 28 28 | defp package do |
| 29 29 | [ |
| 30 | - files: ["lib", "mix.exs", "README*", "config/persist*.exs"], |
| 30 | + files: ["lib", "mix.exs", "README*"], |
| 31 31 | maintainers: ["Raymond Loranger"], |
| 32 32 | licenses: ["MIT"], |
| 33 33 | links: %{"GitHub" => source_url()} |
| @@ -46,14 +46,13 @@ defmodule Islands.Guesses.MixProject do | |
| 46 46 | [ |
| 47 47 | {:mix_tasks, |
| 48 48 | github: "RaymondLoranger/mix_tasks", only: :dev, runtime: false}, |
| 49 | - {:poison, "~> 3.0"}, |
| 50 | - {:jason, "~> 1.0"}, |
| 51 | - {:persist_config, "~> 0.2", runtime: false}, |
| 49 | + {:ex_doc, "~> 0.22", only: :dev, runtime: false}, |
| 50 | + {:dialyxir, "~> 1.0", only: :dev, runtime: false}, |
| 51 | + {:islands_config, "~> 0.1", runtime: false}, |
| 52 52 | {:islands_coord, "~> 0.1"}, |
| 53 53 | {:islands_island, "~> 0.1"}, |
| 54 | - {:earmark, "~> 1.0", only: :dev}, |
| 55 | - {:ex_doc, "~> 0.14", only: :dev, runtime: false}, |
| 56 | - {:dialyxir, "~> 0.5", only: :dev, runtime: false} |
| 54 | + {:poison, "~> 3.1"}, |
| 55 | + {:jason, "~> 1.0"} |
| 57 56 | ] |
| 58 57 | end |
| 59 58 | end |