assistly 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/assistly/client/article.rb +1 -5
- data/lib/assistly/client/case.rb +1 -1
- data/lib/assistly/client/customer.rb +1 -1
- data/lib/assistly/client/interaction.rb +1 -1
- data/lib/assistly/client/macro.rb +1 -1
- data/lib/assistly/client/topic.rb +1 -1
- data/lib/assistly/client/user.rb +1 -1
- data/lib/assistly/version.rb +1 -1
- data/spec/assistly/client/article_spec.rb +2 -2
- data/spec/assistly/client/case_spec.rb +3 -3
- data/spec/assistly/client/customer_spec.rb +2 -2
- data/spec/assistly/client/interaction_spec.rb +2 -2
- data/spec/assistly/client/macro_spec.rb +2 -2
- data/spec/assistly/client/topic_spec.rb +2 -2
- data/spec/assistly/client/user_spec.rb +2 -2
- metadata +4 -5
- data/.travis.yml +0 -7
@@ -16,11 +16,7 @@ module Assistly
|
|
16
16
|
def articles(id, *args)
|
17
17
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
18
18
|
response = get("topics/#{id}/articles",options)
|
19
|
-
|
20
|
-
return response['results']
|
21
|
-
else
|
22
|
-
return response
|
23
|
-
end
|
19
|
+
response
|
24
20
|
end
|
25
21
|
|
26
22
|
# Returns extended information on a single article
|
data/lib/assistly/client/case.rb
CHANGED
data/lib/assistly/client/user.rb
CHANGED
data/lib/assistly/version.rb
CHANGED
@@ -25,8 +25,8 @@ describe Assistly::Client do
|
|
25
25
|
it "should return the articles" do
|
26
26
|
articles = @client.articles(1)
|
27
27
|
|
28
|
-
articles.should be_a Array
|
29
|
-
articles.first.article.id.should == 13
|
28
|
+
articles.results.should be_a Array
|
29
|
+
articles.results.first.article.id.should == 13
|
30
30
|
end
|
31
31
|
|
32
32
|
end
|
@@ -25,9 +25,9 @@ describe Assistly::Client do
|
|
25
25
|
it "should return up to 100 cases worth of extended information" do
|
26
26
|
cases = @client.cases
|
27
27
|
|
28
|
-
cases.should be_a Array
|
29
|
-
cases.first.case.id.should == 1
|
30
|
-
cases.first.case.user.name.should == "Jeremy Suriel"
|
28
|
+
cases.results.should be_a Array
|
29
|
+
cases.results.first.case.id.should == 1
|
30
|
+
cases.results.first.case.user.name.should == "Jeremy Suriel"
|
31
31
|
end
|
32
32
|
|
33
33
|
end
|
@@ -25,8 +25,8 @@ describe Assistly::Client do
|
|
25
25
|
it "should return up to 100 customers worth of extended information" do
|
26
26
|
customers = @client.customers
|
27
27
|
|
28
|
-
customers.should be_a Array
|
29
|
-
customers.first.customer.first_name.should == "Jeremy"
|
28
|
+
customers.results.should be_a Array
|
29
|
+
customers.results.first.customer.first_name.should == "Jeremy"
|
30
30
|
end
|
31
31
|
|
32
32
|
end
|
@@ -166,8 +166,8 @@ describe Assistly::Client do
|
|
166
166
|
it "should return up to 100 users worth of extended information" do
|
167
167
|
interactions = @client.interactions
|
168
168
|
|
169
|
-
interactions.should be_a Array
|
170
|
-
interactions.last.interaction.user.name.should == "Agent Jeremy"
|
169
|
+
interactions.results.should be_a Array
|
170
|
+
interactions.results.last.interaction.user.name.should == "Agent Jeremy"
|
171
171
|
end
|
172
172
|
|
173
173
|
end
|
@@ -25,8 +25,8 @@ describe Assistly::Client do
|
|
25
25
|
it "should return up to 100 macros worth of extended information" do
|
26
26
|
macros = @client.macros
|
27
27
|
|
28
|
-
macros.should be_a Array
|
29
|
-
macros.first.macro.id.should == 11
|
28
|
+
macros.results.should be_a Array
|
29
|
+
macros.results.first.macro.id.should == 11
|
30
30
|
end
|
31
31
|
|
32
32
|
end
|
@@ -25,8 +25,8 @@ describe Assistly::Client do
|
|
25
25
|
it "should return up to 100 topics worth of extended information" do
|
26
26
|
topics = @client.topics
|
27
27
|
|
28
|
-
topics.should be_a Array
|
29
|
-
topics.first.topic.id.should == 1
|
28
|
+
topics.results.should be_a Array
|
29
|
+
topics.results.first.topic.id.should == 1
|
30
30
|
end
|
31
31
|
|
32
32
|
end
|
@@ -47,8 +47,8 @@ describe Assistly::Client do
|
|
47
47
|
|
48
48
|
it "should return up to 100 users worth of extended information" do
|
49
49
|
users = @client.users
|
50
|
-
users.should be_a Array
|
51
|
-
users.first.name.should == "Test User"
|
50
|
+
users.results.should be_a Array
|
51
|
+
users.results.first.user.name.should == "Test User"
|
52
52
|
end
|
53
53
|
|
54
54
|
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: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
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-04-
|
18
|
+
date: 2011-04-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: json
|
@@ -308,7 +308,6 @@ files:
|
|
308
308
|
- .gemtest
|
309
309
|
- .gitignore
|
310
310
|
- .rspec
|
311
|
-
- .travis.yml
|
312
311
|
- .yardopts
|
313
312
|
- Gemfile
|
314
313
|
- HISTORY.mkd
|