assistly 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY.mkd +4 -0
- data/README.mkd +5 -1
- data/assistly.gemspec +0 -1
- data/lib/assistly.rb +0 -1
- data/lib/assistly/client/interaction.rb +5 -3
- data/lib/assistly/version.rb +1 -1
- metadata +3 -19
data/HISTORY.mkd
CHANGED
@@ -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
|
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?
|
data/assistly.gemspec
CHANGED
@@ -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
|
data/lib/assistly.rb
CHANGED
@@ -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
|
-
|
67
|
-
|
68
|
-
|
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
|
data/lib/assistly/version.rb
CHANGED
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.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
|