ruby-on-rails-3guardgrowlgrowlnotify

Unable to run growl notifications and gem growl_notify throws errors


I am unable to get growl notifications when i run $guard Do i need any particular version for growl_notify?

Growl version = 1.2

Here is my gem file.

gem 'rails', '3.1.3'


gem 'sqlite3'


group :development, :test do
  gem 'rspec-rails'
  gem 'capybara', :git => 'git://github.com/jnicklas/capybara.git'
  gem 'launchy'
  gem 'database_cleaner'
  gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
  gem 'guard-rspec'
  gem 'guard-livereload'
end

gem 'growl'

group :test do
gem 'guard-spork'
end

Error message when i install/ pub growl_notify in gemfile

JP:guard2 jayparteek$ guard
/Users/jayparteek/.rvm/gems/ruby-1.9.2-head@guard2/gems/rb-appscript-0.6.1/lib/appscript.rb:542:in `_send_command': CommandError (Appscript::CommandError)
        OSERROR: -10000
        MESSAGE: Apple event handler failed.
        COMMAND: app("/Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app").register({:all_notifications=>["success", "pending", "failed", "notify"], :as_application=>"Guard", :default_notifications=>"notify"})
    from /Users/jayparteek/.rvm/gems/ruby-1.9.2-head@guard2/gems/rb-appscript-0.6.1/lib/appscript.rb:642:in `method_missing'

Solution

  • Should use following gemfile, with rails 3.1.3 & Growl ver 1.3.1

    gem 'rails', '3.1.3'
    
    
    gem 'sqlite3'
    
    
    group :development, :test do
      gem 'rspec-rails'
      gem 'capybara', :git => 'git://github.com/jnicklas/capybara.git'
      gem 'launchy'
      gem 'database_cleaner'
      gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
      gem 'guard-rspec'
    # gem 'guard-livereload'
    end
    
    group :test do
    gem 'guard-spork'
    gem 'ruby_gntp'
    end
    
    # Gems used only for assets and not required
    # in production environments by default.
    group :assets do
      gem 'sass-rails',   '~> 3.1.5'
      gem 'coffee-rails', '~> 3.1.1'
      gem 'uglifier', '>= 1.0.3'
    end
    
    gem 'jquery-rails'
    
    # To use ActiveModel has_secure_password
    # gem 'bcrypt-ruby', '~> 3.0.0'
    
    # Use unicorn as the web server
    # gem 'unicorn'
    
    # Deploy with Capistrano
    # gem 'capistrano'
    
    # To use debugger
    # gem 'ruby-debug19', :require => 'ruby-debug'