You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has nothing to to with Guard, the problem is (as the error message says), that with Ruby 1.8.7 the Find.find method must take a block. Only newer Rubies returns an enumerator:
$ rvm use ruby-1.9.3-p194
$ pry
[1] pry(main)> require 'find'
=>true
[2] pry(main)> Find.find(Dir.pwd)
=>#<Enumerator: ...>
[3] pry(main)> ^D
$ rvm use ruby-1.8.7-p358
$ pry
[1] pry(main)> require 'find'
=>true
[2] pry(main)> Find.find(Dir.pwd)
LocalJumpError: no block given
from /Users/michi/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/find.rb:39:in `find'[3] pry(main)> ^D
So either use to a newer Ruby version or rewrite the Guard condition.
Everything appears to be running fine but I am getting an annoying error (https://gist.github.com/3661622).
Any ideas?
Guardfile is this - https://gist.github.com/3661100#file_gistfile1.rb
The text was updated successfully, but these errors were encountered: