Skip to content

Commit

Permalink
Test the gem against Ruby 3.3 and Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobscholz committed Feb 20, 2024
1 parent 77d1182 commit 8bc4ce8
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 22 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ jobs:
- ruby: 2.7.3
gemfile: Gemfile.6.1.pg
- ruby: 2.7.3
gemfile: Gemfile.7.0.pg
- ruby: 3.2.0
gemfile: Gemfile.7.1.pg
- ruby: 3.3.0
gemfile: Gemfile.6.1.pg
- ruby: 3.2.0
gemfile: Gemfile.7.0.pg
- ruby: 3.3.0
gemfile: Gemfile.7.1.pg
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0
3.3.0
2 changes: 1 addition & 1 deletion Gemfile
2 changes: 1 addition & 1 deletion Gemfile.7.0.pg → Gemfile.7.1.pg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

# Runtime dependencies
gem 'activerecord', '~>7.0.1'
gem 'activerecord', '~>7.1.3'
gem 'i18n'
gem 'pg', '~> 1.3.5'

Expand Down
43 changes: 31 additions & 12 deletions Gemfile.7.0.pg.lock → Gemfile.7.1.pg.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,40 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activemodel (7.0.4.1)
activesupport (= 7.0.4.1)
activerecord (7.0.4.1)
activemodel (= 7.0.4.1)
activesupport (= 7.0.4.1)
activesupport (7.0.4.1)
activemodel (7.1.3)
activesupport (= 7.1.3)
activerecord (7.1.3)
activemodel (= 7.1.3)
activesupport (= 7.1.3)
timeout (>= 0.4.0)
activesupport (7.1.3)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
concurrent-ruby (1.2.0)
database_cleaner (1.7.0)
base64 (0.2.0)
bigdecimal (3.1.6)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.1.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
diff-lcs (1.3)
drb (2.2.0)
ruby2_keywords
gemika (0.8.0)
i18n (1.12.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
minitest (5.17.0)
minitest (5.22.2)
mutex_m (0.2.0)
pg (1.3.5)
rake (12.3.2)
rspec (3.8.0)
Expand All @@ -42,16 +59,18 @@ GEM
rspec_candy (0.5.1)
rspec
sneaky-save
ruby2_keywords (0.0.5)
sneaky-save (0.1.3)
activerecord (>= 3.2.0)
tzinfo (2.0.5)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)

PLATFORMS
ruby

DEPENDENCIES
activerecord (~> 7.0.1)
activerecord (~> 7.1.3)
assignable_values!
database_cleaner
gemika (~> 0.8.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ assignable_values - Enums on vitamins [![Tests](https://github.com/makandra/assi

We carefully enhanced the core enum functionality with small tweaks that are useful for web forms, internationalized applications and common authorization patterns.

`assignable_values` is tested with Rails 5.1, 6.1 and 7.0 on Ruby 2.5, 2.7 and 3.2.
`assignable_values` is tested with Rails 5.1, 6.1 and 7.1 on Ruby 2.5, 2.7 and 3.3.


Restricting scalar attributes
Expand Down
6 changes: 5 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
I18n.load_path = [File.join(File.dirname(__FILE__), 'support/i18n.yml')]
I18n.default_locale = :en

ActiveRecord::Base.default_timezone = :local
if ActiveRecord.respond_to?(:default_timezone)
ActiveRecord.default_timezone = :local
else
ActiveRecord::Base.default_timezone = :local
end

Dir["#{File.dirname(__FILE__)}/support/*.rb"].sort.each {|f| require f}

Expand Down

0 comments on commit 8bc4ce8

Please sign in to comment.