Bug #18400
Updated by chooosen (Piotr Wasiak) almost 3 years ago
## Description If I run `ruby script.rb` with `require 'prime'` then it will work fine. But after entering irb, I can `require 'net/http'` , but with **prime** I get following error. Problem occurs with: > The following default gems are now bundled gems. > net-ftp > net-imap > net-pop > net-smtp > matrix > prime # How to reproduce Install ruby 2.3.0.preview1 ``` ruby > bundle -v Bundler version 2.3.0.dev > bundle exec irb irb(main):001:0> require 'prime' ``` The same was on bundler 2.2.33 # Expected result prime bundled with ruby gem is loaded. ```ruby true ``` # Actual resultĀ¶ ```ruby (irb):1:in `require': cannot load such file -- prime (LoadError) from (irb):1:in `<main>' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/gems/3.1.0/gems/irb-1.3.8.pre.11/exe/irb:11:in `<top (required)>' from /Users/user/.rbenv/versions/3.1.0-preview1/bin/irb:25:in `load' from /Users/user/.rbenv/versions/3.1.0-preview1/bin/irb:25:in `<top (required)>' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `load' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `kernel_load' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/cli/exec.rb:23:in `run' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/cli.rb:478:in `exec' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/cli.rb:25:in `start' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/gems/3.1.0/gems/bundler-2.3.0.dev/libexec/bundle:49:in `block in <top (required)>' from /Users/user/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in `with_friendly_errors' ... 3 levels... ```