assistly 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ 0.2.3 April 18, 2011
2
+ ------------------
3
+ Removed deep_merge because it conflicts with rails. Handling the merge inside the create_outbound_interaction method only on headers for now, until we need it elsewhere.
4
+
1
5
  0.2.2 - April 18, 2011
2
6
  ------------------
3
7
  Added deep_merge! support so that we keep any custom email headers when creating outbound interactions.
data/README.mkd CHANGED
@@ -6,9 +6,13 @@ Installation
6
6
  ------------
7
7
  gem install assistly
8
8
 
9
+ What's new in 0.2.3?
10
+ ------------------
11
+ Removed deep_merge because it conflicts with rails. Handling the merge inside the create_outbound_interaction method only on headers for now, until we need it elsewhere.
12
+
9
13
  What's new in 0.2.2?
10
14
  ------------------
11
- Added deep_merge! support so that we keep any custom email headers when creating outbound interactions.
15
+ Added deep_merge support so that we keep any custom email headers when creating outbound interactions.
12
16
  Required pony in the gem so you don't have to include it in your app.
13
17
 
14
18
  What's new in 0.2.1?
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
21
21
  s.add_runtime_dependency('rash', '~> 0.3.0')
22
22
  s.add_runtime_dependency('simple_oauth', '~> 0.1.4')
23
23
  s.add_runtime_dependency('pony', '~> 1.1')
24
- s.add_runtime_dependency('deep_merge', '~> 0.1.0')
25
24
  s.authors = ["Chris Warren"]
26
25
  s.description = %q{A Ruby wrapper for the Assistly REST API}
27
26
  s.post_install_message =<<eos
@@ -3,7 +3,6 @@ require 'assistly/configuration'
3
3
  require 'assistly/api'
4
4
  require 'assistly/client'
5
5
  require 'pony'
6
- require 'deep_merge'
7
6
 
8
7
  module Assistly
9
8
  extend Configuration
@@ -63,9 +63,11 @@ module Assistly
63
63
  raise Assistly::SupportEmailNotSet if support_email.blank?
64
64
  options = args.last.is_a?(Hash) ? args.pop : {}
65
65
  options.merge!(:to => to, :subject => subject, :body => body, :from => support_email, :bcc => support_email)
66
- options.deep_merge!(:headers => { "x-assistly-customer-email" => to,
67
- "x-assistly-interaction-direction" => "out",
68
- "x-assistly-case-status" => options[:status]||"open"})
66
+ headers = { "x-assistly-customer-email" => to,
67
+ "x-assistly-interaction-direction" => "out",
68
+ "x-assistly-case-status" => options[:status]||"open"}
69
+ headers.merge!(options[:headers]) if options[:headers]
70
+ options.merge!(:headers => headers)
69
71
  Pony.mail(options)
70
72
  end
71
73
  end
@@ -1,4 +1,4 @@
1
1
  module Assistly
2
2
  # The version of the gem
3
- VERSION = '0.2.2'.freeze unless defined?(::Assistly::VERSION)
3
+ VERSION = '0.2.3'.freeze unless defined?(::Assistly::VERSION)
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assistly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Warren
@@ -295,22 +295,6 @@ dependencies:
295
295
  version: "1.1"
296
296
  type: :runtime
297
297
  version_requirements: *id018
298
- - !ruby/object:Gem::Dependency
299
- name: deep_merge
300
- prerelease: false
301
- requirement: &id019 !ruby/object:Gem::Requirement
302
- none: false
303
- requirements:
304
- - - ~>
305
- - !ruby/object:Gem::Version
306
- hash: 27
307
- segments:
308
- - 0
309
- - 1
310
- - 0
311
- version: 0.1.0
312
- type: :runtime
313
- version_requirements: *id019
314
298
  description: A Ruby wrapper for the Assistly REST API
315
299
  email:
316
300
  - chris@zencoder.com