Uploaded January 2023 | Updated November 2026, 3 days ago
Even though we just updated our application to Ruby 3.1.3 in the previous video, we're going to bump the upgrade of our app to Ruby 3.2.
We follow a very similar process to what we used to upgrade from Ruby 3.1.2 to Ruby 3.1.3 in the previous video. All of the files we need to modify are still open in the editor.
Our system is Ubuntu 22.04 and we are using Ruby Version Manager (RVM) to manage our Ruby installations. We already have Ruby 3.2.0 installed on our system from the Nerd Christmas 2022 video, but when we change to the NerdDice.com directory, we can see that we're still using Ruby 3.1.3. The version in our .ruby-version file takes precedence over our RVM default, so we need to specify `rvm use 3.2.0` in our directory in order for us to update the bundle. If you don't already have Ruby 3.2.0 installed on your system, you can execute `rvm install 3.2.0` and `rvm use 3.2.0 --default` to get the needed Ruby version onto your system.
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.
Unlike last time, every test now has a deprecation warning about Rack and its use of Regexp.new. The message is 3rd argument to Regexp.new is deprecated and will be removed in Ruby 3.3; use 2nd argument instead
It's not uncommon to see a slew of new deprecation warnings across our set of gems, but this is just one line of one file in Rack. We check RubyGems.org to see if new versions of Rack have been released. There is a 3.x version, but that is not supported by the version constraints of our current version of Rails ActionPack (7.0.4). We run `bundle update rack` and it updates our patch version from 2.2.4 to 2.2.5 and the deprecation warnings are gone.
This video covers:
00:00:12 Introduction
00:01:49 Take a look at current RVM Ruby versions
00:02:33 Look at previous commit for changes that need to be made
00:03:27 Make needed updates to files
00:04:41 Use rvm on the working directory to use Ruby 3.2.0 and update Gemfile.lock to use bundler 2.4.1
00:05:17 Run `bundle install` and review git diff
00:07:15 Run RuboCop and full test suite
00:08:14 Fix deprecation warnings by updating Rack and rerun tests
00:10:53 Smoke test application on Rails development server
00:12:37 Review, commit, and push code
00:13:41 Prune old branch from previous video
00:14:40 Open and merge pull request; update project
00:18:39 Outtake
#ruby #rails7 #rails #rubyonrails #rubygems #rvm #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #rubocop #selenium #capybara #systemtest #deprecationwarning #rack
See other related StatelessCode videos:
- Upgrade a Rails 7.0 App to Ruby 3.1.3 youtu.be/DFvzWcAx-Rc
- Nerd Christmas 2022 - Ruby 3.2 Released! youtu.be/YPXum1WtuH0
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.
Even though we just updated our application to Ruby 3.1.3 in the previous video, we're going to bump the upgrade of our app to Ruby 3.2.
We follow a very similar process to what we used to upgrade from Ruby 3.1.2 to Ruby 3.1.3 in the previous video. All of the files we need to modify are still open in the editor.
Our system is Ubuntu 22.04 and we are using Ruby Version Manager (RVM) to manage our Ruby installations. We already have Ruby 3.2.0 installed on our system from the Nerd Christmas 2022 video, but when we change to the NerdDice.com directory, we can see that we're still using Ruby 3.1.3. The version in our .ruby-version file takes precedence over our RVM default, so we need to specify `rvm use 3.2.0` in our directory in order for us to update the bundle. If you don't already have Ruby 3.2.0 installed on your system, you can execute `rvm install 3.2.0` and `rvm use 3.2.0 --default` to get the needed Ruby version onto your system.
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.
Unlike last time, every test now has a deprecation warning about Rack and its use of Regexp.new. The message is 3rd argument to Regexp.new is deprecated and will be removed in Ruby 3.3; use 2nd argument instead
It's not uncommon to see a slew of new deprecation warnings across our set of gems, but this is just one line of one file in Rack. We check RubyGems.org to see if new versions of Rack have been released. There is a 3.x version, but that is not supported by the version constraints of our current version of Rails ActionPack (7.0.4). We run `bundle update rack` and it updates our patch version from 2.2.4 to 2.2.5 and the deprecation warnings are gone.
This video covers:
00:00:12 Introduction
00:01:49 Take a look at current RVM Ruby versions
00:02:33 Look at previous commit for changes that need to be made
00:03:27 Make needed updates to files
00:04:41 Use rvm on the working directory to use Ruby 3.2.0 and update Gemfile.lock to use bundler 2.4.1
00:05:17 Run `bundle install` and review git diff
00:07:15 Run RuboCop and full test suite
00:08:14 Fix deprecation warnings by updating Rack and rerun tests
00:10:53 Smoke test application on Rails development server
00:12:37 Review, commit, and push code
00:13:41 Prune old branch from previous video
00:14:40 Open and merge pull request; update project
00:18:39 Outtake
#ruby #rails7 #rails #rubyonrails #rubygems #rvm #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #rubocop #selenium #capybara #systemtest #deprecationwarning #rack
See other related StatelessCode videos:
- Upgrade a Rails 7.0 App to Ruby 3.1.3 youtu.be/DFvzWcAx-Rc
- Nerd Christmas 2022 - Ruby 3.2 Released! youtu.be/YPXum1WtuH0
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.
![Install Git on Ubuntu 24.04 and Configure for Verified Commits in GitHub
Git is an open source distributed version control system that is the most widely used by software developers today. Its decentralized nature makes it essentially censorship-proof and very robust against accidental deletion or permanent loss of work. Even if somebody accidentally deletes the remote repository entirely, each member of the team has a full version of the project and can just create another one.
In this video, we install Git on a mostly fresh copy of Ubuntu 24.04 (with Visual Studio Code installed). Because we want to use Git with GitHub and get that sweet-sweet Verified tag on our commits, we install git along with the dependencies needed for git-credential-libsecret:
`sudo apt install make gcc git libsecret-1-0 libsecret-1-dev libglib2.0-dev`
After installing Git, we do some basic global configuration, (including enabling rerere, youll thank me later), create a GPG signing key, upload that signing key to GitHub, and create a GitHub access token with repo access.
We use git-credential-libsecret to improve security so we dont have the access token stored in plain text somewhere on the hard drive.
This video covers:
00:00:00 Introduction and overview of Git
00:03:41 Install Git along with libsecret dependencies
00:04:53 Post install verification and initial global config setup
00:07:50 Create a basic local repo to make sure local committing works
00:10:40 Set up GPG key so commits can be signed.
00:16:04 Add the GPG key to the GitHub account
00:18:11 Configure git-credential-libsecret as the credential helper
00:19:56 Generate a GitHub access token
00:22:33 Clone a remote repo and create a commit on a throwaway branch to test the token and signature
00:25:20 Copy the generated access token and use it to authenticate when pushing
00:26:11 Look in GitHub to ensure the commit shows as verified and then remove the throwaway branch from the remote.
00:27:43 Review the option to always sign commits `git config [ global] commit.gpgsign true`
00:29:14 Closing comments
#setup #configuration #install #linux #ubuntu #debian #deb #terminal #ubuntu24 #lts #github #code #visualstudiocode #vscode #apt #git #libsecret #gpg #verifiedcommit #rerere #versioncontrol #sourcecodemanagement #scm
See other related StatelessCode videos:
- Install Visual Studio Code on Ubuntu 24.04 https://youtu.be/GdmHY1JhLI8
- Set up a GitHub Profile README for an Organization https://youtu.be/hqFq-2yqPZM
- Install Ubuntu 24.04 LTS Desktop https://youtu.be/yHxuNUovS20
Featured Playlist:
- Ruby on Rails NerdDice.com https://youtube.com/playlist?list=PL9kkbu1kLUeMJFb0GT8ZMzrsSKJaxjOKH
Resources that we relied upon for this solution:
- Git homepage https://git-scm.com/
- GitHub: Managing commit signature verification https://docs.github.com/en/authentication/managing-commit-signature-verification
- Storing your GIT credentials in libsecret https://gist.github.com/JonasGroeger/4393203cc846da558fec1531cdd822db
- Git Tools - Rerere https://git-scm.com/book/en/v2/Git-Tools-Rerere
This video is CC0 - No rights reserved. (YouTube doesnt allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of intellectual property. Copying is not stealing. Install Git on Ubuntu 24.04 and Configure for Verified Commits in GitHub](https://i.ytimg.com/vi/CagiEjuqKxU/mqdefault.jpg)









