load bug?

R

Roger Pack

require '../ext/rubyeventmachine'
=> true
hmm.
Typically this works. On my newest machine, however, it errs as above.
LoadError: no such file to load -- rubyeventmachine

It's trying to load the file that I just required one line above,
successfully.

I assume this is a bug?

Info:
the file it is trying to load is '../ext/rubyeventmachine.bundle'
If I copy that file to the local directory [or sym link it in] then=> true
loads like a charm.

Egh. Looks like an obscure bug to me. Might be OS X only, anyway.
-R
 
A

ara.t.howard

I assume this is a bug?

it's been a 'feature' up until 1.9, which fixes. this.

typically i'll write all my production code to use absolute require
paths. also, production libs can/should be protected via:


unless defined? MyCode

module MyCode

end

end

etc.

a @ http://codeforpeople.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,668
Latest member
SamiraShac

Latest Threads

Top