jiraSOAP 0.5.0 → 0.5.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/ChangeLog +4 -0
- data/lib/jiraSOAP.rb +1 -1
- data/lib/jiraSOAP/api.rb +1 -1
- data/lib/jiraSOAP/entities/abstract.rb +18 -20
- data/lib/jiraSOAP/entities/avatar.rb +1 -3
- data/lib/jiraSOAP/entities/issue_properties.rb +2 -4
- data/lib/jiraSOAP/entities/read_only.rb +8 -9
- data/lib/jiraSOAP/entities/version.rb +2 -3
- data/lib/jiraSOAP/macruby_bonuses.rb +1 -0
- metadata +4 -4
data/ChangeLog
CHANGED
data/lib/jiraSOAP.rb
CHANGED
data/lib/jiraSOAP/api.rb
CHANGED
@@ -182,7 +182,7 @@ module RemoteAPI
|
|
182
182
|
msg.add 'soap:in1', jql_query
|
183
183
|
msg.add 'soap:in2', max_results
|
184
184
|
}
|
185
|
-
response.document.xpath("#{RESPONSE_XPATH}/getIssuesFromJqlSearchReturn").
|
185
|
+
response.document.xpath("#{RESPONSE_XPATH}/getIssuesFromJqlSearchReturn").p_map {
|
186
186
|
|frag| JIRA::Issue.new_with_xml_fragment frag
|
187
187
|
}
|
188
188
|
end
|
@@ -4,12 +4,12 @@ module JIRA
|
|
4
4
|
# The base class for all JIRA objects that can be created by the server.
|
5
5
|
class Entity
|
6
6
|
|
7
|
-
# @param [Handsoap::XmlQueryFront::NokogiriDriver]
|
7
|
+
# @param [Handsoap::XmlQueryFront::NokogiriDriver] fragment
|
8
8
|
# @return [JIRA::Entity]
|
9
|
-
def self.
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
def self.new_with_xml(fragment)
|
10
|
+
new = self.allocate
|
11
|
+
new.initialize_with_xml fragment
|
12
|
+
new
|
13
13
|
end
|
14
14
|
|
15
15
|
# @raise [NotImplementedError] this method MUST be implemented in a non
|
@@ -29,9 +29,9 @@ class DynamicEntity < JIRA::Entity
|
|
29
29
|
# with id's from custom fields this attribute is always a String
|
30
30
|
attr_accessor :id
|
31
31
|
|
32
|
-
# @param [Handsoap::XmlQueryFront::NokogiriDriver]
|
33
|
-
def
|
34
|
-
@id = (
|
32
|
+
# @param [Handsoap::XmlQueryFront::NokogiriDriver] fragment
|
33
|
+
def initialize_with_xml(fragment)
|
34
|
+
@id = (fragment/'id').to_s
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -42,10 +42,10 @@ class NamedEntity < JIRA::DynamicEntity
|
|
42
42
|
# @return [String] a plain language name
|
43
43
|
attr_accessor :name
|
44
44
|
|
45
|
-
# @param [Handsoap::XmlQueryFront::NokogiriDriver]
|
46
|
-
def
|
47
|
-
super
|
48
|
-
@name = (
|
45
|
+
# @param [Handsoap::XmlQueryFront::NokogiriDriver] fragment
|
46
|
+
def initialize_with_xml(fragment)
|
47
|
+
super fragment
|
48
|
+
@name = (fragment/'name').to_s
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -56,10 +56,10 @@ class DescribedEntity < JIRA::NamedEntity
|
|
56
56
|
# @return [String] usually a short blurb
|
57
57
|
attr_accessor :description
|
58
58
|
|
59
|
-
# @param [Handsoap::XmlQueryFront::NokogiriDriver]
|
60
|
-
def
|
61
|
-
super
|
62
|
-
@description = (
|
59
|
+
# @param [Handsoap::XmlQueryFront::NokogiriDriver] fragment
|
60
|
+
def initialize_with_xml(fragment)
|
61
|
+
super fragment
|
62
|
+
@description = (fragment/'description').to_s
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
@@ -70,10 +70,8 @@ end
|
|
70
70
|
class Scheme < JIRA::DescribedEntity
|
71
71
|
# Schemes that inherit this class will have to be careful when they try
|
72
72
|
# to encode the scheme type in an xml message.
|
73
|
-
# @return [
|
74
|
-
|
75
|
-
self.class.to_s
|
76
|
-
end
|
73
|
+
# @return [Class]
|
74
|
+
alias_method :type, :class
|
77
75
|
end
|
78
76
|
|
79
77
|
# @abstract
|
@@ -17,9 +17,7 @@ class Avatar < JIRA::DynamicEntity
|
|
17
17
|
|
18
18
|
# @return [boolean] indicates if the image is the system default
|
19
19
|
attr_accessor :system
|
20
|
-
|
21
|
-
# @return [boolean] true if avatar is the default system avatar, else false
|
22
|
-
def system?; @system; end
|
20
|
+
alias_method :system?, :system
|
23
21
|
|
24
22
|
# @param [Handsoap::XmlQueryFront::NokogiriDriver] frag
|
25
23
|
def initialize_with_xml_fragment(frag)
|
@@ -25,11 +25,9 @@ end
|
|
25
25
|
# Contains all the metadata for an issue type.
|
26
26
|
class IssueType < JIRA::IssueProperty
|
27
27
|
|
28
|
-
# @return [boolean]
|
28
|
+
# @return [boolean] true if the issue type is also a subtask
|
29
29
|
attr_accessor :subtask
|
30
|
-
|
31
|
-
# @return [boolean] true if the issue type is a subtask, otherwise false
|
32
|
-
def subtask?; @subtask; end
|
30
|
+
alias_method :subtask?, :subtask
|
33
31
|
|
34
32
|
# @param [Handsoap::XmlQueryFront::NokogiriDriver] frag
|
35
33
|
def initialize_with_xml_fragment(frag)
|
@@ -59,27 +59,35 @@ class ServerConfiguration < JIRA::Entity
|
|
59
59
|
|
60
60
|
# @return [boolean]
|
61
61
|
attr_reader :attachments_allowed
|
62
|
+
alias_method :attachments_allowed?, :attachments_allowed
|
62
63
|
|
63
64
|
# @return [boolean]
|
64
65
|
attr_reader :external_user_management_allowed
|
66
|
+
alias_method :external_user_management_allowed?, :external_user_management_allowed
|
65
67
|
|
66
68
|
# @return [boolean]
|
67
69
|
attr_reader :issue_linking_allowed
|
70
|
+
alias_method :issue_linking_allowed?, :issue_linking_allowed
|
68
71
|
|
69
72
|
# @return [boolean]
|
70
73
|
attr_reader :subtasks_allowed
|
74
|
+
alias_method :subtasks_allowed?, :subtasks_allowed
|
71
75
|
|
72
76
|
# @return [boolean]
|
73
77
|
attr_reader :time_tracking_allowed
|
78
|
+
alias_method :time_tracking_allowed?, :time_tracking_allowed
|
74
79
|
|
75
80
|
# @return [boolean]
|
76
81
|
attr_reader :unassigned_issues_allowed
|
82
|
+
alias_method :unassigned_issues_allowed?, :unassigned_issues_allowed
|
77
83
|
|
78
84
|
# @return [boolean]
|
79
85
|
attr_reader :voting_allowed
|
86
|
+
alias_method :voting_allowed?, :voting_allowed
|
80
87
|
|
81
88
|
# @return [boolean]
|
82
89
|
attr_reader :watching_allowed
|
90
|
+
alias_method :watching_allowed?, :watching_allowed
|
83
91
|
|
84
92
|
# @return [Fixnum]
|
85
93
|
attr_reader :time_tracking_days_per_week
|
@@ -87,15 +95,6 @@ class ServerConfiguration < JIRA::Entity
|
|
87
95
|
# @return [Fixnum]
|
88
96
|
attr_reader :time_tracking_hours_per_day
|
89
97
|
|
90
|
-
def attachments_allowed?; @attachments_allowed; end
|
91
|
-
def external_user_management_allowed?; @external_user_management_allowed; end
|
92
|
-
def issue_linking_allowed?; @issue_linking_allowed; end
|
93
|
-
def subtasks_allowed?; @subtasks_allowed; end
|
94
|
-
def time_tracking_allowed?; @time_tracking_allowed; end
|
95
|
-
def unassigned_issues_allowed?; @unassigned_issues_allowed; end
|
96
|
-
def voting_allowed?; @voting_allowed; end
|
97
|
-
def watching_allowed?; @watching_allowed; end
|
98
|
-
|
99
98
|
# @param [Handsoap::XmlQueryFront::NokogiriDriver] frag
|
100
99
|
def initialize_with_xml_fragment(frag)
|
101
100
|
@external_user_management_allowed, @attachments_allowed,
|
@@ -10,16 +10,15 @@ class Version < JIRA::NamedEntity
|
|
10
10
|
|
11
11
|
# @return [boolean]
|
12
12
|
attr_accessor :released
|
13
|
+
alias_method :released?, :released
|
13
14
|
|
14
15
|
# @return [boolean]
|
15
16
|
attr_accessor :archived
|
17
|
+
alias_method :archived?, :archived
|
16
18
|
|
17
19
|
# @return [Time]
|
18
20
|
attr_accessor :release_date
|
19
21
|
|
20
|
-
def released?; @released; end
|
21
|
-
def archived?; @archived; end
|
22
|
-
|
23
22
|
# @param [Handsoap::XmlQueryFront::NokogiriDriver] frag
|
24
23
|
def initialize_with_xml_fragment(frag)
|
25
24
|
super frag
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 1
|
9
|
+
version: 0.5.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-
|
17
|
+
date: 2010-12-03 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -109,7 +109,7 @@ files:
|
|
109
109
|
- test/jiraSOAP_test.rb
|
110
110
|
- test/test_helper.rb
|
111
111
|
has_rdoc: true
|
112
|
-
homepage: http://github.com/
|
112
|
+
homepage: http://github.com/Marketcircle/jiraSOAP
|
113
113
|
licenses: []
|
114
114
|
|
115
115
|
post_install_message:
|