-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ruby_gntp connection failure #395
Comments
I do not have Growl version 1.4 available, because I've bought version 2.0.1 in the App store. The following snippet works fine and it uses the default GNTP options: require 'ruby_gntp'
gntp = ::GNTP.new('Guard', '127.0.0.1', '', 23053)
gntp.register({
:app_icon => File.expand_path(File.join('images', 'guard.png')),
:notifications => [
{ :name => 'notify', :enabled => true },
{ :name => 'failed', :enabled => true },
{ :name => 'pending', :enabled => true },
{ :name => 'success', :enabled => true }
]
})
gntp.notify(:name => 'success', :title => 'Guard test', :text => 'This is a test') Can you verify Growl listens on the same port? |
That code works great on Growl 1.4. Do I need to add some setup to my Guardfile corresponding to the following? gntp = ::GNTP.new('Guard', '127.0.0.1', '', 23053)
gntp.register({
:app_icon => File.expand_path(File.join('images', 'guard.png')),
:notifications => [
{ :name => 'notify', :enabled => true },
{ :name => 'failed', :enabled => true },
{ :name => 'pending', :enabled => true },
{ :name => 'success', :enabled => true }
]
}) |
Strange, that code is basically a slightly modified version of the ::Guard::Notifiers::GNTP#notify method. I'm not aware of any setup needed, the parameters used are the default ones. |
@jamesarosen Did you solve the GNTP problem? |
No, I switched to one of the other Growl gems. |
Ok, that's also a solution :P I'm closing this then, since I'm not able to reproduce it. |
Hi! I have same problem. I try send notification on local machine from remote server. Ubuntu 13.04 The example using gntp above work fine on local machine, but I use remote forward in ssh
It seems to me where I was wrong :) Thanks! |
@maksimr this looks like a Ruby GNTP issue, not much we can do from our side. |
Thanks! P.S. P.P.S Problem in growl for linux mattn/growl-for-linux#39 |
I get "Error sending notification with gntp: Register failed" on every Guard run.
When I go through the examples in the ruby_gntp README, the notifications work fine. Growl is running and the network tab on its preference pane shows that it is listening for incoming network notifications.
The text was updated successfully, but these errors were encountered: