Skip to content

Commit

Permalink
Version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Sep 27, 2021
1 parent 4931ab5 commit fb005ae
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions docs/additional_info/changelog.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions lib/elixir_lokalise_api/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions lib/elixir_lokalise_api/request.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
[
Expand Down

0 comments on commit fb005ae

Please sign in to comment.