From 09e4ad245b5f1101eacbc55b89e8e8dee05df746 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 27 Dec 2022 21:43:43 +0800 Subject: [PATCH] chore(deps): update gem spec list - Jekyll 4.3.0 introduced `webrick` for Ruby 3.x - Jekyll's dependency `nokogiri` does not yet support Ruby 3.2. See: https://github.com/sparklemotion/nokogiri/issues/2740/ --- .github/workflows/ci.yml | 2 +- .github/workflows/pages-deploy.yml.hook | 2 +- Gemfile | 3 --- jekyll-theme-chirpy.gemspec | 4 ++-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08e6af9..a5b4672 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: strategy: matrix: - ruby: [2.7, 3] + ruby: ['2.7', '3.0', '3.1'] steps: - name: Checkout diff --git a/.github/workflows/pages-deploy.yml.hook b/.github/workflows/pages-deploy.yml.hook index b2da8d9..fed62a9 100644 --- a/.github/workflows/pages-deploy.yml.hook +++ b/.github/workflows/pages-deploy.yml.hook @@ -42,7 +42,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3 # reads from a '.ruby-version' or '.tools-version' file if 'ruby-version' is omitted + ruby-version: '3.1' # reads from a '.ruby-version' or '.tools-version' file if 'ruby-version' is omitted bundler-cache: true - name: Build site diff --git a/Gemfile b/Gemfile index ffef29a..6438466 100644 --- a/Gemfile +++ b/Gemfile @@ -17,6 +17,3 @@ end # Performance-booster for watching directories on Windows gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform? - -# Jekyll <= 4.2.0 compatibility with Ruby 3.0 -gem "webrick", "~> 1.7" diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec index b3c6a37..21e7a8a 100644 --- a/jekyll-theme-chirpy.gemspec +++ b/jekyll-theme-chirpy.gemspec @@ -23,9 +23,9 @@ Gem::Specification.new do |spec| "plugin_type" => "theme" } - spec.required_ruby_version = ">= 2.5" + spec.required_ruby_version = [">= 2.5", "< 3.2"] - spec.add_runtime_dependency "jekyll", "~> 4.1" + spec.add_runtime_dependency "jekyll", "~> 4.3" spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" spec.add_runtime_dependency "jekyll-redirect-from", "~> 0.16" spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.7"