hudson-remote-api 0.2.1 → 0.2.2
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 +1 -1
- data/hudson-remote-api.gemspec +2 -2
- data/lib/hudson-remote-api.rb +1 -1
- data/lib/hudson-remote-api/job.rb +3 -2
- data/test/test_hudson_job.rb +7 -1
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.2
|
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.2"
|
|
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-09
|
|
12
|
+
s.date = %q{2010-12-09}
|
|
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 = [
|
data/lib/hudson-remote-api.rb
CHANGED
|
@@ -64,7 +64,9 @@ module Hudson
|
|
|
64
64
|
if !@config_doc.elements["/project/scm/browser/location"].nil?
|
|
65
65
|
@repository_browser_location = @config_doc.elements["/project/scm/browser/location"].text
|
|
66
66
|
end
|
|
67
|
-
|
|
67
|
+
if !@config_doc.elements["/project/description"].nil?
|
|
68
|
+
@description = @config_doc.elements["/project/description"].text || ""
|
|
69
|
+
end
|
|
68
70
|
end
|
|
69
71
|
|
|
70
72
|
def load_info()
|
|
@@ -72,7 +74,6 @@ module Hudson
|
|
|
72
74
|
@info_doc = REXML::Document.new(@info)
|
|
73
75
|
|
|
74
76
|
if @info_doc.elements["/freeStyleProject"]
|
|
75
|
-
puts "loading build info"
|
|
76
77
|
@color = @info_doc.elements["/freeStyleProject/color"].text if @info_doc.elements["/freeStyleProject/color"]
|
|
77
78
|
@last_build = @info_doc.elements["/freeStyleProject/lastBuild/number"].text if @info_doc.elements["/freeStyleProject/lastBuild/number"]
|
|
78
79
|
@last_completed_build = @info_doc.elements["/freeStyleProject/lastCompletedBuild/number"].text if @info_doc.elements["/freeStyleProject/lastCompletedBuild/number"]
|
data/test/test_hudson_job.rb
CHANGED
|
@@ -20,6 +20,12 @@ class TestHudsonJob < Test::Unit::TestCase
|
|
|
20
20
|
# TODO: load job fixtures
|
|
21
21
|
job = Hudson::Job.new('test_job')
|
|
22
22
|
assert job
|
|
23
|
-
|
|
23
|
+
assert_equal 'test_job', job.name, "failed to get job name"
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def test_desc_update
|
|
27
|
+
job = Hudson::Job.new('test_job')
|
|
28
|
+
assert job.description
|
|
29
|
+
assert job.description = "test"
|
|
24
30
|
end
|
|
25
31
|
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: 19
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.2.2
|
|
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-09
|
|
18
|
+
date: 2010-12-09 00:00:00 -08:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|