@StatelessCode
  @StatelessCode
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.
Upgrade a Rails 7.0 App to Ruby 3.1.3Populate the Project Backlog with Preliminary Features for the AppFix a Bug Where System Test Emails Need More Time to CompleteFlesh Out the README for the ProjectCodecast: Create a RubyGem 61: Release 0.3.0!Inkscape 04: Convert Text to Vector for Cross-Platform UseInkscape 02: Change Text of an Existing SVG and Save As a New FileCodecast: Create a RubyGem 70: Add Bonus to ConvenienceMethodsCreate a RubyGem 101: Retro on Version 0.5.0 and Patch ReleasesOverview of Authentication Epic and Choosing DeviseCodecast: Getting Started with Rails 7 07: Create Articles in the ApplicationCodecast: Getting Started with Rails 7 03: Autoloading, Generate and Migrate a Model

Upgrade a Rails 7.0 App to Ruby 3.1.3 @StatelessCode

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER