Skip to content

Commit

Permalink
Move to Ruby 3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
PeterJCLaw committed Aug 18, 2024
1 parent 5173238 commit 17ed875
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
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

Expand Down
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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 17ed875

Please sign in to comment.