Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Ruby 3 #602

Merged
merged 5 commits into from
Aug 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Move to Ruby 3
This includes updating our validation yaml loading to allow parsing
date values in the kit versions file, which was previously implicitly
allowed but now needs to be explicit.
PeterJCLaw committed Aug 18, 2024
commit 17ed8751d2cdc6ab7d017027bcddfc59f2fef242
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.3
3.3.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7
FROM ruby:3.3

ENV GLOBAL_GEMS=true

3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'date'
require 'fileutils'
require 'set'
require 'yaml'
@@ -44,7 +45,7 @@ end
task :build_spellings => [:build, :spelling_dependencies]

task :validate_kit_versions do
data = YAML.load_file('_data/kit_versions.yml')
data = YAML.load_file('_data/kit_versions.yml', permitted_classes: [Date])
data.each do |entry|
actual = entry.keys.to_set
expected = ['version', 'released', 'link', 'changelog'].to_set