From ba644bdd36308895826a346deaaf6f231124dfc2 Mon Sep 17 00:00:00 2001 From: karol Date: Wed, 7 Jan 2026 10:51:34 +0100 Subject: [PATCH] Support Ruby 4.0 --- .github/workflows/main.yml | 4 ++-- .ruby-version | 2 +- openapi_contracts.gemspec | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ceceac4..299e97c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: matrix: activesupport: ['7.1', '7.2', '8.0', '8.1'] json_schemer: ['2.1', '2.2', '2.3', '2.4', '2.5'] - ruby: ['3.2', '3.3', '3.4'] + ruby: ['3.2', '3.3', '3.4', '4.0'] env: ACTIVESUPPORT: '${{ matrix.activesupport }}' COVERAGE: 'true' @@ -37,7 +37,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.4 + ruby-version: 4.0 bundler-cache: true cache-version: '7.1' - name: Rubocop 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/openapi_contracts.gemspec b/openapi_contracts.gemspec index 53da130..9c113f1 100644 --- a/openapi_contracts.gemspec +++ b/openapi_contracts.gemspec @@ -9,7 +9,7 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/mkon/openapi_contracts' s.summary = 'Openapi schemas as API contracts' s.license = 'MIT' - s.required_ruby_version = '>= 3.2', '< 3.5' + s.required_ruby_version = '>= 3.2', '< 4.1' s.files = Dir['lib/**/*', 'README.md']