如何停止重复通知同一通知?
这是一款搭载 Lion OS(版本 10.7.2)的新 MacBook。我已经用我的 Rails 应用程序配置了它。
我打开了几个正在运行的选项卡,rails 应用程序,spark,autotest -f,rails 服务器
以下是 .autotest 文件的内容
require 'autotest/growl'
Autotest::Growl::image_dir = 'ampelmaennchen'
Autotest::Growl::one_notification_per_run = true
Autotest::Growl::custom_options = '-w'
一切正常,但当我运行自动测试时,相同的通知不断弹出。
注意:我注释掉了 .autotest 文件的内容 &新的咆哮声已经停止。 当我查看 autotest -f 终端时,它继续运行。所以真正的问题就在这里。
更改了 gem 文件
group :test do
gem 'rb-fsevent'
gem 'spork', '0.8.4'
gem 'guard'
gem 'guard-rspec'
gem 'guard-spork'
end
group :development, :test do
gem 'rspec-rails'
gem 'growl'
end
This is a new macbook with Lion OS (version 10.7.2). I have configured it with my rails application.
I have couple of tabs opened running, rails app, spark, autotest -f, rails server
Here are the contents of .autotest file
require 'autotest/growl'
Autotest::Growl::image_dir = 'ampelmaennchen'
Autotest::Growl::one_notification_per_run = true
Autotest::Growl::custom_options = '-w'
Everything works fine, but the same notification keep on popping, when i run auto test.
Note: I commented out contents of .autotest file & new growl has stopped.
When i look at the autotest -f terminal, It keeps on running. So here lies the real problem.
Changed gem file
group :test do
gem 'rb-fsevent'
gem 'spork', '0.8.4'
gem 'guard'
gem 'guard-rspec'
gem 'guard-spork'
end
group :development, :test do
gem 'rspec-rails'
gem 'growl'
end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Growl 正在做它要求做的事情。错误出在自动测试配置的某处。
自动测试会在固定的时间间隔后继续运行测试,因此它会推动咆哮以发出通知。
Growl is doing what its asked to do. The error lies somewhere with autotest configuration.
Autotest keep on running the tests after fixed intervals, so it pushes the growl to issue notifications.