jiraSOAP 0.10.8 → 0.10.9

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 CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.10.9
2
+
3
+ * Fix including nil comment fields in new comments [GH-19] (thanks @idris)
4
+
1
5
  Version 0.10.8
2
6
 
3
7
  * Fix RemoteAPI#add_worklog_and_auto_adjust_remaining_estimate (thanks @justfalter)
@@ -11,7 +11,7 @@ module JIRA::RemoteAPI
11
11
  ##
12
12
  # The first method to call; other methods will fail until you are logged in.
13
13
  #
14
- # @param [String] user JIRA user name to login with
14
+ # @param [String] username JIRA user name to login with
15
15
  # @param [String] password
16
16
  # @return [String] auth_token if successful, otherwise raises an exception
17
17
  def login username, password
@@ -48,7 +48,7 @@ module JIRA::RemoteAPI
48
48
  # the arguments.
49
49
  #
50
50
  # @param [String] method name of the JIRA SOAP API method
51
- # @param [Object] *args the arguments for the method, excluding the
51
+ # @param [Object] args the arguments for the method, excluding the
52
52
  # authentication token
53
53
  # @return [Handsoap::Response]
54
54
  def build method, *args
@@ -74,7 +74,7 @@ module JIRA::RemoteAPI
74
74
  # A simple call, for methods that will return a single object.
75
75
  #
76
76
  # @param [String] method
77
- # @param [Object] *args
77
+ # @param [Object] args
78
78
  # @return [Nokogiri::XML::Element]
79
79
  def jira_call method, *args
80
80
  response = soap_call method, self.auth_token, *args
@@ -85,8 +85,9 @@ module JIRA::RemoteAPI
85
85
  # A more complex form of {#jira_call} that does a little more work for
86
86
  # you when you need to build an array of return values.
87
87
  #
88
+ # @param [#new_with_xml] type a {JIRA::Entity} subclass
88
89
  # @param [String] method name of the JIRA SOAP API method
89
- # @param [Object] *args the arguments for the method, excluding the
90
+ # @param [Object] args the arguments for the method, excluding the
90
91
  # authentication token
91
92
  # @return [Nokogiri::XML::NodeSet]
92
93
  def array_jira_call type, method, *args
@@ -28,7 +28,7 @@ module JIRA::RemoteAPI
28
28
  JIRA::Comment.new_with_xml jira_call( 'editComment', comment )
29
29
  end
30
30
 
31
- # @param [JIRA::Comment]
31
+ # @param [JIRA::Comment] comment
32
32
  def permission_to_edit_comment? comment
33
33
  jira_call( 'hasPermissionToEditComment', comment ).to_boolean
34
34
  end
@@ -22,7 +22,7 @@ module JIRA::RemoteAPI
22
22
  array_jira_call JIRA::IssueType, 'getIssueTypes'
23
23
  end
24
24
 
25
- # @param [String] project_name
25
+ # @param [String] project_id
26
26
  # @return [Array<JIRA::IssueType>]
27
27
  def issue_types_for_project_with_id project_id
28
28
  array_jira_call JIRA::IssueType, 'getIssueTypesForProject', project_id
@@ -78,7 +78,7 @@ module JIRA::RemoteAPI
78
78
  # jira.update_issue 'PROJECT-1', field
79
79
  #
80
80
  # @param [String] issue_key
81
- # @param [JIRA::FieldValue] *field_values
81
+ # @param [JIRA::FieldValue] field_values
82
82
  # @return [JIRA::Issue]
83
83
  def update_issue issue_key, *field_values
84
84
  JIRA::Issue.new_with_xml jira_call('updateIssue', issue_key, field_values)
@@ -151,7 +151,7 @@ module JIRA::RemoteAPI
151
151
  #
152
152
  # @param [String] issue_key
153
153
  # @param [String] action_id this is the id of workflow action
154
- # @param [JIRA::FieldValue] *field_values
154
+ # @param [JIRA::FieldValue] field_values
155
155
  # @return [JIRA::Issue]
156
156
  def progress_workflow_action issue_key, action_id, *field_values
157
157
  JIRA::Issue.new_with_xml jira_call('progressWorkflowAction',
@@ -44,9 +44,9 @@ class JIRA::Comment < JIRA::DynamicEntity
44
44
  msg.add 'id', @id
45
45
  msg.add 'author', @author
46
46
  msg.add 'body', @body
47
- msg.add 'groupLevel', @group_level
48
- msg.add 'roleLevel', @role_level
49
- msg.add 'updateAuthor', @update_author
47
+ msg.add 'groupLevel', @group_level if @group_level
48
+ msg.add 'roleLevel', @role_level if @role_level
49
+ msg.add 'updateAuthor', @update_author if @update_author
50
50
  end
51
51
 
52
52
  end
@@ -55,9 +55,9 @@ class JIRA::Entity
55
55
  end
56
56
 
57
57
  # @param [Nokogiri::XML::Element] element
58
- def initialize_with_xml frag
58
+ def initialize_with_xml element
59
59
  attributes = self.class.parse
60
- frag.children.each { |node|
60
+ element.children.each { |node|
61
61
  action = attributes[node.name]
62
62
  self.send action[0], (node.send *action[1..-1]) if action
63
63
  #puts "Action is #{action.inspect} for #{node.node_name}"
@@ -49,9 +49,9 @@ class JIRA::JIRAService < Handsoap::Service
49
49
  # where you have cached the auth token elsewhere, you can avoid having
50
50
  # to login again by initializing the instance with the token.
51
51
  #
52
- # @param [String,URI::HTTP,NSURL]
53
- # @param [String]
54
- # @param [String]
52
+ # @param [String,URI::HTTP,NSURL] url
53
+ # @param [String] user
54
+ # @param [String] token
55
55
  # @return [JIRA::JIRAService]
56
56
  def self.instance_with_token url, user, token
57
57
  obj = allocate
@@ -71,9 +71,9 @@ class JIRA::JIRAService < Handsoap::Service
71
71
  ##
72
72
  # Special constructor meant for
73
73
  #
74
- # @param [String,URI::HTTP,NSURL]
75
- # @param [String]
76
- # @param [String]
74
+ # @param [String,URI::HTTP,NSURL] endpoint
75
+ # @param [String] user
76
+ # @param [String] token
77
77
  def initialize_with_token endpoint, user, token
78
78
  initialize endpoint
79
79
  @user = user
@@ -1,4 +1,4 @@
1
1
  module JIRA
2
2
  # @return [String]
3
- VERSION = '0.10.8'
3
+ VERSION = '0.10.9'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jiraSOAP
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.8
4
+ version: 0.10.9
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-03-22 00:00:00.000000000 Z
12
+ date: 2012-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70120735890500 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 1.5.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70120735890500
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.5.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: handsoap
27
- requirement: &70120735890020 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,21 +37,31 @@ dependencies:
32
37
  version: 1.1.8
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70120735890020
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.1.8
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: yard
38
- requirement: &70120735926680 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
42
52
  - !ruby/object:Gem::Version
43
- version: 0.7.5
53
+ version: 0.8.2
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70120735926680
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.8.2
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: redcarpet
49
- requirement: &70120735926220 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
@@ -54,18 +69,28 @@ dependencies:
54
69
  version: '1.17'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70120735926220
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '1.17'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: minitest
60
- requirement: &70120735925760 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ~>
64
84
  - !ruby/object:Gem::Version
65
- version: '2.11'
85
+ version: '3.1'
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *70120735925760
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '3.1'
69
94
  description: Written to run fast and work on Ruby 1.9 as well as MacRuby
70
95
  email:
71
96
  - markrada26@gmail.com
@@ -165,15 +190,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
190
  - - ! '>='
166
191
  - !ruby/object:Gem::Version
167
192
  version: '0'
193
+ segments:
194
+ - 0
195
+ hash: 400327682360561547
168
196
  required_rubygems_version: !ruby/object:Gem::Requirement
169
197
  none: false
170
198
  requirements:
171
199
  - - ! '>='
172
200
  - !ruby/object:Gem::Version
173
201
  version: '0'
202
+ segments:
203
+ - 0
204
+ hash: 400327682360561547
174
205
  requirements: []
175
206
  rubyforge_project:
176
- rubygems_version: 1.8.15
207
+ rubygems_version: 1.8.24
177
208
  signing_key:
178
209
  specification_version: 3
179
210
  summary: A Ruby client for the JIRA SOAP API