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

Pry::MethodInfo.gem_root: return gem root instead of ruby root #19

Merged
merged 1 commit into from
Mar 8, 2014

Conversation

dgutov
Copy link
Contributor

@dgutov dgutov commented Mar 6, 2014

This seems to fix #16.

Still not ideal, though:

  • Scanning active_support for methods on Kernel seems bad.
  • If we don't find anything, we'll try again and again the next time. Luckily, Pry::MethodInfo.c_files_found?(path/to/active_support) is fast here. And returns false.
  • This still doesn't work with the Debian packaging structure (I just looked it up). But whatever, they brought it on themselves. (And gem_root won't be called in those cases anyway).

@dgutov
Copy link
Contributor Author

dgutov commented Mar 8, 2014

@kyrylo Could you merge this and cut a new release as soon as you have the time?

This fix is fairly important to my usage.

kyrylo added a commit that referenced this pull request Mar 8, 2014
Pry::MethodInfo.gem_root: return gem root instead of ruby root
@kyrylo kyrylo merged commit 7e1682c into pry:master Mar 8, 2014
@kyrylo
Copy link
Member

kyrylo commented Mar 8, 2014

Thanks!

@kyrylo
Copy link
Member

kyrylo commented Mar 8, 2014

Released v0.6.0.

@dgutov
Copy link
Contributor Author

dgutov commented Mar 8, 2014

Thank you.

@dgutov dgutov deleted the gem_root branch March 8, 2014 23:58
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.

"Scanning and caching *.c files..." for show-doc Kernel.is_a?
2 participants