rubyist / guard-rake

guard-rake runs a rake task when files change
MIT License
94 stars 32 forks source link

version 0.08+ breaks under ruby 1.8.7 #34

Open ianheggie opened 10 years ago

ianheggie commented 10 years ago

rake spec, script/server etc error out with versions 0.0.8 and 0.0.9:

rake aborted!
/home/ianh/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/guard-rake-0.0.8/lib/guard/rake.rb:56: syntax error, unexpected tIDENTIFIER, expecting tAMPER
      ::Rake::Task[@task].invoke(*@options[:task_args], paths)
                                                             ^
.../rails2.3.18app/config/boot.rb:123:in `load_gems'
.../rails2.3.18app/config/environment.rb:46
Tasks: TOP => spec => db:test:prepare => db:abort_if_pending_migrations => environment
(See full trace by running task with --trace)

Workaround is to lock version in gemfile:

gem "guard-rake", '0.0.7'
andres-k commented 10 years ago

Another workaround is to manually change ::Rake::Task[@task].invoke(*@options[:task_args], paths) to ::Rake::Task[@task].invoke(paths)

This should work for 0.0.9