Skip to content

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