zendesk_api 0.2.6 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/Gemfile +7 -0
- data/Gemfile.lock +10 -2
- data/LICENSE +176 -19
- data/Readme.md +13 -5
- data/config/newrelic.yml +255 -0
- data/lib/zendesk_api/association.rb +1 -1
- data/lib/zendesk_api/associations.rb +129 -100
- data/lib/zendesk_api/client.rb +44 -25
- data/lib/zendesk_api/collection.rb +83 -58
- data/lib/zendesk_api/console/extensions.rb +47 -28
- data/lib/zendesk_api/server/base.rb +4 -0
- data/lib/zendesk_api/server/docs/account_settings.md +8 -0
- data/lib/zendesk_api/server/docs/automations.md +6 -0
- data/lib/zendesk_api/server/docs/changes_roadmap.md +76 -1
- data/lib/zendesk_api/server/docs/forum_subscriptions.md +2 -2
- data/lib/zendesk_api/server/docs/introduction.md +4 -2
- data/lib/zendesk_api/server/docs/macros.md +2 -0
- data/lib/zendesk_api/server/docs/organizations.md +3 -4
- data/lib/zendesk_api/server/docs/requests.md +21 -7
- data/lib/zendesk_api/server/docs/tickets.md +64 -8
- data/lib/zendesk_api/server/docs/topic_subscriptions.md +3 -3
- data/lib/zendesk_api/server/docs/topic_votes.md +0 -1
- data/lib/zendesk_api/server/docs/triggers.md +7 -0
- data/lib/zendesk_api/server/docs/users.md +4 -4
- data/lib/zendesk_api/server/docs/views.md +57 -8
- data/lib/zendesk_api/server/public/doc/ZendeskAPI.html +131 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ability.html +190 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Activity.html +616 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Attachment.html +362 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Automation.html +438 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Bookmark.html +243 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMData.html +190 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMDataStatus.html +190 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Category.html +462 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Client.html +1490 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Collection.html +2825 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Configuration.html +1212 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console.html +860 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console/Eval.html +190 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create.html +134 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create/ClassMethods.html +322 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CreateResource.html +222 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CustomRole.html +190 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Data.html +1432 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/DataResource.html +348 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/DeleteResource.html +216 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy.html +307 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html +245 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/FormatError.html +123 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Forum.html +1196 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ForumSubscription.html +616 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Group.html +243 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/GroupMembership.html +616 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/JobStatus.html +209 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Locale.html +209 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Macro.html +438 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/MobileDevice.html +361 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Organization.html +1016 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Read.html +278 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ReadResource.html +220 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request.html +826 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request/Comment.html +604 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Resource.html +258 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Role.html +190 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/RuleExecution.html +383 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SatisfactionRating.html +938 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Save.html +510 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search.html +403 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search/Result.html +166 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server.html +131 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/App.html +523 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/Helper.html +684 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer.html +303 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer/RedcarpetRenderer.html +508 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/UserRequest.html +125 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/ZlibJSON.html +244 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Setting.html +350 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SharingAgreement.html +209 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SingularResource.html +247 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SuspendedTicket.html +342 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket.html +2731 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Audit.html +385 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Comment.html +636 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Tag.html +243 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketField.html +243 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketMetric.html +205 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic.html +1086 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicComment.html +232 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicVote.html +624 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicComment.html +743 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicSubscription.html +616 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Trigger.html +438 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update.html +140 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update/ClassMethod.html +237 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/UpdateResource.html +222 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Upload.html +404 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User.html +3611 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/Identity.html +563 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/TopicComment.html +194 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Verbs.html +338 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/View.html +1283 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewCount.html +190 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewRow.html +1342 -0
- data/lib/zendesk_api/server/public/doc/_index.html +799 -0
- data/lib/zendesk_api/server/public/doc/class_list.html +53 -0
- data/lib/zendesk_api/server/public/doc/css/common.css +1 -0
- data/lib/zendesk_api/server/public/doc/css/full_list.css +57 -0
- data/lib/zendesk_api/server/public/doc/css/style.css +328 -0
- data/lib/zendesk_api/server/public/doc/file.Readme.html +377 -0
- data/lib/zendesk_api/server/public/doc/file_list.html +55 -0
- data/lib/zendesk_api/server/public/doc/frames.html +28 -0
- data/lib/zendesk_api/server/public/doc/index.html +377 -0
- data/lib/zendesk_api/server/public/doc/js/app.js +214 -0
- data/lib/zendesk_api/server/public/doc/js/full_list.js +173 -0
- data/lib/zendesk_api/server/public/doc/js/jquery.js +4 -0
- data/lib/zendesk_api/server/public/doc/method_list.html +2540 -0
- data/lib/zendesk_api/server/public/doc/top-level-namespace.html +144 -0
- data/lib/zendesk_api/version.rb +1 -1
- data/zendesk_api.gemspec +1 -1
- metadata +96 -3
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
+
# gem "bundler", "~> 1.2.0"
|
4
|
+
# ruby "1.9.3"
|
5
|
+
|
3
6
|
gem "simplecov", :platforms => :ruby_19, :group => :development
|
4
7
|
gem "jruby-openssl", :platforms => :jruby
|
5
8
|
gem "hashie", :git => "git://github.com/intridea/hashie.git"
|
@@ -7,6 +10,8 @@ gem "multipart-post", :git => "git://github.com/steved555/multipart-post.git"
|
|
7
10
|
gem "multi_json", :group => :test
|
8
11
|
|
9
12
|
group :server do
|
13
|
+
gem "thin"
|
14
|
+
|
10
15
|
gem "rack-ssl-enforcer"
|
11
16
|
|
12
17
|
gem "sinatra"
|
@@ -24,6 +29,8 @@ group :server do
|
|
24
29
|
|
25
30
|
gem "mongoid"
|
26
31
|
gem "database_cleaner"
|
32
|
+
|
33
|
+
gem "newrelic_rpm"
|
27
34
|
end
|
28
35
|
|
29
36
|
group :console do
|
data/Gemfile.lock
CHANGED
@@ -13,7 +13,7 @@ GIT
|
|
13
13
|
PATH
|
14
14
|
remote: .
|
15
15
|
specs:
|
16
|
-
zendesk_api (0.
|
16
|
+
zendesk_api (0.3.0)
|
17
17
|
faraday (>= 0.8.0)
|
18
18
|
faraday_middleware (>= 0.8.7)
|
19
19
|
hashie
|
@@ -49,6 +49,7 @@ GEM
|
|
49
49
|
fssm (>= 0.2.7)
|
50
50
|
sass (~> 3.1)
|
51
51
|
crack (0.3.2)
|
52
|
+
daemons (1.1.9)
|
52
53
|
database_cleaner (0.9.1)
|
53
54
|
diff-lcs (1.1.3)
|
54
55
|
eventmachine (1.0.0)
|
@@ -64,7 +65,7 @@ GEM
|
|
64
65
|
jruby-openssl (0.8.2)
|
65
66
|
bouncy-castle-java (>= 1.5.0146.1)
|
66
67
|
json (1.7.7)
|
67
|
-
mime-types (1.
|
68
|
+
mime-types (1.21)
|
68
69
|
mongoid (3.0.21)
|
69
70
|
activemodel (~> 3.1)
|
70
71
|
moped (~> 1.2)
|
@@ -72,6 +73,7 @@ GEM
|
|
72
73
|
tzinfo (~> 0.3.22)
|
73
74
|
moped (1.3.2)
|
74
75
|
multi_json (1.5.0)
|
76
|
+
newrelic_rpm (3.5.3.25)
|
75
77
|
origin (1.0.11)
|
76
78
|
rack (1.5.1)
|
77
79
|
rack-protection (1.3.2)
|
@@ -107,6 +109,10 @@ GEM
|
|
107
109
|
rack-test
|
108
110
|
sinatra (~> 1.3.0)
|
109
111
|
tilt (~> 1.3)
|
112
|
+
thin (1.5.0)
|
113
|
+
daemons (>= 1.0.9)
|
114
|
+
eventmachine (>= 0.12.6)
|
115
|
+
rack (>= 1.0.0)
|
110
116
|
tilt (1.3.3)
|
111
117
|
tzinfo (0.3.35)
|
112
118
|
vcr (2.4.0)
|
@@ -132,6 +138,7 @@ DEPENDENCIES
|
|
132
138
|
mongoid
|
133
139
|
multi_json
|
134
140
|
multipart-post!
|
141
|
+
newrelic_rpm
|
135
142
|
rack-ssl-enforcer
|
136
143
|
rake
|
137
144
|
redcarpet
|
@@ -140,6 +147,7 @@ DEPENDENCIES
|
|
140
147
|
simplecov
|
141
148
|
sinatra
|
142
149
|
sinatra-contrib
|
150
|
+
thin
|
143
151
|
vcr
|
144
152
|
webmock
|
145
153
|
yard
|
data/LICENSE
CHANGED
@@ -1,19 +1,176 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
data/Readme.md
CHANGED
@@ -6,11 +6,12 @@ This client **only** supports Zendesk's v2 API. Please see our [API documentati
|
|
6
6
|
|
7
7
|
## Additional Documentation
|
8
8
|
|
9
|
-
Additional documentation can be found on [
|
9
|
+
Additional documentation can be found on our [documentation site](https://zendesk-api.herokuapp.com/doc/index.html) and [wiki](https://github.com/zendesk/zendesk_api_client_rb/wiki).
|
10
10
|
|
11
11
|
## Important Notice
|
12
12
|
|
13
|
-
Version 0.0.5 brings with it a change to the top-level namespace. All references to Zendesk should now use ZendeskAPI.
|
13
|
+
* Version 0.0.5 brings with it a change to the top-level namespace. All references to Zendesk should now use ZendeskAPI.
|
14
|
+
* Version 0.3.0 changed the license from MIT to Apache Version 2.
|
14
15
|
|
15
16
|
## Installation
|
16
17
|
|
@@ -129,7 +130,7 @@ next_page = tickets.next
|
|
129
130
|
previous_page = tickets.prev
|
130
131
|
```
|
131
132
|
|
132
|
-
Iteration over all resources and pages is handled by Collection#
|
133
|
+
Iteration over all resources and pages is handled by Collection#each_page
|
133
134
|
|
134
135
|
```ruby
|
135
136
|
client.tickets.each_page do |resource|
|
@@ -310,6 +311,13 @@ Additional Dependencies:
|
|
310
311
|
Tested with Ruby 1.8.7 and 1.9.3
|
311
312
|
[![Build Status](https://secure.travis-ci.org/zendesk/zendesk_api_client_rb.png?branch=master)](http://travis-ci.org/zendesk/zendesk_api_client_rb)
|
312
313
|
|
313
|
-
## Copyright
|
314
|
+
## Copyright and license
|
314
315
|
|
315
|
-
|
316
|
+
Copyright 2013 Zendesk
|
317
|
+
|
318
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
|
319
|
+
You may obtain a copy of the License at
|
320
|
+
|
321
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
322
|
+
|
323
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
data/config/newrelic.yml
ADDED
@@ -0,0 +1,255 @@
|
|
1
|
+
# Here are the settings that are common to all environments
|
2
|
+
common: &default_settings
|
3
|
+
# ============================== LICENSE KEY ===============================
|
4
|
+
|
5
|
+
# You must specify the license key associated with your New Relic
|
6
|
+
# account. This key binds your Agent's data to your account in the
|
7
|
+
# New Relic service.
|
8
|
+
license_key: '<%= ENV["NEW_RELIC_LICENSE_KEY"] %>'
|
9
|
+
|
10
|
+
# Agent Enabled (Rails Only)
|
11
|
+
# Use this setting to force the agent to run or not run.
|
12
|
+
# Default is 'auto' which means the agent will install and run only
|
13
|
+
# if a valid dispatcher such as Mongrel is running. This prevents
|
14
|
+
# it from running with Rake or the console. Set to false to
|
15
|
+
# completely turn the agent off regardless of the other settings.
|
16
|
+
# Valid values are true, false and auto.
|
17
|
+
#
|
18
|
+
# agent_enabled: auto
|
19
|
+
|
20
|
+
# Application Name Set this to be the name of your application as
|
21
|
+
# you'd like it show up in New Relic. The service will then auto-map
|
22
|
+
# instances of your application into an "application" on your
|
23
|
+
# dashboard page. If you want to map this instance into multiple
|
24
|
+
# apps, like "AJAX Requests" and "All UI" then specify a semicolon
|
25
|
+
# separated list of up to three distinct names, or a yaml list.
|
26
|
+
# Defaults to the capitalized RAILS_ENV or RACK_ENV (i.e.,
|
27
|
+
# Production, Staging, etc)
|
28
|
+
#
|
29
|
+
# Example:
|
30
|
+
#
|
31
|
+
# app_name:
|
32
|
+
# - Ajax Service
|
33
|
+
# - All Services
|
34
|
+
#
|
35
|
+
app_name: <%= ENV["NEW_RELIC_APP_NAME"] %>
|
36
|
+
|
37
|
+
# When "true", the agent collects performance data about your
|
38
|
+
# application and reports this data to the New Relic service at
|
39
|
+
# newrelic.com. This global switch is normally overridden for each
|
40
|
+
# environment below. (formerly called 'enabled')
|
41
|
+
monitor_mode: true
|
42
|
+
|
43
|
+
# Developer mode should be off in every environment but
|
44
|
+
# development as it has very high overhead in memory.
|
45
|
+
developer_mode: false
|
46
|
+
|
47
|
+
# The newrelic agent generates its own log file to keep its logging
|
48
|
+
# information separate from that of your application. Specify its
|
49
|
+
# log level here.
|
50
|
+
log_level: info
|
51
|
+
|
52
|
+
# Optionally set the path to the log file This is expanded from the
|
53
|
+
# root directory (may be relative or absolute, e.g. 'log/' or
|
54
|
+
# '/var/log/') The agent will attempt to create this directory if it
|
55
|
+
# does not exist.
|
56
|
+
# log_file_path: 'log'
|
57
|
+
|
58
|
+
# Optionally set the name of the log file, defaults to 'newrelic_agent.log'
|
59
|
+
# log_file_name: 'newrelic_agent.log'
|
60
|
+
|
61
|
+
# The newrelic agent communicates with the service via http by
|
62
|
+
# default. If you want to communicate via https to increase
|
63
|
+
# security, then turn on SSL by setting this value to true. Note,
|
64
|
+
# this will result in increased CPU overhead to perform the
|
65
|
+
# encryption involved in SSL communication, but this work is done
|
66
|
+
# asynchronously to the threads that process your application code,
|
67
|
+
# so it should not impact response times.
|
68
|
+
ssl: false
|
69
|
+
|
70
|
+
# EXPERIMENTAL: enable verification of the SSL certificate sent by
|
71
|
+
# the server. This setting has no effect unless SSL is enabled
|
72
|
+
# above. This may block your application. Only enable it if the data
|
73
|
+
# you send us needs end-to-end verified certificates.
|
74
|
+
#
|
75
|
+
# This means we cannot cache the DNS lookup, so each request to the
|
76
|
+
# service will perform a lookup. It also means that we cannot
|
77
|
+
# use a non-blocking lookup, so in a worst case, if you have DNS
|
78
|
+
# problems, your app may block indefinitely.
|
79
|
+
# verify_certificate: true
|
80
|
+
|
81
|
+
# Set your application's Apdex threshold value with the 'apdex_t'
|
82
|
+
# setting, in seconds. The apdex_t value determines the buckets used
|
83
|
+
# to compute your overall Apdex score.
|
84
|
+
# Requests that take less than apdex_t seconds to process will be
|
85
|
+
# classified as Satisfying transactions; more than apdex_t seconds
|
86
|
+
# as Tolerating transactions; and more than four times the apdex_t
|
87
|
+
# value as Frustrating transactions.
|
88
|
+
# For more about the Apdex standard, see
|
89
|
+
# http://newrelic.com/docs/general/apdex
|
90
|
+
|
91
|
+
apdex_t: 0.5
|
92
|
+
|
93
|
+
#============================== Browser Monitoring ===============================
|
94
|
+
# New Relic Real User Monitoring gives you insight into the performance real users are
|
95
|
+
# experiencing with your website. This is accomplished by measuring the time it takes for
|
96
|
+
# your users' browsers to download and render your web pages by injecting a small amount
|
97
|
+
# of JavaScript code into the header and footer of each page.
|
98
|
+
browser_monitoring:
|
99
|
+
# By default the agent automatically injects the monitoring JavaScript
|
100
|
+
# into web pages. Set this attribute to false to turn off this behavior.
|
101
|
+
auto_instrument: true
|
102
|
+
|
103
|
+
# Proxy settings for connecting to the service.
|
104
|
+
#
|
105
|
+
# If a proxy is used, the host setting is required. Other settings
|
106
|
+
# are optional. Default port is 8080.
|
107
|
+
#
|
108
|
+
# proxy_host: hostname
|
109
|
+
# proxy_port: 8080
|
110
|
+
# proxy_user:
|
111
|
+
# proxy_pass:
|
112
|
+
|
113
|
+
|
114
|
+
# Tells transaction tracer and error collector (when enabled)
|
115
|
+
# whether or not to capture HTTP params. When true, frameworks can
|
116
|
+
# exclude HTTP parameters from being captured.
|
117
|
+
# Rails: the RoR filter_parameter_logging excludes parameters
|
118
|
+
# Java: create a config setting called "ignored_params" and set it to
|
119
|
+
# a comma separated list of HTTP parameter names.
|
120
|
+
# ex: ignored_params: credit_card, ssn, password
|
121
|
+
capture_params: false
|
122
|
+
|
123
|
+
|
124
|
+
# Transaction tracer captures deep information about slow
|
125
|
+
# transactions and sends this to the service once a
|
126
|
+
# minute. Included in the transaction is the exact call sequence of
|
127
|
+
# the transactions including any SQL statements issued.
|
128
|
+
transaction_tracer:
|
129
|
+
|
130
|
+
# Transaction tracer is enabled by default. Set this to false to
|
131
|
+
# turn it off. This feature is only available at the Professional
|
132
|
+
# and above product levels.
|
133
|
+
enabled: true
|
134
|
+
|
135
|
+
# Threshold in seconds for when to collect a transaction
|
136
|
+
# trace. When the response time of a controller action exceeds
|
137
|
+
# this threshold, a transaction trace will be recorded and sent to
|
138
|
+
# the service. Valid values are any float value, or (default)
|
139
|
+
# "apdex_f", which will use the threshold for an dissatisfying
|
140
|
+
# Apdex controller action - four times the Apdex T value.
|
141
|
+
transaction_threshold: apdex_f
|
142
|
+
|
143
|
+
# When transaction tracer is on, SQL statements can optionally be
|
144
|
+
# recorded. The recorder has three modes, "off" which sends no
|
145
|
+
# SQL, "raw" which sends the SQL statement in its original form,
|
146
|
+
# and "obfuscated", which strips out numeric and string literals
|
147
|
+
record_sql: obfuscated
|
148
|
+
|
149
|
+
# Threshold in seconds for when to collect stack trace for a SQL
|
150
|
+
# call. In other words, when SQL statements exceed this threshold,
|
151
|
+
# then capture and send the current stack trace. This is
|
152
|
+
# helpful for pinpointing where long SQL calls originate from
|
153
|
+
stack_trace_threshold: 0.500
|
154
|
+
|
155
|
+
# Determines whether the agent will capture query plans for slow
|
156
|
+
# SQL queries. Only supported in mysql and postgres. Should be
|
157
|
+
# set to false when using other adapters.
|
158
|
+
# explain_enabled: true
|
159
|
+
|
160
|
+
# Threshold for query execution time below which query plans will not
|
161
|
+
# not be captured. Relevant only when `explain_enabled` is true.
|
162
|
+
# explain_threshold: 0.5
|
163
|
+
|
164
|
+
# Error collector captures information about uncaught exceptions and
|
165
|
+
# sends them to the service for viewing
|
166
|
+
error_collector:
|
167
|
+
|
168
|
+
# Error collector is enabled by default. Set this to false to turn
|
169
|
+
# it off. This feature is only available at the Professional and above
|
170
|
+
# product levels
|
171
|
+
enabled: true
|
172
|
+
|
173
|
+
# Rails Only - tells error collector whether or not to capture a
|
174
|
+
# source snippet around the place of the error when errors are View
|
175
|
+
# related.
|
176
|
+
capture_source: true
|
177
|
+
|
178
|
+
# To stop specific errors from reporting to New Relic, set this property
|
179
|
+
# to comma separated values. Default is to ignore routing errors
|
180
|
+
# which are how 404's get triggered.
|
181
|
+
#
|
182
|
+
ignore_errors: ActionController::RoutingError
|
183
|
+
|
184
|
+
# (Advanced) Uncomment this to ensure the cpu and memory samplers
|
185
|
+
# won't run. Useful when you are using the agent to monitor an
|
186
|
+
# external resource
|
187
|
+
# disable_samplers: true
|
188
|
+
|
189
|
+
# If you aren't interested in visibility in these areas, you can
|
190
|
+
# disable the instrumentation to reduce overhead.
|
191
|
+
#
|
192
|
+
# disable_view_instrumentation: true
|
193
|
+
# disable_activerecord_instrumentation: true
|
194
|
+
# disable_memcache_instrumentation: true
|
195
|
+
# disable_dj: true
|
196
|
+
|
197
|
+
# If you're interested in capturing memcache keys as though they
|
198
|
+
# were SQL uncomment this flag. Note that this does increase
|
199
|
+
# overhead slightly on every memcached call, and can have security
|
200
|
+
# implications if your memcached keys are sensitive
|
201
|
+
# capture_memcache_keys: true
|
202
|
+
|
203
|
+
# Certain types of instrumentation such as GC stats will not work if
|
204
|
+
# you are running multi-threaded. Please let us know.
|
205
|
+
# multi_threaded = false
|
206
|
+
|
207
|
+
# Application Environments
|
208
|
+
# ------------------------------------------
|
209
|
+
# Environment specific settings are in this section.
|
210
|
+
# For Rails applications, RAILS_ENV is used to determine the environment
|
211
|
+
# For Java applications, pass -Dnewrelic.environment <environment> to set
|
212
|
+
# the environment
|
213
|
+
|
214
|
+
# NOTE if your application has other named environments, you should
|
215
|
+
# provide newrelic configuration settings for these environments here.
|
216
|
+
|
217
|
+
development:
|
218
|
+
<<: *default_settings
|
219
|
+
# Turn off communication to New Relic service in development mode (also
|
220
|
+
# 'enabled').
|
221
|
+
# NOTE: for initial evaluation purposes, you may want to temporarily
|
222
|
+
# turn the agent on in development mode.
|
223
|
+
monitor_mode: false
|
224
|
+
|
225
|
+
# Rails Only - when running in Developer Mode, the New Relic Agent will
|
226
|
+
# present performance information on the last 100 transactions you have
|
227
|
+
# executed since starting the mongrel.
|
228
|
+
# NOTE: There is substantial overhead when running in developer mode.
|
229
|
+
# Do not use for production or load testing.
|
230
|
+
developer_mode: true
|
231
|
+
|
232
|
+
# Enable textmate links
|
233
|
+
# textmate: true
|
234
|
+
|
235
|
+
test:
|
236
|
+
<<: *default_settings
|
237
|
+
# It almost never makes sense to turn on the agent when running
|
238
|
+
# unit, functional or integration tests or the like.
|
239
|
+
monitor_mode: false
|
240
|
+
|
241
|
+
# Turn on the agent in production for 24x7 monitoring. NewRelic
|
242
|
+
# testing shows an average performance impact of < 5 ms per
|
243
|
+
# transaction, you you can leave this on all the time without
|
244
|
+
# incurring any user-visible performance degradation.
|
245
|
+
production:
|
246
|
+
<<: *default_settings
|
247
|
+
monitor_mode: true
|
248
|
+
|
249
|
+
# Many applications have a staging environment which behaves
|
250
|
+
# identically to production. Support for that environment is provided
|
251
|
+
# here. By default, the staging environment has the agent turned on.
|
252
|
+
staging:
|
253
|
+
<<: *default_settings
|
254
|
+
monitor_mode: true
|
255
|
+
app_name: <%= ENV["NEW_RELIC_APP_NAME"] %> (Staging)
|