neiam
/apollos_crib
It's Apollo's Crib
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions failure · Badges · Packages
Log in to mark this repository.
JSON: Jason instead of Poison, so decimal can move to 3
40f8b00 · Gabriel Morell · 2026-10-23 06:12
Message
{commit_body(@commit)}
Files changed
modified
apps/room_air_quality/mix.exs
+0
−1
| 27 | 27 | [ |
| 28 | 28 | {:csv, "~> 3.0"}, |
| 29 | 29 | {:httpoison, "~> 1.8"}, |
| 30 | − {:poison, "~> 5.0"}, | |
| 31 | 30 | {:parent, "~> 0.12.1"}, |
| 32 | 31 | {:timex, "~> 3.7"}, |
| 33 | 32 | {:room_sanctum, in_umbrella: true} |
modified
apps/room_bourse/lib/room_bourse/worker.ex
+2
−2
| 136 | 136 | end |
| 137 | 137 | |
| 138 | 138 | defp decode(body, symbol) do |
| 139 | − case Poison.decode(body) do | |
| 139 | + case Jason.decode(body) do | |
| 140 | 140 | {:ok, %{"chart" => %{"result" => [%{"meta" => meta} | _]}}} -> |
| 141 | 141 | {:ok, present(meta, symbol)} |
| 142 | 142 |
| 149 | 149 | end |
| 150 | 150 | |
| 151 | 151 | defp describe_error(body) do |
| 152 | − case Poison.decode(body) do | |
| 152 | + case Jason.decode(body) do | |
| 153 | 153 | {:ok, %{"chart" => %{"error" => %{"description" => description}}}} -> description |
| 154 | 154 | _ -> nil |
| 155 | 155 | end |
modified
apps/room_bourse/mix.exs
+1
−1
| 22 | 22 | defp deps do |
| 23 | 23 | [ |
| 24 | 24 | {:httpoison, "~> 1.8"}, |
| 25 | − {:poison, "~> 5.0", override: true} | |
| 25 | + {:jason, "~> 1.4"} | |
| 26 | 26 | ] |
| 27 | 27 | end |
| 28 | 28 | end |
modified
apps/room_drought/lib/room_drought/worker.ex
+1
−1
| 170 | 170 | |
| 171 | 171 | case HTTPoison.get(url, [{"Accept", "application/json"}], recv_timeout: 15_000) do |
| 172 | 172 | {:ok, %{status_code: 200, body: body}} -> |
| 173 | − case Poison.decode(body) do | |
| 173 | + case Jason.decode(body) do | |
| 174 | 174 | {:ok, [_ | _] = list} -> |
| 175 | 175 | # API returns most-recent first |
| 176 | 176 | {:ok, List.first(list)} |
modified
apps/room_drought/mix.exs
+1
−1
| 22 | 22 | defp deps do |
| 23 | 23 | [ |
| 24 | 24 | {:httpoison, "~> 1.8"}, |
| 25 | − {:poison, "~> 5.0", override: true} | |
| 25 | + {:jason, "~> 1.4"} | |
| 26 | 26 | ] |
| 27 | 27 | end |
| 28 | 28 | end |
modified
apps/room_ephem/mix.exs
+0
−1
Click to load diff…
modified
apps/room_gbfs/lib/room_gbfs/gbfs_worker.ex
+3
−3
Click to load diff…
modified
apps/room_gbfs/mix.exs
+1
−1
Click to load diff…
modified
apps/room_github/lib/room_github/worker.ex
+3
−3
Click to load diff…
modified
apps/room_github/mix.exs
+2
−1
Click to load diff…
modified
apps/room_gitlab/lib/room_gitlab/gitlab_worker.ex
+2
−2
Click to load diff…
modified
apps/room_gitlab/mix.exs
+1
−0
Click to load diff…
modified
apps/room_hermes/lib/room_hermes/mail/server.ex
+1
−1
Click to load diff…
modified
apps/room_icarus/lib/room_icarus/flight.ex
+1
−1
Click to load diff…
modified
apps/room_icarus/lib/room_icarus/worker.ex
+1
−1
Click to load diff…
modified
apps/room_icarus/mix.exs
+1
−1
Click to load diff…
modified
apps/room_packages/lib/room_packages/usps.ex
+7
−7
Click to load diff…
modified
apps/room_packages/mix.exs
+1
−1
Click to load diff…
modified
apps/room_pollen/lib/room_pollen/worker.ex
+1
−1
Click to load diff…
modified
apps/room_pollen/mix.exs
+1
−1
Click to load diff…
added
apps/room_sanctum/lib/room_sanctum/json.ex
+39
−0
Click to load diff…
deleted
apps/room_sanctum/lib/room_sanctum/poison.ex
+0
−11
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum/queues/mail.ex
+2
−2
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum/workers/ankyra_worker.ex
+4
−4
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum/workers/keryx_worker.ex
+8
−8
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_foci_live/form_component.ex
+1
−1
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_foci_live/form_component_coords.ex
+1
−1
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_foci_live/show.ex
+1
−1
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_pythiae_live/show.html.heex
+1
−1
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_query_live/show.ex
+3
−3
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_query_live/show.html.heex
+2
−2
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_source_live/import_component.ex
+1
−1
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_source_live/index.ex
+2
−2
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_source_live/show.ex
+1
−1
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_source_live/show.html.heex
+1
−1
Click to load diff…
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_vision_live/show.html.heex
+1
−1
Click to load diff…
modified
apps/room_sanctum/mix.exs
+0
−1
Click to load diff…
modified
apps/room_sanctum/test/room_sanctum/france_import_bundle_test.exs
+1
−1
Click to load diff…
added
apps/room_sanctum/test/room_sanctum/json_test.exs
+42
−0
Click to load diff…
modified
apps/room_scribes/lib/room_scribes/scribe_worker.ex
+2
−2
Click to load diff…
modified
apps/room_scribes/mix.exs
+1
−0
Click to load diff…
modified
apps/room_tidal/lib/room_tidal/tidal_worker.ex
+1
−1
Click to load diff…
modified
apps/room_tidal/mix.exs
+1
−0
Click to load diff…
modified
apps/room_treasury/lib/room_treasury/worker.ex
+1
−1
Click to load diff…
modified
apps/room_treasury/mix.exs
+1
−1
Click to load diff…
modified
apps/room_weather/lib/room_weather/weather_worker.ex
+1
−1
Click to load diff…
modified
apps/room_weather/mix.exs
+1
−0
Click to load diff…
modified
mix.lock
+2
−2
Click to load diff…
Parents: 4042d9f