alloy-kicker 0.1.0 → 0.1.1
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/README.rdoc +4 -0
- data/VERSION.yml +1 -1
- data/bin/kicker +6 -1
- data/kicker.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -13,6 +13,10 @@ Run a Rake task whenever a given file is changed:
|
|
13
13
|
|
14
14
|
$ kicker guides/source/nested_model_forms.textile "ONLY=nested_model_forms rake guides && open -a Safari guides/output/nested_model_forms.html"
|
15
15
|
|
16
|
+
== Installation
|
17
|
+
|
18
|
+
$ sudo gem install alloy-kicker -s http://gems.github.com
|
19
|
+
|
16
20
|
== Tests??
|
17
21
|
|
18
22
|
For now it's just a very simple bin script which uses the FSEvents abstraction
|
data/VERSION.yml
CHANGED
data/bin/kicker
CHANGED
@@ -19,10 +19,15 @@ file, path = path, File.dirname(path) unless File.directory?(path)
|
|
19
19
|
|
20
20
|
puts "Watching for changes on `#{file || path}'"
|
21
21
|
|
22
|
-
Rucola::FSEvents.start_watching(path) do |events|
|
22
|
+
stream = Rucola::FSEvents.start_watching(path) do |events|
|
23
23
|
unless file && !events.find { |e| e.last_modified_file == file }
|
24
24
|
system command
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
trap("INT") do
|
29
|
+
stream.stop
|
30
|
+
exit
|
31
|
+
end
|
32
|
+
|
28
33
|
OSX::NSApplication.sharedApplication.run
|
data/kicker.gemspec
CHANGED