EXtremeZip 2021.8.23 → 2022.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/exz +9 -0
- data/lib/extremeunzip.zzaqsu.rb +8 -3
- data/lib/extremezip.zzaqsv.rb +1 -1
- metadata +23 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a18211ccbc5a5f68438269308ad9be2aad5c5700a43af1a26226fa7ad4caba95
|
4
|
+
data.tar.gz: 29bd1c6254a7f6ca4d6f3ec0542b245165f7c0c02663a9bfeb3addfde5151d7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c90dc130aef9445e25a4c08c2db1a9b3c1f58b6219f4c33f8da587fa7d4ecb18f2cc3be41cd728081fc6fcf02779685c729a59c9703f3b621326112878dfdc7e
|
7
|
+
data.tar.gz: 8e92ce441802aa5d21fe4fa6cb7c69336b545cf5e4f42c44e878bfe976db8edad462fbb781881213a46b3c2d20630127c3f009baa7b48446d4b5fb97a3206da9
|
data/bin/exz
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
|
3
3
|
require 'extremezip.zzaqsv'
|
4
|
+
require 'notifier'
|
4
5
|
|
5
6
|
if ARGV.empty? # 未指定命令行参数。
|
6
7
|
else # 指定了命令行参数。
|
8
|
+
puts("process id: #{Process.pid}"); # Debug
|
9
|
+
|
7
10
|
$rootPath = ARGV[0] # 记录要打包的目录树的根目录。
|
8
11
|
|
9
12
|
exzObject = ExtremeZip.new # 创建压缩对象
|
10
13
|
|
11
14
|
exzObject.exz($rootPath) # 压缩
|
15
|
+
|
16
|
+
Notifier.notify(
|
17
|
+
image: "image.png",
|
18
|
+
title: "exz finished",
|
19
|
+
message: $rootPath
|
20
|
+
)
|
12
21
|
end
|
data/lib/extremeunzip.zzaqsu.rb
CHANGED
@@ -42,14 +42,19 @@ def extractVfsDataWithVersionExternalFile(wholeCbor, fileVersion)
|
|
42
42
|
puts("data block counter: #{dataBlockCounter}") # Debug
|
43
43
|
checkMemoryUsage(34)
|
44
44
|
|
45
|
-
|
45
|
+
begin # 解压
|
46
|
+
currentRawData = LZMA.decompress(currentCompressed) # 解压这一块
|
47
|
+
|
46
48
|
|
47
|
-
|
49
|
+
dataFile.syswrite(currentRawData) # 写入内容
|
50
|
+
rescue RuntimeError => e # 解压失败
|
51
|
+
puts "Warning: the exz file may be incomplete." # 报告错误。文件可能不完整。
|
52
|
+
end # begin # 解压
|
48
53
|
|
49
54
|
# victoriaFreshData=victoriaFreshData+currentRawData #追加
|
50
55
|
# victoriaFreshData << currentRawData #追加
|
51
56
|
|
52
|
-
puts("byte size: #{victoriaFreshData.bytesize}") # debug.
|
57
|
+
#puts("byte size: #{victoriaFreshData.bytesize}") # debug.
|
53
58
|
|
54
59
|
dataBlockCounter += 1 # count
|
55
60
|
end # compressedVfsDataList.each do |currentCompressed|
|
data/lib/extremezip.zzaqsv.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: EXtremeZip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2022.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hxcan Cai
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cod
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.4.3
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: notifier
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.5.2
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.5.2
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: uuid
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,20 +86,20 @@ dependencies:
|
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
89
|
+
version: 2022.1.10
|
76
90
|
- - ">="
|
77
91
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
92
|
+
version: 2022.1.10
|
79
93
|
type: :runtime
|
80
94
|
prerelease: false
|
81
95
|
version_requirements: !ruby/object:Gem::Requirement
|
82
96
|
requirements:
|
83
97
|
- - "~>"
|
84
98
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
99
|
+
version: 2022.1.10
|
86
100
|
- - ">="
|
87
101
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
102
|
+
version: 2022.1.10
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: hx_cbor
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,7 +130,7 @@ homepage: http://rubygems.org/gems/EXtremeZip
|
|
116
130
|
licenses:
|
117
131
|
- MIT
|
118
132
|
metadata: {}
|
119
|
-
post_install_message:
|
133
|
+
post_install_message:
|
120
134
|
rdoc_options: []
|
121
135
|
require_paths:
|
122
136
|
- lib
|
@@ -132,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
146
|
version: '0'
|
133
147
|
requirements: []
|
134
148
|
rubygems_version: 3.1.6
|
135
|
-
signing_key:
|
149
|
+
signing_key:
|
136
150
|
specification_version: 4
|
137
151
|
summary: EXtremeZip
|
138
152
|
test_files: []
|