rake-tilde 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/rake/tilde.rb +13 -4
- data/lib/rake/tilde/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b2057bf31a1836e294df47b8319be4313e19dcf
|
4
|
+
data.tar.gz: 56a4e90fe86efe309d745b95cc57ab29514fb58f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1291145a71a60ec1702691a0b360c94448e841945b74e7c2c6ff83cd53f56945b67aabca93fb44cb07b78ef122813c73ce58965dda0b40f661f9396e89f6e210
|
7
|
+
data.tar.gz: 91afb4773c5b910f3ef5422b405d59b382c7ff7ab4a6faf8ba62c7bb65c1b0322784a356d33076afbe32bd72b51acbb8ba7ec5fb2716eb51ea6487430d98171f
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Rake::Tilde
|
2
2
|
|
3
|
-
Run rake tasks when files change. No changes necessary to your Rakefile
|
3
|
+
Run rake tasks when files change. No changes necessary to your Rakefile,
|
4
|
+
just prepend your task name with ~ like: `$ rake ~build`
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
@@ -45,7 +46,7 @@ $ rake ~woo
|
|
45
46
|
|
46
47
|
## Contributing
|
47
48
|
|
48
|
-
1. Fork it ( https://github.com/
|
49
|
+
1. Fork it ( https://github.com/myobie/rake-tilde/fork )
|
49
50
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
50
51
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
51
52
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/rake/tilde.rb
CHANGED
@@ -33,12 +33,21 @@ module Rake
|
|
33
33
|
opts = listen_path.fetch(:opts) {{}}
|
34
34
|
blk = listen_path[:blk]
|
35
35
|
|
36
|
-
|
36
|
+
begin
|
37
|
+
task.invoke
|
38
|
+
rescue
|
39
|
+
$stderr.puts "Task failed to run successfully"
|
40
|
+
end
|
37
41
|
|
38
42
|
listener = Listen.to(paths, opts) do |modified, added, removed|
|
39
|
-
|
40
|
-
|
41
|
-
|
43
|
+
$stdout.puts "** File system changed"
|
44
|
+
begin
|
45
|
+
Rake::Task.tasks.each { |t| t.reenable }
|
46
|
+
task.invoke
|
47
|
+
blk.call(modified, added, removed) if blk
|
48
|
+
rescue
|
49
|
+
$stderr.puts "Task failed to run successfully"
|
50
|
+
end
|
42
51
|
end
|
43
52
|
|
44
53
|
listeners.push listener
|
data/lib/rake/tilde/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-tilde
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- myobie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09
|
11
|
+
date: 2014-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|