From 638e70865a12c25b576f82eda7055cc2f2fc2d05 Mon Sep 17 00:00:00 2001 From: Igor Belo Date: Thu, 18 Jun 2026 06:41:28 -0300 Subject: [PATCH 1/2] Fix Style/ReduceToHash cop in offerings --- lib/tarpon/entity/offerings.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tarpon/entity/offerings.rb b/lib/tarpon/entity/offerings.rb index a8c26dd..ff93886 100644 --- a/lib/tarpon/entity/offerings.rb +++ b/lib/tarpon/entity/offerings.rb @@ -11,8 +11,8 @@ class Offerings def initialize(current_offering_id:, offerings:, **) @current_offering_id = current_offering_id - @offerings = offerings.each_with_object({}) do |offering, map| - map[offering[:identifier].to_sym] = Tarpon::Entity::Offering.new(**offering) + @offerings = offerings.to_h do |offering| + [offering[:identifier].to_sym, Tarpon::Entity::Offering.new(**offering)] end end From d9c0834451fe55fb43dcd743c46af7ec43635c11 Mon Sep 17 00:00:00 2001 From: Igor Belo Date: Thu, 18 Jun 2026 06:46:21 -0300 Subject: [PATCH 2/2] Drop support to EOL Ruby versions --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2036af..5467194 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: ['2.7', '3.0', '3.1', 'head'] + ruby: ['3.3', '3.4', 'head'] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up Ruby