Skip to content

Commit c44e238

Browse files
committed
Make verify_data rake task Ruby 3.1+ compatible
1 parent 094e658 commit c44e238

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Rakefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ task :verify_data do
2525
"mastodon",
2626
"reg_phrase",
2727
"reg_date",
28-
"cfp_phrase",
29-
"cfp_date",
28+
"cfp_open_date",
29+
"cfp_close_date",
30+
"cfp_link",
31+
"status",
32+
"date_precision",
3033
"video_link",
3134
"announced_on"
3235
]
33-
data = YAML.load File.read "_data/conferences.yml"
36+
data = YAML.load_file("_data/conferences.yml", permitted_classes: [Date])
3437
validator = DataFileValidator.validate(data, allowed_keys)
3538

3639
exit 3 if validator.missing_keys?

0 commit comments

Comments
 (0)