Skip to content

Commit 2487f5c

Browse files
piti6claude
andcommitted
fix: support Ruby 4.0 and upgrade Re:VIEW to 5.11.0
- Re:VIEW 5.3.0 -> 5.11.0 for Ruby 4.0 compatibility - Add nkf gem (removed from Ruby stdlib in 3.4) - Add permitted_classes: [Date] to YAML.load_file for Psych security Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 86485ab commit 2487f5c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# A sample Gemfile
22
source "https://rubygems.org"
33

4-
gem 'review', '5.3.0'
4+
gem 'review', '5.11.0'
55
gem 'pandoc2review'
66
gem 'rake'
7+
gem 'nkf'
78
# gem 'review-peg', '0.2.2'

articles/lib/tasks/z01_pandoc2review.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131

3232
desc 'run pandoc2review'
3333
task :pandoc2review do
34-
config = YAML.load_file(CONFIG_FILE)
34+
config = YAML.load_file(CONFIG_FILE, permitted_classes: [Date])
3535
if config['contentdir'] == '_refiles'
3636
path = '_refiles'
3737
p2r = 'pandoc2review'

0 commit comments

Comments
 (0)