ci_status 0.1.0 → 0.1.1

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/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg/
data/ci_status.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- Gem::Specification.new "ci_status", "0.1.0" do |s|
1
+ Gem::Specification.new "ci_status", "0.1.1" do |s|
2
2
  s.summary = "CI status interface"
3
3
  s.description = "Library for reading, parsing and presenting cruise control style build status pages (think CCMenu, CCTray)"
4
4
  s.authors = [ "Morten Primdahl" ]
@@ -21,6 +21,10 @@ module CiStatus
21
21
  end
22
22
  end
23
23
 
24
+ def [](name)
25
+ projects.detect { |p| p.name == name }
26
+ end
27
+
24
28
  private
25
29
 
26
30
  def document
@@ -23,4 +23,11 @@ describe CiStatus::CruiseControl do
23
23
  end
24
24
  end
25
25
 
26
+ describe "#[]" do
27
+ it "allows looking up by name" do
28
+ assert subject["Analytics"]
29
+ refute subject["Horseface"]
30
+ end
31
+ end
32
+
26
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -98,6 +98,7 @@ executables: []
98
98
  extensions: []
99
99
  extra_rdoc_files: []
100
100
  files:
101
+ - .gitignore
101
102
  - Gemfile
102
103
  - Gemfile.lock
103
104
  - MIT-LICENSE.txt