Skip to content
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

url option not working #4

Open
hkf opened this issue Jan 17, 2014 · 2 comments
Open

url option not working #4

hkf opened this issue Jan 17, 2014 · 2 comments

Comments

@hkf
Copy link

hkf commented Jan 17, 2014

Below is an example and the corresponding stack.

[14] pry(main)> Growl.notify 'App icon', :icon => :jpeg, url: 'http://google.com'
NoMethodError: undefined method `url=' for #<Growl::Base:0x007fb67a55eaa0 @args=[]>
from /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/growl-1.0.3/lib/growl/growl.rb:132:in `block in initialize'
[15] pry(main)> wtf?
Exception: NoMethodError: undefined method `url=' for  #<Growl::Base:0x007fb67a55eaa0 @args=[]>
--
0: /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/growl-1.0.3/lib/growl/growl.rb:132:in `block in initialize'
1: /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/growl-1.0.3/lib/growl/growl.rb:131:in `each'
2: /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/growl-1.0.3/lib/growl/growl.rb:131:in `initialize'
3: /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/growl-1.0.3/lib/growl/growl.rb:77:in `new'
4: /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/growl-1.0.3/lib/growl/growl.rb:77:in `new'
5: /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/growl-1.0.3/lib/growl/growl.rb:34:in `notify'
6: (pry):14:in `__pry__'
7: /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/pry-0.9.12.4/lib/pry/pry_instance.rb:328:in `eval'
8: /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/pry-0.9.12.4/lib/pry/pry_instance.rb:328:in `evaluate_ruby'
9: /Users/hkf1/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/pry-0.9.12.4/lib/pry/pry_instance.rb:278:in `re'
[16] pry(main)> 
@sr75
Copy link

sr75 commented Jun 3, 2014

Bump...

Getting the same error, on ruby 2.1.

Using the latest growlnotify:

growlnotify 2.1
Copyright (c) The Growl Project, 2004-2011
2.1.2 :001 > require 'growl'
 => true
2.1.2 :002 > n = Growl.new
 => #<Growl::Base:0x000001010708d0 @args=[]>
2.1.2 :003 > n.url
NoMethodError: undefined method `url' for #<Growl::Base:0x000001010708d0 @args=[]>
    from (irb):3
    from /Users/scott_rosenthal/.rvm/rubies/ruby-2.1.2/bin/irb:11:in `<main>'
2.1.2 :004 > n.methods

@afaur
Copy link
Contributor

afaur commented Dec 18, 2014

@hkf @scottvrosenthal
Looks like the version of the gem on rubygems is not the latest.
I pulled the latest changes from master and updated the tests to include the url option.
This feature is working in the latest version (1.0.4).

To get this to work for now you can add this to your gemfile:
gem 'growl', :git => 'git://github.com/tj/growl.git', branch: 'master'

That will allow you to use this feature until @tj has a chance to update the gem on rubygems.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants