bundle gem
works according to the Rubygems convention for naming gems, as described at http://guides.rubygems.org/name-your-gem/
Note that if you include gem 'pry-name'
in the Gemfile
of a project that uses Bundler.require
, it will use the convention there by default, too, and try to require 'pry/name'
.
The best workaround is to create a lib/pry-name.rb
file that just contains require 'pry/name'
. This keeps your directory structure consistent with the Rubygems & Bundler convention, allowing require 'pry/name'
to work, while also allowing require 'pry-name'
to work.