relaton-index 0.2.7 → 0.2.9

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: bf7b77a3f6cba821dfa2cff1ebed3ac0462c13620387f6498f6bf85603cc8224
4
- data.tar.gz: dd0ff5e5da00c7797f71323b65728b80c7d70ed7f348c59ba7d06d59d89e57eb
3
+ metadata.gz: 3ff5229d5dd3df8751fc3cd3eb8706b5bed99674218d311d2682f6e508fe57fe
4
+ data.tar.gz: b630ef1e74e129f75c2c1d638e5820a705b90b80d16ab68d514d6d5098b492c3
5
5
  SHA512:
6
- metadata.gz: a6aeaa0052cd0c80ccef916c6c56aa09d6aea73f814630a7b0f57a3f267538a636a05e572cff8130571ee34b37f59b0851d07f3940ea0496aa13d823c978aa02
7
- data.tar.gz: e5e91870084bd6062faac4a8f705fbd74379353e759cf00eeebd93b0200ff0bf92124c2ef0c5144da00323b62eed30f086e42019a83782d4bc2cecab7a41a581
6
+ metadata.gz: b436b6adcf708ec4afd0e4c47f32660d81539a912751ea9eb61bea76cd20c747579608c809d8e4b9c9c40fd6dddaf54548e4402de51869a78a5de0fd0794b577
7
+ data.tar.gz: dc8a788bba0de944e5821221ad0c0b730046c18b8dc03f629804170ce3abc57bf10c6315189878e3ebfbb9328e92b751fc42288b46454a2d8095fb8f1657138e
@@ -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 == @id_keys.to_set
95
+ keys.none? { |k| !@id_keys.include? k }
96
96
  end
97
97
 
98
98
  #
@@ -130,6 +130,8 @@ module Relaton
130
130
  def fetch_and_save
131
131
  resp = URI(url).open
132
132
  zip = Zip::InputStream.new resp
133
+ resp.close
134
+ resp.unlink
133
135
  entry = zip.get_next_entry
134
136
  index = YAML.safe_load(entry.get_input_stream.read, permitted_classes: [Symbol])
135
137
  save index
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Relaton
4
4
  module Index
5
- VERSION = "0.2.7"
5
+ VERSION = "0.2.9"
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.7
4
+ version: 0.2.9
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-10-06 00:00:00.000000000 Z
11
+ date: 2024-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip