Skip to content

Commit e034c03

Browse files
mkasberggeerlingguy
authored andcommitted
Upgrade to Ruby 3.0
Ruby 3 should be faster than Ruby 2, which should mean a little less time waiting for jekyll to build the site. [Ruby 3.0.0 Released](https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/) Aside from the speed increase, it isn't a bad idea to keep up-to-date with the latest version of Ruby. Jekyll is compatible with Ruby 3 with the caveat that you need to add WEBrick as a dependency when upgrading: jekyll/jekyll#8523 I've run `jekyll serve` locally and the site builds without errors and looks good in a browser. Especially considering this is a static site, that's good enough for me!
1 parent d3c4a45 commit e034c03

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.1
1+
3.0.2

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ gem 'jekyll', '~> 4.1'
44
gem 'jekyll-redirect-from', '~> 0.16'
55
gem 'jekyll-paginate', '~> 1.1'
66

7+
# Need Webrick as an explicit dependency after upgrading to Ruby 3+
8+
# https://github.com/jekyll/jekyll/issues/8523
9+
gem "webrick", "~> 1.7"
10+
711
group :jekyll_plugins do
812
gem 'jekyll_html_truncatewords', '~> 0.1.2'
913
end

Gemfile.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ GEM
6767
terminal-table (2.0.0)
6868
unicode-display_width (~> 1.1, >= 1.1.1)
6969
unicode-display_width (1.8.0)
70+
webrick (1.7.0)
7071

7172
PLATFORMS
7273
ruby
@@ -76,6 +77,7 @@ DEPENDENCIES
7677
jekyll-paginate (~> 1.1)
7778
jekyll-redirect-from (~> 0.16)
7879
jekyll_html_truncatewords (~> 0.1.2)
80+
webrick (~> 1.7)
7981

8082
BUNDLED WITH
81-
2.1.4
83+
2.2.22

0 commit comments

Comments
 (0)