jiraSOAP 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
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").p_map {
185
+ response.document.xpath("#{RESPONSE_XPATH}/getIssuesFromJqlSearchReturn").map {
186
186
  |frag| JIRA::Issue.new_with_xml_fragment frag
187
187
  }
188
188
  end
@@ -447,24 +447,6 @@ module RemoteAPI
447
447
  }
448
448
  end
449
449
 
450
- # This method does not work right now for reasons that I do not understand.
451
- # @todo fix this method
452
- # @param [String] query
453
- # @param [Fixnum] max_results
454
- # @param [Fixnum] offset
455
- # @return [[JIRA::Issue]]
456
- def get_issues_from_text_search(query, max_results = 500, offset = 0)
457
- response = invoke('soap:getIssuesFromTextSearch') { |msg|
458
- msg.add 'soap:in0', @auth_token
459
- msg.add 'soap:in1', query
460
- msg.add 'soap:in2', offset
461
- msg.add 'soap:in3', max_results
462
- }
463
- response.document.xpath("#{RESPONSE_XPATH}/getIssuesFromTextSearchWithLimitReturn").map {
464
- |frag| JIRA::Issue.new_with_xml_fragment frag
465
- }
466
- end
467
-
468
450
  # @param [JIRA::Comment] comment
469
451
  # @return [JIRA::Comment]
470
452
  def update_comment(comment)
@@ -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] fragment
7
+ # @param [Handsoap::XmlQueryFront::NokogiriDriver] frag
8
8
  # @return [JIRA::Entity]
9
- def self.new_with_xml(fragment)
10
- new = self.allocate
11
- new.initialize_with_xml fragment
12
- new
9
+ def self.new_with_xml_fragment(frag)
10
+ entity = allocate
11
+ entity.initialize_with_xml_fragment frag
12
+ entity
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] fragment
33
- def initialize_with_xml(fragment)
34
- @id = (fragment/'id').to_s
32
+ # @param [Handsoap::XmlQueryFront::NokogiriDriver] frag
33
+ def initialize_with_xml_fragment(frag)
34
+ @id = (frag/'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] fragment
46
- def initialize_with_xml(fragment)
47
- super fragment
48
- @name = (fragment/'name').to_s
45
+ # @param [Handsoap::XmlQueryFront::NokogiriDriver] frag
46
+ def initialize_with_xml_fragment(frag)
47
+ super frag
48
+ @name = (frag/'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] fragment
60
- def initialize_with_xml(fragment)
61
- super fragment
62
- @description = (fragment/'description').to_s
59
+ # @param [Handsoap::XmlQueryFront::NokogiriDriver] frag
60
+ def initialize_with_xml_fragment(frag)
61
+ super frag
62
+ @description = (frag/'description').to_s
63
63
  end
64
64
  end
65
65
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 1
9
- version: 0.5.1
8
+ - 2
9
+ version: 0.5.2
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-12-03 00:00:00 -05:00
17
+ date: 2010-12-04 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -72,6 +72,32 @@ dependencies:
72
72
  version: "0"
73
73
  type: :development
74
74
  version_requirements: *id004
75
+ - !ruby/object:Gem::Dependency
76
+ name: bluecloth
77
+ prerelease: false
78
+ requirement: &id005 !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
85
+ version: "0"
86
+ type: :development
87
+ version_requirements: *id005
88
+ - !ruby/object:Gem::Dependency
89
+ name: jeweler
90
+ prerelease: false
91
+ requirement: &id006 !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ segments:
97
+ - 0
98
+ version: "0"
99
+ type: :development
100
+ version_requirements: *id006
75
101
  description: Written to run fast and work on Ruby 1.9 as well as MacRuby
76
102
  email: mrada@marketcircle.com
77
103
  executables: []