You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update default Ruby version to 3.3.8 (heroku#1595)
* Update default Ruby version to 3.3.8
Also updates the "bootstrap" version of Ruby that the buildpack uses to run itself to match the default version. Previously, it was pinned to 3.1.x due to needing to support Bundler 1.x for the heroku-20.
* Fix error difference
```
expected ArgumentError, got #<Encoding::CompatibilityError:"invalid byte sequence in UTF-8\n Invalid string: ACENOCUMAROL,AZECAR,1 MG 30 COMPRIMIDOS, \xF1\xF1\xF3\xE9n\xF1\r\n"> with backtrace:
# ./spec/helpers/shell_spec.rb:73:in `strip'
# ./spec/helpers/shell_spec.rb:73:in `print'
```
We don't need to rely on the error class, as we are asserting against the message.
The [default Ruby version for new Ruby applications is 3.3.8](https://devcenter.heroku.com/articles/ruby-support#default-ruby-version-for-new-apps). You’ll only get the default if the application does not specify a ruby version.
4
+
5
+
Heroku highly recommends specifying your desired Ruby version. You can specify a Ruby version in your `Gemfile:
6
+
7
+
```term
8
+
ruby "3.3.8"
9
+
```
10
+
11
+
Once you have a Ruby version specified in your `Gemfile`, update the `Gemfile.lock` by running the following command:
12
+
13
+
```term
14
+
$ bundle update --ruby
15
+
```
16
+
17
+
Make sure you commit the results to git before attempting to deploy again:
0 commit comments