Skip to content

Commit

Permalink
version bump and updated history
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Warren committed Apr 18, 2011
1 parent f5e6103 commit 492caee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
7 changes: 6 additions & 1 deletion HISTORY.mkd
@@ -1,4 +1,9 @@
0.2.1 - April 18, 2001
0.2.2 - April 18, 2011
------------------
Added deep_merge! support so that we keep any custom email headers when creating outbound interactions.
Required pony in the gem so you don't have to include it in your app.

0.2.1 - April 18, 2011
------------------
Stopped returning only the 'results' array when listing things, because this would cause us to not have access to page numbers, total counts, etc.

Expand Down
6 changes: 5 additions & 1 deletion README.mkd
Expand Up @@ -6,11 +6,15 @@ Installation
------------
gem install assistly

What's new in 0.2.2?
------------------
Added deep_merge! support so that we keep any custom email headers when creating outbound interactions.
Required pony in the gem so you don't have to include it in your app.

What's new in 0.2.1?
------------------
Stopped returning only the 'results' array when listing things, because this would cause us to not have access to page numbers, total counts, etc.


What's new in 0.2.0?
------------------
Added support for Topics, Articles, and Macros, which is currently all that is available in the Assistly API.
Expand Down
2 changes: 1 addition & 1 deletion lib/assistly/version.rb
@@ -1,4 +1,4 @@
module Assistly
# The version of the gem
VERSION = '0.2.1'.freeze unless defined?(::Assistly::VERSION)
VERSION = '0.2.2'.freeze unless defined?(::Assistly::VERSION)
end
6 changes: 3 additions & 3 deletions spec/assistly/client/interaction_spec.rb
Expand Up @@ -149,15 +149,15 @@

context "with customer headers set" do
before do
@email = @client.create_outbound_interaction("customer@example.com", "Need help?", "Sorry we missed you in chat today.", :headers => { "x-assistly-interaction-user-agent" => "12345"})
@custom_email = @client.create_outbound_interaction("customer@example.com", "Need help?", "Sorry we missed you in chat today.", :headers => { "x-assistly-interaction-user-agent" => "12345"})
end

it "should merge the custom headers" do
@email.last.should have_header("x-assistly-interaction-user-agent","12345")
@custom_email.last.should have_header("x-assistly-interaction-user-agent","12345")
end

it "should preserve the existing headers" do
@email.last.should have_header("x-assistly-customer-email","customer@example.com")
@custom_email.last.should have_header("x-assistly-customer-email","customer@example.com")
end
end
end
Expand Down

0 comments on commit 492caee

Please sign in to comment.