diff --git a/mix.exs b/mix.exs index 7485865a..8af83b2b 100644 --- a/mix.exs +++ b/mix.exs @@ -62,7 +62,7 @@ defmodule App.MixProject do # Useful functions: github.com/dwyl/useful {:useful, "~> 1.0.8"}, # Statuses: github.com/dwyl/statuses - {:statuses, "~> 1.1"}, + {:statuses, "~> 1.1.1"}, # create docs on localhost by running "mix docs" {:ex_doc, "~> 0.22.6", only: :dev, runtime: false}, # Track test coverage diff --git a/mix.lock b/mix.lock index 30d0e03c..245e6a16 100644 --- a/mix.lock +++ b/mix.lock @@ -51,7 +51,7 @@ "pre_commit": {:hex, :pre_commit, "0.3.4", "e2850f80be8090d50ad8019ef2426039307ff5dfbe70c736ad0d4d401facf304", [:mix], [], "hexpm", "16f684ba4f1fed1cba6b19e082b0f8d696e6f1c679285fedf442296617ba5f4e"}, "ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"}, "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"}, - "statuses": {:hex, :statuses, "1.1.0", "a3bce0c218e750135cad88b65c1895289939cecd1b7b68959f3614f7b352b153", [:mix], [{:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "71437e7fa041a36b06d206460054eb190d83a19739520fcf306ae051f211fced"}, + "statuses": {:hex, :statuses, "1.1.1", "bb52e1d7d3d16624c592a8a7712ddd03ea19f11cf8df54d8604c20d220b358e9", [:mix], [], "hexpm", "9dbc3839547401153dce11b8ab1bc406339e18d4c67eb0449c38749e26ba2e27"}, "tailwind": {:hex, :tailwind, "0.1.6", "d8d05ed1b8bfcfdc896f107f5bc0c740d7d509d6d0f1cb381d58aabff2ddff39", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "41ccc86cc42ba97bef23391f21548694709da0c3001714a971fa008ab12ae170"}, "telemetry": {:hex, :telemetry, "1.1.0", "a589817034a27eab11144ad24d5c0f9fab1f58173274b1e9bae7074af9cbee51", [:rebar3], [], "hexpm", "b727b2a1f75614774cff2d7565b64d0dfa5bd52ba517f16543e6fc7efcc0df48"}, "telemetry_metrics": {:hex, :telemetry_metrics, "0.6.1", "315d9163a1d4660aedc3fee73f33f1d355dcc76c5c3ab3d59e76e3edf80eef1f", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7be9e0871c41732c233be71e4be11b96e56177bf15dde64a8ac9ce72ac9834c6"}, diff --git a/priv/repo/seeds.exs b/priv/repo/seeds.exs index 4b244c7e..6499729d 100644 --- a/priv/repo/seeds.exs +++ b/priv/repo/seeds.exs @@ -12,10 +12,12 @@ alias App.{Person, Status} # Statuses: github.com/dwyl/statuses -Statuses.parse_json() +Statuses.get_statuses() |> Enum.each(fn(s) -> Status.upsert(%{ - text: s.text, + text: Atom.to_string(s.text) + |> String.split("_", trim: true) + |> Enum.join(" "), id: s.code }) end)