From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 0E86B1F453 for ; Thu, 31 Jan 2019 06:13:47 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 9947D121F3B; Thu, 31 Jan 2019 15:13:43 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 0DBE1121F3A for ; Thu, 31 Jan 2019 15:13:40 +0900 (JST) Received: by filter0043p3las1.sendgrid.net with SMTP id filter0043p3las1-18930-5C529212-2D 2019-01-31 06:13:38.88922528 +0000 UTC m=+38149.187471836 Received: from herokuapp.com (ec2-54-164-89-245.compute-1.amazonaws.com [54.164.89.245]) by ismtpd0050p1iad1.sendgrid.net (SG) with ESMTP id BpHS5NO2TAeXSXyE_k-ZKQ for ; Thu, 31 Jan 2019 06:13:38.803 +0000 (UTC) Date: Thu, 31 Jan 2019 06:13:40 +0000 (UTC) From: hsbt@ruby-lang.org To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 66804 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15469 X-Redmine-Issue-Author: watson1978 X-Redmine-Issue-Assignee: hsbt X-Redmine-Sender: hsbt X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS49Mo+uUtZpVQqMzXUduOdK0UkmfQh6qqzeds +Ylocb51Dz5Z+0kkkGA2djzfsxs02Ct+oB3HwCVMMHwFYowyNOFcYIjSiZgtN0cIfJi717XSklprJh 9jt+xuw6CVKHzyKsJx7U+3ypLGzyxmjBIg5soZviQu8/b2GruSS0MDR2Ig== X-ML-Name: ruby-core X-Mail-Count: 91351 Subject: [ruby-core:91351] [Ruby trunk Bug#15469] Ruby2.6 included `bundler` does not handle specified `csv` gem. X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #15469 has been updated by hsbt (Hiroshi SHIBATA). @watson1978 Can you try this with Ruby 2.6.1? r66867 fixed this issue maybe. ---------------------------------------- Bug #15469: Ruby2.6 included `bundler` does not handle specified `csv` gem. https://bugs.ruby-lang.org/issues/15469#change-76603 * 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/