hudson-remote-api 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hudson-remote-api}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dru Ibarra"]
12
- s.date = %q{2010-12-09}
12
+ s.date = %q{2011-06-02}
13
13
  s.description = %q{Connect to Hudson's remote web API}
14
14
  s.email = %q{Druwerd@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -21,9 +21,10 @@ module Hudson
21
21
  build_info_xml = get_xml(@xml_api_build_info_path)
22
22
  build_info_doc = REXML::Document.new(build_info_xml)
23
23
 
24
+ @result = build_info_doc.elements["/freeStyleBuild/result"].text
24
25
  if !build_info_doc.elements["/freeStyleBuild/changeSet"].nil?
25
26
  build_info_doc.elements.each("/freeStyleBuild/changeSet/revision"){|e| @revisions[e.elements["module"].text] = e.elements["revision"].text }
26
27
  end
27
28
  end
28
29
  end
29
- end
30
+ end
@@ -20,4 +20,4 @@ module Hudson
20
20
  queue
21
21
  end
22
22
  end
23
- end
23
+ end
@@ -17,6 +17,7 @@ module Hudson
17
17
  @@settings[param]=value
18
18
  end
19
19
  HudsonObject::load_xml_api
20
+ BuildQueue::load_xml_api
20
21
  end
21
22
 
22
23
  def self.settings=(settings)
@@ -8,4 +8,9 @@ class TestHudsonBuildQueue < Test::Unit::TestCase
8
8
  assert Hudson::BuildQueue.list
9
9
  end
10
10
 
11
- end
11
+ def test_load_xml_api
12
+ Hudson[:url] = "test.host.com"
13
+ assert_equal("http://test.host.com/queue/api/xml",
14
+ Hudson::BuildQueue.__send__("class_variable_get", "@@xml_api_build_queue_info_path"))
15
+ end
16
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hudson-remote-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dru Ibarra
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-09 00:00:00 -08:00
18
+ date: 2011-06-02 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21