go_api_client 0.5.3 → 0.5.4
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/Gemfile.lock +1 -1
- data/lib/go_api_client/pipeline.rb +0 -1
- data/lib/go_api_client/version.rb +1 -1
- data/test/go_api_client/pipeline_test.rb +0 -1
- metadata +8 -2
data/Gemfile.lock
CHANGED
|
@@ -28,7 +28,6 @@ module GoApiClient
|
|
|
28
28
|
self.url = href_from(@root.xpath("./link[@rel='self']"))
|
|
29
29
|
self.identifier = @root.xpath("./id").first.content
|
|
30
30
|
self.schedule_time = Time.parse(@root.xpath('./scheduleTime').first.content).utc
|
|
31
|
-
self.branch_name = @root.xpath('./materials/material').first.attribute('branch').value
|
|
32
31
|
self.commits = @root.xpath('./materials/material[@type = "GitMaterial"]/modifications/changeset').collect do |changeset|
|
|
33
32
|
Commit.new(changeset).parse!
|
|
34
33
|
end
|
|
@@ -18,7 +18,6 @@ module GoApiClient
|
|
|
18
18
|
assert_equal ["Update README", "Fixed build"], pipeline.commits.collect(&:message)
|
|
19
19
|
assert_equal "urn:x-go.studios.thoughtworks.com:job-id:defaultPipeline:1", pipeline.identifier
|
|
20
20
|
assert_equal Time.parse('2012-02-23 11:46:15 UTC'), pipeline.schedule_time
|
|
21
|
-
assert_equal 'master', pipeline.branch_name
|
|
22
21
|
end
|
|
23
22
|
|
|
24
23
|
test "should return a list of authors from the first stage" do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: go_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2013-06-
|
|
14
|
+
date: 2013-06-04 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: webmock
|
|
@@ -213,12 +213,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
213
213
|
- - ! '>='
|
|
214
214
|
- !ruby/object:Gem::Version
|
|
215
215
|
version: '0'
|
|
216
|
+
segments:
|
|
217
|
+
- 0
|
|
218
|
+
hash: 4287728317400893528
|
|
216
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
220
|
none: false
|
|
218
221
|
requirements:
|
|
219
222
|
- - ! '>='
|
|
220
223
|
- !ruby/object:Gem::Version
|
|
221
224
|
version: '0'
|
|
225
|
+
segments:
|
|
226
|
+
- 0
|
|
227
|
+
hash: 4287728317400893528
|
|
222
228
|
requirements: []
|
|
223
229
|
rubyforge_project: go_api_client
|
|
224
230
|
rubygems_version: 1.8.23
|