Skip to content

Instantly share code, notes, and snippets.

@lgs
Created January 14, 2009 23:01
Show Gist options
  • Save lgs/47144 to your computer and use it in GitHub Desktop.
Save lgs/47144 to your computer and use it in GitHub Desktop.
I was trying your last commit (5937110dfc19ee3775f22a66fddfb9ae686cc829) while I got
"NameError: uninitialized constant Scrubyt::Extractor::EventDispatcher" after gemification :
[~]# irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'mechanize'
=> true
irb(main):003:0> require 'hpricot'
=> true
irb(main):004:0> require 'scrubyt'
NameError: uninitialized constant Scrubyt::EventDispatcher
from /home/useraxis/.gems/gems/scrubyt-0.4.12/lib/scrubyt/extractor.rb:6
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/useraxis/.gems/gems/scrubyt-0.4.12/lib/scrubyt.rb:2
from /home/useraxis/.gems/gems/scrubyt-0.4.12/lib/scrubyt.rb:2:in `each'
from /home/useraxis/.gems/gems/scrubyt-0.4.12/lib/scrubyt.rb:2
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from (irb):4
irb(main):005:0>
------------- here is my paths + gem pkg :
[~/.gems/gems/scrubyt]# find ../scrubyt -exec grep "EventDispatcher" {} \; -print
include Scrubyt::EventDispatcher
../scrubyt/lib/scrubyt/extractor.rb
module EventDispatcher
../scrubyt/lib/scrubyt/event_dispatcher.rb
include Scrubyt::EventDispatcher
../scrubyt/pkg/scrubyt-0.4.12/lib/scrubyt/extractor.rb
module EventDispatcher
../scrubyt/pkg/scrubyt-0.4.12/lib/scrubyt/event_dispatcher.rb
[email protected] [~/.gems/gems/scrubyt]#
the last commit supposed to work as a gem on my local env,
was [89c37161810117b98d71254adbd123f610a56fe9 "More refactoring for legibility"]
... but I'm not secure.
Any idea ?
bye Luca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment