From d6d02508c46e649180b1f1d49f231edd78e39155 Mon Sep 17 00:00:00 2001 From: Sergio Bobillier Date: Fri, 22 Aug 2025 17:07:41 +0200 Subject: [PATCH] [ELITERT-1275] Increase Ruby dependency to 3.1.0 This is needed in order to be able to update the version of the git gem to '~> 3'. Starting from 3.0.0 the git gem requires Ruby 3.0.0 or later. Furthermore, it depends on process_executer '~> 1.3', which requires Ruby 3.1.0 or later. Version 3.0.0 of git includes a fix that prevents a crash when the method #branch is called on a repository currently in a detached head. --- .github/workflows/release.yml | 4 ++-- .github/workflows/ruby-linters.yml | 2 +- .github/workflows/ruby-tests.yml | 2 +- .ruby-version | 2 +- CHANGELOG.md | 3 +++ README.md | 4 ++-- jay_api.gemspec | 2 +- 7 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e34c4f..f1cfe6d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,10 +17,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Ruby 2.7 + - name: Set up Ruby 3.1 uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7.7 + ruby-version: '3.1' - name: Build run: | bundler install diff --git a/.github/workflows/ruby-linters.yml b/.github/workflows/ruby-linters.yml index 85fab60..a2c4fa7 100644 --- a/.github/workflows/ruby-linters.yml +++ b/.github/workflows/ruby-linters.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '2.7' + ruby-version: '3.1' - name: Install Gems run: | bundler install diff --git a/.github/workflows/ruby-tests.yml b/.github/workflows/ruby-tests.yml index 6a9f887..08f5418 100644 --- a/.github/workflows/ruby-tests.yml +++ b/.github/workflows/ruby-tests.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['2.7', '3.0'] + ruby-version: ['3.1'] steps: - uses: actions/checkout@v4 diff --git a/.ruby-version b/.ruby-version index 1f7da99..3ad0595 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.7 +3.1.5 diff --git a/CHANGELOG.md b/CHANGELOG.md index f43991d..e2b5124 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ Please mark backwards incompatible changes with an exclamation mark at the start ## [Unreleased] +### Changed +- ! Increased the minimum Ruby version requirement to 3.1.0 + ## [28.4.0] - 2025-08-26 ### Added diff --git a/README.md b/README.md index f5e9448..2662ee1 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ while abstracting internal implementations. ## Requirements -* Ruby >= 2.7.0 -* Bundler ~> 2, < 2.5.0 +* Ruby >= 3.1.0 +* Bundler ~> 2 ## Setup diff --git a/jay_api.gemspec b/jay_api.gemspec index 442079c..cbdb407 100644 --- a/jay_api.gemspec +++ b/jay_api.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.homepage = 'https://github.com/esrlabs/jay_api' spec.license = 'Apache-2.0' - spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0') + spec.required_ruby_version = Gem::Requirement.new('>= 3.1.0') spec.metadata['allowed_push_host'] = 'https://rubygems.org'