Lock the ruby version number (#245, #247, #344)

Since version 3.0, Ruby has no `webrick` that Jekyll (<= 4.2) needs
This commit is contained in:
Cotes Chung 2021-06-23 23:00:46 +08:00
parent d31e677ca0
commit 885ed44646

View file

@ -23,6 +23,8 @@ Gem::Specification.new do |spec|
"plugin_type" => "theme" "plugin_type" => "theme"
} }
spec.required_ruby_version = [">= 2.4", "< 3.0"]
spec.add_runtime_dependency "jekyll", "~> 4.1" spec.add_runtime_dependency "jekyll", "~> 4.1"
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
spec.add_runtime_dependency "jekyll-redirect-from", "~> 0.16" spec.add_runtime_dependency "jekyll-redirect-from", "~> 0.16"