blinky_monitor 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/blinky_monitor.gemspec +1 -1
- data/lib/blinky_monitor/monitor.rb +1 -1
- data/spec/blinky_monitor/monitor_spec.rb +4 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/blinky_monitor.gemspec
CHANGED
@@ -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.
|
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}]
|
@@ -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
|
-
@
|
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
|
-
@
|
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
|
-
@
|
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.
|
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:
|
121
|
+
hash: 2240963745034234344
|
122
122
|
segments:
|
123
123
|
- 0
|
124
124
|
version: "0"
|