guard-rake 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .rvmrc
2
2
  pkg
3
3
  Gemfile.lock
4
+ .idea
@@ -54,14 +54,23 @@ module Guard
54
54
  UI.info "running #{@task}"
55
55
  ::Rake::Task.tasks.each { |t| t.reenable }
56
56
  ::Rake::Task[@task].invoke(*@options[:task_args], paths)
57
+
58
+ Notifier.notify(
59
+ "watched files: #{paths}",
60
+ :title => "running rake task: #{@task}",
61
+ :image => :success
62
+ )
57
63
  rescue Exception => e
58
64
  UI.error "#{self.class.name} failed to run rake task <#{@task}>, exception was:\n\t#{e.class}: #{e.message}"
59
65
  UI.debug "\n#{e.backtrace.join("\n")}"
60
66
 
67
+ Notifier.notify(
68
+ " #{e.class}: #{e.message}", :title => "fail to run rake task: #{@task}", :image => :failed)
61
69
  throw :task_has_failed
62
70
  end
63
71
 
64
72
  def load_rakefile
73
+ ARGV.clear
65
74
  ::Rake.application.init
66
75
  ::Rake.application.load_rakefile
67
76
  self.class.rakefile_loaded = true
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RakeVersion
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-29 00:00:00.000000000 Z
12
+ date: 2013-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard