starting_blocks 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,11 +34,15 @@ module StartingBlocks
34
34
  when :yellow
35
35
  Blinky.new.light.building!
36
36
  end
37
+ rescue
37
38
  end
38
39
  end
39
40
  end
40
41
  end
41
42
 
42
43
  at_exit do
43
- Blinky.new.light.off!
44
+ begin
45
+ Blinky.new.light.off!
46
+ rescue
47
+ end
44
48
  end
@@ -1,3 +1,3 @@
1
1
  module StartingBlocks
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
@@ -10,7 +10,7 @@ module StartingBlocks
10
10
  location = dir.getwd
11
11
  all_files = Dir['**/*']
12
12
  puts "Listening to: #{location}"
13
- Listen.to!(location) do |modified, added, removed|
13
+ Listen.to!(location, latency: 0.1) do |modified, added, removed|
14
14
  if modified.count > 0
15
15
  StartingBlocks::Watcher.run_it modified[0], all_files, options
16
16
  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.14
4
+ version: 0.0.15
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: -2284610859489121874
167
+ hash: 3627105784094794432
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: -2284610859489121874
176
+ hash: 3627105784094794432
177
177
  requirements: []
178
178
  rubyforge_project:
179
179
  rubygems_version: 1.8.24