starting_blocks 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
data/bin/sb CHANGED
@@ -23,6 +23,8 @@ end
23
23
 
24
24
  if ARGV.include? '--watch'
25
25
  StartingBlocks::Watcher.start_watching Dir, options
26
+ elsif ARGV.include? '--off'
27
+ StartingBlocks::Extensions::BlinkyLighting.turn_off!
26
28
  else
27
29
  run_all_specs options
28
30
  end
@@ -16,12 +16,16 @@ end
16
16
 
17
17
  module StartingBlocks
18
18
  module Extensions
19
- class GreenOnSuccessRedOnFailure
19
+ class BlinkyLighting
20
20
 
21
21
  def initialize
22
22
  @light = Blinky.new.light
23
23
  end
24
24
 
25
+ def self.turn_off!
26
+ Blinky.new.light.off!
27
+ end
28
+
25
29
  def receive_files_to_run files
26
30
  @spec_count = files.count
27
31
  return if files.count == 0
@@ -1,3 +1,3 @@
1
1
  module StartingBlocks
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
@@ -9,4 +9,4 @@ require_relative 'extensions/blinky'
9
9
  module StartingBlocks
10
10
  # Your code goes here...
11
11
  end
12
- StartingBlocks::Publisher.subscribers << StartingBlocks::Extensions::GreenOnSuccessRedOnFailure.new
12
+ StartingBlocks::Publisher.subscribers << StartingBlocks::Extensions::BlinkyLighting.new
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.20
4
+ version: 0.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-07 00:00:00.000000000 Z
12
+ date: 2013-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: -1450285586092815377
167
+ hash: 549270903443390071
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: -1450285586092815377
176
+ hash: 549270903443390071
177
177
  requirements: []
178
178
  rubyforge_project:
179
179
  rubygems_version: 1.8.24