From 8201121d164d9d436711aa0d79704b64d4691f9f Mon Sep 17 00:00:00 2001 From: Jordan Owens Date: Thu, 5 Sep 2024 23:19:22 -0400 Subject: [PATCH 1/2] Bump version to 1.8.1 --- lib/activerecord-import/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/activerecord-import/version.rb b/lib/activerecord-import/version.rb index f72ef317..1696ef78 100644 --- a/lib/activerecord-import/version.rb +++ b/lib/activerecord-import/version.rb @@ -2,6 +2,6 @@ module ActiveRecord module Import - VERSION = "1.8.0" + VERSION = "1.8.1" end end From c744ffd8fbf1d36919e6909050916b5edec421bb Mon Sep 17 00:00:00 2001 From: Jordan Owens Date: Thu, 5 Sep 2024 23:20:43 -0400 Subject: [PATCH 2/2] Update changelog for 1.8.1 --- .github/workflows/test.yaml | 2 +- .rubocop.yml | 3 +++ CHANGELOG.md | 6 ++++++ benchmarks/lib/cli_parser.rb | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f218532f..cdc82b96 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -141,7 +141,7 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.0 bundler-cache: true - name: Run Rubocop run: bundle exec rubocop diff --git a/.rubocop.yml b/.rubocop.yml index ba20ccc3..ee25f149 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,8 @@ inherit_from: .rubocop_todo.yml +AllCops: + TargetRubyVersion: 3.0.x + Metrics/AbcSize: Enabled: false diff --git a/CHANGELOG.md b/CHANGELOG.md index be656fdf..44cd0d30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Changes in 1.8.1 + +### Fixes + +* Further update for ActiveRecord 7.2 compatibility when running validations. Thanks to @denisahearn via \##847. + ## Changes in 1.8.0 ### New Features diff --git a/benchmarks/lib/cli_parser.rb b/benchmarks/lib/cli_parser.rb index 62e4ac77..6fed0a48 100644 --- a/benchmarks/lib/cli_parser.rb +++ b/benchmarks/lib/cli_parser.rb @@ -10,7 +10,7 @@ # * t - the table types to test. ie: myisam, innodb, memory, temporary, etc. # module BenchmarkOptionParser - BANNER = "Usage: ruby #{$0} [options]\nSee ruby #{$0} -h for more options." + BANNER = "Usage: ruby #{$0} [options]\nSee ruby #{$0} -h for more options.".freeze def self.print_banner puts BANNER