hudson-remote-api 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.
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.3
|
data/hudson-remote-api.gemspec
CHANGED
|
@@ -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.
|
|
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{
|
|
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
|
|
@@ -8,4 +8,9 @@ class TestHudsonBuildQueue < Test::Unit::TestCase
|
|
|
8
8
|
assert Hudson::BuildQueue.list
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
|
|
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:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.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:
|
|
18
|
+
date: 2011-06-02 00:00:00 -07:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|