relaton 3.1.9 → 3.1.10

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: 8ea394ab28844cd3cd3a8bf4fb5050801ca09e7470f12f41ac4e3c2de5819c5b
4
- data.tar.gz: b68f5acb575773b322524d63a4c3957f07b97b96f5f38fcfa0e17303cb1c1a8e
3
+ metadata.gz: 02a2b0f1822b14b2543f22ebf3b2a29b32c3851dc717f51fc5d305f36b623f99
4
+ data.tar.gz: 992ee89eaffbc66b7aa2c37394fba358f64c9c652ed56a7a19081c3f8f9c8f04
5
5
  SHA512:
6
- metadata.gz: e502491df55e172406e8cf02c7e0fd51557ec9d1d9a897f903846151cf782a2fef6bc56f52dbd155e8944af0a0c0f27a48d6e4193fb2b0c8ef14f6de2f2dcd61
7
- data.tar.gz: d0ed43395a6bde95476b75856c57b57913823d204eabdc94c752ff3dee4e1bc82972c93a3dcd8eda21dc83966e66c7d13818a2657b53bafa6c3bc999485bd6ec
6
+ metadata.gz: 256115c1ec87c34fabb705e470f68a583ce375837ce91b0afd4e5fdbba257608a96adb3dfb577e7e38fc6082c8ffc4d6936d46475dc67ca75d6fc33593255768
7
+ data.tar.gz: 14232890eb1f1dbaa34e62f9c47a1584d2432e7247c5f791a1678c9e62f41d0c080c7cc4fc4f05f99dc726d90e27a9ef5f409ed6b6e0123b55b06fdd1f2d3744
@@ -163,7 +163,22 @@ module Relaton
163
163
  target = File.join bak, File.basename(path)
164
164
  n = 0
165
165
  target = File.join(bak, "#{File.basename path}.#{n += 1}") while File.exist? target
166
- FileUtils.mv path, target
166
+ # A concurrent migration opener can hold the file (Windows denies
167
+ # the rename with EACCES) or move it first (ENOENT here): either
168
+ # way the other process won the move, and "moved exactly once"
169
+ # is already satisfied — the loser re-checks instead of failing.
170
+ begin
171
+ FileUtils.mv path, target
172
+ rescue Errno::EACCES, Errno::ENOENT
173
+ # A concurrent migration opener either holds the file (Windows
174
+ # denies the rename with EACCES) or moved it first (ENOENT
175
+ # here): either way the other process won the move and
176
+ # "moved exactly once" is already satisfied — the loser
177
+ # confirms the move happened instead of failing.
178
+ raise if File.exist?(path) ||
179
+ !(File.exist?(target) ||
180
+ Dir.glob(File.join(bak, "#{File.basename path}.*")).any?)
181
+ end
167
182
  target
168
183
  end
169
184
  end
@@ -1,3 +1,3 @@
1
1
  module Relaton
2
- VERSION = "3.1.9".freeze
2
+ VERSION = "3.1.10".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.9
4
+ version: 3.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-24 00:00:00.000000000 Z
11
+ date: 2026-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -520,14 +520,14 @@ dependencies:
520
520
  requirements:
521
521
  - - "~>"
522
522
  - !ruby/object:Gem::Version
523
- version: 2.0.50
523
+ version: 2.0.52
524
524
  type: :runtime
525
525
  prerelease: false
526
526
  version_requirements: !ruby/object:Gem::Requirement
527
527
  requirements:
528
528
  - - "~>"
529
529
  - !ruby/object:Gem::Version
530
- version: 2.0.50
530
+ version: 2.0.52
531
531
  - !ruby/object:Gem::Dependency
532
532
  name: yeptris
533
533
  requirement: !ruby/object:Gem::Requirement