Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Rails 7.2 #105

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- rails_6.1
- rails_7.0
- rails_7.1
- rails_7.2
name: PostgreSQL ${{ matrix.pg }} - Ruby ${{ matrix.ruby }} - ${{ matrix.gemfile }}
runs-on: ubuntu-latest
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
ImageOS: ubuntu20
steps:
- uses: actions/checkout@v3
- name: Build postgres image and start the container
Expand Down
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ end
appraise "rails-7.1" do
gem "rails", "7.1.0"
end

appraise "rails-7.2" do
gem "rails", "7.2.0"
end
7 changes: 7 additions & 0 deletions gemfiles/rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "7.2.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion lib/pg_ha_migrations/allowed_versions.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "active_record/migration/compatibility"

module PgHaMigrations::AllowedVersions
ALLOWED_VERSIONS = [4.2, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0, 7.1].map do |v|
ALLOWED_VERSIONS = [4.2, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0, 7.1, 7.2].map do |v|
begin
ActiveRecord::Migration[v]
rescue ArgumentError
Expand Down
6 changes: 3 additions & 3 deletions pg_ha_migrations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", ">= 12.3.3"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "pg"
spec.add_development_dependency "db-query-matchers", "~> 0.12.0"
spec.add_development_dependency "db-query-matchers", "~> 0.13.0"
spec.add_development_dependency "pry"
spec.add_development_dependency "pry-byebug"
spec.add_development_dependency "appraisal", "~> 2.5"

spec.add_dependency "rails", ">= 6.1", "< 7.2"
spec.add_dependency "relation_to_struct", ">= 1.5.1"
spec.add_dependency "rails", ">= 6.1", "< 7.3"
spec.add_dependency "relation_to_struct", ">= 1.9.1"
spec.add_dependency "ruby2_keywords"
end
Loading