From: watson1978@... Date: 2019-01-31T09:45:01+00:00 Subject: [ruby-core:91353] [Ruby trunk Bug#15469] Ruby2.6 included `bundler` does not handle specified `csv` gem. Issue #15469 has been updated by watson1978 (Shizuo Fujita). hsbt (Hiroshi SHIBATA) wrote: > @watson1978 > > Can you try this with Ruby 2.6.1? r66867 fixed this issue maybe. Thank you for your working. I re-tried the test code in description, However, there is not difference for me.... ``` $ bundle install Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Using bundler 1.17.2 Fetching rubyzip 1.2.2 Fetching csv 1.0.0 Fetching mini_portile2 2.4.0 Installing csv 1.0.0 Installing mini_portile2 2.4.0 Installing rubyzip 1.2.2 Fetching nokogiri 1.10.1 Installing nokogiri 1.10.1 with native extensions Fetching roo 2.8.1 Installing roo 2.8.1 Bundle complete! 2 Gemfile dependencies, 6 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. $ bundle exec ruby -v test.rb ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin18] "3.0.4" ``` ---------------------------------------- Bug #15469: Ruby2.6 included `bundler` does not handle specified `csv` gem. https://bugs.ruby-lang.org/issues/15469#change-76605 * Author: watson1978 (Shizuo Fujita) * Status: Assigned * Priority: Normal * Assignee: hsbt (Hiroshi SHIBATA) * Target version: * ruby -v: * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- I want to use `csv` library which is same version of Ruby 2.5. Because Ruby 2.6's csv library has some breaking changes and they break our product. However, Ruby 2.6's `bundler` does not handle `csv` which I specified the version. ## Test code * Gemfile ``` source "https://rubygems.org" gem 'roo' gem 'csv', '1.0.0' ``` * test.rb ``` require "bundler/setup" require "csv" p CSV::VERSION ``` ## Result ``` $ bundle exec ruby -v test.rb ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18] "3.0.2" ``` `CSV::VERSION` shows `3.0.2` and it indicates that Ruby 2.6 included `csv` library was used. ## Workaround If I install the `bundler` gem through `gem install bundler`, it works well. ``` $ gem install bundler Fetching bundler-1.17.3.gem Successfully installed bundler-1.17.3 1 gem installed $ bundle exec ruby -v test.rb ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18] "2.4.8" ``` -- https://bugs.ruby-lang.org/ Unsubscribe: