sclemmer-jira-ruby 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +46 -0
- data/README.rdoc +309 -0
- data/Rakefile +28 -0
- data/example.rb +119 -0
- data/http-basic-example.rb +112 -0
- data/lib/jira.rb +33 -0
- data/lib/jira/base.rb +497 -0
- data/lib/jira/base_factory.rb +49 -0
- data/lib/jira/client.rb +165 -0
- data/lib/jira/has_many_proxy.rb +43 -0
- data/lib/jira/http_client.rb +69 -0
- data/lib/jira/http_error.rb +16 -0
- data/lib/jira/oauth_client.rb +84 -0
- data/lib/jira/railtie.rb +10 -0
- data/lib/jira/request_client.rb +18 -0
- data/lib/jira/resource/attachment.rb +12 -0
- data/lib/jira/resource/comment.rb +14 -0
- data/lib/jira/resource/component.rb +10 -0
- data/lib/jira/resource/field.rb +10 -0
- data/lib/jira/resource/filter.rb +15 -0
- data/lib/jira/resource/issue.rb +80 -0
- data/lib/jira/resource/issuetype.rb +10 -0
- data/lib/jira/resource/priority.rb +10 -0
- data/lib/jira/resource/project.rb +31 -0
- data/lib/jira/resource/status.rb +10 -0
- data/lib/jira/resource/transition.rb +33 -0
- data/lib/jira/resource/user.rb +14 -0
- data/lib/jira/resource/version.rb +10 -0
- data/lib/jira/resource/worklog.rb +16 -0
- data/lib/jira/tasks.rb +0 -0
- data/lib/jira/version.rb +3 -0
- data/lib/tasks/generate.rake +18 -0
- data/sclemmer-jira-ruby.gemspec +28 -0
- data/spec/integration/attachment_spec.rb +23 -0
- data/spec/integration/comment_spec.rb +55 -0
- data/spec/integration/component_spec.rb +42 -0
- data/spec/integration/field_spec.rb +35 -0
- data/spec/integration/issue_spec.rb +94 -0
- data/spec/integration/issuetype_spec.rb +26 -0
- data/spec/integration/priority_spec.rb +27 -0
- data/spec/integration/project_spec.rb +56 -0
- data/spec/integration/status_spec.rb +27 -0
- data/spec/integration/transition_spec.rb +52 -0
- data/spec/integration/user_spec.rb +25 -0
- data/spec/integration/version_spec.rb +43 -0
- data/spec/integration/worklog_spec.rb +55 -0
- data/spec/jira/base_factory_spec.rb +46 -0
- data/spec/jira/base_spec.rb +583 -0
- data/spec/jira/client_spec.rb +188 -0
- data/spec/jira/has_many_proxy_spec.rb +47 -0
- data/spec/jira/http_client_spec.rb +109 -0
- data/spec/jira/http_error_spec.rb +26 -0
- data/spec/jira/oauth_client_spec.rb +111 -0
- data/spec/jira/request_client_spec.rb +14 -0
- data/spec/jira/resource/attachment_spec.rb +20 -0
- data/spec/jira/resource/filter_spec.rb +97 -0
- data/spec/jira/resource/issue_spec.rb +123 -0
- data/spec/jira/resource/project_factory_spec.rb +13 -0
- data/spec/jira/resource/project_spec.rb +70 -0
- data/spec/jira/resource/worklog_spec.rb +24 -0
- data/spec/mock_responses/attachment/10000.json +20 -0
- data/spec/mock_responses/component.post.json +28 -0
- data/spec/mock_responses/component/10000.invalid.put.json +5 -0
- data/spec/mock_responses/component/10000.json +39 -0
- data/spec/mock_responses/component/10000.put.json +39 -0
- data/spec/mock_responses/field.json +32 -0
- data/spec/mock_responses/field/1.json +15 -0
- data/spec/mock_responses/issue.json +1108 -0
- data/spec/mock_responses/issue.post.json +5 -0
- data/spec/mock_responses/issue/10002.invalid.put.json +6 -0
- data/spec/mock_responses/issue/10002.json +126 -0
- data/spec/mock_responses/issue/10002.put.missing_field_update.json +6 -0
- data/spec/mock_responses/issue/10002/comment.json +65 -0
- data/spec/mock_responses/issue/10002/comment.post.json +29 -0
- data/spec/mock_responses/issue/10002/comment/10000.json +29 -0
- data/spec/mock_responses/issue/10002/comment/10000.put.json +29 -0
- data/spec/mock_responses/issue/10002/transitions.json +49 -0
- data/spec/mock_responses/issue/10002/transitions.post.json +1 -0
- data/spec/mock_responses/issue/10002/worklog.json +98 -0
- data/spec/mock_responses/issue/10002/worklog.post.json +30 -0
- data/spec/mock_responses/issue/10002/worklog/10000.json +31 -0
- data/spec/mock_responses/issue/10002/worklog/10000.put.json +30 -0
- data/spec/mock_responses/issuetype.json +42 -0
- data/spec/mock_responses/issuetype/5.json +8 -0
- data/spec/mock_responses/priority.json +42 -0
- data/spec/mock_responses/priority/1.json +8 -0
- data/spec/mock_responses/project.json +12 -0
- data/spec/mock_responses/project/SAMPLEPROJECT.issues.json +1108 -0
- data/spec/mock_responses/project/SAMPLEPROJECT.json +84 -0
- data/spec/mock_responses/status.json +37 -0
- data/spec/mock_responses/status/1.json +7 -0
- data/spec/mock_responses/user_username=admin.json +17 -0
- data/spec/mock_responses/version.post.json +7 -0
- data/spec/mock_responses/version/10000.invalid.put.json +5 -0
- data/spec/mock_responses/version/10000.json +11 -0
- data/spec/mock_responses/version/10000.put.json +7 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/clients_helper.rb +16 -0
- data/spec/support/matchers/have_attributes.rb +11 -0
- data/spec/support/matchers/have_many.rb +9 -0
- data/spec/support/matchers/have_one.rb +5 -0
- data/spec/support/shared_examples/integration.rb +194 -0
- metadata +302 -0
metadata
ADDED
@@ -0,0 +1,302 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sclemmer-jira-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.12
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- SUMO Heavy Industries
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.1.4
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.1.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: oauth
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.4.7
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.4.7
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.1.4
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.1.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: webmock
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.18.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.18.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 3.0.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 10.3.2
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 10.3.2
|
97
|
+
description: API for JIRA
|
98
|
+
email:
|
99
|
+
executables: []
|
100
|
+
extensions: []
|
101
|
+
extra_rdoc_files: []
|
102
|
+
files:
|
103
|
+
- ".gitignore"
|
104
|
+
- ".travis.yml"
|
105
|
+
- Gemfile
|
106
|
+
- LICENSE.txt
|
107
|
+
- README.rdoc
|
108
|
+
- Rakefile
|
109
|
+
- example.rb
|
110
|
+
- http-basic-example.rb
|
111
|
+
- lib/jira.rb
|
112
|
+
- lib/jira/base.rb
|
113
|
+
- lib/jira/base_factory.rb
|
114
|
+
- lib/jira/client.rb
|
115
|
+
- lib/jira/has_many_proxy.rb
|
116
|
+
- lib/jira/http_client.rb
|
117
|
+
- lib/jira/http_error.rb
|
118
|
+
- lib/jira/oauth_client.rb
|
119
|
+
- lib/jira/railtie.rb
|
120
|
+
- lib/jira/request_client.rb
|
121
|
+
- lib/jira/resource/attachment.rb
|
122
|
+
- lib/jira/resource/comment.rb
|
123
|
+
- lib/jira/resource/component.rb
|
124
|
+
- lib/jira/resource/field.rb
|
125
|
+
- lib/jira/resource/filter.rb
|
126
|
+
- lib/jira/resource/issue.rb
|
127
|
+
- lib/jira/resource/issuetype.rb
|
128
|
+
- lib/jira/resource/priority.rb
|
129
|
+
- lib/jira/resource/project.rb
|
130
|
+
- lib/jira/resource/status.rb
|
131
|
+
- lib/jira/resource/transition.rb
|
132
|
+
- lib/jira/resource/user.rb
|
133
|
+
- lib/jira/resource/version.rb
|
134
|
+
- lib/jira/resource/worklog.rb
|
135
|
+
- lib/jira/tasks.rb
|
136
|
+
- lib/jira/version.rb
|
137
|
+
- lib/tasks/generate.rake
|
138
|
+
- sclemmer-jira-ruby.gemspec
|
139
|
+
- spec/integration/attachment_spec.rb
|
140
|
+
- spec/integration/comment_spec.rb
|
141
|
+
- spec/integration/component_spec.rb
|
142
|
+
- spec/integration/field_spec.rb
|
143
|
+
- spec/integration/issue_spec.rb
|
144
|
+
- spec/integration/issuetype_spec.rb
|
145
|
+
- spec/integration/priority_spec.rb
|
146
|
+
- spec/integration/project_spec.rb
|
147
|
+
- spec/integration/status_spec.rb
|
148
|
+
- spec/integration/transition_spec.rb
|
149
|
+
- spec/integration/user_spec.rb
|
150
|
+
- spec/integration/version_spec.rb
|
151
|
+
- spec/integration/worklog_spec.rb
|
152
|
+
- spec/jira/base_factory_spec.rb
|
153
|
+
- spec/jira/base_spec.rb
|
154
|
+
- spec/jira/client_spec.rb
|
155
|
+
- spec/jira/has_many_proxy_spec.rb
|
156
|
+
- spec/jira/http_client_spec.rb
|
157
|
+
- spec/jira/http_error_spec.rb
|
158
|
+
- spec/jira/oauth_client_spec.rb
|
159
|
+
- spec/jira/request_client_spec.rb
|
160
|
+
- spec/jira/resource/attachment_spec.rb
|
161
|
+
- spec/jira/resource/filter_spec.rb
|
162
|
+
- spec/jira/resource/issue_spec.rb
|
163
|
+
- spec/jira/resource/project_factory_spec.rb
|
164
|
+
- spec/jira/resource/project_spec.rb
|
165
|
+
- spec/jira/resource/worklog_spec.rb
|
166
|
+
- spec/mock_responses/attachment/10000.json
|
167
|
+
- spec/mock_responses/component.post.json
|
168
|
+
- spec/mock_responses/component/10000.invalid.put.json
|
169
|
+
- spec/mock_responses/component/10000.json
|
170
|
+
- spec/mock_responses/component/10000.put.json
|
171
|
+
- spec/mock_responses/field.json
|
172
|
+
- spec/mock_responses/field/1.json
|
173
|
+
- spec/mock_responses/issue.json
|
174
|
+
- spec/mock_responses/issue.post.json
|
175
|
+
- spec/mock_responses/issue/10002.invalid.put.json
|
176
|
+
- spec/mock_responses/issue/10002.json
|
177
|
+
- spec/mock_responses/issue/10002.put.missing_field_update.json
|
178
|
+
- spec/mock_responses/issue/10002/comment.json
|
179
|
+
- spec/mock_responses/issue/10002/comment.post.json
|
180
|
+
- spec/mock_responses/issue/10002/comment/10000.json
|
181
|
+
- spec/mock_responses/issue/10002/comment/10000.put.json
|
182
|
+
- spec/mock_responses/issue/10002/transitions.json
|
183
|
+
- spec/mock_responses/issue/10002/transitions.post.json
|
184
|
+
- spec/mock_responses/issue/10002/worklog.json
|
185
|
+
- spec/mock_responses/issue/10002/worklog.post.json
|
186
|
+
- spec/mock_responses/issue/10002/worklog/10000.json
|
187
|
+
- spec/mock_responses/issue/10002/worklog/10000.put.json
|
188
|
+
- spec/mock_responses/issuetype.json
|
189
|
+
- spec/mock_responses/issuetype/5.json
|
190
|
+
- spec/mock_responses/priority.json
|
191
|
+
- spec/mock_responses/priority/1.json
|
192
|
+
- spec/mock_responses/project.json
|
193
|
+
- spec/mock_responses/project/SAMPLEPROJECT.issues.json
|
194
|
+
- spec/mock_responses/project/SAMPLEPROJECT.json
|
195
|
+
- spec/mock_responses/status.json
|
196
|
+
- spec/mock_responses/status/1.json
|
197
|
+
- spec/mock_responses/user_username=admin.json
|
198
|
+
- spec/mock_responses/version.post.json
|
199
|
+
- spec/mock_responses/version/10000.invalid.put.json
|
200
|
+
- spec/mock_responses/version/10000.json
|
201
|
+
- spec/mock_responses/version/10000.put.json
|
202
|
+
- spec/spec_helper.rb
|
203
|
+
- spec/support/clients_helper.rb
|
204
|
+
- spec/support/matchers/have_attributes.rb
|
205
|
+
- spec/support/matchers/have_many.rb
|
206
|
+
- spec/support/matchers/have_one.rb
|
207
|
+
- spec/support/shared_examples/integration.rb
|
208
|
+
homepage: http://www.sumoheavy.com
|
209
|
+
licenses:
|
210
|
+
- OSL-3.0
|
211
|
+
metadata: {}
|
212
|
+
post_install_message:
|
213
|
+
rdoc_options: []
|
214
|
+
require_paths:
|
215
|
+
- lib
|
216
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - ">="
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '0'
|
226
|
+
requirements: []
|
227
|
+
rubyforge_project: jira-ruby
|
228
|
+
rubygems_version: 2.2.2
|
229
|
+
signing_key:
|
230
|
+
specification_version: 4
|
231
|
+
summary: Ruby Gem for use with the Atlassian JIRA REST API
|
232
|
+
test_files:
|
233
|
+
- spec/integration/attachment_spec.rb
|
234
|
+
- spec/integration/comment_spec.rb
|
235
|
+
- spec/integration/component_spec.rb
|
236
|
+
- spec/integration/field_spec.rb
|
237
|
+
- spec/integration/issue_spec.rb
|
238
|
+
- spec/integration/issuetype_spec.rb
|
239
|
+
- spec/integration/priority_spec.rb
|
240
|
+
- spec/integration/project_spec.rb
|
241
|
+
- spec/integration/status_spec.rb
|
242
|
+
- spec/integration/transition_spec.rb
|
243
|
+
- spec/integration/user_spec.rb
|
244
|
+
- spec/integration/version_spec.rb
|
245
|
+
- spec/integration/worklog_spec.rb
|
246
|
+
- spec/jira/base_factory_spec.rb
|
247
|
+
- spec/jira/base_spec.rb
|
248
|
+
- spec/jira/client_spec.rb
|
249
|
+
- spec/jira/has_many_proxy_spec.rb
|
250
|
+
- spec/jira/http_client_spec.rb
|
251
|
+
- spec/jira/http_error_spec.rb
|
252
|
+
- spec/jira/oauth_client_spec.rb
|
253
|
+
- spec/jira/request_client_spec.rb
|
254
|
+
- spec/jira/resource/attachment_spec.rb
|
255
|
+
- spec/jira/resource/filter_spec.rb
|
256
|
+
- spec/jira/resource/issue_spec.rb
|
257
|
+
- spec/jira/resource/project_factory_spec.rb
|
258
|
+
- spec/jira/resource/project_spec.rb
|
259
|
+
- spec/jira/resource/worklog_spec.rb
|
260
|
+
- spec/mock_responses/attachment/10000.json
|
261
|
+
- spec/mock_responses/component.post.json
|
262
|
+
- spec/mock_responses/component/10000.invalid.put.json
|
263
|
+
- spec/mock_responses/component/10000.json
|
264
|
+
- spec/mock_responses/component/10000.put.json
|
265
|
+
- spec/mock_responses/field.json
|
266
|
+
- spec/mock_responses/field/1.json
|
267
|
+
- spec/mock_responses/issue.json
|
268
|
+
- spec/mock_responses/issue.post.json
|
269
|
+
- spec/mock_responses/issue/10002.invalid.put.json
|
270
|
+
- spec/mock_responses/issue/10002.json
|
271
|
+
- spec/mock_responses/issue/10002.put.missing_field_update.json
|
272
|
+
- spec/mock_responses/issue/10002/comment.json
|
273
|
+
- spec/mock_responses/issue/10002/comment.post.json
|
274
|
+
- spec/mock_responses/issue/10002/comment/10000.json
|
275
|
+
- spec/mock_responses/issue/10002/comment/10000.put.json
|
276
|
+
- spec/mock_responses/issue/10002/transitions.json
|
277
|
+
- spec/mock_responses/issue/10002/transitions.post.json
|
278
|
+
- spec/mock_responses/issue/10002/worklog.json
|
279
|
+
- spec/mock_responses/issue/10002/worklog.post.json
|
280
|
+
- spec/mock_responses/issue/10002/worklog/10000.json
|
281
|
+
- spec/mock_responses/issue/10002/worklog/10000.put.json
|
282
|
+
- spec/mock_responses/issuetype.json
|
283
|
+
- spec/mock_responses/issuetype/5.json
|
284
|
+
- spec/mock_responses/priority.json
|
285
|
+
- spec/mock_responses/priority/1.json
|
286
|
+
- spec/mock_responses/project.json
|
287
|
+
- spec/mock_responses/project/SAMPLEPROJECT.issues.json
|
288
|
+
- spec/mock_responses/project/SAMPLEPROJECT.json
|
289
|
+
- spec/mock_responses/status.json
|
290
|
+
- spec/mock_responses/status/1.json
|
291
|
+
- spec/mock_responses/user_username=admin.json
|
292
|
+
- spec/mock_responses/version.post.json
|
293
|
+
- spec/mock_responses/version/10000.invalid.put.json
|
294
|
+
- spec/mock_responses/version/10000.json
|
295
|
+
- spec/mock_responses/version/10000.put.json
|
296
|
+
- spec/spec_helper.rb
|
297
|
+
- spec/support/clients_helper.rb
|
298
|
+
- spec/support/matchers/have_attributes.rb
|
299
|
+
- spec/support/matchers/have_many.rb
|
300
|
+
- spec/support/matchers/have_one.rb
|
301
|
+
- spec/support/shared_examples/integration.rb
|
302
|
+
has_rdoc:
|