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

Adding support for require_relative #1183

Closed
wants to merge 1 commit into from

Conversation

steveklabnik
Copy link
Member

This is based on my require_relative gem for MRI. Passes
all of the RubySpec specs.

@steveklabnik
Copy link
Member Author

After talking with @brixen on irc, I'm going to change this to be a bit more performant. @evan told me the right way to do it, I just derped.

@evanphx
Copy link
Member

evanphx commented Oct 4, 2011

This is based on my require_relative gem for MRI. Passes
all of the RubySpec specs.
@steveklabnik
Copy link
Member Author

I derped, but I fixed it. New pull request incoming in seconds.

@steveklabnik
Copy link
Member Author

#1184

@@ -11,9 +11,18 @@ module Rubinius
return path if loadable? path
end

return name if loading and loadable? "./#{name}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this right? it seemed right to me, but I'm not sure if I should have removed it, now that I'm looking at this diff.

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

Successfully merging this pull request may close these issues.

None yet

3 participants