Skip to content

Commit 17ed875

Browse files
committed
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.
1 parent 5173238 commit 17ed875

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.3
1+
3.3.0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.7
1+
FROM ruby:3.3
22

33
ENV GLOBAL_GEMS=true
44

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'date'
12
require 'fileutils'
23
require 'set'
34
require 'yaml'
@@ -44,7 +45,7 @@ end
4445
task :build_spellings => [:build, :spelling_dependencies]
4546

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

0 commit comments

Comments
 (0)