From 5a10c1e7278fd03262f69671d0292e879ef3e071 Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Wed, 23 Oct 2024 11:55:54 +0300 Subject: [PATCH] bump the oldest supported Ruby version to 2.7 --- .github/workflows/ci.yml | 2 +- .rubocop.yml | 2 +- CHANGELOG.adoc | 1 + README.adoc | 2 +- asciidoctor-epub3.gemspec | 2 +- docs/modules/ROOT/pages/index.adoc | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f2f582..24d92cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: needs: activate strategy: matrix: - ruby: ['jruby-9.3', 'jruby-9.4', '2.6', '3.3'] + ruby: ['jruby-9.4', '2.7', '3.3'] os: [ubuntu-latest, windows-latest] include: - ruby: '3.3' diff --git a/.rubocop.yml b/.rubocop.yml index 58e5470..9760c3e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,7 +3,7 @@ require: - rubocop-rspec AllCops: NewCops: enable - TargetRubyVersion: 2.6 + TargetRubyVersion: 2.7 Gemspec/RequireMFA: Enabled: false Layout/LineLength: diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index e5f42a2..196edd1 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -9,6 +9,7 @@ For a detailed view of what has changed, refer to the {uri-repo}/commits/master[ * fix crash when running in environments with non-Unicode locale (#475) * update Font Awesome Solid to 6.6.0 +* bump the oldest supported Ruby version to 2.7 == 2.1.3 (2024-05-12) - @slonopotamus diff --git a/README.adoc b/README.adoc index 67a6d13..a8223b1 100644 --- a/README.adoc +++ b/README.adoc @@ -21,7 +21,7 @@ Detailed installation and usage instructions can be found on the https://docs.as == Installation {project-name} is published on RubyGems.org. -{project-name} requires Ruby 2.6 or newer. +{project-name} requires Ruby 2.7 or newer. You can install the published gem using the following command: [source,shell script] diff --git a/asciidoctor-epub3.gemspec b/asciidoctor-epub3.gemspec index f601596..38069eb 100644 --- a/asciidoctor-epub3.gemspec +++ b/asciidoctor-epub3.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/asciidoctor/asciidoctor-epub3' s.license = 'MIT' - s.required_ruby_version = '>= 2.6.0' + s.required_ruby_version = '>= 2.7.0' files = begin (result = Open3.popen3('git ls-files -z') { |_, out| out.read }.split %(\0)).empty? ? Dir['**/*'] : result diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc index 0e1a39a..faea2a4 100644 --- a/docs/modules/ROOT/pages/index.adoc +++ b/docs/modules/ROOT/pages/index.adoc @@ -119,7 +119,7 @@ This is no longer the case. If you followed the old rules, chances are your docu == Prerequisites -All that's needed to use {project-name} is Ruby 2.5 or newer and a few Ruby gems (including at least Asciidoctor 1.5.6), which we'll explain how to install in the next section. +All that's needed to use {project-name} is Ruby 2.7 or newer and a few Ruby gems, which we'll explain how to install in the next section. To check if you have Ruby available, use the `ruby` command to query the installed version: