无法运行咆哮通知,gem Growl_notify 会抛出错误

发布于 2024-12-22 20:53:21 字数 1197 浏览 3 评论 0原文

当我运行 $guard 时,我无法收到咆哮通知 我需要growl_notify 的任何特定版本吗?

Growl 版本 = 1.2

这是我的 gem 文件。

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

当我在 gemfile 中安装/ pub Growl_notify 时出现错误消息

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'

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'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

离笑几人歌 2024-12-29 20:53:21

确保您正在运行 Growl 1.3.xx
在您的 Gemfile 中删除 gem 'growl' 并在您的 :test 组中添加 gem 'ruby_gntp' 然后运行

$ gem uninstall growl_notify
$ bundle install

Make sure you are running Growl 1.3.xx
In your Gemfile remove gem 'growl' and in your :test group add gem 'ruby_gntp' then run

$ gem uninstall growl_notify
$ bundle install
财迷小姐 2024-12-29 20:53:21

应该使用以下 gemfile,以及 Rails 3.1.3 &咆哮版本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'

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'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文