jiraSOAP 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.10.3
2
+
3
+ * Fix RemoteAPI#create_issue problem with setting a non-default reporter (thanks @toddtomkinson)
4
+
1
5
  Version 0.10.2
2
6
 
3
7
  * Fix RemoteAPIAdditions#custom_field_with_name (thanks @mpaclark)
data/lib/jiraSOAP/api.rb CHANGED
@@ -67,7 +67,7 @@ module JIRA::RemoteAPI
67
67
  # @return [Nokogiri::XML::NodeSet]
68
68
  def soap_call method, *args
69
69
  response = build method, *args
70
- response .document.native_element/RESPONSE_XPATH
70
+ response .document.element/RESPONSE_XPATH
71
71
  end
72
72
 
73
73
  ##
@@ -110,9 +110,6 @@ class JIRA::Issue < JIRA::DynamicEntity
110
110
  #
111
111
  # @param [Handsoap::XmlMason::Node] msg message the node to add the object to
112
112
  def soapify_for msg
113
- # might be going away, since it appears to have no effect at creation time
114
- msg.add 'reporter', @reporter_name unless @reporter.nil?
115
-
116
113
  msg.add 'priority', @priority_id
117
114
  msg.add 'type', @type_id
118
115
  msg.add 'project', @project_name
@@ -141,6 +138,7 @@ class JIRA::Issue < JIRA::DynamicEntity
141
138
  }
142
139
  end
143
140
 
141
+ msg.add 'reporter', @reporter_username unless @reporter_username.nil?
144
142
  msg.add 'assignee', (@assignee_username || '-1')
145
143
  msg.add_complex_array 'customFieldValues', (@custom_field_values || [])
146
144
 
@@ -27,3 +27,11 @@ class Handsoap::XmlMason::Node
27
27
  array.each { |element| element.soapify_for node, name }
28
28
  end
29
29
  end
30
+
31
+ ##
32
+ # Monkey patch to expose the underlying Nokogiri object as jiraSOAP
33
+ # can parse much faster without the Handsoap layer in between.
34
+ class Handsoap::XmlQueryFront::NokogiriDriver
35
+ # @return [Nokogiri::XML::Element]
36
+ attr_reader :element
37
+ end
@@ -1,4 +1,4 @@
1
1
  module JIRA
2
2
  # @return [String]
3
- VERSION = '0.10.2'
3
+ VERSION = '0.10.3'
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.2
4
+ version: 0.10.3
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: 2011-10-04 00:00:00.000000000 Z
12
+ date: 2011-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70216709532620 !ruby/object:Gem::Requirement
16
+ requirement: &70280848933540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.5.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70216709532620
24
+ version_requirements: *70280848933540
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: handsoap
27
- requirement: &70216709532040 !ruby/object:Gem::Requirement
27
+ requirement: &70280848932980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.8
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70216709532040
35
+ version_requirements: *70280848932980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yard
38
- requirement: &70216709531420 !ruby/object:Gem::Requirement
38
+ requirement: &70280848932320 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.7.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70216709531420
46
+ version_requirements: *70280848932320
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: redcarpet
49
- requirement: &70216709530880 !ruby/object:Gem::Requirement
49
+ requirement: &70280848931780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.17'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70216709530880
57
+ version_requirements: *70280848931780
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: minitest
60
- requirement: &70216709529940 !ruby/object:Gem::Requirement
60
+ requirement: &70280848930960 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '2.5'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70216709529940
68
+ version_requirements: *70280848930960
69
69
  description: Written to run fast and work on Ruby 1.9 as well as MacRuby
70
70
  email:
71
71
  - markrada26@gmail.com