From e2ba197015ff3c1983f9dd3019340a2e7327c565 Mon Sep 17 00:00:00 2001 From: handnot2 Date: Mon, 7 Aug 2017 15:12:45 -0700 Subject: [PATCH] version and changelog update --- CHANGELOG.md | 7 +++++++ README.md | 5 ++++- mix.exs | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6817552..00108d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ## Changelog +### v0.7.0 + +Fixes: + +- Removed Mix.env reference that caused problems with distillery based releases. + PR from [zeroasterisk](https://github.com/zeroasterisk) (issue #8) + ### v0.6.0 Fixes: diff --git a/README.md b/README.md index 6a395cc..c0665bc 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ in `mix.exs`: ```elixir def deps do - [{:sigaws, "~> 0.6"}] + [{:sigaws, "~> 0.7"}] end ``` @@ -55,6 +55,9 @@ headers = %{"X-Amz-Secure-Token" => System.get_env("AWS_SESSION_TOKEN")} {:ok, resp} = HTTPoison.get(url, Map.merge(headers, sig_data)) ``` +> Make sure to merge `sig_data` with other headers before calling HTTPoison. +> If not done, the HTTP request will fail with signature verification error. + ### Signature to be passed in query string ("presigned" URL) ```elixir diff --git a/mix.exs b/mix.exs index c2acfb7..5df3931 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Sigaws.Mixfile do use Mix.Project - @version "0.6.0" + @version "0.7.0" @description """ An Elixir library to sign and verify HTTP requests using AWS Signature V4. """