Switch the version of bundler

Introduction

I'm thinking of producing output for beginners, I am writing an article. I'm a complete amateur who hasn't been to the scene yet. If you make a mistake, I would appreciate it if you could comment.

Target audience

When I tried to install docker-compose in my development environment, I was angry that the version of bundler was wrong. And I decided to change the version of bandler, but there was surprisingly little information. So, for those who need to switch the version of bundler, I am posting an article as a reference.

Development environment

Ruby: 2.6.5 Ruby on Rails: 6.0.0

Steps to update bundler

There are 4 steps, but it's easy, so you can do it in an instant.

Check if the version you want to install is available.

$ gem search ^bundler$ --all

All the versions you can install will come, so find the version you need.

Install the required version

$ gem install bundler -v '1.3.4'

The quoted version is installed.

Delete Gemfile.lock

$ rm Gemfile.lock

Rest assured that even if you delete it, it will be generated at bundle install.

Bundle install with the installed version

$ bundle _1.3.4_ install

This should change the description of Gemfile.lock as well,

⚠️ Please use the appropriate version for all versions.

Recommended Posts

Switch the version of bundler
[Java version] The story of serialization
Check the version of Cent OS
About the version of Docker's Node.js image
Switch the version of java installed by SDKMAN when moving directories
Check the version of the standard Web software.
Check the version of the JDK installed and the version of the JDK enabled
[Java] Access the signed URL of s3 (signed version 2)
Manage the version of Ruby itself with rbenv
Try the free version of Progate [Java II]
Install the latest version of Jenkins on Ubuntu 16
Try the free version of Progate [Java I]
The world of clara-rules (2)
Judgment of the calendar
The world of clara-rules (4)
The world of clara-rules (3)
The world of clara-rules (5)
The idea of quicksort
The idea of jQuery
[Java] Check the JDK version of the built war file
The question of which is better, if or switch
[CentOS] Download and build the specified version of Git
About the handling of Null
Docker monitoring-explaining the basics of basics-
Install by specifying the version of Django in the Docker environment
Ruby version does not switch
About the description of Docker-compose.yml
Understand the basics of docker
The play of instantiating java.lang.Void
The correct answer for money! The correct answer for silver! [Japanese version of sequence]
Site where you can see the version relation of spring (?)
Explanation of the FizzBuzz problem
The basics of Swift's TableView
Median of the three values
The illusion of object orientation
Let's understand the switch statement!
I checked the automatic unit test creation tool (end of 2019 version)
Let's create a TODO application in Java 5 Switch the display of TODO
I was addicted to the API version min23 setting of registerTorchCallback
Is the version of Elasticsearch you are using compatible with Java 11?
About the behavior of ruby Hash # ==
[Java] Delete the elements of List
Qualify only part of the text
Understand the basic mechanism of log4j2.xml
About the basics of Android development
'% 02d' What is the percentage of% 2?
[Rails] Check the contents of the object
Replace the contents of the Jar file
[Swift] Change the textColor of UIDatePicker
[Ruby] See the essence of ArgumentError
Explanation of the order of rails routes
I read the source of ArrayList I read
The basics of SpringBoot + MyBatis + MySQL
The basic basis of Swift dialogs
The basic basis of Swift's Delegate
I read the source of Integer
This and that of the JDK
Check the migration status of rails
The story of @ViewScoped consuming memory
Filter the fluctuations of raw data
Windows version of OpenJDK installation procedure