EXtremeZip 2021.8.21 → 2021.10.10
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 +11 -4
- metadata +34 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f41b10960a5d7b46c3d80ef672f8c5b276d0ac690916497a24adf638f6bb45d4
|
4
|
+
data.tar.gz: dec43ce9c3283826056661e7fe1a7c0a39af00ace9bb2f1bd181453c3e1663f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc76edd3af33ff5fe165f95060ed18d144792b7594e7ced7eac8d874ae35a51ee5ad64a79e6cd320385f422fbfa6aa2e86dd389ddbcd47b456a6451e3cae6d72
|
7
|
+
data.tar.gz: 0dbb41578d7046d1d974495f02019fce81976f4285b7ceca7f88a841d90ab825037b2f875abcad16e951149df829926129821146a5f1a62c51975a5b32991487
|
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|
|
@@ -110,7 +115,9 @@ class ExtremeUnZip
|
|
110
115
|
#/usr/local/share/gems/gems/EXtremeZip-2021.7.8/lib/extremeunzip.zzaqsu.rb:110:in `decode': end of buffer reached (EOFError)
|
111
116
|
|
112
117
|
begin # 可能出错。
|
113
|
-
|
118
|
+
options = {:tolerant => true}
|
119
|
+
|
120
|
+
wholeCbor = CBOR.decode(wholeCborByteArray, options) # 解码
|
114
121
|
|
115
122
|
fileVersion = wholeCbor['version'] # 获取版本号
|
116
123
|
|
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: 2021.
|
4
|
+
version: 2021.10.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hxcan Cai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-10 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,34 @@ dependencies:
|
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2021.
|
89
|
+
version: 2021.8.20
|
76
90
|
- - ">="
|
77
91
|
- !ruby/object:Gem::Version
|
78
|
-
version: 2021.
|
92
|
+
version: 2021.8.20
|
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: 2021.
|
99
|
+
version: 2021.8.20
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 2021.8.20
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: hx_cbor
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 2021.8.20
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
86
114
|
- - ">="
|
87
115
|
- !ruby/object:Gem::Version
|
88
|
-
version: 2021.
|
116
|
+
version: 2021.8.20
|
89
117
|
description: Extreme zip.
|
90
118
|
email: caihuosheng@gmail.com
|
91
119
|
executables:
|