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 +4 -4
- data/lib/relaton/cli/collection_store.rb +16 -1
- data/lib/relaton/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 02a2b0f1822b14b2543f22ebf3b2a29b32c3851dc717f51fc5d305f36b623f99
|
|
4
|
+
data.tar.gz: 992ee89eaffbc66b7aa2c37394fba358f64c9c652ed56a7a19081c3f8f9c8f04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
data/lib/relaton/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
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.
|
|
530
|
+
version: 2.0.52
|
|
531
531
|
- !ruby/object:Gem::Dependency
|
|
532
532
|
name: yeptris
|
|
533
533
|
requirement: !ruby/object:Gem::Requirement
|