From fb005aef4433768fbedf4ca7a202dd08797646d9 Mon Sep 17 00:00:00 2001 From: bodrovis Date: Mon, 27 Sep 2021 16:13:28 +0300 Subject: [PATCH] Version 2.1.0 --- docs/Gemfile.lock | 2 +- docs/additional_info/changelog.md | 5 +++++ lib/elixir_lokalise_api/config.ex | 2 ++ lib/elixir_lokalise_api/request.ex | 2 ++ mix.exs | 2 +- 5 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 946c22b..1fd43bc 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -267,7 +267,7 @@ GEM ethon (>= 0.9.0) tzinfo (1.2.9) thread_safe (~> 0.1) - tzinfo-data (1.2021.1) + tzinfo-data (1.2021.2) tzinfo (>= 1.0.0) unf (0.1.4) unf_ext diff --git a/docs/additional_info/changelog.md b/docs/additional_info/changelog.md index 3b2a4cd..29a85cf 100644 --- a/docs/additional_info/changelog.md +++ b/docs/additional_info/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2.1.0 (27-Sep-2021) + +* Prevent HTTPoison from leaking errors to higher modules (thanks, @dragonwasrobot). +* Fixed docs (thanks, @kianmeng). + ## 2.0.0 (20-Sep-2021) * Reworked configuration (thanks, @dragonwasrobot). Instead of saying `config :your_app, api_token: "LOKALISE_API_TOKEN"`, you should now provide config in the following way: diff --git a/lib/elixir_lokalise_api/config.ex b/lib/elixir_lokalise_api/config.ex index ff62b1e..be40de1 100644 --- a/lib/elixir_lokalise_api/config.ex +++ b/lib/elixir_lokalise_api/config.ex @@ -35,6 +35,8 @@ defmodule ElixirLokaliseApi.Config do |> read_from_system(default) end + # coveralls-ignore-start defp read_from_system({:system, env}, default), do: System.get_env(env) || default + # coveralls-ignore-stop defp read_from_system(value, _default), do: value end diff --git a/lib/elixir_lokalise_api/request.ex b/lib/elixir_lokalise_api/request.ex index 1f92c5e..cb90992 100644 --- a/lib/elixir_lokalise_api/request.ex +++ b/lib/elixir_lokalise_api/request.ex @@ -34,7 +34,9 @@ defmodule ElixirLokaliseApi.Request do else {:error, error} -> # HTTPoison error + # coveralls-ignore-start {:error, error.reason} + # coveralls-ignore-end {:error, data, status} -> # Processor error diff --git a/mix.exs b/mix.exs index cb83cc1..1174ff5 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule ElixirLokaliseApi.MixProject do use Mix.Project @source_url "https://github.com/lokalise/elixir-lokalise-api" - @version "2.0.0" + @version "2.1.0" def project do [