relaton-index 0.2.6 → 0.2.8
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/index/file_io.rb +6 -6
- data/lib/relaton/index/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 013462bffab557a0102a174a665c5fe0c1a78cefd860082dfd9fdb7c330e3d27
|
4
|
+
data.tar.gz: 161bd750ee80fd5322c937c1ad3bafa02dbcfbe66556ca3364b9d050e0f3cbd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22736c54089b201ab2bb6ddf1d49c5ef440f1aa7c2190166e1634108da7068a08f57329612828c691da969fb6d2f66ece14e48c0cc64a6db08c4aa097fc3734b
|
7
|
+
data.tar.gz: 1094171dfbcc9df8ed45c2db949768c0cc29fa17a9ba92d560a7d90445f370dfa48bfecc02065aaee63262406bc974f11889e90a13f20d8bea947f9c06340b12
|
@@ -92,7 +92,7 @@ module Relaton
|
|
92
92
|
keys = index.each_with_object(Set.new) do |item, acc|
|
93
93
|
acc.merge item[:id].keys if item[:id].is_a?(Hash)
|
94
94
|
end
|
95
|
-
keys
|
95
|
+
keys.none? { |k| !@id_keys.include? k }
|
96
96
|
end
|
97
97
|
|
98
98
|
#
|
@@ -113,11 +113,11 @@ module Relaton
|
|
113
113
|
end
|
114
114
|
|
115
115
|
def warn_local_index_error(reason)
|
116
|
-
warn "[relaton] #{reason} file #{file}"
|
116
|
+
warn "[relaton-#{@dir}] #{reason} file #{file}"
|
117
117
|
if url.is_a? String
|
118
|
-
warn "[relaton] Considering #{file} file corrupt, re-downloading from #{url}"
|
118
|
+
warn "[relaton-#{@dir}] Considering #{file} file corrupt, re-downloading from #{url}"
|
119
119
|
else
|
120
|
-
warn "[relaton] Considering #{file} file corrupt, removing it."
|
120
|
+
warn "[relaton-#{@dir}] Considering #{file} file corrupt, removing it."
|
121
121
|
remove
|
122
122
|
end
|
123
123
|
end
|
@@ -133,7 +133,7 @@ module Relaton
|
|
133
133
|
entry = zip.get_next_entry
|
134
134
|
index = YAML.safe_load(entry.get_input_stream.read, permitted_classes: [Symbol])
|
135
135
|
save index
|
136
|
-
warn "[relaton] Downloaded index from #{url}"
|
136
|
+
warn "[relaton-#{@dir}] Downloaded index from #{url}"
|
137
137
|
return index if check_format index
|
138
138
|
|
139
139
|
warn_remote_index_error "Wrong structure of"
|
@@ -142,7 +142,7 @@ module Relaton
|
|
142
142
|
end
|
143
143
|
|
144
144
|
def warn_remote_index_error(reason)
|
145
|
-
warn "[relaton] #{reason} newly downloaded file " \
|
145
|
+
warn "[relaton-#{@dir}] #{reason} newly downloaded file " \
|
146
146
|
"at #{file} #{url}, the remote index seems to be invalid." \
|
147
147
|
"Please report this issue at https://github.com/relaton/relaton-cli."
|
148
148
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-index
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08
|
11
|
+
date: 2023-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|