Current section
29 Versions
Jump to
Current section
29 Versions
Compare versions
4
files changed
+13
additions
-28
deletions
| @@ -1,10 +0,0 @@ | |
| 1 | - use Mix.Config |
| 2 | - |
| 3 | - config :islands_player_id, |
| 4 | - book_ref: |
| 5 | - """ |
| 6 | - Inspired by 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,18 +1,18 @@ | |
| 1 1 | {<<"app">>,<<"islands_player_id">>}. |
| 2 2 | {<<"build_tools">>,[<<"mix">>]}. |
| 3 3 | {<<"description">>,<<"Defines the player ID type for the Game of Islands.">>}. |
| 4 | - {<<"elixir">>,<<"~> 1.7">>}. |
| 4 | + {<<"elixir">>,<<"~> 1.10">>}. |
| 5 5 | {<<"files">>, |
| 6 6 | [<<"lib">>,<<"lib/islands">>,<<"lib/islands/player_id.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_player_id">>}]}. |
| 11 11 | {<<"name">>,<<"islands_player_id">>}. |
| 12 12 | {<<"requirements">>, |
| 13 | - [[{<<"app">>,<<"persist_config">>}, |
| 14 | - {<<"name">>,<<"persist_config">>}, |
| 13 | + [[{<<"app">>,<<"islands_config">>}, |
| 14 | + {<<"name">>,<<"islands_config">>}, |
| 15 15 | {<<"optional">>,false}, |
| 16 16 | {<<"repository">>,<<"hexpm">>}, |
| 17 | - {<<"requirement">>,<<"~> 0.2">>}]]}. |
| 18 | - {<<"version">>,<<"0.1.3">>}. |
| 17 | + {<<"requirement">>,<<"~> 0.1">>}]]}. |
| 18 | + {<<"version">>,<<"0.1.4">>}. |
| @@ -2,13 +2,9 @@ | |
| 2 2 | # │ Inspired by the book "Functional Web Development" by Lance Halvorsen. │ |
| 3 3 | # └───────────────────────────────────────────────────────────────────────┘ |
| 4 4 | defmodule Islands.PlayerID do |
| 5 | - use PersistConfig |
| 6 | - |
| 7 | - @book_ref Application.get_env(@app, :book_ref) |
| 8 | - |
| 9 5 | @moduledoc """ |
| 10 6 | Defines the `player ID` type for the _Game of Islands_. |
| 11 | - \n##### #{@book_ref} |
| 7 | + \n##### #{Islands.Config.get(:book_ref)} |
| 12 8 | """ |
| 13 9 | |
| 14 10 | @type t :: :player1 | :player2 |
| @@ -4,8 +4,8 @@ defmodule Islands.PlayerId.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :islands_player_id, |
| 7 | - version: "0.1.3", |
| 8 | - elixir: "~> 1.7", |
| 7 | + version: "0.1.4", |
| 8 | + elixir: "~> 1.10", |
| 9 9 | start_permanent: Mix.env() == :prod, |
| 10 10 | name: "Islands Player ID", |
| 11 11 | source_url: source_url(), |
| @@ -27,7 +27,7 @@ defmodule Islands.PlayerId.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,10 +46,9 @@ defmodule Islands.PlayerId.MixProject do | |
| 46 46 | [ |
| 47 47 | {:mix_tasks, |
| 48 48 | github: "RaymondLoranger/mix_tasks", only: :dev, runtime: false}, |
| 49 | - {:persist_config, "~> 0.2", runtime: false}, |
| 50 | - {:earmark, "~> 1.0", only: :dev}, |
| 51 | - {:ex_doc, "~> 0.14", only: :dev, runtime: false}, |
| 52 | - {:dialyxir, "~> 0.5", only: :dev, 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} |
| 53 52 | ] |
| 54 53 | end |
| 55 54 | end |