Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,28 @@ jobs:
fail-fast: false
matrix:
gemfile:
- Gemfile.rails-5.0-stable
- Gemfile.rails-5.1-stable
- Gemfile.rails-5.2-stable
- Gemfile.rails-6.0-stable
- Gemfile.rails-6.1-stable
- Gemfile.rails-7.0-stable
ruby-version: ['3.1', '3.0', '2.7']
exclude:
- gemfile: Gemfile.rails-6.0-stable
ruby-version: "3.0"
- gemfile: Gemfile.rails-6.0-stable
ruby-version: "3.1"
- gemfile: Gemfile.rails-5.2-stable
ruby-version: "3.0"
- gemfile: Gemfile.rails-5.2-stable
ruby-version: "3.1"
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.6"
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.7
- uses: actions/checkout@v3
- name: Set up Ruby 3.0
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7.x
ruby-version: 3.0.x

- name: Publish to RubyGems
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ test/version_tmp
tmp
.byebug_history
polymorphic_integer_type_test
gemfiles/*.lock
7 changes: 7 additions & 0 deletions gemfiles/Gemfile.rails-7.0-stable
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec path: ".."

gem "activerecord", github: "rails/rails", branch: "7-0-stable"
2 changes: 1 addition & 1 deletion lib/polymorphic_integer_type/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module PolymorphicIntegerType
VERSION = "3.1.1"
VERSION = "3.2.0"
end
2 changes: 1 addition & 1 deletion polymorphic_integer_type.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_dependency "activerecord"
spec.add_dependency "activerecord", "< 7.1"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
Expand Down