starting_blocks 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/starting_blocks/version.rb +1 -1
- data/lib/starting_blocks/watcher.rb +2 -1
- metadata +3 -3
@@ -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
|
+
listener = Listen.to(location) do |modified, added, removed|
|
14
14
|
if modified.count > 0
|
15
15
|
StartingBlocks::Watcher.run_it modified[0], all_files, options
|
16
16
|
end
|
@@ -21,6 +21,7 @@ module StartingBlocks
|
|
21
21
|
StartingBlocks::Watcher.delete_it removed[0], all_files, options
|
22
22
|
end
|
23
23
|
end
|
24
|
+
listener.listen!
|
24
25
|
end
|
25
26
|
|
26
27
|
def add_it(file_that_changed, all_files, options)
|
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.12
|
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: -
|
167
|
+
hash: -164735952624938207
|
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: -164735952624938207
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project:
|
179
179
|
rubygems_version: 1.8.24
|