libis-rosetta_checker 1.0.3 → 1.0.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 800d35ff67ae9c8a7e5f3313773d5753dd000963
|
|
4
|
+
data.tar.gz: d13fb0f202e16fd7b76332d41a4cbf09c9d91942
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 347db6497e2ba3817da9661762a31ae522927e790a101e1d1e29069894c88814105fac6f315fb5617eeabbdeb7b243d7817d07a128d1963e23f1861036d461a7
|
|
7
|
+
data.tar.gz: 16232bd06e60836816fd2be5e6f6feec8039c45563b68f60438b624c506daf4c886a4fbf9b508d28bb75e332a19b9e88c38d33e3825daba8ff2675e20e27518b
|
|
@@ -201,18 +201,28 @@ module Libis
|
|
|
201
201
|
checksum_file Bzip2::FFI::Reader.open(file), info
|
|
202
202
|
check_file info
|
|
203
203
|
elsif File.extname(file) == '.zip'
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
info[:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
204
|
+
begin
|
|
205
|
+
logger.info MSG_CALC_FC
|
|
206
|
+
checksum_file File.open(file), info
|
|
207
|
+
unless check_file info > 0
|
|
208
|
+
logger.info ' - Unpacking'.freeze
|
|
209
|
+
info[:parent_type] = 'Z'
|
|
210
|
+
info[:parent] = file
|
|
211
|
+
Zip::File.open(file) do |zip|
|
|
212
|
+
zip.each do |entry|
|
|
213
|
+
next if entry.directory?
|
|
214
|
+
info[:file] = entry.name
|
|
215
|
+
logger.info "- #{file}/#{entry.name}"
|
|
216
|
+
logger.info MSG_CALC_FC
|
|
217
|
+
checksum_file entry.get_input_stream, info
|
|
218
|
+
check_file info
|
|
219
|
+
end
|
|
220
|
+
end
|
|
215
221
|
end
|
|
222
|
+
rescue Zip::ZipError
|
|
223
|
+
logger.error "Could not unpack file '#{file}'"
|
|
224
|
+
rescue Exception
|
|
225
|
+
logger.error "Could not access file '#{file}'"
|
|
216
226
|
end
|
|
217
227
|
else
|
|
218
228
|
begin
|
|
@@ -275,6 +285,8 @@ module Libis
|
|
|
275
285
|
end
|
|
276
286
|
end
|
|
277
287
|
|
|
288
|
+
info_list.size
|
|
289
|
+
|
|
278
290
|
end
|
|
279
291
|
|
|
280
292
|
def to_report(info = nil)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libis-rosetta_checker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kris Dekeyser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-01-
|
|
11
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ruby-oci8
|