jiraSOAP 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/jiraSOAP/remoteAPI.rb +15 -3
- data/lib/jiraSOAP/remoteEntities.rb +10 -1
- metadata +3 -3
data/lib/jiraSOAP/remoteAPI.rb
CHANGED
@@ -355,17 +355,29 @@ module RemoteAPI
|
|
355
355
|
end
|
356
356
|
|
357
357
|
# @todo test this method
|
358
|
-
# @param [String]
|
358
|
+
# @param [String] project_id
|
359
359
|
# @return [JIRA::Project]
|
360
|
-
def get_project_with_id(
|
360
|
+
def get_project_with_id(project_id)
|
361
361
|
response = invoke('soap:getProjectById') { |msg|
|
362
362
|
msg.add 'soap:in0', @auth_token
|
363
|
-
msg.add 'soap:in1',
|
363
|
+
msg.add 'soap:in1', project_id
|
364
364
|
}
|
365
365
|
frag = response.document.xpath '//getProjectByIdReturn'
|
366
366
|
JIRA::Project.project_with_xml_fragment frag
|
367
367
|
end
|
368
368
|
|
369
|
+
# @todo test this method
|
370
|
+
# @param [String] project_id
|
371
|
+
# @return [JIRA::Project]
|
372
|
+
def get_project_including_schemes_by_id(project_id)
|
373
|
+
response = invoke('soap:getProjectWithSchemesById') { |msg|
|
374
|
+
msg.add 'soap:in0', @auth_token
|
375
|
+
msg.add 'soap:in1', project_id
|
376
|
+
}
|
377
|
+
frag = response.document.xpath '//getProjectWithSchemesByIdReturn'
|
378
|
+
JIRA::Project.project_with_xml_fragment frag
|
379
|
+
end
|
380
|
+
|
369
381
|
# @todo test this method
|
370
382
|
# @param [String] issue_key
|
371
383
|
# @param [JIRA::Comment] comment
|
@@ -220,6 +220,15 @@ class Scheme
|
|
220
220
|
end
|
221
221
|
end
|
222
222
|
|
223
|
+
class PermissionScheme < Scheme
|
224
|
+
attr_accessor :permission_mappings
|
225
|
+
|
226
|
+
def initialize(frag)
|
227
|
+
return if frag.nil?
|
228
|
+
# @todo pain the friggin ass to figure out
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
223
232
|
# Represents a component description for a project. Straightforward.
|
224
233
|
class Component
|
225
234
|
attr_accessor :id, :name
|
@@ -260,7 +269,7 @@ class Project
|
|
260
269
|
project.notification_scheme =
|
261
270
|
Scheme.scheme_with_xml_fragment frag.xpath 'notificationScheme'
|
262
271
|
project.permission_scheme =
|
263
|
-
|
272
|
+
PermissionScheme.scheme_with_xml_fragment frag.xpath 'permissionScheme'
|
264
273
|
project
|
265
274
|
end
|
266
275
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Mark Rada
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-10-
|
17
|
+
date: 2010-10-13 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|