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

ext/nokogiri load order #61

Closed
adwell opened this issue Dec 2, 2011 · 1 comment
Closed

ext/nokogiri load order #61

adwell opened this issue Dec 2, 2011 · 1 comment

Comments

@adwell
Copy link

adwell commented Dec 2, 2011

Thanks for all your hard work on the recent release! I'm trying out 1.0.1.

All is well except for one minor issue... I love awesome_print so much that I generally load it first. My .irbrc loads it early. My rails app.rb loads it early. My standalone script helper loads it nearly on the first line.

Unfortunately, this prevents ext/nokogiri from loading. This works:

require "nokogiri"
require "awesome_print"

and this doesn't:

require "awesome_print"
require "nokogiri"

I'm worried that a lot of folks will never even discover the nokogiri extension. I don't have an obvious fix offhand, unfortunately.

@michaeldv
Copy link
Collaborator

How about defining Nokogiri in your ~/.irbrc before loading ap:

module Nokogiri
end
require "awesome_print"

HTH.

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

No branches or pull requests

2 participants