Skip to content

Commit 29500c0

Browse files
committed
Minimal support for Ruby 3
This isn't officially supported by Jekyll and is a bit hacky, so I'm deliberately not documenting the support, however as recent Ubuntu versions now ship with Ruby 3 (not 2.7) and Jekyll isn't showing any signs of moving towards supporting Ruby 3 we're not left with many alternatives. This works around: - github/pages-gem#752 - envygeeks/pathutil#5
1 parent 84af53c commit 29500c0

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ gem 'html-proofer'
1919

2020
# Avoid polling on windows
2121
gem 'wdm', '>= 0.1.0'
22+
23+
# For local Ruby 3 support; works around https://github.com/github/pages-gem/issues/752
24+
gem "webrick", "~> 1.7"

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ GEM
9898
tzinfo-data (1.2018.5)
9999
tzinfo (>= 1.0.0)
100100
wdm (0.1.1)
101+
webrick (1.7.0)
101102
yell (2.2.2)
102103

103104
PLATFORMS
@@ -118,6 +119,7 @@ DEPENDENCIES
118119
tzinfo
119120
tzinfo-data
120121
wdm (>= 0.1.0)
122+
webrick (~> 1.7)
121123

122124
BUNDLED WITH
123125
2.3.6

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ task :dependencies do
1111
sh('bundle config set --local path "gems"')
1212
end
1313
sh('bundle install')
14+
15+
# Fix pathutil on Ruby 3; works around https://github.com/envygeeks/pathutil/pull/5
16+
sh('sed -i.bak "s/, kwd/, **kwd/" $(bundle exec gem which pathutil)')
1417
end
1518

1619
task :spelling_dependencies do

0 commit comments

Comments
 (0)