rake-tilde 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c486b6a72945cd8bf841cb0bc289df3e572f6da2
4
- data.tar.gz: ee6a6ab24df82cd7834134aca53dd3b879866c28
3
+ metadata.gz: 0b2057bf31a1836e294df47b8319be4313e19dcf
4
+ data.tar.gz: 56a4e90fe86efe309d745b95cc57ab29514fb58f
5
5
  SHA512:
6
- metadata.gz: 6465d60c0fa076a6997156b403e423857b060f190c1212ac6533215d0fcd09174230b67f5d674903396893dd5a31357e8e17f7bab5ce61730e6640dedc9f75b2
7
- data.tar.gz: 34646ef8727337eef5e7af53f368b6d89cd1033944955cc2e95e254f9db8846d0a183eb8df6e8ae977f9cf72f492fc6a310a99f173397a2022fa6ce9dbab5432
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/[my-github-username]/rake-tilde/fork )
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`)
@@ -33,12 +33,21 @@ module Rake
33
33
  opts = listen_path.fetch(:opts) {{}}
34
34
  blk = listen_path[:blk]
35
35
 
36
- task.invoke
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
- Rake::Task.tasks.each { |t| t.reenable }
40
- task.invoke
41
- blk.call(modified, added, removed) if blk
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
@@ -1,5 +1,5 @@
1
1
  module Rake
2
2
  module Tilde
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler