netzpirat/guard-jasmine — Issue #23: to_version method undefined?
Author: amchang
Created: 2012-01-06 08:59:32+00:00
State: open

Hey there,

I've been having a tough time setting up guard-jasmine for the first time, and i just noticed this while running it today.

$ bundle exec guard --debug
Please install rb-fsevent gem for Mac OSX FSEvents support
Using polling (Please help us to support your system better than that).
Please install growl_notify or growl gem for Mac OS X notification support and add it to your Gemfile
Guard is now watching at '...www_rails'
Guard::RSpec is running, with RSpec 2!
Bundle already up-to-date
ERROR: Guard::Jasmine failed to achieve its , exception was:
NoMethodError: undefined method `to_version' for "1.4.1\n":String
/guard-jasmine-0.9.2/lib/guard/jasmine.rb:185:in `phantomjs_bin_valid?'
/guard-jasmine-0.9.2/lib/guard/jasmine.rb:76:in `start'
/guard-0.8.4/lib/guard.rb:276:in `block in run_supervised_task'
/guard-0.8.4/lib/guard.rb:274:in `catch'
/guard-0.8.4/lib/guard.rb:274:in `run_supervised_task'
/guard-0.8.4/lib/guard.rb:207:in `block (3 levels) in run_guard_task'
/guard-0.8.4/lib/guard.rb:203:in `each'
/guard-0.8.4/lib/guard.rb:203:in `block (2 levels) in run_guard_task'
/guard-0.8.4/lib/guard.rb:202:in `catch'
/guard-0.8.4/lib/guard.rb:202:in `block in run_guard_task'
/guard-0.8.4/lib/guard.rb:201:in `each'
/guard-0.8.4/lib/guard.rb:201:in `run_guard_task'
/guard-0.8.4/lib/guard.rb:119:in `start'
/guard-0.8.4/lib/guard/cli.rb:61:in `start'
/thor-0.14.6/lib/thor/task.rb:22:in `run'
/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
/thor-0.14.6/lib/thor.rb:263:in `dispatch'
/thor-0.14.6/lib/thor/base.rb:389:in `start'
/guard-0.8.4/bin/guard:6:in `'
/bin/guard:19:in `load'
/bin/guard:19:in `

'

Is there something I am missing?

In my bundle file, i am doing
gem 'jasmine'
gem 'guard-jasmine'

I am following the rails 3 installation method, with ruby 1.9.3p0.

Thanks for any help, I really would like to give what you've built a shot only if I could get it working!