Closed dmytro-sokolianskyi closed 4 years ago
Hei @dmitriy-sokolyanskiy!
I think the problem is that by using ruby runner.rb
you're not telling ruby
anywhere to use bundler to setup the dependencies. What you're doing manually inside irb
is what bundler/setup
does.
So either bundle exec ruby runner.rb
or ruby -rbundler/setup runner.rb
should get you back on track.
Let me know if that works for you, and please close the ticket if that's the case :)
Hello, @deivid-rodriguez Great. Thanks a lot. Sorry for the false issue.
No problem!
Ubuntu 18 Ruby 2.6.3 $gem -v 2.7.6 bundler -v 2.1.4 Installed using "gem install bundler"
When running "bundle install" in a Ruby project: path from gem which hosting on Github has been added to $LOAD_PATH but then when I open $LOAD_PATH over irb , this path is absent there. And when I try to run app that use this gem it throws an error: LoadError: cannot load such file --
I prepare the examples:
"exam" gem on github - https://github.com/dmitriy-sokolyanskiy/exam
"check" app that use the gem above - https://github.com/dmitriy-sokolyanskiy/check
my@pc:/check$
bundle install / updatemy@pc:/check$
bundle info exam my@pc:/check$ ruby runner.rbgem which exam
ERROR: Can't find Ruby library file or shared library exam
In irb:
gem env RubyGems Environment: