我使用Rails 3.2.2並試圖使用ruby_gntp
gem發送來自Guard的Growl通知。Rails 3.2 GNTP不發送通知
我在Snow Lepoard上,所以使用Growl 1.2.2。
這是我的寶石文件。
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'
當我使用bundle exec guard
命令運行Guard時。我收到以下...
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)
我做了一些研究,並發現它可能是我以前安裝的咆哮寶石的版本錯誤。我已經刪除了這些寶石,但仍然收到錯誤。
編輯:得到它的工作:)只需更改ruby_gntp
爲我的寶石文件中的growl
寶石。
我的Gemfile現在讀..
源 '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'