relaton-index 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton/index/file_io.rb +4 -2
- 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: 5c6f43554b0c62821e94d987ba3d9f9fab5be724206b33bb076062bc95ac2784
|
4
|
+
data.tar.gz: a0173e701a42f1ddb9851817471454598f9b60106c238fb6fc65100190ebb6b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51016e19a53b7a161112ad5a041af0d80d01b06cda5a304fad3786a024136ab77ddf66de95cdbcba6f69f6ba9bd9dc4b1cf5df020fbd93a59ab34163d6d0a566
|
7
|
+
data.tar.gz: 6a47dd6e50f542aea778755cbfb7dbdfb40364cdf7ef95fbea862ec058914d216dc3e3566dd100f75e3cae6f59444edab4517fd0b59fb3acd7cb436156021f86
|
@@ -76,10 +76,12 @@ module Relaton
|
|
76
76
|
# @return [Boolean] <description>
|
77
77
|
#
|
78
78
|
def check_format(index)
|
79
|
-
|
79
|
+
check_basic_format(index) && check_id_format(index)
|
80
80
|
end
|
81
81
|
|
82
|
-
def
|
82
|
+
def check_basic_format(index)
|
83
|
+
return false unless index.is_a? Array
|
84
|
+
|
83
85
|
keys = %i[file id]
|
84
86
|
index.all? { |item| item.respond_to?(:keys) && item.keys.sort == keys }
|
85
87
|
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.6
|
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-
|
11
|
+
date: 2023-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|