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..b23a18a 100644 --- a/test/helpers/test_helper.rb +++ b/test/helpers/test_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'simplecov' SimpleCov.start @@ -10,9 +12,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