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

enable to load gem with dashes #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryu-sato
Copy link

@ryu-sato ryu-sato commented Mar 21, 2020

Closes #9
This PR resolve the issue.

RequireReloader.require method work like to follow.

When a gem with dashes is specified to watch...

  1. At first try require a ruby file whose name is same as gem's name
  2. If file is not found, then try require one that is replaced dash with a slash
  3. If it is still not found, an error will occur

This feature is same as Bundler.require.
https://github.com/rubygems/rubygems/blob/a753447de8fb92dad30e927656984aa2b7765f3d/bundler/lib/bundler/runtime.rb#L54-L96

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.

Can't load local gems with dashes
1 participant