blinky_monitor 0.1.1 → 0.1.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 CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blinky_monitor}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{James Ottaway}, %q{Mark Ryall}]
@@ -6,7 +6,7 @@ module BlinkyMonitor
6
6
  end
7
7
 
8
8
  def run
9
- @blinky.send "#{@ci_server.status}!"
9
+ @blinky.light.send "#{@ci_server.status}!"
10
10
  end
11
11
  end
12
12
  end
@@ -4,21 +4,22 @@ require 'blinky_monitor/monitor'
4
4
  describe BlinkyMonitor::Monitor do
5
5
  before do
6
6
  @ci_server = stub 'ci_server'
7
- @blinky = stub 'blinky'
7
+ @light = stub 'light'
8
+ @blinky = stub 'blinky', :light => @light
8
9
 
9
10
  @monitor = BlinkyMonitor::Monitor.new @ci_server, @blinky
10
11
  end
11
12
 
12
13
  it 'should tell blinky that it is all good when all projects are successful' do
13
14
  @ci_server.should_receive(:status).and_return(:success)
14
- @blinky.should_receive :success!
15
+ @light.should_receive :success!
15
16
 
16
17
  @monitor.run
17
18
  end
18
19
 
19
20
  it 'should tell blinky that bad things are happening when projects are unsuccessful' do
20
21
  @ci_server.should_receive(:status).and_return(:failure)
21
- @blinky.should_receive :failure!
22
+ @light.should_receive :failure!
22
23
 
23
24
  @monitor.run
24
25
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: blinky_monitor
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Ottaway
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- hash: -1950024879962269711
121
+ hash: 2240963745034234344
122
122
  segments:
123
123
  - 0
124
124
  version: "0"