From 58a7900ba2bb35f78348499f6428da9b4611dc98 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Wed, 13 May 2015 16:50:39 -0400 Subject: [PATCH] include spec and fix tiny regression --- lib/ex_aws/s3/impl.ex | 2 +- mix.exs | 2 +- test/lib/ex_aws/s3_test.exs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ex_aws/s3/impl.ex b/lib/ex_aws/s3/impl.ex index 812164be..5395b967 100644 --- a/lib/ex_aws/s3/impl.ex +++ b/lib/ex_aws/s3/impl.ex @@ -185,7 +185,7 @@ defmodule ExAws.S3.Impl do response_opts = opts |> Map.take(param_keys) headers = opts - |> Map.drop(param_key) + |> Map.drop(param_keys) |> Enum.to_list client.request(:get, bucket, object, headers: headers, params: response_opts) end diff --git a/mix.exs b/mix.exs index 94fbaf9b..2336a45f 100644 --- a/mix.exs +++ b/mix.exs @@ -3,7 +3,7 @@ defmodule ExAws.Mixfile do def project do [app: :ex_aws, - version: "0.1.1", + version: "0.1.2", elixir: "~> 1.0", description: "AWS client. Currently supports Dynamo, Kinesis, Lambda, S3", name: "ExAws", diff --git a/test/lib/ex_aws/s3_test.exs b/test/lib/ex_aws/s3_test.exs index 01fcc549..717bc684 100644 --- a/test/lib/ex_aws/s3_test.exs +++ b/test/lib/ex_aws/s3_test.exs @@ -16,7 +16,7 @@ defmodule ExAws.S3Test do alias Test.Dummy.S3 test "#get_object" do - expected = %{headers: %{response: %{content_type: "application/json"}}, params: %{}, + expected = %{headers: [response: %{content_type: "application/json"}], params: %{}, path: "object.json", bucket: "bucket"} assert expected == S3.get_object("bucket", "object.json", %{response: %{content_type: "application/json"}}) end