Packages
Creates a tally struct for the Game of Islands. Also displays the summary of a Game of Islands.
Current section
30 Versions
Jump to
Current section
30 Versions
Compare versions
4
files changed
+29
additions
-46
deletions
| @@ -1,10 +0,0 @@ | |
| 1 | - use Mix.Config |
| 2 | - |
| 3 | - config :islands_tally, |
| 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,31 +1,16 @@ | |
| 1 1 | {<<"app">>,<<"islands_tally">>}. |
| 2 2 | {<<"build_tools">>,[<<"mix">>]}. |
| 3 3 | {<<"description">>,<<"Creates a tally struct for the Game of Islands.">>}. |
| 4 | - {<<"elixir">>,<<"~> 1.7">>}. |
| 4 | + {<<"elixir">>,<<"~> 1.11">>}. |
| 5 5 | {<<"files">>, |
| 6 6 | [<<"lib">>,<<"lib/islands">>,<<"lib/islands/tally.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_tally">>}]}. |
| 11 11 | {<<"name">>,<<"islands_tally">>}. |
| 12 12 | {<<"requirements">>, |
| 13 | - [[{<<"app">>,<<"poison">>}, |
| 14 | - {<<"name">>,<<"poison">>}, |
| 15 | - {<<"optional">>,false}, |
| 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">>}], |
| 28 | - [{<<"app">>,<<"islands_board">>}, |
| 13 | + [[{<<"app">>,<<"islands_board">>}, |
| 29 14 | {<<"name">>,<<"islands_board">>}, |
| 30 15 | {<<"optional">>,false}, |
| 31 16 | {<<"repository">>,<<"hexpm">>}, |
| @@ -64,5 +49,15 @@ | |
| 64 49 | {<<"name">>,<<"islands_state">>}, |
| 65 50 | {<<"optional">>,false}, |
| 66 51 | {<<"repository">>,<<"hexpm">>}, |
| 67 | - {<<"requirement">>,<<"~> 0.1">>}]]}. |
| 68 | - {<<"version">>,<<"0.1.9">>}. |
| 52 | + {<<"requirement">>,<<"~> 0.1">>}], |
| 53 | + [{<<"app">>,<<"jason">>}, |
| 54 | + {<<"name">>,<<"jason">>}, |
| 55 | + {<<"optional">>,false}, |
| 56 | + {<<"repository">>,<<"hexpm">>}, |
| 57 | + {<<"requirement">>,<<"~> 1.0">>}], |
| 58 | + [{<<"app">>,<<"poison">>}, |
| 59 | + {<<"name">>,<<"poison">>}, |
| 60 | + {<<"optional">>,false}, |
| 61 | + {<<"repository">>,<<"hexpm">>}, |
| 62 | + {<<"requirement">>,<<"~> 3.0">>}]]}. |
| 63 | + {<<"version">>,<<"0.1.10">>}. |
| @@ -1,14 +1,14 @@ | |
| 1 1 | # ┌───────────────────────────────────────────────────────────────────────┐ |
| 2 2 | # │ Inspired by the book "Functional Web Development" by Lance Halvorsen. │ |
| 3 | + # │ Also inspired by the course "Elixir for Programmers" by Dave Thomas. │ |
| 3 4 | # └───────────────────────────────────────────────────────────────────────┘ |
| 4 5 | defmodule Islands.Tally do |
| 5 | - use PersistConfig |
| 6 | - |
| 7 | - @book_ref Application.get_env(@app, :book_ref) |
| 8 | - |
| 9 6 | @moduledoc """ |
| 10 7 | Creates a `tally` struct for the _Game of Islands_. |
| 11 | - \n##### #{@book_ref} |
| 8 | + |
| 9 | + ##### Inspired by the book [Functional Web Development](https://pragprog.com/book/lhelph/functional-web-development-with-elixir-otp-and-phoenix) by Lance Halvorsen. |
| 10 | + |
| 11 | + ##### Also inspired by the course [Elixir for Programmers](https://codestool.coding-gnome.com/courses/elixir-for-programmers) by Dave Thomas. |
| 12 12 | """ |
| 13 13 | |
| 14 14 | alias __MODULE__ |
| @@ -4,8 +4,8 @@ defmodule Islands.Tally.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :islands_tally, |
| 7 | - version: "0.1.9", |
| 8 | - elixir: "~> 1.7", |
| 7 | + version: "0.1.10", |
| 8 | + elixir: "~> 1.11", |
| 9 9 | start_permanent: Mix.env() == :prod, |
| 10 10 | name: "Islands Tally", |
| 11 11 | source_url: source_url(), |
| @@ -27,7 +27,7 @@ defmodule Islands.Tally.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()} |
| @@ -44,11 +44,8 @@ defmodule Islands.Tally.MixProject do | |
| 44 44 | # Run "mix help deps" to learn about dependencies. |
| 45 45 | defp deps do |
| 46 46 | [ |
| 47 | - {:mix_tasks, |
| 48 | - github: "RaymondLoranger/mix_tasks", only: :dev, runtime: false}, |
| 49 | - {:poison, "~> 3.0"}, |
| 50 | - {:jason, "~> 1.0"}, |
| 51 | - {:persist_config, "~> 0.2", runtime: false}, |
| 47 | + {:dialyxir, "~> 1.0", only: :dev, runtime: false}, |
| 48 | + {:ex_doc, "~> 0.22", only: :dev, runtime: false}, |
| 52 49 | {:islands_board, "~> 0.1"}, |
| 53 50 | {:islands_game, "~> 0.1"}, |
| 54 51 | {:islands_guesses, "~> 0.1"}, |
| @@ -57,9 +54,10 @@ defmodule Islands.Tally.MixProject do | |
| 57 54 | {:islands_response, "~> 0.1"}, |
| 58 55 | {:islands_score, "~> 0.1"}, |
| 59 56 | {:islands_state, "~> 0.1"}, |
| 60 | - {:earmark, "~> 1.0", only: :dev}, |
| 61 | - {:ex_doc, "~> 0.14", only: :dev, runtime: false}, |
| 62 | - {:dialyxir, "~> 0.5", only: :dev, runtime: false} |
| 57 | + {:jason, "~> 1.0"}, |
| 58 | + {:mix_tasks, |
| 59 | + github: "RaymondLoranger/mix_tasks", only: :dev, runtime: false}, |
| 60 | + {:poison, "~> 3.0"} |
| 63 61 | ] |
| 64 62 | end |
| 65 63 | end |