activerecord-safer_migrations 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eea049e010a0e70538da15050fc12dc357e3a2a4bd7a282cabd50d0662b73abc
4
- data.tar.gz: b10bff633844c10c31604a9acb6019942e767da89a389c0a03e01df48bc80001
3
+ metadata.gz: 8769c6b2a580398601ee1e2732ffb169b52ff508942ec2f962ba3df98d04693d
4
+ data.tar.gz: 51570c39f5d64a69dd2305d6ee546d76ad73c1771346544b96b8cc3b4481cbe0
5
5
  SHA512:
6
- metadata.gz: 86e5460e1a23eae1b87c34b0df46802315ac0dd0d092de4e2e9b5802af8c656b266e983f1b8ef9d5fe72957467b6ab0742ab95a168c97d7f7b5c1dfd213bde31
7
- data.tar.gz: 0d79dcfd2741bd38e2e4048c4da1839ae7f0f991bc5f089695eb886eb8dbe8010ba520accfea9499b18af0dcdb5cd61671fdd79b91f3b11601fb85393e1a9cc5
6
+ metadata.gz: b4a8c1e584672caf73bb9152c8161c78b3a1fa9aff74af1dc280540ce7f1f5aea6c6d005a17f13b33566951226e77507536c3465550a05ce8ff321c0aaf59667
7
+ data.tar.gz: bce85d3f7b074c01a16eb44a9d288cede6b5b1dccccc1f7fd37c4d14ec1fce7a4a1f374319994cbeb1c1fb7cd5d62ba4b6d17ab321ac1c5d7adb8db83718f581
@@ -24,15 +24,15 @@ jobs:
24
24
  strategy:
25
25
  fail-fast: false
26
26
  matrix:
27
- ruby-version: ["3.1", "3.2", "3.3"]
27
+ ruby-version: ["3.2", "3.3", "3.4", "4.0"]
28
28
  activerecord-version:
29
- - "7.0.8"
30
- - "7.1.3.4"
31
- - "7.2.0"
29
+ - "7.2"
30
+ - "8.0"
31
+ - "8.1"
32
32
  runs-on: ubuntu-latest
33
33
  services:
34
34
  postgres:
35
- image: postgres:14
35
+ image: postgres:18
36
36
  env:
37
37
  POSTGRES_USER: postgres
38
38
  POSTGRES_DB: safer_migrations_test
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ inherit_gem:
2
2
  gc_ruboconfig: rubocop.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 3.2
5
+ TargetRubyVersion: 3.4
6
6
  NewCops: enable
7
7
 
8
8
  Gemspec/RequiredRubyVersion:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.4
1
+ 3.4.7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 5.0.0 / 2025-12-08
2
+
3
+ - Drop support for Ruby =< 3.2 and Rails < 7.2
4
+ - Add support for ActiveRecord 8.1, Ruby 3.4 and Ruby 4.0
5
+
1
6
  # 4.0.0 / 2024-08-21
2
7
 
3
8
  - Remove support for Ruby =< 3.0 and Rails < 7.0
@@ -34,12 +34,12 @@ module ActiveRecord
34
34
  end
35
35
 
36
36
  def set_new_setting
37
- puts "-- set_setting(#{@setting_name.inspect}, #{@value})"
37
+ ActiveRecord::Base.logger&.info "-- set_setting(#{@setting_name.inspect}, #{@value})"
38
38
  @connection.set_setting(@setting_name, @value)
39
39
  end
40
40
 
41
41
  def reset_setting
42
- puts "-- set_setting(#{@setting_name.inspect}, #{@original_value})"
42
+ ActiveRecord::Base.logger&.info "-- set_setting(#{@setting_name.inspect}, #{@original_value})"
43
43
  @connection.set_setting(@setting_name, @original_value)
44
44
  end
45
45
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module SaferMigrations
5
- VERSION = "4.0.0"
5
+ VERSION = "5.0.0"
6
6
  end
7
7
  end
@@ -79,13 +79,13 @@ RSpec.describe ActiveRecord::SaferMigrations::Migration do
79
79
  -> { ActiveRecord::Base.transaction { migration.migrate(:up) } }
80
80
  end
81
81
 
82
- include_examples "running the migration"
82
+ it_behaves_like "running the migration"
83
83
  end
84
84
 
85
85
  context "when running without transactional DDL" do
86
86
  let(:run_migration) { -> { migration.migrate(:up) } }
87
87
 
88
- include_examples "running the migration"
88
+ it_behaves_like "running the migration"
89
89
  end
90
90
  end
91
91
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-safer_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless Engineering
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -53,7 +52,6 @@ licenses:
53
52
  - MIT
54
53
  metadata:
55
54
  rubygems_mfa_required: 'true'
56
- post_install_message:
57
55
  rdoc_options: []
58
56
  require_paths:
59
57
  - lib
@@ -68,8 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
66
  - !ruby/object:Gem::Version
69
67
  version: '0'
70
68
  requirements: []
71
- rubygems_version: 3.5.11
72
- signing_key:
69
+ rubygems_version: 3.6.9
73
70
  specification_version: 4
74
71
  summary: ActiveRecord migration helpers to avoid downtime
75
72
  test_files: []