From bf802618cd9d7b8a92f1c3eefe411d02efbcdf96 Mon Sep 17 00:00:00 2001 From: Roman Samoilov <2270393+rsamoilov@users.noreply.github.com> Date: Fri, 13 Sep 2024 20:37:56 +0100 Subject: [PATCH] Support Rails 7.2 (#185) * Support Rails 7.2 * CI fix for Ruby 2.7 --- .github/workflows/CI.yml | 7 +++++++ Gemfile | 6 +++--- standalone_migrations.gemspec | 8 ++++---- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c7cfbd0..011f354 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -21,6 +21,13 @@ jobs: - '6.1' - '7.0' - '7.1' + - '7.2' + exclude: + - activerecord: '7.2' + ruby: '2.7' + - activerecord: '7.2' + ruby: '3.0' + name: Ruby ${{ matrix.ruby }} / ActiveRecord ${{ matrix.activerecord }} env: AR: ~> ${{ matrix.activerecord }} diff --git a/Gemfile b/Gemfile index 27477f5..72c1623 100644 --- a/Gemfile +++ b/Gemfile @@ -1,12 +1,12 @@ source 'https://rubygems.org' gem 'rake', '>= 10.0' -gem 'activerecord', ENV['AR'] ? ENV['AR'].split(",") : [">= 6.0.0", "< 7.2"] -gem 'railties', ENV['AR'] ? ENV['AR'].split(",") : [">= 6.0.0", "< 7.2"] +gem 'activerecord', ENV['AR'] ? ENV['AR'].split(",") : [">= 6.0.0", "< 8.0"] +gem 'railties', ENV['AR'] ? ENV['AR'].split(",") : [">= 6.0.0", "< 8.0"] gem 'nokogiri', "~> 1.14" group :dev do - gem 'sqlite3', '~> 1.5' + gem 'sqlite3', '< 1.7' gem 'rspec', '>= 2.99.0' gem 'jeweler' end diff --git a/standalone_migrations.gemspec b/standalone_migrations.gemspec index 60ac018..a2ce212 100644 --- a/standalone_migrations.gemspec +++ b/standalone_migrations.gemspec @@ -66,13 +66,13 @@ Gem::Specification.new do |s| if s.respond_to? :add_runtime_dependency then s.add_runtime_dependency(%q.freeze, [">= 10.0"]) - s.add_runtime_dependency(%q.freeze, [">= 6.0.0", "< 7.2"]) - s.add_runtime_dependency(%q.freeze, [">= 6.0.0", "< 7.2"]) + s.add_runtime_dependency(%q.freeze, [">= 6.0.0", "< 8.0"]) + s.add_runtime_dependency(%q.freeze, [">= 6.0.0", "< 8.0"]) s.add_runtime_dependency(%q.freeze, ["~> 1.14"]) else s.add_dependency(%q.freeze, [">= 10.0"]) - s.add_dependency(%q.freeze, [">= 6.0.0", "< 7.2"]) - s.add_dependency(%q.freeze, [">= 6.0.0", "< 7.2"]) + s.add_dependency(%q.freeze, [">= 6.0.0", "< 8.0"]) + s.add_dependency(%q.freeze, [">= 6.0.0", "< 8.0"]) s.add_dependency(%q.freeze, ["~> 1.14"]) end end