starting_blocks 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,10 @@ module StartingBlocks
4
4
  module Extensions
5
5
  class GreenOnSuccessRedOnFailure
6
6
 
7
+ def initialize
8
+ @light = Blinky.new.light
9
+ end
10
+
7
11
  def receive_specs_to_run specs
8
12
  @spec_count = specs.count
9
13
  return if specs.count == 0
@@ -28,11 +32,11 @@ module StartingBlocks
28
32
  def change_color_to(color)
29
33
  case color
30
34
  when :green
31
- Blinky.new.light.success!
35
+ @light.success!
32
36
  when :red
33
- Blinky.new.light.failure!
37
+ @light.failure!
34
38
  when :yellow
35
- Blinky.new.light.building!
39
+ @light.building!
36
40
  end
37
41
  rescue
38
42
  end
@@ -1,3 +1,3 @@
1
1
  module StartingBlocks
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starting_blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: 362846489054446078
167
+ hash: 3807703528302681949
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  none: false
170
170
  requirements:
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: 362846489054446078
176
+ hash: 3807703528302681949
177
177
  requirements: []
178
178
  rubyforge_project:
179
179
  rubygems_version: 1.8.24