Guard not detecting ruby_gntp #165

Closed
unikitty37 opened this Issue Oct 16, 2011 · 3 comments

Comments

Projects
None yet
3 participants

When I have ruby_gntp installed, and growl and growl_notify not installed, Guard produces the following message on startup:

Please install growl_notify or growl gem for Mac OS X notification support and add it to your Gemfile

Looking at the code, while the error message definitely needs ruby_gntp adding to it, Guard does appear to be checking for the presence of ruby_gntp, but not finding it.

I've already run bundle update; here's the relevant section of my Gemfile:

  gem 'guard', :git => 'git://github.com/guard/guard.git'
  gem 'guard-rspec'
  if RUBY_PLATFORM =~ /darwin/i then
    gem 'ruby_gntp'
    gem 'rb-fsevent'
  end

(I tried explicitly specifying the git version of guard in case the changes hadn't made it to the gem in the repository - the same thing happens without doing that.)

Thanks

Contributor

netzpirat commented Oct 16, 2011

Thanks for the hint that the error message is not including ruby_gntp.

Are you executing Guard with bundle exec? I use Guard form master branch with ruby_gntp without any problems. Another thing that comes me to mind is that RUBY_PLATFORM is returnbing java for JRuby. If you're using JRuby, you should use RbConfig::CONFIG['host_os'] =~ /darwin/i

Thanks - bundle exec guard has eliminated the message; I was just typing guard. So much for doing things the easy way :)

@unikitty37 unikitty37 closed this Oct 16, 2011

Owner

rymai commented Oct 16, 2011

Since you're using Guard from the master @ GitHub, you have to launch it with bundle exec. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment