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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 505b5d0118ee9844e1486dff3fbd57c1ceec35d609ca022dcb5ba4f121e3c7db
4
- data.tar.gz: d9c7dd287a036fd2d939cf5d9a5ec6193408fc2c1de24aaa465aa38e2d8ed876
3
+ metadata.gz: 5c6f43554b0c62821e94d987ba3d9f9fab5be724206b33bb076062bc95ac2784
4
+ data.tar.gz: a0173e701a42f1ddb9851817471454598f9b60106c238fb6fc65100190ebb6b2
5
5
  SHA512:
6
- metadata.gz: fb4cd48d2db8361dbcd8414ce8512e3dc1fe618d16e1d82ac1da53b05b3a505980d691a5a0f0f8cc09856ab38029256bd5e0ca413f7d26f7a8897ca89b9aba17
7
- data.tar.gz: 9155e1925e674e35a7ee889bb8467c5cb21dcbf7394ba87650ed70f856725431784b6ad90e2433b8250cc61362c742acae9d5523b40d99865a7a3af5f771ed76
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
- cehck_basic_format(index) && check_id_format(index)
79
+ check_basic_format(index) && check_id_format(index)
80
80
  end
81
81
 
82
- def cehck_basic_format(index)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Relaton
4
4
  module Index
5
- VERSION = "0.2.5"
5
+ VERSION = "0.2.6"
6
6
  end
7
7
  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.5
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-06-14 00:00:00.000000000 Z
11
+ date: 2023-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip