Uploaded March 2026 | Updated November 2026, 3 hours ago
Sigh. Missed the gem signing certificate expiration again.
It's time to dust off the NerdDice Ruby Gem and do some annual maintenance. I again missed the gem signing certificate expiration by a few days. There will be two parts to the maintenance this year. The first is just the usual stuff on the 0.5.x stable branch, which is the primary focus of this video. In the next video, we will drop support for some older end-of-life versions of Ruby and release a 0.6.0 of the gem with those new version constraints.
To improve the process, we now have a GitHub Gist (see Resources links below) that details the standard annual maintenance procedures. As per usual, when updating to a new version of RuboCop, there are some ex-post-facto violations that need to be fixed. There are also a couple more dependencies the project relies upon (IRB and Benchmark) that have been moved out of the Ruby standard library and into gems that will need to be accounted for.
This video covers:
0:00:00 Introduction and overview of the GitHub issue
0:02:43 How to find maintenance schedule of Ruby versions and discussion of supported Ruby versions for the gem
0:04:06 Review the rest of the GitHub issue and plan for this round of maintenance
0:06:50 Create new branch and run RSpec and gem console on current Ruby (3.4)
0:08:35 Install Ruby 4.0 using Mise and add `irb` to Gemfile so gem console works
0:10:11 Add `mise.toml` to `.gitignore` file
0:10:36 Investigate whether to change location of development dependencies to Gemfile from gemspec and change them
0:12:44 Update gem development dependencies after relocating to Gemfile and change RuboCop config to remove dev dependencies in gemspec enforcement
0:15:12 Remove the test gem we bundled earlier to figure out current default behavior
0:15:44 Update the bundle and address new RuboCop violations (one false-positive and a bunch of RSpec/LeakyLocalVariable violations)
0:21:47 Add Ruby 4.0 to GitHub actions and commit what we have so far
0:24:40 Build fails because Benchmark was moved out of the Ruby standard library and into a gem. Add it to the Gemfile
0:26:05 Bump the `checkout` GitHub action from version 4 to 6 to clear deprecation warnings
0:27:31 Update the gem signing certificate and amend previous commit with cert change
0:35:13 Cherry-pick to the `version-0-5-x-stable` branch
0:36:11 Update the SECURITY and CONTRIBUTING files to use the "our princess is in another castle" version
0:38:35 Build and push version 0.5.3 of the gem to RubyGems (incrementing the version before doing so)
0:41:12 Tag release and release on GitHub and increment patch version on stable branch
0:43:48 Overview of remaining activities for next video
#ruby #rubygems #codecast #screencast #NerdDice #DnD #roleplaying #softwaredevelopment #github #opensource #dice #release #tlm #rubocop #bundler #dependencies #ruby4
Featured Playlist:
- youtube.com/playlist?list=PL9kkbu1kLUeOnUtMpAnJOCtHdThx1Efkt
See other related StatelessCode videos:
- youtu.be/tT0-eR8_0c4
- youtu.be/uHd_QqlEZXw
- youtu.be/6NdoYZphoJ4
Resources that we relied upon for this solution:
- Ruby Gem Maintenance Procedures GitHub Gist by Mike gist.github.com/msducheminjr/950ad67b64b9bbebe8fac435e0f86601#top
- Ruby language version maintenance and end-of-life schedule ruby-lang.org/en/downloads/branches
- RubyGems rubygems.org
- RuboCop RSpec repository: github.com/rubocop/rubocop-rspec
- GitHub issue for this video: github.com/statelesscode/nerd_dice/issues/61
GitHub Commits for this Video:
Mantenance Branch
- github.com/statelesscode/nerd_dice/tree/2386bc31
Stable Branch (0.5.x)
- github.com/statelesscode/nerd_dice/tree/11ed23b1
- github.com/statelesscode/nerd_dice/tree/2264a25f
- github.com/statelesscode/nerd_dice/tree/63713d6c
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.
Sigh. Missed the gem signing certificate expiration again.
It's time to dust off the NerdDice Ruby Gem and do some annual maintenance. I again missed the gem signing certificate expiration by a few days. There will be two parts to the maintenance this year. The first is just the usual stuff on the 0.5.x stable branch, which is the primary focus of this video. In the next video, we will drop support for some older end-of-life versions of Ruby and release a 0.6.0 of the gem with those new version constraints.
To improve the process, we now have a GitHub Gist (see Resources links below) that details the standard annual maintenance procedures. As per usual, when updating to a new version of RuboCop, there are some ex-post-facto violations that need to be fixed. There are also a couple more dependencies the project relies upon (IRB and Benchmark) that have been moved out of the Ruby standard library and into gems that will need to be accounted for.
This video covers:
0:00:00 Introduction and overview of the GitHub issue
0:02:43 How to find maintenance schedule of Ruby versions and discussion of supported Ruby versions for the gem
0:04:06 Review the rest of the GitHub issue and plan for this round of maintenance
0:06:50 Create new branch and run RSpec and gem console on current Ruby (3.4)
0:08:35 Install Ruby 4.0 using Mise and add `irb` to Gemfile so gem console works
0:10:11 Add `mise.toml` to `.gitignore` file
0:10:36 Investigate whether to change location of development dependencies to Gemfile from gemspec and change them
0:12:44 Update gem development dependencies after relocating to Gemfile and change RuboCop config to remove dev dependencies in gemspec enforcement
0:15:12 Remove the test gem we bundled earlier to figure out current default behavior
0:15:44 Update the bundle and address new RuboCop violations (one false-positive and a bunch of RSpec/LeakyLocalVariable violations)
0:21:47 Add Ruby 4.0 to GitHub actions and commit what we have so far
0:24:40 Build fails because Benchmark was moved out of the Ruby standard library and into a gem. Add it to the Gemfile
0:26:05 Bump the `checkout` GitHub action from version 4 to 6 to clear deprecation warnings
0:27:31 Update the gem signing certificate and amend previous commit with cert change
0:35:13 Cherry-pick to the `version-0-5-x-stable` branch
0:36:11 Update the SECURITY and CONTRIBUTING files to use the "our princess is in another castle" version
0:38:35 Build and push version 0.5.3 of the gem to RubyGems (incrementing the version before doing so)
0:41:12 Tag release and release on GitHub and increment patch version on stable branch
0:43:48 Overview of remaining activities for next video
#ruby #rubygems #codecast #screencast #NerdDice #DnD #roleplaying #softwaredevelopment #github #opensource #dice #release #tlm #rubocop #bundler #dependencies #ruby4
Featured Playlist:
- youtube.com/playlist?list=PL9kkbu1kLUeOnUtMpAnJOCtHdThx1Efkt
See other related StatelessCode videos:
- youtu.be/tT0-eR8_0c4
- youtu.be/uHd_QqlEZXw
- youtu.be/6NdoYZphoJ4
Resources that we relied upon for this solution:
- Ruby Gem Maintenance Procedures GitHub Gist by Mike gist.github.com/msducheminjr/950ad67b64b9bbebe8fac435e0f86601#top
- Ruby language version maintenance and end-of-life schedule ruby-lang.org/en/downloads/branches
- RubyGems rubygems.org
- RuboCop RSpec repository: github.com/rubocop/rubocop-rspec
- GitHub issue for this video: github.com/statelesscode/nerd_dice/issues/61
GitHub Commits for this Video:
Mantenance Branch
- github.com/statelesscode/nerd_dice/tree/2386bc31
Stable Branch (0.5.x)
- github.com/statelesscode/nerd_dice/tree/11ed23b1
- github.com/statelesscode/nerd_dice/tree/2264a25f
- github.com/statelesscode/nerd_dice/tree/63713d6c
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 Ruby and Rails with Databases on Ubuntu 24.04
In this video we take a fresh installation of Ubuntu 24.04 (see the link to the video where we installed it below) and set it up so we can develop applications using Ruby on Rails.
Before we can install Ruby, we first need to install some dependencies onto our system. There have been some slight changes to the set of dependencies since the last Ruby install video we made in 2021 using Ubuntu 20.04. In particular, libgconf-2-4 is no longer needed (and the install will error out if you try to include it in the list of packages).
We use Ruby Version Manager (RVM) to install Ruby. Pay attention to the post install configuration steps and do a full system reboot. In the aforementioned 2021 video, it didnt go smoothly.
We install the current versions of Ruby (3.3.3) and Ruby on Rails (7.1.3.4) at the time of the recording. There are 3 primary database adapters for Rails. SQLite3 comes built-in as the default and is what you get if you run `rails new` without specifying a database. Rails also comes with a MySQL adapter and a PostgreSQL adapter. We create initial applications for each. If you have a particular database in mind, you can skip to that section of the video.
Here are (most of) the commands we execute in the video:
```
# install dependencies
sudo apt install -y autoconf bison build-essential curl g++ gcc git git-core libffi-dev libgdbm-dev libncurses-dev libreadline-dev libsqlite3-dev libssl-dev libxi6 libyaml-dev make sqlite3 xvfb zip zlib1g-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common gnupg2
# optional dependencies if using ActionText and/or ActiveStorage
sudo apt install -y libvips-tools libvips-dev libvips42
# rvm commands
gpg2 keyserver keyserver.ubuntu.com recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
sudo apt-add-repository -y ppa:rael-gc/rvm
sudo apt install rvm
sudo usermod -a -G rvm $USER
source /etc/profile.d/rvm.sh
mkdir -p ~/.rvm/user/installs
# ruby commands
rvm install 3.3.3
/bin/bash login
rvm use 3.3.3 default
ruby -v
irb
# rails commands
gem install rails
rails new [app name] [-d database or omit to use sqlite3]
# installs MariaDB 10.11
sudo apt install mariadb-server libmariadb-dev
# install PostgreSQL 16
sudo apt install postgresql libpq-dev
```
This video covers:
00:00:00 Introduction
00:02:38 Install dependencies for Ruby and Rails (see command above)
00:05:06 Install optional dependencies for ActionText and ActiveStorage
00:05:35 Install Ruby Version Manager (RVM) via Personal Package Archive (PPA)
00:07:45 RVM post-install configuration and reboot machine
00:10:34 Install current version of Ruby (3.3.3 at time of recording)
00:12:59 Install Ruby on Rails version 7.1.x
00:15:09 Create a Rails app and start the server (using SQLite3)
00:18:17 Optional: Install MariaDB and create a Rails app with the MySQL adapter and configure
00:26:20 Optional: Install PostgreSQL and create a Rails app with the PostgreSQL adapter
#setup #configuration #install #linux #ubuntu #debian #deb #terminal #ubuntu24 #lts #ruby #rails #rubyonrails #rvm #rails7 #rails7-1 #sqlite3 #mariadb #mysql #postges #postgresql
See other related StatelessCode videos:
- Install Ubuntu 24.04 LTS Desktop https://youtu.be/yHxuNUovS20
- Install Node.js (versions 18, 20, 22) with NVM on Ubuntu 24.04 https://youtu.be/YyEf1QWfg9Y
- Install Visual Studio Code on Ubuntu 24.04 https://youtu.be/GdmHY1JhLI8
- Install Git on Ubuntu 24.04 and Configure for Verified Commits in GitHub https://youtu.be/CagiEjuqKxU
- Why Rails in the 2020s? https://youtu.be/f1ca3rKQSD0
Older Ruby and Rails install videos from 2021:
- Codecast: Install Rails 6, PostgreSQL 13, MariaDB 10.5 https://youtu.be/mW3vAvUg2Ao
- Install RVM and Ruby with Troubleshooting https://youtu.be/h-JBRJH8W7A
Featured Playlist:
- Getting Started with Rails 7 Playlist https://youtube.com/playlist?list=PL9kkbu1kLUePk2NNqMT14iL3Dis2mbMdK
Resources that we relied upon for this solution:
- Ruby Website: https://www.ruby-lang.org/en/
- Ruby on Rails Website: https://rubyonrails.org/
- RVM Website: https://rvm.io/
- GoRails Install Ruby On Rails on Ubuntu 24.04 Noble Numbat https://gorails.com/setup/ubuntu/24.04
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 Ruby and Rails with Databases on Ubuntu 24.04](https://i.ytimg.com/vi/XB6lPKAzRxc/mqdefault.jpg)


