我正在使用 Rails 3.2.2 并尝试使用ruby_gntp
gem 从 Guard 发送 Growl 通知。
我在 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
gem文件中的gem。
我的 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'