Add Ruby version to Gemfile
Since Bundler 2.4.19, including in Ruby 3.2.3, it's possible to define the Ruby version in the Gemfile by indicating which file contains the version [1]. There are at least two practical cases where this is an advantage. First, people using RVM in development will no longer accidentally run the application using the wrong Ruby version (which, before these changes, might happen if they switch to a branch using a different Ruby version and forget to run `rvm use` or exit the current folder and enter it again) because they will get an error when trying to do so. Second, people using services like Heroku no longer need to modify the Gemfile. The disadvantage is that, now, every time we update the Ruby version, we have to remember to run `bundle` so our `Gemfile.lock` gets the new version. [1] https://github.com/rubygems/rubygems/releases/tag/bundler-v2.4.19
This commit is contained in:
@@ -804,5 +804,8 @@ DEPENDENCIES
|
||||
wicked_pdf (~> 2.8.1)
|
||||
wkhtmltopdf-binary (~> 0.12.6)
|
||||
|
||||
RUBY VERSION
|
||||
ruby 3.2.5p208
|
||||
|
||||
BUNDLED WITH
|
||||
2.4.19
|
||||
|
||||
Reference in New Issue
Block a user