Current section

14 Versions

Jump to

Compare versions

4 files changed
+15 additions
-7 deletions
  @@ -1,5 +1,9 @@
1 1 # Changelog
2 2
3 + ## v0.3.3 (2016-08-11)
4 +
5 + * parse HTTP response by default
6 +
3 7 ## v0.3.2 (2016-08-02)
4 8
5 9 * transform keys of PutPolicy to camelCase. Thanks @goofansu for finding the issue #4
  @@ -20,5 +20,9 @@
20 20 [{<<"app">>,<<"httpoison">>},
21 21 {<<"name">>,<<"httpoison">>},
22 22 {<<"optional">>,false},
23 - {<<"requirement">>,<<"~> 0.8.3">>}]]}.
24 - {<<"version">>,<<"0.3.2">>}.
23 + {<<"requirement">>,<<"~> 0.8.3">>}],
24 + [{<<"app">>,<<"ex_doc">>},
25 + {<<"name">>,<<"ex_doc">>},
26 + {<<"optional">>,false},
27 + {<<"requirement">>,<<"~> 0.11.5">>}]]}.
28 + {<<"version">>,<<"0.3.3">>}.
  @@ -24,10 +24,10 @@ defmodule Qiniu.HTTP do
24 24 :post -> HTTPoison.post! url, body, headers
25 25 end
26 26
27 - if opts[:parse] do
28 - %{response | body: Poison.decode!(response.body)}
29 - else
27 + if opts[:raw] do
30 28 response
29 + else
30 + %{response | body: Poison.decode!(response.body)}
31 31 end
32 32 end
  @@ -1,7 +1,7 @@
1 1 defmodule Qiniu.Mixfile do
2 2 use Mix.Project
3 3
4 - @version "0.3.2"
4 + @version "0.3.3"
5 5
6 6 def project do
7 7 [app: :qiniu,
  @@ -24,7 +24,7 @@ defmodule Qiniu.Mixfile do
24 24 defp deps do
25 25 [{:poison, "~> 2.0"},
26 26 {:httpoison, "~> 0.8.3"},
27 - {:ex_doc, "~> 0.11.5", only: :dev},
27 + {:ex_doc, "~> 0.11.5"},
28 28 {:excoveralls, "~> 0.5.4", only: :test},
29 29 {:earmark, "~> 0.2.1", only: :docs},
30 30 {:inch_ex, "~> 0.5.1", only: :docs},