From 254fcdb75451143aa285f74ac04d6ece03f6a3de Mon Sep 17 00:00:00 2001 From: Gordan Manojlovic Date: Fri, 12 Dec 2025 14:27:32 +0100 Subject: [PATCH 1/2] Update supported ruby versions --- .github/workflows/test.yml | 2 +- enumerations.gemspec | 7 +++++-- test/helpers/test_helper.rb | 9 ++++++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a28ac8..7bf7b71 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: [2.6, 2.7, '3.0', 3.1] + ruby: ['3.0', 3.1, 3.2, 3.3, 3.4] steps: - uses: actions/checkout@v2 diff --git a/enumerations.gemspec b/enumerations.gemspec index efbf02c..2fc228a 100644 --- a/enumerations.gemspec +++ b/enumerations.gemspec @@ -1,4 +1,6 @@ -require File.expand_path('../lib/enumerations/version', __FILE__) +# frozen_string_literal: true + +require File.expand_path('lib/enumerations/version', __dir__) Gem::Specification.new do |s| s.name = 'enumerations' @@ -8,8 +10,9 @@ Gem::Specification.new do |s| s.description = 'Extends ActiveRecord with enumeration capabilites.' s.homepage = 'https://github.com/infinum/enumerations' s.license = 'MIT' + s.required_ruby_version = '>= 3.0' - s.authors = [ + s.authors = [ 'Tomislav Car', 'Nikica Jokić', 'Nikola Santić', 'Stjepan Hadjić', 'Petar Ćurković' ] diff --git a/test/helpers/test_helper.rb b/test/helpers/test_helper.rb index 61d8b65..5b8f31f 100644 --- a/test/helpers/test_helper.rb +++ b/test/helpers/test_helper.rb @@ -1,7 +1,10 @@ +# frozen_string_literal: true + require 'simplecov' SimpleCov.start require 'minitest/autorun' +require 'logger' require 'enumerations' require 'active_record' require 'pry' @@ -10,9 +13,9 @@ require_relative 'locale_helper' class Status < Enumerations::Base - values draft: { id: 1, name: 'Draft' }, - review_pending: { id: 2, name: 'Review pending' }, - published: { id: 3, name: 'Published' } + values draft: { id: 1, name: 'Draft' }, + review_pending: { id: 2, name: 'Review pending' }, + published: { id: 3, name: 'Published' } value :none, id: 4, name: 'None', visible: true, deleted: false value :deleted, id: 5, deleted: true From 52ba45fbc8b930e782c998d13e20bb1f5d22211e Mon Sep 17 00:00:00 2001 From: Gordan Manojlovic Date: Fri, 12 Dec 2025 15:28:12 +0100 Subject: [PATCH 2/2] Update test_helper --- test/helpers/test_helper.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/test/helpers/test_helper.rb b/test/helpers/test_helper.rb index 5b8f31f..b23a18a 100644 --- a/test/helpers/test_helper.rb +++ b/test/helpers/test_helper.rb @@ -4,7 +4,6 @@ SimpleCov.start require 'minitest/autorun' -require 'logger' require 'enumerations' require 'active_record' require 'pry'