relaton-index 0.2.10 → 0.2.12
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 +3 -4
- 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: 7e8920bb67f033d7164f4543a40ffc8588b6bbe4de64b6635b92379b77cfed2e
|
4
|
+
data.tar.gz: c809a8e39de290734cd2a7eb5948c10f94b942f15b61f9485fea4d6b157bb474
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 558a2747f8cd219d018bb59472c09caf279d4e5f0e0637329872e7dfdd7e11eee70173f042f8b025df509b9eb23763357b6cfaae21606f4572b0f30a662fc84f
|
7
|
+
data.tar.gz: '059d3c22c7248132aeb1c73e211af04154a0ec846f7c9c2d402b12bdd6f67fe5264b80a94a529993d0d26420dd5eaa5f4dcfbb7f9d637480d74d57ef120a4a68'
|
@@ -128,12 +128,11 @@ module Relaton
|
|
128
128
|
# @return [Array<Hash>] index
|
129
129
|
#
|
130
130
|
def fetch_and_save
|
131
|
-
resp = URI(url).
|
131
|
+
resp = StringIO.new(URI(url).read)
|
132
132
|
zip = Zip::InputStream.new resp
|
133
|
-
resp.close if resp.respond_to? :close
|
134
|
-
resp.unlink if resp.is_a? Tempfile
|
135
133
|
entry = zip.get_next_entry
|
136
|
-
|
134
|
+
yaml = entry.get_input_stream.read
|
135
|
+
index = YAML.safe_load(yaml, permitted_classes: [Symbol])
|
137
136
|
save index
|
138
137
|
warn "[relaton-#{@dir}] Downloaded index from #{url}"
|
139
138
|
return index if check_format index
|
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.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|