jiraSOAP 0.2.2 → 0.2.3

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.
@@ -240,7 +240,6 @@ module RemoteAPI
240
240
  JIRA::Issue.issue_with_xml_fragment frag
241
241
  end
242
242
 
243
- # @todo test this method
244
243
  # @param [String] issue_key
245
244
  # @return [JIRA::Issue]
246
245
  def get_issue_with_key(issue_key)
@@ -252,7 +251,6 @@ module RemoteAPI
252
251
  JIRA::Issue.issue_with_xml_fragment frag
253
252
  end
254
253
 
255
- # @todo test this method
256
254
  # @param [String] issue_id
257
255
  # @return [JIRA::Issue]
258
256
  def get_issue_with_id(issue_id)
@@ -264,7 +262,6 @@ module RemoteAPI
264
262
  JIRA::Issue.issue_with_xml_fragment frag
265
263
  end
266
264
 
267
- # @todo test this method
268
265
  # @param [String] issue_key
269
266
  # @return [[JIRA::Attachment]]
270
267
  def get_attachments_for_issue_with_key(issue_key)
@@ -278,7 +275,15 @@ module RemoteAPI
278
275
  }
279
276
  end
280
277
 
281
- # @todo test this method
278
+ # New versions cannot have the archived bit set and the release date
279
+ # field will ignore the time of day you give it and instead insert
280
+ # the time zone offset as the time of day.
281
+ #
282
+ # Remember that the @release_date field is the tentative release date,
283
+ # so its value is independant of the @released flag.
284
+ #
285
+ # Descriptions do not appear to be included with JIRA::Version objects
286
+ # that SOAP API provides.
282
287
  # @param [String] project_key
283
288
  # @param [JIRA::Version] version
284
289
  # @return [JIRA::Version]
@@ -292,7 +297,8 @@ module RemoteAPI
292
297
  JIRA::Version.version_with_xml_fragment frag
293
298
  end
294
299
 
295
- # @todo test this method
300
+ # The archive state can only be set to true for versions that have not been
301
+ # released. However, this is not reflected by the return value of this method.
296
302
  # @param [String] project_key
297
303
  # @param [String] version_name
298
304
  # @param [boolean] state
@@ -167,7 +167,8 @@ class Status
167
167
  end
168
168
  end
169
169
 
170
- # Represents a version for a project. Straightforward.
170
+ # Represents a version for a project. The description field is never
171
+ # included when you retrieve versions from the server.
171
172
  # @todo find out why we don't get a description for this object
172
173
  class Version
173
174
  attr_accessor :id, :name, :sequence, :released, :archived, :release_date
@@ -198,12 +199,9 @@ class Version
198
199
  # @param [Handsoap::XmlMason::Node] msg
199
200
  # @return [Handsoap::XmlMason::Node]
200
201
  def soapify_for(msg)
201
- msg.add 'id', @id
202
202
  msg.add 'name', @name
203
- msg.add 'sequence', @sequence
204
- msg.add 'released', @released
205
- msg.add 'archived', @archived
206
- msg.add 'releaseDate', @release_date
203
+ msg.add 'sequence', @sequence unless @sequence.nil?
204
+ msg.add 'releaseDate', @release_date.xmlschema unless @release_date.nil?
207
205
  end
208
206
  end
209
207
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
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-20 00:00:00 -04:00
17
+ date: 2010-10-21 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency