Skip to content

Commit

Permalink
use latest version of statuses (status.text :atom) dwyl/statuses#4 #89
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jul 9, 2022
1 parent fe18087 commit 53a85f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
6 changes: 4 additions & 2 deletions priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53a85f1

Please sign in to comment.