From 013bda668061e41ee486a86c8b246215ef223305 Mon Sep 17 00:00:00 2001 From: Anton Pokhodun <154240219+antonpokhodun@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:44:21 +0200 Subject: [PATCH] [WALR-8621]: Bump iron bank to ruby 3.1 (#109) --- .github/workflows/ci.yml | 4 +--- .rubocop.yml | 14 +++++++++++++- .ruby-version | 2 +- README.md | 2 +- iron_bank.gemspec | 2 +- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2dd4ca2..d7b94b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,6 @@ jobs: strategy: matrix: ruby-version: - - '2.7' - - '3.0' - '3.1' - '3.2' - '3.3' @@ -53,6 +51,6 @@ jobs: - name: Set up Ruby uses: zendesk/setup-ruby@v1 with: - ruby-version: "3.0" + ruby-version: "3.1" bundler-cache: true - run: bundle exec rake rubocop diff --git a/.rubocop.yml b/.rubocop.yml index fc635e4..2b2a7bb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,7 +5,7 @@ AllCops: DisplayStyleGuide: true NewCops: enable SuggestExtensions: false - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.1 Layout/DotPosition: EnforcedStyle: trailing @@ -68,3 +68,15 @@ Style/RegexpLiteral: Style/RescueStandardError: Exclude: - lib/iron_bank/csv.rb + +Style/HashSyntax: + Exclude: + - spec/shared_examples/** + - spec/iron_bank/**/*.rb + - lib/iron_bank/*. + - lib/iron_bank/**/*.rb + +Style/RedundantFreeze: + Exclude: + - lib/iron_bank/*.rb + diff --git a/.ruby-version b/.ruby-version index 1f7da99..0aec50e 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.7 +3.1.4 diff --git a/README.md b/README.md index 799a7a8..9cc06b5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This gem provides opinionated resources to interact with the Zuora API through their REST interface. It defines **associations** between them, as well as a simple **declaration API** (`with_one`, `with_many`) to extend them. -This gem is tested against Ruby `>= 2.6`. +This gem is tested against Ruby `>= 3.1`. Please use [GitHub Issues][issues] to report bugs. diff --git a/iron_bank.gemspec b/iron_bank.gemspec index a62da56..3b76963 100644 --- a/iron_bank.gemspec +++ b/iron_bank.gemspec @@ -19,7 +19,7 @@ Gem::Specification.new do |spec| "mturan@zendesk.com" ] - spec.required_ruby_version = ">= 2.7" + spec.required_ruby_version = ">= 3.1" spec.files = `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features)/})