Skip to content

Commit 67fd053

Browse files
committed
Add webrick to Gemfile for Ruby 3.x support
Jekyll uses webrick in development mode, and expects it to ship with Ruby. But Ruby 3.0 stopped bundling webrick, which causes an error when you run `jekyll serve` using ruby 3.x. Jekyll 4.3.0—released Oct 2022—adds webrick as a dependency, but GitHub Pages still uses Jekyll 3.9.2 and [has no immediate plans](github/pages-gem#651 (comment)) to upgrade to Jekyll 4. Adding webrick to our Gemfile (per [this thread](jekyll/jekyll#8523)) solves this problem in the meantime.
1 parent 54b94e1 commit 67fd053

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
source "https://rubygems.org"
22

33
gem "github-pages", group: :jekyll_plugins
4+
gem "webrick", "~> 1.7"

Gemfile.lock

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ GEM
2626
eventmachine (1.2.7)
2727
eventmachine (1.2.7-x64-mingw32)
2828
execjs (2.8.1)
29-
faraday (2.6.0)
29+
faraday (2.7.2)
3030
faraday-net_http (>= 2.0, < 3.1)
3131
ruby2_keywords (>= 0.0.4)
32-
faraday-net_http (3.0.1)
32+
faraday-net_http (3.0.2)
3333
ffi (1.15.5)
3434
ffi (1.15.5-x64-mingw32)
3535
forwardable-extended (2.6.0)
@@ -204,28 +204,26 @@ GEM
204204
kramdown-parser-gfm (1.1.0)
205205
kramdown (~> 2.0)
206206
liquid (4.0.3)
207-
listen (3.7.1)
207+
listen (3.8.0)
208208
rb-fsevent (~> 0.10, >= 0.10.3)
209209
rb-inotify (~> 0.9, >= 0.9.10)
210210
mercenary (0.3.6)
211-
mini_portile2 (2.8.0)
211+
mini_portile2 (2.8.1)
212212
minima (2.5.1)
213213
jekyll (>= 3.5, < 5.0)
214214
jekyll-feed (~> 0.9)
215215
jekyll-seo-tag (~> 2.1)
216-
minitest (5.16.3)
217-
nokogiri (1.13.9)
216+
minitest (5.17.0)
217+
nokogiri (1.14.0)
218218
mini_portile2 (~> 2.8.0)
219219
racc (~> 1.4)
220-
nokogiri (1.13.9-x64-mingw32)
221-
racc (~> 1.4)
222220
octokit (4.25.1)
223221
faraday (>= 1, < 3)
224222
sawyer (~> 0.9)
225223
pathutil (0.16.2)
226224
forwardable-extended (~> 2.6)
227225
public_suffix (4.0.7)
228-
racc (1.6.0)
226+
racc (1.6.2)
229227
rb-fsevent (0.11.2)
230228
rb-inotify (0.10.1)
231229
ffi (~> 1.0)
@@ -254,8 +252,8 @@ GEM
254252
unf (0.1.4)
255253
unf_ext
256254
unf_ext (0.0.8.2)
257-
unf_ext (0.0.8.2-x64-mingw32)
258255
unicode-display_width (1.8.0)
256+
webrick (1.7.0)
259257
zeitwerk (2.6.6)
260258

261259
PLATFORMS
@@ -264,6 +262,7 @@ PLATFORMS
264262

265263
DEPENDENCIES
266264
github-pages
265+
webrick (~> 1.7)
267266

268267
BUNDLED WITH
269-
2.1.4
268+
2.4.3

0 commit comments

Comments
 (0)