From 885ed44646fd38dc007cbb31177b71fb2d4681eb Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 23 Jun 2021 23:00:46 +0800 Subject: [PATCH] Lock the ruby version number (#245, #247, #344) Since version 3.0, Ruby has no `webrick` that Jekyll (<= 4.2) needs --- jekyll-theme-chirpy.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec index 2aa4744..bf56ef2 100644 --- a/jekyll-theme-chirpy.gemspec +++ b/jekyll-theme-chirpy.gemspec @@ -23,6 +23,8 @@ Gem::Specification.new do |spec| "plugin_type" => "theme" } + spec.required_ruby_version = [">= 2.4", "< 3.0"] + spec.add_runtime_dependency "jekyll", "~> 4.1" spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" spec.add_runtime_dependency "jekyll-redirect-from", "~> 0.16"