assistly 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.mkd +8 -0
- data/README.mkd +27 -23
- data/assistly.gemspec +4 -4
- data/lib/assistly/version.rb +1 -1
- data/spec/assistly/client_spec.rb +1 -1
- metadata +15 -15
data/HISTORY.mkd
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
0.2.6 October 3, 2011
|
2
|
+
------------------
|
3
|
+
Newer Faraday and multixml versions
|
4
|
+
|
5
|
+
0.2.5 August 17, 2011
|
6
|
+
------------------
|
7
|
+
Newer multijson version for Rails 3.1 compatibility
|
8
|
+
|
1
9
|
0.2.3 April 18, 2011
|
2
10
|
------------------
|
3
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.
|
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.6?
|
10
|
+
------------------
|
11
|
+
Newer faraday, faraday_middleware and multixml versions
|
12
|
+
|
9
13
|
What's new in 0.2.5?
|
10
14
|
------------------
|
11
|
-
Newer
|
15
|
+
Newer multijson version for Rails 3.1 compatibility
|
12
16
|
|
13
17
|
What's new in 0.2.4?
|
14
18
|
------------------
|
@@ -20,7 +24,7 @@ Removed deep_merge because it conflicts with rails. Handling the merge inside th
|
|
20
24
|
|
21
25
|
What's new in 0.2.2?
|
22
26
|
------------------
|
23
|
-
Added deep_merge support so that we keep any custom email headers when creating outbound interactions.
|
27
|
+
Added deep_merge support so that we keep any custom email headers when creating outbound interactions.
|
24
28
|
Required pony in the gem so you don't have to include it in your app.
|
25
29
|
|
26
30
|
What's new in 0.2.1?
|
@@ -78,7 +82,7 @@ Usage Examples
|
|
78
82
|
|
79
83
|
# Get a case url
|
80
84
|
Assistly.case_url(12345)
|
81
|
-
|
85
|
+
|
82
86
|
######
|
83
87
|
# Customers
|
84
88
|
######
|
@@ -103,7 +107,7 @@ Usage Examples
|
|
103
107
|
# Update a customer email
|
104
108
|
Assistly.update_customer_email(12345, 54321, :email => "foo@example.com")
|
105
109
|
Assistly.update_customer_email(12345, 54321, :customer_contact_type => "work")
|
106
|
-
|
110
|
+
|
107
111
|
######
|
108
112
|
# Interactions
|
109
113
|
######
|
@@ -116,11 +120,11 @@ Usage Examples
|
|
116
120
|
# Create an inbound interaction
|
117
121
|
Assistly.create_interaction(:interaction_subject => "help me", :customer_email => "foo@example.com", :interaction_body => "You're my only hope.")
|
118
122
|
Assistly.create_inbound_interaction(:interaction_subject => "help me", :customer_email => "foo@example.com", :interaction_body => "You're my only hope.")
|
119
|
-
|
123
|
+
|
120
124
|
# Create an outbound interaction
|
121
125
|
# Assistly's API doesn't support creating outbound communications, so we do this over email with a BCC back to Assistly and customer headers.
|
122
126
|
# Assistly.support_email must be set to your Assistly email address so that the email can be sent to the account and give the customer someone to respond to.
|
123
|
-
#
|
127
|
+
#
|
124
128
|
# Read more at http://support.assistly.com/customer/portal/articles/4180
|
125
129
|
# Additional headers can be passed as well http://support.assistly.com/customer/portal/articles/6728
|
126
130
|
#
|
@@ -137,49 +141,49 @@ Usage Examples
|
|
137
141
|
|
138
142
|
# Get a specific user
|
139
143
|
Assistly.user(12345)
|
140
|
-
|
144
|
+
|
141
145
|
######
|
142
146
|
# Topics
|
143
147
|
######
|
144
|
-
|
148
|
+
|
145
149
|
# List Topics
|
146
150
|
Assistly.topics
|
147
|
-
|
151
|
+
|
148
152
|
# Get a specific topic
|
149
153
|
Assistly.topic(12345)
|
150
|
-
|
154
|
+
|
151
155
|
# Create a new topic
|
152
156
|
Assistly.create_topic("name", :description => "description")
|
153
|
-
|
157
|
+
|
154
158
|
# Update a topic
|
155
159
|
Assistly.update_topic(12345, :subject => "Updated")
|
156
|
-
|
160
|
+
|
157
161
|
# Delete a topic
|
158
162
|
Assistly.delete_topic(12345)
|
159
|
-
|
163
|
+
|
160
164
|
######
|
161
165
|
# Articles
|
162
166
|
######
|
163
|
-
|
167
|
+
|
164
168
|
# List articles for a topic
|
165
169
|
Assistly.articles(1)
|
166
|
-
|
170
|
+
|
167
171
|
# Get a specific article
|
168
172
|
Assistly.article(12345)
|
169
|
-
|
173
|
+
|
170
174
|
# Create a new article within a topic
|
171
175
|
Assistly.create_article(1, :subject => "API Tips", :main_content => "Tips on using our API")
|
172
|
-
|
176
|
+
|
173
177
|
# Update an article
|
174
178
|
Assistly.update_article(12345, :subject => "Updated API Tips")
|
175
|
-
|
179
|
+
|
176
180
|
# Delete an article
|
177
181
|
Assistly.delete_article(12345)
|
178
|
-
|
182
|
+
|
179
183
|
######
|
180
184
|
# Macros
|
181
185
|
######
|
182
|
-
|
186
|
+
|
183
187
|
# List Macros
|
184
188
|
Assistly.macros
|
185
189
|
|
@@ -194,13 +198,13 @@ Usage Examples
|
|
194
198
|
|
195
199
|
# Delete a macro
|
196
200
|
Assistly.delete_macro(12345)
|
197
|
-
|
201
|
+
|
198
202
|
# Macro Actions
|
199
203
|
Assistly.macro_actions(12345)
|
200
|
-
|
204
|
+
|
201
205
|
# Macro Action
|
202
206
|
Assistly.macro_action(12345, "set-case-description")
|
203
|
-
|
207
|
+
|
204
208
|
# Update Macro Action
|
205
209
|
Assistly.update_macro_action(12345, "set-case-description", :value => "New Subject")
|
206
210
|
|
data/assistly.gemspec
CHANGED
@@ -13,11 +13,11 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.add_development_dependency('yard', '~> 0.6')
|
14
14
|
s.add_development_dependency('ZenTest', '~> 4.5')
|
15
15
|
s.add_runtime_dependency('hashie', '~> 1.0.0')
|
16
|
-
s.add_runtime_dependency('faraday', '~> 0.
|
17
|
-
s.add_runtime_dependency('faraday_middleware', '~> 0.
|
16
|
+
s.add_runtime_dependency('faraday', '~> 0.7.0')
|
17
|
+
s.add_runtime_dependency('faraday_middleware', '~> 0.7.0')
|
18
18
|
s.add_runtime_dependency('jruby-openssl', '~> 0.7.2') if RUBY_PLATFORM == 'java'
|
19
19
|
s.add_runtime_dependency('multi_json', '~> 1.0.3')
|
20
|
-
s.add_runtime_dependency('multi_xml', '~> 0.
|
20
|
+
s.add_runtime_dependency('multi_xml', '~> 0.4.0')
|
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')
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.post_install_message =<<eos
|
27
27
|
********************************************************************************
|
28
28
|
|
29
|
-
Ruby wrapper for the Assistly API
|
29
|
+
Ruby wrapper for the Assistly API.
|
30
30
|
|
31
31
|
********************************************************************************
|
32
32
|
eos
|
data/lib/assistly/version.rb
CHANGED
@@ -4,7 +4,7 @@ describe Assistly::Client do
|
|
4
4
|
it "should connect using the endpoint configuration" do
|
5
5
|
client = Assistly::Client.new
|
6
6
|
endpoint = URI.parse(client.api_endpoint)
|
7
|
-
connection = client.send(:connection).build_url(
|
7
|
+
connection = client.send(:connection).build_url(" ").to_s.strip
|
8
8
|
connection.should == endpoint.to_s
|
9
9
|
end
|
10
10
|
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Warren
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-10-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: json
|
@@ -192,12 +192,12 @@ dependencies:
|
|
192
192
|
requirements:
|
193
193
|
- - ~>
|
194
194
|
- !ruby/object:Gem::Version
|
195
|
-
hash:
|
195
|
+
hash: 3
|
196
196
|
segments:
|
197
197
|
- 0
|
198
|
-
-
|
198
|
+
- 7
|
199
199
|
- 0
|
200
|
-
version: 0.
|
200
|
+
version: 0.7.0
|
201
201
|
type: :runtime
|
202
202
|
version_requirements: *id012
|
203
203
|
- !ruby/object:Gem::Dependency
|
@@ -208,12 +208,12 @@ dependencies:
|
|
208
208
|
requirements:
|
209
209
|
- - ~>
|
210
210
|
- !ruby/object:Gem::Version
|
211
|
-
hash:
|
211
|
+
hash: 3
|
212
212
|
segments:
|
213
213
|
- 0
|
214
|
-
-
|
215
|
-
-
|
216
|
-
version: 0.
|
214
|
+
- 7
|
215
|
+
- 0
|
216
|
+
version: 0.7.0
|
217
217
|
type: :runtime
|
218
218
|
version_requirements: *id013
|
219
219
|
- !ruby/object:Gem::Dependency
|
@@ -240,12 +240,12 @@ dependencies:
|
|
240
240
|
requirements:
|
241
241
|
- - ~>
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
hash:
|
243
|
+
hash: 15
|
244
244
|
segments:
|
245
245
|
- 0
|
246
|
-
-
|
246
|
+
- 4
|
247
247
|
- 0
|
248
|
-
version: 0.
|
248
|
+
version: 0.4.0
|
249
249
|
type: :runtime
|
250
250
|
version_requirements: *id015
|
251
251
|
- !ruby/object:Gem::Dependency
|
@@ -385,7 +385,7 @@ licenses: []
|
|
385
385
|
post_install_message: |
|
386
386
|
********************************************************************************
|
387
387
|
|
388
|
-
Ruby wrapper for the Assistly API
|
388
|
+
Ruby wrapper for the Assistly API.
|
389
389
|
|
390
390
|
********************************************************************************
|
391
391
|
|