Skip to content

Commit

Permalink
Update 'Building Ruby' docs with another fix for Bundler 2.0 (travis-…
Browse files Browse the repository at this point in the history
…ci#2613)

* Update 'Building Ruby' docs with another fix for Bundler 2.0

I discovered this was necessary after upgrading to Bundler 2.1.0 yesterday,
only for CI to break when 2.1.1 came out today.

See also: faker-ruby/faker#1867

* Apply suggestions from code review

Co-Authored-By: Petra <52408528+Pezi777@users.noreply.github.com>
  • Loading branch information
2 people authored and gitandhub1 committed Jun 5, 2020
1 parent 13145df commit 68b59c2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions user/languages/ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,26 @@ want to use Bundler 2.0, try one of the following solutions:
```
{: data-file=".travis.yml"}


* If you're using a version of Ruby lower than 2.6 and want to use Bundler 2.x,
make sure to upgrade to a newer version of RubyGems.
On the default version of RubyGems shipped with older versions of Ruby, the
Bundler version in `Gemfile.lock` must match exactly the version being used,
or it will error.
It's fixed in more recent RubyGems releases.

```yaml
before_install:
- yes | gem update --system --force`
- gem install bundler
```
{: data-file=".travis.yml"}
It's necessary to pipe `yes` into the `gem update --system` command because
of a separate issue involving older versions of RubyGems shipping with a bad
binstub, which prompts interactive confirmation from the user.


* If you are using Ruby 2.3.x but wish to explicitly stay on Bundler 1.x (e.g., for dependency
reasons such as Rails 4.2.x), write:

Expand Down

0 comments on commit 68b59c2

Please sign in to comment.