go_api_client 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- go_api_client (0.0.2)
4
+ go_api_client (0.0.3)
5
5
  nokogiri
6
6
 
7
7
  GEM
@@ -54,7 +54,7 @@ module GoApiClient
54
54
  end
55
55
 
56
56
  class Pipeline
57
- attr_reader :details_link, :id
57
+ attr_reader :details_link, :id, :commit_messages
58
58
  attr_accessor :stages
59
59
 
60
60
  def initialize(details_link)
@@ -66,6 +66,7 @@ module GoApiClient
66
66
  doc = Nokogiri::XML(open(self.details_link))
67
67
  @label = doc.root.attributes["label"].value
68
68
  @id = doc.root.xpath("//id").first.content
69
+ @commit_messages = doc.root.xpath("//message").map(&:content)
69
70
  self
70
71
  end
71
72
 
@@ -1,3 +1,3 @@
1
1
  module GoApiClient
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -19,6 +19,7 @@ class IntegrationTest < Test::Unit::TestCase
19
19
  end
20
20
  assert_equal "Acceptance", stages.first.name
21
21
  assert_equal "Units", stages.last.name
22
+ assert_equal ["Update README"], pipelines.first.commit_messages
22
23
  end
23
24
 
24
25
  def file_contents(file_name)
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.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70235413447040 !ruby/object:Gem::Requirement
16
+ requirement: &70178996118820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70235413447040
24
+ version_requirements: *70178996118820
25
25
  description: This gem parses atom feed generated by the Go Continuous Integration
26
26
  server and provides an OO representation of the pipelines and stages.
27
27
  email: