nandi 2.1.0 → 2.1.1

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: 0bcecda52a441da340e251adb8b8c0e3e323579fb10df1d23ca1612867f8cd9a
4
- data.tar.gz: 7c56e3cf4f93f97e7a62b2b180b977ee21b7f199b49b8989acdcaa3a8f918b81
3
+ metadata.gz: 70ecd10143c43ea10379b4dc7c6d1bbf4d4bc3d654cbf15dde273b49cf229a08
4
+ data.tar.gz: 0b64d84387f9e4be7eed24ddadc9f74d58d118cca7d91e0e526f680ee5fcfba8
5
5
  SHA512:
6
- metadata.gz: bf4c111c2982f1e4ae8aa6c1b8b83f04b084a1adf2eb2da1af375c7b26de608db76da6aafbbb799dc5b26b53c9021e8912d84bd3f25987160aaf71dec7a4a546
7
- data.tar.gz: '09f340dd4c6a435047e326b424b07450715f04594bd326d6a01cdd12e3ed6e222f5e5dc06f11a9174b0b429857b6f1d80419f49b63fd35c979ad2a439829e49e'
6
+ metadata.gz: 8f057aa2c71d7169d6482a2fbc2fe7fb4721bfeef3b650a74c09e002fe9b7eff4fa3479b5e2c0af7940d91d88ca71dcddab0fbd169077fee1ec00cb26e447f60
7
+ data.tar.gz: 112cc9d2d08c4802767d2c481d11f30ff87844c765a0afcb0224dcb1bbfc1c69dc4d7c6dd618a79d744bb7fdff03f2945f216f2eba90511d99b6c4ad58fcdd59
@@ -374,11 +374,19 @@ module Nandi
374
374
  end
375
375
 
376
376
  def default_statement_timeout
377
- Nandi.config.concurrent_statement_timeout || Nandi.config.access_exclusive_statement_timeout
377
+ if strictest_lock == LockWeights::SHARE
378
+ Nandi.config.concurrent_statement_timeout || Nandi.config.access_exclusive_statement_timeout
379
+ else
380
+ Nandi.config.access_exclusive_statement_timeout
381
+ end
378
382
  end
379
383
 
380
384
  def default_lock_timeout
381
- Nandi.config.concurrent_lock_timeout || Nandi.config.access_exclusive_lock_timeout
385
+ if strictest_lock == LockWeights::SHARE
386
+ Nandi.config.concurrent_lock_timeout || Nandi.config.access_exclusive_lock_timeout
387
+ else
388
+ Nandi.config.access_exclusive_lock_timeout
389
+ end
382
390
  end
383
391
 
384
392
  def invoke_custom_method(name, ...)
@@ -67,7 +67,7 @@ module Nandi
67
67
  def new_indexes_are_separated_from_other_migrations
68
68
  [migration.up_instructions, migration.down_instructions].map do |instructions|
69
69
  instructions.none? { |i| i.procedure == :add_index } ||
70
- instructions.count == 1
70
+ instructions.one?
71
71
  end.all?
72
72
  end
73
73
 
data/lib/nandi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nandi
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nandi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless Engineering
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-06-05 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  - !ruby/object:Gem::Version
178
178
  version: '0'
179
179
  requirements: []
180
- rubygems_version: 3.6.2
180
+ rubygems_version: 4.0.3
181
181
  specification_version: 4
182
182
  summary: Fear-free migrations for PostgreSQL
183
183
  test_files: []