fnando/notifier

uninitialized constant Notifier

Closed this issue · 2 comments

After installing notifier (0.1.1) using gem install notifier, I gave it a spin in irb:

~/sandbox/notifier$ irb
>> require 'notifier'
NameError: uninitialized constant Notifier
    from ./notifier.rb:4
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
    from (irb):2

Did you load Rubygems? Try something like irb -rubygems, then require notifier. You can even run irb -rubygems -r notifier

Rubygems is in my RUBYOPT, so that wasn't the problem. I must be going crazy, because it just started working by starting irb and requiring Notifier like I showed above. I have no clue why it went wrong in the first place.

I'll let you know when I run into this one again. Thanks. :)