From 1385a81b829fb409e24f7ed10a6654763237e0d5 Mon Sep 17 00:00:00 2001 From: karol Date: Wed, 7 Jan 2026 13:46:15 +0100 Subject: [PATCH 1/2] Support Ruby 4.0 --- .github/workflows/main.yml | 4 ++-- .ruby-version | 2 +- Gemfile | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b1cbc99..0b134a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: env: ACTIVESUPPORT: '8.1' with: - ruby-version: '3.4' + ruby-version: '4.0' bundler-cache: true cache-version: '8.1' - name: Rubocop @@ -26,7 +26,7 @@ jobs: fail-fast: false matrix: activesupport: ['7.1', '7.2', '8.0', '8.1'] - ruby: ['3.3', '3.4'] + ruby: ['3.3', '3.4', '4.0'] steps: - uses: actions/checkout@v2 - name: Set up Ruby diff --git a/.ruby-version b/.ruby-version index 2aa5131..fcdb2e1 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.4.7 +4.0.0 diff --git a/Gemfile b/Gemfile index 8a23cbd..f647407 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,5 @@ source 'https://rubygems.org' -# Silence warning in ruby 3.4 (will no longer be part of the default gems starting from Ruby 3.5) gem 'logger' # Declare your gem's dependencies in keys-oauth.gemspec. From c3936c5a6781c49ba251f480dd6f556f67289eea Mon Sep 17 00:00:00 2001 From: karol Date: Wed, 7 Jan 2026 16:24:03 +0100 Subject: [PATCH 2/2] Also allow 4.0 in the gemspec --- ja2r.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ja2r.gemspec b/ja2r.gemspec index 3aba1cd..ab13349 100644 --- a/ja2r.gemspec +++ b/ja2r.gemspec @@ -9,7 +9,7 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/mkon/ja2r' s.summary = 'Simple JSON-API to ruby object conversion' s.license = 'MIT' - s.required_ruby_version = '>= 3.2', '< 3.5' + s.required_ruby_version = '>= 3.2', '< 4.1' s.files = Dir['{app,config,db,lib}/**/*', 'LICENSE', 'README.md']