I am trying to build a Ruby pearl using the instructions at http://guides.rubygems.org/make-your-own-gem/ . Everything seems to be working fine and a * .gem file is being created.
gem build mygem.gemspec
The following also seems successful (only if it is preceded by sudo ):
sudo gem install mygem-0.0.1.gem
However, when I try to require 'mygem' inside irb, I get the following error:
LoadError: cannot load such file
I saw similar errors around Stackoverflow, but could not figure out what was going on in my specific situation. I can use other gems (not mine) without problems. My gem appears on the output of the gem list , but it will not load with demand.
FWIW I am using rbenv, completely new to me.
Here is the result of gem env :
Gemspec:
Gem::Specification.new do |spec| spec.name = 'mygem' spec.version = '0.0.1' spec.date = '2015-01-05' spec.summary = "mygem" spec.description = "Attempting to build a gem" spec.authors = ["speersj"] spec.email =
ruby gem
speersj
source share