zendesk_api 0.3.14 → 0.4.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +6 -2
- data/Gemfile +3 -2
- data/Gemfile.lock +4 -4
- data/Readme.md +3 -268
- data/lib/zendesk_api/actions.rb +51 -46
- data/lib/zendesk_api/association.rb +1 -1
- data/lib/zendesk_api/associations.rb +2 -6
- data/lib/zendesk_api/client.rb +8 -9
- data/lib/zendesk_api/collection.rb +84 -50
- data/lib/zendesk_api/configuration.rb +4 -0
- data/lib/zendesk_api/error.rb +22 -0
- data/lib/zendesk_api/middleware/request/etag_cache.rb +1 -7
- data/lib/zendesk_api/middleware/request/upload.rb +1 -2
- data/lib/zendesk_api/middleware/response/raise_error.rb +20 -0
- data/lib/zendesk_api/resource.rb +33 -5
- data/lib/zendesk_api/resources.rb +36 -11
- data/lib/zendesk_api/server/base.rb +1 -1
- data/lib/zendesk_api/server/helper.rb +3 -3
- data/lib/zendesk_api/server/models/zlib_json.rb +1 -1
- data/lib/zendesk_api/server/public/doc/ZendeskAPI.html +7 -7
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ability.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Activity.html +414 -51
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Attachment.html +321 -25
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Automation.html +413 -46
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Bookmark.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMData.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMDataStatus.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Category.html +410 -47
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Client.html +98 -362
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Collection.html +457 -676
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Configuration.html +110 -20
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create.html +264 -6
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create/ClassMethods.html +43 -82
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CreateResource.html +671 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CustomRole.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Data.html +207 -233
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/DataResource.html +499 -24
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/DeleteResource.html +614 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy.html +73 -23
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html +68 -18
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/{FormatError.html → Error.html} +19 -27
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/ClientError.html +127 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/{Server/UserRequest.html → Error/NetworkError.html} +18 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordInvalid.html +371 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordNotFound.html +127 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Forum.html +426 -63
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ForumSubscription.html +414 -51
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Group.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/GroupMembership.html +414 -51
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/JobStatus.html +405 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Locale.html +405 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Macro.html +413 -46
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/MobileDevice.html +404 -41
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthClient.html +606 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthToken.html +810 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Organization.html +422 -59
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/OrganizationField.html +606 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Read.html +75 -12
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ReadResource.html +593 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request.html +418 -55
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request/Comment.html +420 -31
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Resource.html +1025 -20
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Role.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Rule.html +610 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/RuleExecution.html +317 -21
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SatisfactionRating.html +428 -39
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Save.html +63 -79
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search.html +34 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search/Result.html +305 -9
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Setting.html +433 -41
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SharingAgreement.html +405 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SingularResource.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SuspendedTicket.html +600 -31
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket.html +464 -101
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Audit.html +427 -25
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Comment.html +435 -32
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Tag.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketField.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketMetric.html +592 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic.html +427 -64
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicComment.html +907 -17
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicVote.html +414 -55
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicComment.html +325 -29
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicSubscription.html +414 -51
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Trigger.html +413 -46
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update.html +258 -6
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update/ClassMethod.html +62 -12
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/UpdateResource.html +671 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Upload.html +800 -28
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User.html +505 -142
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/Identity.html +412 -49
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/TopicComment.html +475 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/UserField.html +606 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Verbs.html +9 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/View.html +433 -66
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewCount.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewRow.html +451 -49
- data/lib/zendesk_api/server/public/doc/_index.html +72 -72
- data/lib/zendesk_api/server/public/doc/class_list.html +1 -1
- data/lib/zendesk_api/server/public/doc/css/style.css +10 -0
- data/lib/zendesk_api/server/public/doc/file.Readme.html +20 -260
- data/lib/zendesk_api/server/public/doc/file_list.html +1 -1
- data/lib/zendesk_api/server/public/doc/frames.html +1 -1
- data/lib/zendesk_api/server/public/doc/index.html +20 -260
- data/lib/zendesk_api/server/public/doc/method_list.html +309 -517
- data/lib/zendesk_api/server/public/doc/top-level-namespace.html +3 -35
- data/lib/zendesk_api/verbs.rb +0 -4
- data/lib/zendesk_api/version.rb +1 -1
- data/spec/core/client_spec.rb +53 -13
- data/spec/core/collection_spec.rb +32 -4
- data/spec/core/create_resource_spec.rb +1 -1
- data/spec/core/data_resource_spec.rb +2 -2
- data/spec/core/middleware/request/etag_cache_spec.rb +6 -7
- data/spec/core/middleware/request/upload_spec.rb +2 -10
- data/spec/core/middleware/response/callback_spec.rb +1 -1
- data/spec/core/middleware/response/raise_error_spec.rb +40 -0
- data/spec/core/read_resource_spec.rb +0 -2
- data/spec/core/resource_spec.rb +13 -5
- data/spec/core/search_spec.rb +1 -1
- data/spec/core/spec_helper.rb +3 -3
- data/spec/live/automation_spec.rb +23 -0
- data/spec/live/organization_field_spec.rb +12 -0
- data/spec/live/ticket_spec.rb +8 -2
- data/spec/live/trigger_spec.rb +23 -0
- data/spec/live/user_field_spec.rb +12 -0
- data/spec/live/user_spec.rb +0 -2
- data/spec/live/view_spec.rb +17 -1
- data/spec/server/spec_helper.rb +2 -2
- data/zendesk_api.gemspec +1 -1
- metadata +88 -51
- checksums.yaml +0 -7
- data/lib/zendesk_api/rescue.rb +0 -63
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console.html +0 -860
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console/Eval.html +0 -190
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server.html +0 -131
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/App.html +0 -523
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/Helper.html +0 -684
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer.html +0 -303
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer/RedcarpetRenderer.html +0 -508
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/ZlibJSON.html +0 -244
- data/spec/core/rescue_spec.rb +0 -151
data/spec/core/spec_helper.rb
CHANGED
@@ -13,7 +13,7 @@ require 'zendesk_api'
|
|
13
13
|
require 'vcr'
|
14
14
|
require 'logger'
|
15
15
|
require 'stringio'
|
16
|
-
require '
|
16
|
+
require 'multi_json'
|
17
17
|
|
18
18
|
require File.join(File.dirname(__FILE__), '..', 'macros', 'resource_macros')
|
19
19
|
require File.join(File.dirname(__FILE__), '..', 'fixtures', 'zendesk')
|
@@ -68,12 +68,12 @@ module TestHelper
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def json(body = {})
|
71
|
-
|
71
|
+
MultiJson.dump(body)
|
72
72
|
end
|
73
73
|
|
74
74
|
def stub_json_request(verb, path_matcher, body = json, options = {})
|
75
75
|
stub_request(verb, path_matcher).to_return(Hashie::Mash.new(
|
76
|
-
:body => body, :headers => { :content_type => "application/json"
|
76
|
+
:body => body, :headers => { :content_type => "application/json" }
|
77
77
|
).deep_merge(options))
|
78
78
|
end
|
79
79
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'core/spec_helper'
|
2
|
+
|
3
|
+
describe ZendeskAPI::Automation, :delete_after do
|
4
|
+
def valid_attributes
|
5
|
+
{
|
6
|
+
:title => "my test automation",
|
7
|
+
:conditions => {
|
8
|
+
:all => [{ :field => "status", :operator => "is", :value => "open" }]
|
9
|
+
},
|
10
|
+
:actions => [{ :field => "status", :value => "solved" }]
|
11
|
+
}
|
12
|
+
end
|
13
|
+
|
14
|
+
it_should_be_readable :automations
|
15
|
+
it_should_be_readable :automations, :active
|
16
|
+
|
17
|
+
it_should_be_creatable
|
18
|
+
it_should_be_updatable :conditions, {
|
19
|
+
"any" => [],
|
20
|
+
"all" => [{ "field" => "status", "operator" => "is", "value" => "pending" }]
|
21
|
+
}
|
22
|
+
it_should_be_deletable
|
23
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'core/spec_helper'
|
2
|
+
|
3
|
+
describe ZendeskAPI::OrganizationField, :delete_after do
|
4
|
+
def valid_attributes
|
5
|
+
{ :type => "text", :title => "Age", :key => "age" }
|
6
|
+
end
|
7
|
+
|
8
|
+
it_should_be_creatable
|
9
|
+
it_should_be_updatable :title, "key"
|
10
|
+
it_should_be_deletable
|
11
|
+
it_should_be_readable :organization_fields, :create => true
|
12
|
+
end
|
data/spec/live/ticket_spec.rb
CHANGED
@@ -100,9 +100,9 @@ describe ZendeskAPI::Ticket do
|
|
100
100
|
end
|
101
101
|
|
102
102
|
describe "import race condition" do
|
103
|
-
|
104
|
-
email = "test+#{rand(100000)}@test.com"
|
103
|
+
let(:email) { "test+#{rand(100000)}@test.com" }
|
105
104
|
|
105
|
+
it "should handle it" do
|
106
106
|
VCR.use_cassette("ticket_import_race") do
|
107
107
|
threads = []
|
108
108
|
|
@@ -121,6 +121,12 @@ describe ZendeskAPI::Ticket do
|
|
121
121
|
thread[:response][:status]
|
122
122
|
end
|
123
123
|
|
124
|
+
user = client.users.detect {|user| user.email == email}
|
125
|
+
user.should_not be_nil
|
126
|
+
|
127
|
+
user.requested_tickets.each(&:destroy)
|
128
|
+
user.destroy
|
129
|
+
|
124
130
|
threads.all? {|st| [201, 422, 409].include?(st)}.should be_true
|
125
131
|
end
|
126
132
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'core/spec_helper'
|
2
|
+
|
3
|
+
describe ZendeskAPI::Trigger, :delete_after do
|
4
|
+
def valid_attributes
|
5
|
+
{
|
6
|
+
:title => "my test trigger",
|
7
|
+
:conditions => {
|
8
|
+
:all => [{ :field => "status", :operator => "is", :value => "open" }]
|
9
|
+
},
|
10
|
+
:actions => [{ :field => "status", :value => "solved" }]
|
11
|
+
}
|
12
|
+
end
|
13
|
+
|
14
|
+
it_should_be_readable :triggers
|
15
|
+
it_should_be_readable :triggers, :active
|
16
|
+
|
17
|
+
it_should_be_creatable
|
18
|
+
it_should_be_updatable :conditions, {
|
19
|
+
"any" => [],
|
20
|
+
"all" => [{ "field" => "priority", "operator" => "is", "value" => "low" }]
|
21
|
+
}
|
22
|
+
it_should_be_deletable
|
23
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'core/spec_helper'
|
2
|
+
|
3
|
+
describe ZendeskAPI::UserField, :delete_after do
|
4
|
+
def valid_attributes
|
5
|
+
{ :type => "text", :title => "Age", :key => "age" }
|
6
|
+
end
|
7
|
+
|
8
|
+
it_should_be_creatable
|
9
|
+
it_should_be_updatable :title, "key"
|
10
|
+
it_should_be_deletable
|
11
|
+
it_should_be_readable :user_fields, :create => true
|
12
|
+
end
|
data/spec/live/user_spec.rb
CHANGED
@@ -25,7 +25,6 @@ describe ZendeskAPI::User, :delete_after do
|
|
25
25
|
|
26
26
|
it "should include role" do
|
27
27
|
if subject
|
28
|
-
subject.changes.key?(:role_id).should be_false
|
29
28
|
subject.role.should_not be_nil
|
30
29
|
subject.role.id.should be_nil
|
31
30
|
subject.role.name.should == "admin"
|
@@ -43,7 +42,6 @@ describe ZendeskAPI::User, :delete_after do
|
|
43
42
|
|
44
43
|
it "should include role" do
|
45
44
|
if subject
|
46
|
-
subject.changes.key?(:role_id).should be_false
|
47
45
|
subject.role.should_not be_nil
|
48
46
|
subject.role.id.should be_nil
|
49
47
|
subject.role.name.should == "agent"
|
data/spec/live/view_spec.rb
CHANGED
@@ -1,6 +1,22 @@
|
|
1
1
|
require 'core/spec_helper'
|
2
2
|
|
3
|
-
describe ZendeskAPI::View do
|
3
|
+
describe ZendeskAPI::View, :delete_after do
|
4
|
+
def valid_attributes
|
5
|
+
{
|
6
|
+
:title => "my test view",
|
7
|
+
:conditions => {
|
8
|
+
:all => [{ :field => "status", :operator => "is", :value => "open" }]
|
9
|
+
}
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
4
13
|
it_should_be_readable :views
|
5
14
|
it_should_be_readable :views, :active
|
15
|
+
|
16
|
+
it_should_be_creatable
|
17
|
+
it_should_be_updatable :conditions, {
|
18
|
+
"any" => [],
|
19
|
+
"all" => [{ "field" => "status", "operator" => "is", "value" => "solved" }]
|
20
|
+
}
|
21
|
+
it_should_be_deletable
|
6
22
|
end
|
data/spec/server/spec_helper.rb
CHANGED
@@ -7,7 +7,7 @@ require 'zendesk_api/server/base'
|
|
7
7
|
require 'database_cleaner'
|
8
8
|
require 'rack/test'
|
9
9
|
require 'webmock'
|
10
|
-
require '
|
10
|
+
require 'multi_json'
|
11
11
|
|
12
12
|
module TestHelper
|
13
13
|
def app
|
@@ -15,7 +15,7 @@ module TestHelper
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def json(body = {})
|
18
|
-
|
18
|
+
MultiJson.dump(body)
|
19
19
|
end
|
20
20
|
|
21
21
|
def stub_json_request(verb, path_matcher, body = json, options = {})
|
data/zendesk_api.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.add_runtime_dependency "faraday_middleware", ">= 0.8.7"
|
33
33
|
s.add_runtime_dependency "hashie", ">= 1.2"
|
34
34
|
s.add_runtime_dependency "inflection"
|
35
|
-
s.add_runtime_dependency "
|
35
|
+
s.add_runtime_dependency "multi_json"
|
36
36
|
s.add_runtime_dependency "mime-types"
|
37
37
|
s.add_runtime_dependency "multipart-post"
|
38
38
|
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0.rc1
|
5
|
+
prerelease: 6
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Steven Davidovitz
|
@@ -9,188 +10,214 @@ authors:
|
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2013-05-29 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: bump
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
|
-
- -
|
20
|
+
- - ! '>='
|
19
21
|
- !ruby/object:Gem::Version
|
20
22
|
version: '0'
|
21
23
|
type: :development
|
22
24
|
prerelease: false
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
24
27
|
requirements:
|
25
|
-
- -
|
28
|
+
- - ! '>='
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '0'
|
28
31
|
- !ruby/object:Gem::Dependency
|
29
32
|
name: rake
|
30
33
|
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
31
35
|
requirements:
|
32
|
-
- -
|
36
|
+
- - ! '>='
|
33
37
|
- !ruby/object:Gem::Version
|
34
38
|
version: '0'
|
35
39
|
type: :development
|
36
40
|
prerelease: false
|
37
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
38
43
|
requirements:
|
39
|
-
- -
|
44
|
+
- - ! '>='
|
40
45
|
- !ruby/object:Gem::Version
|
41
46
|
version: '0'
|
42
47
|
- !ruby/object:Gem::Dependency
|
43
48
|
name: rspec
|
44
49
|
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
45
51
|
requirements:
|
46
|
-
- -
|
52
|
+
- - ! '>='
|
47
53
|
- !ruby/object:Gem::Version
|
48
54
|
version: '0'
|
49
55
|
type: :development
|
50
56
|
prerelease: false
|
51
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
52
59
|
requirements:
|
53
|
-
- -
|
60
|
+
- - ! '>='
|
54
61
|
- !ruby/object:Gem::Version
|
55
62
|
version: '0'
|
56
63
|
- !ruby/object:Gem::Dependency
|
57
64
|
name: vcr
|
58
65
|
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
59
67
|
requirements:
|
60
|
-
- -
|
68
|
+
- - ! '>='
|
61
69
|
- !ruby/object:Gem::Version
|
62
70
|
version: '0'
|
63
71
|
type: :development
|
64
72
|
prerelease: false
|
65
73
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
66
75
|
requirements:
|
67
|
-
- -
|
76
|
+
- - ! '>='
|
68
77
|
- !ruby/object:Gem::Version
|
69
78
|
version: '0'
|
70
79
|
- !ruby/object:Gem::Dependency
|
71
80
|
name: webmock
|
72
81
|
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
73
83
|
requirements:
|
74
|
-
- -
|
84
|
+
- - ~>
|
75
85
|
- !ruby/object:Gem::Version
|
76
86
|
version: 1.9.0
|
77
87
|
type: :development
|
78
88
|
prerelease: false
|
79
89
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
80
91
|
requirements:
|
81
|
-
- -
|
92
|
+
- - ~>
|
82
93
|
- !ruby/object:Gem::Version
|
83
94
|
version: 1.9.0
|
84
95
|
- !ruby/object:Gem::Dependency
|
85
96
|
name: yard
|
86
97
|
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
87
99
|
requirements:
|
88
|
-
- -
|
100
|
+
- - ! '>='
|
89
101
|
- !ruby/object:Gem::Version
|
90
102
|
version: '0'
|
91
103
|
type: :development
|
92
104
|
prerelease: false
|
93
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
94
107
|
requirements:
|
95
|
-
- -
|
108
|
+
- - ! '>='
|
96
109
|
- !ruby/object:Gem::Version
|
97
110
|
version: '0'
|
98
111
|
- !ruby/object:Gem::Dependency
|
99
112
|
name: faraday
|
100
113
|
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
101
115
|
requirements:
|
102
|
-
- -
|
116
|
+
- - ! '>='
|
103
117
|
- !ruby/object:Gem::Version
|
104
118
|
version: 0.8.0
|
105
119
|
type: :runtime
|
106
120
|
prerelease: false
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
108
123
|
requirements:
|
109
|
-
- -
|
124
|
+
- - ! '>='
|
110
125
|
- !ruby/object:Gem::Version
|
111
126
|
version: 0.8.0
|
112
127
|
- !ruby/object:Gem::Dependency
|
113
128
|
name: faraday_middleware
|
114
129
|
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
115
131
|
requirements:
|
116
|
-
- -
|
132
|
+
- - ! '>='
|
117
133
|
- !ruby/object:Gem::Version
|
118
134
|
version: 0.8.7
|
119
135
|
type: :runtime
|
120
136
|
prerelease: false
|
121
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
122
139
|
requirements:
|
123
|
-
- -
|
140
|
+
- - ! '>='
|
124
141
|
- !ruby/object:Gem::Version
|
125
142
|
version: 0.8.7
|
126
143
|
- !ruby/object:Gem::Dependency
|
127
144
|
name: hashie
|
128
145
|
requirement: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
129
147
|
requirements:
|
130
|
-
- -
|
148
|
+
- - ! '>='
|
131
149
|
- !ruby/object:Gem::Version
|
132
150
|
version: '1.2'
|
133
151
|
type: :runtime
|
134
152
|
prerelease: false
|
135
153
|
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
136
155
|
requirements:
|
137
|
-
- -
|
156
|
+
- - ! '>='
|
138
157
|
- !ruby/object:Gem::Version
|
139
158
|
version: '1.2'
|
140
159
|
- !ruby/object:Gem::Dependency
|
141
160
|
name: inflection
|
142
161
|
requirement: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
143
163
|
requirements:
|
144
|
-
- -
|
164
|
+
- - ! '>='
|
145
165
|
- !ruby/object:Gem::Version
|
146
166
|
version: '0'
|
147
167
|
type: :runtime
|
148
168
|
prerelease: false
|
149
169
|
version_requirements: !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
150
171
|
requirements:
|
151
|
-
- -
|
172
|
+
- - ! '>='
|
152
173
|
- !ruby/object:Gem::Version
|
153
174
|
version: '0'
|
154
175
|
- !ruby/object:Gem::Dependency
|
155
|
-
name:
|
176
|
+
name: multi_json
|
156
177
|
requirement: !ruby/object:Gem::Requirement
|
178
|
+
none: false
|
157
179
|
requirements:
|
158
|
-
- -
|
180
|
+
- - ! '>='
|
159
181
|
- !ruby/object:Gem::Version
|
160
182
|
version: '0'
|
161
183
|
type: :runtime
|
162
184
|
prerelease: false
|
163
185
|
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
164
187
|
requirements:
|
165
|
-
- -
|
188
|
+
- - ! '>='
|
166
189
|
- !ruby/object:Gem::Version
|
167
190
|
version: '0'
|
168
191
|
- !ruby/object:Gem::Dependency
|
169
192
|
name: mime-types
|
170
193
|
requirement: !ruby/object:Gem::Requirement
|
194
|
+
none: false
|
171
195
|
requirements:
|
172
|
-
- -
|
196
|
+
- - ! '>='
|
173
197
|
- !ruby/object:Gem::Version
|
174
198
|
version: '0'
|
175
199
|
type: :runtime
|
176
200
|
prerelease: false
|
177
201
|
version_requirements: !ruby/object:Gem::Requirement
|
202
|
+
none: false
|
178
203
|
requirements:
|
179
|
-
- -
|
204
|
+
- - ! '>='
|
180
205
|
- !ruby/object:Gem::Version
|
181
206
|
version: '0'
|
182
207
|
- !ruby/object:Gem::Dependency
|
183
208
|
name: multipart-post
|
184
209
|
requirement: !ruby/object:Gem::Requirement
|
210
|
+
none: false
|
185
211
|
requirements:
|
186
|
-
- -
|
212
|
+
- - ! '>='
|
187
213
|
- !ruby/object:Gem::Version
|
188
214
|
version: '0'
|
189
215
|
type: :runtime
|
190
216
|
prerelease: false
|
191
217
|
version_requirements: !ruby/object:Gem::Requirement
|
218
|
+
none: false
|
192
219
|
requirements:
|
193
|
-
- -
|
220
|
+
- - ! '>='
|
194
221
|
- !ruby/object:Gem::Version
|
195
222
|
version: '0'
|
196
223
|
description: Ruby wrapper for the REST API at http://www.zendesk.com. Documentation
|
@@ -201,10 +228,10 @@ executables: []
|
|
201
228
|
extensions: []
|
202
229
|
extra_rdoc_files: []
|
203
230
|
files:
|
204
|
-
-
|
205
|
-
-
|
206
|
-
-
|
207
|
-
-
|
231
|
+
- .gitignore
|
232
|
+
- .rspec
|
233
|
+
- .travis.yml
|
234
|
+
- .yardopts
|
208
235
|
- Gemfile
|
209
236
|
- Gemfile.lock
|
210
237
|
- LICENSE
|
@@ -227,6 +254,7 @@ files:
|
|
227
254
|
- lib/zendesk_api/console/extensions.rb
|
228
255
|
- lib/zendesk_api/console/options.rb
|
229
256
|
- lib/zendesk_api/core_ext/inflection.rb
|
257
|
+
- lib/zendesk_api/error.rb
|
230
258
|
- lib/zendesk_api/helpers.rb
|
231
259
|
- lib/zendesk_api/lru_cache.rb
|
232
260
|
- lib/zendesk_api/middleware/request/etag_cache.rb
|
@@ -237,7 +265,7 @@ files:
|
|
237
265
|
- lib/zendesk_api/middleware/response/gzip.rb
|
238
266
|
- lib/zendesk_api/middleware/response/logger.rb
|
239
267
|
- lib/zendesk_api/middleware/response/parse_iso_dates.rb
|
240
|
-
- lib/zendesk_api/
|
268
|
+
- lib/zendesk_api/middleware/response/raise_error.rb
|
241
269
|
- lib/zendesk_api/resource.rb
|
242
270
|
- lib/zendesk_api/resources.rb
|
243
271
|
- lib/zendesk_api/server/base.rb
|
@@ -297,8 +325,6 @@ files:
|
|
297
325
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Client.html
|
298
326
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Collection.html
|
299
327
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Configuration.html
|
300
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/Console.html
|
301
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/Console/Eval.html
|
302
328
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Create.html
|
303
329
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Create/ClassMethods.html
|
304
330
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/CreateResource.html
|
@@ -308,7 +334,11 @@ files:
|
|
308
334
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/DeleteResource.html
|
309
335
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy.html
|
310
336
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html
|
311
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/
|
337
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/Error.html
|
338
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/Error/ClientError.html
|
339
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/Error/NetworkError.html
|
340
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordInvalid.html
|
341
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordNotFound.html
|
312
342
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Forum.html
|
313
343
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/ForumSubscription.html
|
314
344
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Group.html
|
@@ -317,25 +347,22 @@ files:
|
|
317
347
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Locale.html
|
318
348
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Macro.html
|
319
349
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/MobileDevice.html
|
350
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthClient.html
|
351
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthToken.html
|
320
352
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Organization.html
|
353
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/OrganizationField.html
|
321
354
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Read.html
|
322
355
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/ReadResource.html
|
323
356
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Request.html
|
324
357
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Request/Comment.html
|
325
358
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Resource.html
|
326
359
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Role.html
|
360
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/Rule.html
|
327
361
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/RuleExecution.html
|
328
362
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/SatisfactionRating.html
|
329
363
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Save.html
|
330
364
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Search.html
|
331
365
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Search/Result.html
|
332
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/Server.html
|
333
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/Server/App.html
|
334
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/Server/Helper.html
|
335
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer.html
|
336
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer/RedcarpetRenderer.html
|
337
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/Server/UserRequest.html
|
338
|
-
- lib/zendesk_api/server/public/doc/ZendeskAPI/Server/ZlibJSON.html
|
339
366
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Setting.html
|
340
367
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/SharingAgreement.html
|
341
368
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/SingularResource.html
|
@@ -359,6 +386,7 @@ files:
|
|
359
386
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/User.html
|
360
387
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/User/Identity.html
|
361
388
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/User/TopicComment.html
|
389
|
+
- lib/zendesk_api/server/public/doc/ZendeskAPI/UserField.html
|
362
390
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/Verbs.html
|
363
391
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/View.html
|
364
392
|
- lib/zendesk_api/server/public/doc/ZendeskAPI/ViewCount.html
|
@@ -429,8 +457,8 @@ files:
|
|
429
457
|
- spec/core/middleware/response/deflate_spec.rb
|
430
458
|
- spec/core/middleware/response/gzip_spec.rb
|
431
459
|
- spec/core/middleware/response/parse_iso_dates_spec.rb
|
460
|
+
- spec/core/middleware/response/raise_error_spec.rb
|
432
461
|
- spec/core/read_resource_spec.rb
|
433
|
-
- spec/core/rescue_spec.rb
|
434
462
|
- spec/core/resource_spec.rb
|
435
463
|
- spec/core/search_spec.rb
|
436
464
|
- spec/core/spec_helper.rb
|
@@ -443,6 +471,7 @@ files:
|
|
443
471
|
- spec/live/Readme.md
|
444
472
|
- spec/live/activity_spec.rb
|
445
473
|
- spec/live/audit_spec.rb
|
474
|
+
- spec/live/automation_spec.rb
|
446
475
|
- spec/live/bookmark_spec.rb
|
447
476
|
- spec/live/category_spec.rb
|
448
477
|
- spec/live/collection_spec.rb
|
@@ -456,6 +485,7 @@ files:
|
|
456
485
|
- spec/live/locale_spec.rb
|
457
486
|
- spec/live/macro_spec.rb
|
458
487
|
- spec/live/mobile_device_spec.rb
|
488
|
+
- spec/live/organization_field_spec.rb
|
459
489
|
- spec/live/organization_spec.rb
|
460
490
|
- spec/live/request_spec.rb
|
461
491
|
- spec/live/satisfaction_rating_spec.rb
|
@@ -468,7 +498,9 @@ files:
|
|
468
498
|
- spec/live/topic_spec.rb
|
469
499
|
- spec/live/topic_subscription_spec.rb
|
470
500
|
- spec/live/topic_vote_spec.rb
|
501
|
+
- spec/live/trigger_spec.rb
|
471
502
|
- spec/live/upload_spec.rb
|
503
|
+
- spec/live/user_field_spec.rb
|
472
504
|
- spec/live/user_spec.rb
|
473
505
|
- spec/live/view_spec.rb
|
474
506
|
- spec/macros/resource_macros.rb
|
@@ -482,26 +514,27 @@ files:
|
|
482
514
|
homepage: http://developer.zendesk.com
|
483
515
|
licenses:
|
484
516
|
- Apache License Version 2.0
|
485
|
-
metadata: {}
|
486
517
|
post_install_message:
|
487
518
|
rdoc_options: []
|
488
519
|
require_paths:
|
489
520
|
- lib
|
490
521
|
required_ruby_version: !ruby/object:Gem::Requirement
|
522
|
+
none: false
|
491
523
|
requirements:
|
492
|
-
- -
|
524
|
+
- - ! '>='
|
493
525
|
- !ruby/object:Gem::Version
|
494
526
|
version: 1.8.7
|
495
527
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
528
|
+
none: false
|
496
529
|
requirements:
|
497
|
-
- -
|
530
|
+
- - ! '>='
|
498
531
|
- !ruby/object:Gem::Version
|
499
532
|
version: 1.3.6
|
500
533
|
requirements: []
|
501
534
|
rubyforge_project:
|
502
|
-
rubygems_version:
|
535
|
+
rubygems_version: 1.8.25
|
503
536
|
signing_key:
|
504
|
-
specification_version:
|
537
|
+
specification_version: 3
|
505
538
|
summary: Zendesk REST API Client
|
506
539
|
test_files:
|
507
540
|
- spec/core/association_spec.rb
|
@@ -520,8 +553,8 @@ test_files:
|
|
520
553
|
- spec/core/middleware/response/deflate_spec.rb
|
521
554
|
- spec/core/middleware/response/gzip_spec.rb
|
522
555
|
- spec/core/middleware/response/parse_iso_dates_spec.rb
|
556
|
+
- spec/core/middleware/response/raise_error_spec.rb
|
523
557
|
- spec/core/read_resource_spec.rb
|
524
|
-
- spec/core/rescue_spec.rb
|
525
558
|
- spec/core/resource_spec.rb
|
526
559
|
- spec/core/search_spec.rb
|
527
560
|
- spec/core/spec_helper.rb
|
@@ -534,6 +567,7 @@ test_files:
|
|
534
567
|
- spec/live/Readme.md
|
535
568
|
- spec/live/activity_spec.rb
|
536
569
|
- spec/live/audit_spec.rb
|
570
|
+
- spec/live/automation_spec.rb
|
537
571
|
- spec/live/bookmark_spec.rb
|
538
572
|
- spec/live/category_spec.rb
|
539
573
|
- spec/live/collection_spec.rb
|
@@ -547,6 +581,7 @@ test_files:
|
|
547
581
|
- spec/live/locale_spec.rb
|
548
582
|
- spec/live/macro_spec.rb
|
549
583
|
- spec/live/mobile_device_spec.rb
|
584
|
+
- spec/live/organization_field_spec.rb
|
550
585
|
- spec/live/organization_spec.rb
|
551
586
|
- spec/live/request_spec.rb
|
552
587
|
- spec/live/satisfaction_rating_spec.rb
|
@@ -559,7 +594,9 @@ test_files:
|
|
559
594
|
- spec/live/topic_spec.rb
|
560
595
|
- spec/live/topic_subscription_spec.rb
|
561
596
|
- spec/live/topic_vote_spec.rb
|
597
|
+
- spec/live/trigger_spec.rb
|
562
598
|
- spec/live/upload_spec.rb
|
599
|
+
- spec/live/user_field_spec.rb
|
563
600
|
- spec/live/user_spec.rb
|
564
601
|
- spec/live/view_spec.rb
|
565
602
|
- spec/macros/resource_macros.rb
|