safe-pg-migrations 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d05d2e6c8647af8e618652235043dfde1b104065e71113f9f55c25117dd6ab6
4
- data.tar.gz: 1f67d82d62855e6566f39c92b3cfdf4e9d6f68cc2bd0b9105c3e61ba32fd8ddf
3
+ metadata.gz: c5137a033537f088b0a0c3f41dc8b632d5c37ef81cf5ac25bc62d6b01e62c56c
4
+ data.tar.gz: 5f0029750d93bcb04ffcb65e8a8bf0b6a8420ee1f6d7c12a85efac967e3b5c93
5
5
  SHA512:
6
- metadata.gz: daeed81cfc524ad80427179930e86b9ba71d4743e390dc8c5ce805d01ea3fdbb9866c30707f76d6b7578c9370b9761564b784813f165c52e1512afdffd9d74ed
7
- data.tar.gz: cb4346bcaf47707bb811cefcace498683f63a7854d80c47487dac462b1e79ec62ee702a75fd18985b114a0ab4b69a8863274eb2af86517f166f50795dff3cc55
6
+ metadata.gz: afbb64bcc3de2680200ec2cc735b6fa7fc7bb02a71b056be7dcafd3a02a9a11895398632e128ad727e6b089e149ccf75617c5f82674bd1472b16af79c15c0f77
7
+ data.tar.gz: '0946ab447b6c503ff9965f71edba84e973ddc6e5bc658fe9785672d23c3dc6b0ace071e9081727defd8585dba3d6faedb22145bd9fe8c84e0cd735e4ce44457f'
@@ -2,16 +2,18 @@
2
2
 
3
3
  module SafePgMigrations
4
4
  module LegacyActiveRecordSupport
5
- ruby2_keywords def validate_foreign_key(from_table, to_table = nil, **options)
6
- return super(from_table, to_table || options) unless satisfied? '>=6.0.0'
5
+ ruby2_keywords def validate_foreign_key(*args)
6
+ return super(*args) if satisfied? '>=6.0.0'
7
7
 
8
- super(from_table, to_table, **options)
8
+ from_table, to_table, options = args
9
+ super(from_table, to_table || options)
9
10
  end
10
11
 
11
- ruby2_keywords def foreign_key_exists?(from_table, to_table = nil, **options)
12
- return super(from_table, to_table || options) unless satisfied? '>=6.0.0'
12
+ ruby2_keywords def foreign_key_exists?(*args)
13
+ return super(*args) if satisfied? '>=6.0.0'
13
14
 
14
- super(from_table, to_table, **options)
15
+ from_table, to_table, options = args
16
+ super(from_table, to_table || options)
15
17
  end
16
18
 
17
19
  protected
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafePgMigrations
4
- VERSION = '1.4.1'
4
+ VERSION = '1.4.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safe-pg-migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu Prat
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-03-01 00:00:00.000000000 Z
13
+ date: 2022-03-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord