EXtremeZip 2022.2.21 → 2022.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/extremeunzip.zzaqsu.rb +19 -26
- data/lib/extremezip.zzaqsv.rb +5 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ffc2dc7996aae9f38e3bc7c4e4d605ea328ff5f7e0f72e423a2de2d99918c0c
|
4
|
+
data.tar.gz: bb9d5e826e23cb08d999d00b7245df1523b0587629dfbf97d4105769148c71f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 394dc5e472b751f9194ffc7e4caf75e7f1c8eb3749c4bb532574946406db561b077cb8b0ff8d5da1e9c0c5a722dc1db352cfca7d66e528262ce0f59f97903859
|
7
|
+
data.tar.gz: 4c1c3e03d27df42cc1d7382aad01000b0731199a3316512b4261d7f9de08191f9fac3623fce0c8a9c74e1acb2400ddbeae5e3a67ca32904286d847e0ce2e3984
|
data/lib/extremeunzip.zzaqsu.rb
CHANGED
@@ -11,36 +11,29 @@ def checkMemoryUsage(lineNumber)
|
|
11
11
|
puts("#{lineNumber} , Memory: #{mem.mb}"); # Debug
|
12
12
|
end # def checkMemoryUsage
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
14
|
class ExtremeUnZip
|
18
15
|
# 根据偏移值来读取压缩块数据列表。
|
19
|
-
def readVfsDataList(wholeCbor)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
compressedVfsDataList # 返回 内容
|
39
|
-
end
|
16
|
+
def readVfsDataList(wholeCbor)
|
17
|
+
compressedVfsDataList = [] # 获取压缩后的数据块列表
|
18
|
+
startIndix=wholeCbor['vfsDataListStart'] # 初始起始位置。
|
19
|
+
|
20
|
+
puts "whole length: #{@wholeFileContent.length}, list conent: #{wholeCbor['vfsDataList']}" # Debug
|
21
|
+
|
22
|
+
|
23
|
+
wholeCbor['vfsDataList'].each do |currentBlockInfo| # 一个个块地处理
|
24
|
+
length=currentBlockInfo['length'] # 获取长度。
|
25
|
+
|
26
|
+
currentBlock=@wholeFileContent[startIndix, length] # 读取内容
|
27
|
+
|
28
|
+
compressedVfsDataList << currentBlock # 加入当前块
|
29
|
+
|
30
|
+
startIndix+=length # 位移。
|
31
|
+
end
|
32
|
+
|
33
|
+
compressedVfsDataList # 返回 内容
|
34
|
+
end
|
40
35
|
|
41
36
|
# 根据版本号,提取VFS数据内容
|
42
|
-
|
43
|
-
|
44
37
|
def extractVfsDataWithVersionExternalFile(wholeCbor, fileVersion)
|
45
38
|
victoriaFreshData = '' # 解压后的数据块整体
|
46
39
|
dataFileName = 'victoriafreshdata.w' # 数据文件名
|
data/lib/extremezip.zzaqsv.rb
CHANGED
@@ -110,7 +110,7 @@ class ExtremeZip
|
|
110
110
|
puts wholeCbor # Debug
|
111
111
|
puts wholeCbor.inspect # Debug
|
112
112
|
|
113
|
-
stamp
|
113
|
+
stamp = wholeCbor['timestamp'].to_i # 获取时间戳
|
114
114
|
#stamp = wholeCbor.try(:[], 'timestamp') # 获取时间戳
|
115
115
|
|
116
116
|
|
@@ -128,11 +128,15 @@ class ExtremeZip
|
|
128
128
|
def exz(rootPath)
|
129
129
|
timestampTHreshold, fileExists=loadStamp(rootPath) # 读取时间戳阈值。
|
130
130
|
|
131
|
+
puts "threshold: #{timestampTHreshold}" # Debug
|
132
|
+
|
131
133
|
#陈欣
|
132
134
|
|
133
135
|
if (timestampTHreshold > 0) # 有效的时间戳
|
134
136
|
@clipDownloader.timestampThreshold=timestampTHreshold # 设置文件时间戳阈值。
|
135
137
|
end #if (timestampTHreshold > 0) # 有效的时间戳
|
138
|
+
|
139
|
+
puts "threshold vfs: #{@clipDownloader.timestampThreshold}" # Debug
|
136
140
|
|
137
141
|
if fileExists # 存在文件,则表明将要发生增量压缩
|
138
142
|
@wholeCbor['incremental']=true # 是增量压缩。
|
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: 2022.
|
4
|
+
version: 2022.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hxcan Cai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cod
|
@@ -86,20 +86,20 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2022.2.
|
89
|
+
version: 2022.2.24
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 2022.2.
|
92
|
+
version: 2022.2.24
|
93
93
|
type: :runtime
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 2022.2.
|
99
|
+
version: 2022.2.24
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 2022.2.
|
102
|
+
version: 2022.2.24
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: hx_cbor
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|