jira-ruby 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/jira/base.rb +1 -1
- data/lib/jira/version.rb +1 -1
- data/spec/jira/base_spec.rb +1 -0
- data/spec/mock_responses/{user?username=admin.json → user_username=admin.json} +17 -17
- data/spec/spec_helper.rb +1 -0
- metadata +67 -83
data/.gitignore
CHANGED
data/lib/jira/base.rb
CHANGED
data/lib/jira/version.rb
CHANGED
data/spec/jira/base_spec.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
{
|
2
|
-
"self": "http://localhost:2990/jira/rest/api/2/user?username=admin",
|
3
|
-
"name": "admin",
|
4
|
-
"emailAddress": "admin@example.com",
|
5
|
-
"avatarUrls": {
|
6
|
-
"16x16": "http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10122",
|
7
|
-
"48x48": "http://localhost:2990/jira/secure/useravatar?avatarId=10122"
|
8
|
-
},
|
9
|
-
"displayName": "admin",
|
10
|
-
"active": true,
|
11
|
-
"timeZone": "Pacific/Auckland",
|
12
|
-
"groups": {
|
13
|
-
"size": 3,
|
14
|
-
"items": []
|
15
|
-
},
|
16
|
-
"expand": "groups"
|
17
|
-
}
|
1
|
+
{
|
2
|
+
"self": "http://localhost:2990/jira/rest/api/2/user?username=admin",
|
3
|
+
"name": "admin",
|
4
|
+
"emailAddress": "admin@example.com",
|
5
|
+
"avatarUrls": {
|
6
|
+
"16x16": "http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10122",
|
7
|
+
"48x48": "http://localhost:2990/jira/secure/useravatar?avatarId=10122"
|
8
|
+
},
|
9
|
+
"displayName": "admin",
|
10
|
+
"active": true,
|
11
|
+
"timeZone": "Pacific/Auckland",
|
12
|
+
"groups": {
|
13
|
+
"size": 3,
|
14
|
+
"items": []
|
15
|
+
},
|
16
|
+
"expand": "groups"
|
17
|
+
}
|
data/spec/spec_helper.rb
CHANGED
@@ -13,6 +13,7 @@ end
|
|
13
13
|
|
14
14
|
def get_mock_response(file, value_if_file_not_found = false)
|
15
15
|
begin
|
16
|
+
file.sub!('?', '_') # we have to replace this character on Windows machine
|
16
17
|
File.read(File.join(File.dirname(__FILE__), 'mock_responses/', file))
|
17
18
|
rescue Errno::ENOENT => e
|
18
19
|
raise e if value_if_file_not_found == false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jira-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: oauth
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: railties
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: railties
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ! '>='
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: '0'
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: activesupport
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ! '>='
|
@@ -65,10 +85,15 @@ dependencies:
|
|
65
85
|
version: '0'
|
66
86
|
type: :runtime
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: activesupport
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
99
|
- - ! '>='
|
@@ -76,10 +101,15 @@ dependencies:
|
|
76
101
|
version: '0'
|
77
102
|
type: :development
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
80
110
|
- !ruby/object:Gem::Dependency
|
81
111
|
name: webmock
|
82
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
83
113
|
none: false
|
84
114
|
requirements:
|
85
115
|
- - ! '>='
|
@@ -87,10 +117,15 @@ dependencies:
|
|
87
117
|
version: '0'
|
88
118
|
type: :development
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
91
126
|
- !ruby/object:Gem::Dependency
|
92
127
|
name: rspec
|
93
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
94
129
|
none: false
|
95
130
|
requirements:
|
96
131
|
- - ! '>='
|
@@ -98,7 +133,12 @@ dependencies:
|
|
98
133
|
version: '0'
|
99
134
|
type: :development
|
100
135
|
prerelease: false
|
101
|
-
version_requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
102
142
|
description: API for JIRA 5
|
103
143
|
email:
|
104
144
|
executables: []
|
@@ -187,7 +227,7 @@ files:
|
|
187
227
|
- spec/mock_responses/project/SAMPLEPROJECT.json
|
188
228
|
- spec/mock_responses/status.json
|
189
229
|
- spec/mock_responses/status/1.json
|
190
|
-
- spec/mock_responses/
|
230
|
+
- spec/mock_responses/user_username=admin.json
|
191
231
|
- spec/mock_responses/version.post.json
|
192
232
|
- spec/mock_responses/version/10000.invalid.put.json
|
193
233
|
- spec/mock_responses/version/10000.json
|
@@ -210,78 +250,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
210
250
|
- - ! '>='
|
211
251
|
- !ruby/object:Gem::Version
|
212
252
|
version: '0'
|
253
|
+
segments:
|
254
|
+
- 0
|
255
|
+
hash: -155705129049580202
|
213
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
257
|
none: false
|
215
258
|
requirements:
|
216
259
|
- - ! '>='
|
217
260
|
- !ruby/object:Gem::Version
|
218
261
|
version: '0'
|
262
|
+
segments:
|
263
|
+
- 0
|
264
|
+
hash: -155705129049580202
|
219
265
|
requirements: []
|
220
266
|
rubyforge_project: jira-ruby
|
221
|
-
rubygems_version: 1.8.
|
267
|
+
rubygems_version: 1.8.24
|
222
268
|
signing_key:
|
223
269
|
specification_version: 3
|
224
270
|
summary: Ruby Gem for use with the Atlassian JIRA 5 REST API
|
225
|
-
test_files:
|
226
|
-
- spec/integration/attachment_spec.rb
|
227
|
-
- spec/integration/comment_spec.rb
|
228
|
-
- spec/integration/component_spec.rb
|
229
|
-
- spec/integration/issue_spec.rb
|
230
|
-
- spec/integration/issuetype_spec.rb
|
231
|
-
- spec/integration/priority_spec.rb
|
232
|
-
- spec/integration/project_spec.rb
|
233
|
-
- spec/integration/status_spec.rb
|
234
|
-
- spec/integration/user_spec.rb
|
235
|
-
- spec/integration/version_spec.rb
|
236
|
-
- spec/integration/worklog_spec.rb
|
237
|
-
- spec/jira/base_factory_spec.rb
|
238
|
-
- spec/jira/base_spec.rb
|
239
|
-
- spec/jira/client_spec.rb
|
240
|
-
- spec/jira/has_many_proxy_spec.rb
|
241
|
-
- spec/jira/http_client_spec.rb
|
242
|
-
- spec/jira/http_error_spec.rb
|
243
|
-
- spec/jira/oauth_client_spec.rb
|
244
|
-
- spec/jira/request_client_spec.rb
|
245
|
-
- spec/jira/resource/attachment_spec.rb
|
246
|
-
- spec/jira/resource/issue_spec.rb
|
247
|
-
- spec/jira/resource/project_factory_spec.rb
|
248
|
-
- spec/jira/resource/project_spec.rb
|
249
|
-
- spec/jira/resource/worklog_spec.rb
|
250
|
-
- spec/mock_responses/attachment/10000.json
|
251
|
-
- spec/mock_responses/component.post.json
|
252
|
-
- spec/mock_responses/component/10000.invalid.put.json
|
253
|
-
- spec/mock_responses/component/10000.json
|
254
|
-
- spec/mock_responses/component/10000.put.json
|
255
|
-
- spec/mock_responses/issue.json
|
256
|
-
- spec/mock_responses/issue.post.json
|
257
|
-
- spec/mock_responses/issue/10002.invalid.put.json
|
258
|
-
- spec/mock_responses/issue/10002.json
|
259
|
-
- spec/mock_responses/issue/10002.put.missing_field_update.json
|
260
|
-
- spec/mock_responses/issue/10002/comment.json
|
261
|
-
- spec/mock_responses/issue/10002/comment.post.json
|
262
|
-
- spec/mock_responses/issue/10002/comment/10000.json
|
263
|
-
- spec/mock_responses/issue/10002/comment/10000.put.json
|
264
|
-
- spec/mock_responses/issue/10002/worklog.json
|
265
|
-
- spec/mock_responses/issue/10002/worklog.post.json
|
266
|
-
- spec/mock_responses/issue/10002/worklog/10000.json
|
267
|
-
- spec/mock_responses/issue/10002/worklog/10000.put.json
|
268
|
-
- spec/mock_responses/issuetype.json
|
269
|
-
- spec/mock_responses/issuetype/5.json
|
270
|
-
- spec/mock_responses/priority.json
|
271
|
-
- spec/mock_responses/priority/1.json
|
272
|
-
- spec/mock_responses/project.json
|
273
|
-
- spec/mock_responses/project/SAMPLEPROJECT.issues.json
|
274
|
-
- spec/mock_responses/project/SAMPLEPROJECT.json
|
275
|
-
- spec/mock_responses/status.json
|
276
|
-
- spec/mock_responses/status/1.json
|
277
|
-
- spec/mock_responses/user?username=admin.json
|
278
|
-
- spec/mock_responses/version.post.json
|
279
|
-
- spec/mock_responses/version/10000.invalid.put.json
|
280
|
-
- spec/mock_responses/version/10000.json
|
281
|
-
- spec/mock_responses/version/10000.put.json
|
282
|
-
- spec/spec_helper.rb
|
283
|
-
- spec/support/clients_helper.rb
|
284
|
-
- spec/support/matchers/have_attributes.rb
|
285
|
-
- spec/support/matchers/have_many.rb
|
286
|
-
- spec/support/matchers/have_one.rb
|
287
|
-
- spec/support/shared_examples/integration.rb
|
271
|
+
test_files: []
|