Stateless Code | Upgrade a Rails 7.0 App to Ruby 3.1.3 @StatelessCode | Uploaded December 2022 | Updated October 2024, 52 minutes ago.
In our previous video our build failed when we pushed to our branch. A new patch version of Ruby had been released, but we only had the minor version specified in our GitHub Actions build file. As a band-aid, we temporarily specified the patch version to get the build passing and then added an item to the backlog to upgrade Ruby.
Our system is Ubuntu 22.04 and we are using Ruby Version Manager (RVM) to manage our Ruby installations. We start by using `rvm install 3.1.3` to get the newest version installed (if you already have it installed on your system you can skip this step).
After that, we modify our Ruby version in the .ruby-version file and the Gemfile. We run a `bundle install` and re-run RuboCop and our full test suite to make sure nothing breaks before committing and pushing the code.
This video covers:
00:00:12 Introduction
00:02:07 Install Ruby 3.1.3 and make it the RVM default
00:03:54 Modify the Rails application to use Ruby 3.1.3
00:08:54 Use Ruby 3.1.3 in the other terminal and run the dev server to make sure it works
00:10:36 Run RuboCop and the full test suite
00:12:12 Review, commit, and push code
00:14:14 Delete some old branches from the local and remote repositories
00:15:48 Pull request and close issue.
#ruby #rails7 #rails #rubyonrails #rubygems #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #tailwind #postgresql #rubocop #devise #turbo #controllers #views #selenium #capybara #systemtest #rubyversion #githubactions #rvm
This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
In our previous video our build failed when we pushed to our branch. A new patch version of Ruby had been released, but we only had the minor version specified in our GitHub Actions build file. As a band-aid, we temporarily specified the patch version to get the build passing and then added an item to the backlog to upgrade Ruby.
Our system is Ubuntu 22.04 and we are using Ruby Version Manager (RVM) to manage our Ruby installations. We start by using `rvm install 3.1.3` to get the newest version installed (if you already have it installed on your system you can skip this step).
After that, we modify our Ruby version in the .ruby-version file and the Gemfile. We run a `bundle install` and re-run RuboCop and our full test suite to make sure nothing breaks before committing and pushing the code.
This video covers:
00:00:12 Introduction
00:02:07 Install Ruby 3.1.3 and make it the RVM default
00:03:54 Modify the Rails application to use Ruby 3.1.3
00:08:54 Use Ruby 3.1.3 in the other terminal and run the dev server to make sure it works
00:10:36 Run RuboCop and the full test suite
00:12:12 Review, commit, and push code
00:14:14 Delete some old branches from the local and remote repositories
00:15:48 Pull request and close issue.
#ruby #rails7 #rails #rubyonrails #rubygems #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #tailwind #postgresql #rubocop #devise #turbo #controllers #views #selenium #capybara #systemtest #rubyversion #githubactions #rvm
This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.