starting_blocks 0.0.20 → 0.0.21
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/bin/sb +2 -0
- data/lib/extensions/blinky.rb +5 -1
- data/lib/starting_blocks/version.rb +1 -1
- data/lib/starting_blocks.rb +1 -1
- metadata +4 -4
data/bin/sb
CHANGED
data/lib/extensions/blinky.rb
CHANGED
|
@@ -16,12 +16,16 @@ end
|
|
|
16
16
|
|
|
17
17
|
module StartingBlocks
|
|
18
18
|
module Extensions
|
|
19
|
-
class
|
|
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
|
data/lib/starting_blocks.rb
CHANGED
|
@@ -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::
|
|
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.
|
|
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-
|
|
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:
|
|
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:
|
|
176
|
+
hash: 549270903443390071
|
|
177
177
|
requirements: []
|
|
178
178
|
rubyforge_project:
|
|
179
179
|
rubygems_version: 1.8.24
|