Rails 3.2 GNTP does not send notifications

I am using Rails 3.2.2 and trying to use the stone ruby_gntpto send Growl notifications from Guard.

I'm on Snow Lepoard using Growl 1.2.2.

Here is my gem file.

source 'https://rubygems.org'

gem 'rails', '3.2.2'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

group :assets do
  gem 'coffee-rails'
  gem 'uglifier'
end

gem 'jquery-rails'

group :development, :test do
  gem 'capybara'
  gem 'rspec-rails'
  gem 'guard-rspec'
  gem 'rb-fsevent'
  gem 'ruby_gntp'
end

# Gems used only for assets and not required
# in production environments by default.
# 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'

When I start Guard with the command bundle exec guard. I get the following ...

Running all specs
No examples found.


Finished in 0.00005 seconds
0 examples, 0 failures
ERROR: Error sending notification with gntp: Connection refused - connect(2)

I did some research and read that it might be a version error with the previous nails that I installed. I removed these gems, but still get an error.

Edit: it turned out that it works :) Just changed ruby_gntpfor the gem growlin my gem file.

Now my gemfile is reading.

source 'https://rubygems.org'

gem 'rails', '3.2.2'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

group :assets do
  gem 'coffee-rails'
  gem 'uglifier'
end

gem 'jquery-rails'

group :development, :test do
  gem 'capybara'
  gem 'rspec-rails'
  gem 'guard-rspec'
  gem 'rb-fsevent'
  gem "growl", :git => "https://github.com/visionmedia/growl.git"
end

# Gems used only for assets and not required
# in production environments by default.
# 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'
+3
source share
3 answers

Guard README , Ruby GNTP 1.3 Growl. Growl , Growl.

+2

OS X 10.8. Mac OS X 10.8 + Grows gemfile:

group :development, :test do
  gem 'rb-fsevent'
  gem 'guard-rspec'                                                                       
  gem 'ruby_gntp'
end

Growl.

gem terminal-notifier-guard. Mac.

+2

I had the same error after updating Growl through the Mac App Store.

I solved the problem by reinstalling growlnotify from Extras/growlnotify/growlnotify.pkgin Growl 1.2.2. disk image (which is listed on the download page ).

0
source

All Articles