ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: hsbt@ruby-lang.org
To: ruby-core@ruby-lang.org
Subject: [ruby-core:91407] [Ruby trunk Bug#15469] Ruby2.6 included `bundler` does not handle specified `csv` gem.
Date: Tue, 05 Feb 2019 06:22:14 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-76665.20190205062212.4d2a5cb91356e531@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-15469.20181227140312@ruby-lang.org

Issue #15469 has been updated by hsbt (Hiroshi SHIBATA).

File r15469-bundler-final.patch added

I attached the patch of the upstream fixes.

The bundler team will ship Bundler 1.7.4/2.0.2 with this patch.

----------------------------------------
Bug #15469: Ruby2.6 included `bundler` does not handle specified `csv` gem.
https://bugs.ruby-lang.org/issues/15469#change-76665

* Author: watson1978 (Shizuo Fujita)
* Status: Closed
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
* ruby -v: 
* Backport: 2.4: DONTNEED, 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
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"
```

---Files--------------------------------
15469-bundler-loadpath.patch (528 Bytes)
r15469-bundler-final.patch (1.69 KB)


-- 
https://bugs.ruby-lang.org/

  parent reply	other threads:[~2019-02-05  6:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-15469.20181227140312@ruby-lang.org>
2018-12-27 14:03 ` [ruby-core:90742] [Ruby trunk Bug#15469] Ruby2.6 included `bundler` does not handle specified `csv` gem watson1978
2018-12-28  1:18 ` [ruby-core:90760] [Ruby trunk Bug#15469][Assigned] " hsbt
2018-12-28  3:31 ` [ruby-core:90762] [Ruby trunk Bug#15469] " watson1978
2019-01-19  5:50 ` [ruby-core:91170] " tad.a.digger
2019-01-23 14:46 ` [ruby-core:91231] " aeroastro007
2019-01-23 22:31 ` [ruby-core:91237] " eregontp
2019-01-31  6:13 ` [ruby-core:91351] " hsbt
2019-01-31  9:45 ` [ruby-core:91353] " watson1978
2019-02-02  8:31 ` [ruby-core:91384] " hsbt
2019-02-02  9:54 ` [ruby-core:91385] " watson1978
2019-02-04 15:38 ` [ruby-core:91393] " aeroastro007
2019-02-05  6:22 ` hsbt [this message]
2019-03-06  7:47 ` [ruby-core:91694] " naruse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-76665.20190205062212.4d2a5cb91356e531@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).