mootool 0.1.2 → 0.2.2
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 +4 -4
- data/.DS_Store +0 -0
- data/.github/workflows/ci.yml +15 -15
- data/.github/workflows/gem-push.yml +26 -26
- data/.overcommit.yml +79 -0
- data/.rubocop.yml +147 -0
- data/.ruby-version +1 -1
- data/.run/All Specs.run.xml +46 -0
- data/CODE_OF_CONDUCT.md +2 -1
- data/Gemfile +14 -11
- data/Gemfile.lock +90 -32
- data/README.md +12 -6
- data/bin/tapioca +27 -0
- data/lib/mootool/command.rb +1 -0
- data/lib/mootool/controller_base.rb +4 -1
- data/lib/mootool/controllers/dwarf.rb +8 -0
- data/lib/mootool/controllers/dyld_linker.rb +8 -0
- data/lib/mootool/controllers/dyld_shared_cache.rb +8 -0
- data/lib/mootool/controllers/fat_binary.rb +8 -0
- data/lib/mootool/controllers/kernel_collection.rb +21 -15
- data/lib/mootool/controllers/sections.rb +8 -0
- data/lib/mootool/core_extensions.rb +26 -0
- data/lib/mootool/models/device_tree.rb +85 -0
- data/lib/mootool/models/img4.rb +49 -0
- data/lib/mootool/models/ipsw.rb +19 -0
- data/lib/mootool/version.rb +1 -1
- data/lib/mootool/views/sections.full.erb +2 -2
- data/lib/mootool.rb +10 -3
- data/mootool.gemspec +17 -12
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +618 -0
- data/sorbet/rbi/gems/childprocess@4.1.0.rbi +447 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1219 -0
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +1007 -0
- data/sorbet/rbi/gems/json@2.6.2.rbi +1650 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +186 -0
- data/sorbet/rbi/gems/overcommit@0.59.1.rbi +2747 -0
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +353 -0
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +6198 -0
- data/sorbet/rbi/gems/plist@3.6.0.rbi +212 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +452 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +3587 -0
- data/sorbet/rbi/gems/rbi@0.0.15.rbi +3619 -0
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3927 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +5238 -0
- data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +12834 -0
- data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +9151 -0
- data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +6506 -0
- data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +2040 -0
- data/sorbet/rbi/gems/rspec@3.11.0.rbi +120 -0
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +7990 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +413 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi +7604 -0
- data/sorbet/rbi/gems/rubocop@1.35.0.rbi +62260 -0
- data/sorbet/rbi/gems/ruby-macho@3.0.0.rbi +5039 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1445 -0
- data/sorbet/rbi/gems/rubyzip@2.3.2.rbi +2868 -0
- data/sorbet/rbi/gems/spoom@1.1.12.rbi +2829 -0
- data/sorbet/rbi/gems/tapioca@0.9.3.rbi +2151 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +4532 -0
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +60 -0
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +8 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +3075 -0
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +458 -0
- data/sorbet/rbi/gems/yard@0.9.28.rbi +20844 -0
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +72 -24
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +1697 -385
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +30 -7
- data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +3 -1
- data/sorbet/rbi/todo.rbi +7 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +90 -10
|
@@ -0,0 +1,2868 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `rubyzip` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem rubyzip`.
|
|
6
|
+
|
|
7
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:1
|
|
8
|
+
module Zip
|
|
9
|
+
extend ::Zip
|
|
10
|
+
|
|
11
|
+
# Returns the value of attribute case_insensitive_match.
|
|
12
|
+
#
|
|
13
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
14
|
+
def case_insensitive_match; end
|
|
15
|
+
|
|
16
|
+
# Sets the attribute case_insensitive_match
|
|
17
|
+
#
|
|
18
|
+
# @param value the value to set the attribute case_insensitive_match to.
|
|
19
|
+
#
|
|
20
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
21
|
+
def case_insensitive_match=(_arg0)
|
|
22
|
+
;
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Returns the value of attribute continue_on_exists_proc.
|
|
26
|
+
#
|
|
27
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
28
|
+
def continue_on_exists_proc; end
|
|
29
|
+
|
|
30
|
+
# Sets the attribute continue_on_exists_proc
|
|
31
|
+
#
|
|
32
|
+
# @param value the value to set the attribute continue_on_exists_proc to.
|
|
33
|
+
#
|
|
34
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
35
|
+
def continue_on_exists_proc=(_arg0)
|
|
36
|
+
;
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns the value of attribute default_compression.
|
|
40
|
+
#
|
|
41
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
42
|
+
def default_compression; end
|
|
43
|
+
|
|
44
|
+
# Sets the attribute default_compression
|
|
45
|
+
#
|
|
46
|
+
# @param value the value to set the attribute default_compression to.
|
|
47
|
+
#
|
|
48
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
49
|
+
def default_compression=(_arg0)
|
|
50
|
+
;
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns the value of attribute force_entry_names_encoding.
|
|
54
|
+
#
|
|
55
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
56
|
+
def force_entry_names_encoding; end
|
|
57
|
+
|
|
58
|
+
# Sets the attribute force_entry_names_encoding
|
|
59
|
+
#
|
|
60
|
+
# @param value the value to set the attribute force_entry_names_encoding to.
|
|
61
|
+
#
|
|
62
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
63
|
+
def force_entry_names_encoding=(_arg0)
|
|
64
|
+
;
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Returns the value of attribute on_exists_proc.
|
|
68
|
+
#
|
|
69
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
70
|
+
def on_exists_proc; end
|
|
71
|
+
|
|
72
|
+
# Sets the attribute on_exists_proc
|
|
73
|
+
#
|
|
74
|
+
# @param value the value to set the attribute on_exists_proc to.
|
|
75
|
+
#
|
|
76
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
77
|
+
def on_exists_proc=(_arg0)
|
|
78
|
+
;
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# source://rubyzip-2.3.2/lib/zip.rb:49
|
|
82
|
+
def reset!; end
|
|
83
|
+
|
|
84
|
+
# @yield [_self]
|
|
85
|
+
# @yieldparam _self [Zip] the object that the method was called on
|
|
86
|
+
#
|
|
87
|
+
# source://rubyzip-2.3.2/lib/zip.rb:62
|
|
88
|
+
def setup; end
|
|
89
|
+
|
|
90
|
+
# Returns the value of attribute sort_entries.
|
|
91
|
+
#
|
|
92
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
93
|
+
def sort_entries; end
|
|
94
|
+
|
|
95
|
+
# Sets the attribute sort_entries
|
|
96
|
+
#
|
|
97
|
+
# @param value the value to set the attribute sort_entries to.
|
|
98
|
+
#
|
|
99
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
100
|
+
def sort_entries=(_arg0)
|
|
101
|
+
;
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Returns the value of attribute unicode_names.
|
|
105
|
+
#
|
|
106
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
107
|
+
def unicode_names; end
|
|
108
|
+
|
|
109
|
+
# Sets the attribute unicode_names
|
|
110
|
+
#
|
|
111
|
+
# @param value the value to set the attribute unicode_names to.
|
|
112
|
+
#
|
|
113
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
114
|
+
def unicode_names=(_arg0)
|
|
115
|
+
;
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Returns the value of attribute validate_entry_sizes.
|
|
119
|
+
#
|
|
120
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
121
|
+
def validate_entry_sizes; end
|
|
122
|
+
|
|
123
|
+
# Sets the attribute validate_entry_sizes
|
|
124
|
+
#
|
|
125
|
+
# @param value the value to set the attribute validate_entry_sizes to.
|
|
126
|
+
#
|
|
127
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
128
|
+
def validate_entry_sizes=(_arg0)
|
|
129
|
+
;
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Returns the value of attribute warn_invalid_date.
|
|
133
|
+
#
|
|
134
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
135
|
+
def warn_invalid_date; end
|
|
136
|
+
|
|
137
|
+
# Sets the attribute warn_invalid_date
|
|
138
|
+
#
|
|
139
|
+
# @param value the value to set the attribute warn_invalid_date to.
|
|
140
|
+
#
|
|
141
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
142
|
+
def warn_invalid_date=(_arg0)
|
|
143
|
+
;
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Returns the value of attribute write_zip64_support.
|
|
147
|
+
#
|
|
148
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
149
|
+
def write_zip64_support; end
|
|
150
|
+
|
|
151
|
+
# Sets the attribute write_zip64_support
|
|
152
|
+
#
|
|
153
|
+
# @param value the value to set the attribute write_zip64_support to.
|
|
154
|
+
#
|
|
155
|
+
# source://rubyzip-2.3.2/lib/zip.rb:38
|
|
156
|
+
def write_zip64_support=(_arg0)
|
|
157
|
+
;
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:5
|
|
162
|
+
Zip::CDIR_ENTRY_STATIC_HEADER_LENGTH = T.let(T.unsafe(nil), Integer)
|
|
163
|
+
|
|
164
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:4
|
|
165
|
+
Zip::CENTRAL_DIRECTORY_ENTRY_SIGNATURE = T.let(T.unsafe(nil), Integer)
|
|
166
|
+
|
|
167
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:89
|
|
168
|
+
Zip::COMPRESSION_METHODS = T.let(T.unsafe(nil), Hash)
|
|
169
|
+
|
|
170
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:87
|
|
171
|
+
Zip::COMPRESSION_METHOD_AES = T.let(T.unsafe(nil), Integer)
|
|
172
|
+
|
|
173
|
+
# RESERVED = 11
|
|
174
|
+
#
|
|
175
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:76
|
|
176
|
+
Zip::COMPRESSION_METHOD_BZIP2 = T.let(T.unsafe(nil), Integer)
|
|
177
|
+
|
|
178
|
+
# RESERVED = 7
|
|
179
|
+
#
|
|
180
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:72
|
|
181
|
+
Zip::COMPRESSION_METHOD_DEFLATE = T.let(T.unsafe(nil), Integer)
|
|
182
|
+
|
|
183
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:73
|
|
184
|
+
Zip::COMPRESSION_METHOD_DEFLATE_64 = T.let(T.unsafe(nil), Integer)
|
|
185
|
+
|
|
186
|
+
# RESERVED = 15
|
|
187
|
+
#
|
|
188
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:80
|
|
189
|
+
Zip::COMPRESSION_METHOD_IBM_CMPSC = T.let(T.unsafe(nil), Integer)
|
|
190
|
+
|
|
191
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:83
|
|
192
|
+
Zip::COMPRESSION_METHOD_IBM_LZ77 = T.let(T.unsafe(nil), Integer)
|
|
193
|
+
|
|
194
|
+
# RESERVED = 17
|
|
195
|
+
#
|
|
196
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:82
|
|
197
|
+
Zip::COMPRESSION_METHOD_IBM_TERSE = T.let(T.unsafe(nil), Integer)
|
|
198
|
+
|
|
199
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:70
|
|
200
|
+
Zip::COMPRESSION_METHOD_IMPLODE = T.let(T.unsafe(nil), Integer)
|
|
201
|
+
|
|
202
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:84
|
|
203
|
+
Zip::COMPRESSION_METHOD_JPEG = T.let(T.unsafe(nil), Integer)
|
|
204
|
+
|
|
205
|
+
# RESERVED = 13
|
|
206
|
+
#
|
|
207
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:78
|
|
208
|
+
Zip::COMPRESSION_METHOD_LZMA = T.let(T.unsafe(nil), Integer)
|
|
209
|
+
|
|
210
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:74
|
|
211
|
+
Zip::COMPRESSION_METHOD_PKWARE_DCLI = T.let(T.unsafe(nil), Integer)
|
|
212
|
+
|
|
213
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:86
|
|
214
|
+
Zip::COMPRESSION_METHOD_PPMD = T.let(T.unsafe(nil), Integer)
|
|
215
|
+
|
|
216
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:66
|
|
217
|
+
Zip::COMPRESSION_METHOD_REDUCE_1 = T.let(T.unsafe(nil), Integer)
|
|
218
|
+
|
|
219
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:67
|
|
220
|
+
Zip::COMPRESSION_METHOD_REDUCE_2 = T.let(T.unsafe(nil), Integer)
|
|
221
|
+
|
|
222
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:68
|
|
223
|
+
Zip::COMPRESSION_METHOD_REDUCE_3 = T.let(T.unsafe(nil), Integer)
|
|
224
|
+
|
|
225
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:69
|
|
226
|
+
Zip::COMPRESSION_METHOD_REDUCE_4 = T.let(T.unsafe(nil), Integer)
|
|
227
|
+
|
|
228
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:65
|
|
229
|
+
Zip::COMPRESSION_METHOD_SHRINK = T.let(T.unsafe(nil), Integer)
|
|
230
|
+
|
|
231
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:64
|
|
232
|
+
Zip::COMPRESSION_METHOD_STORE = T.let(T.unsafe(nil), Integer)
|
|
233
|
+
|
|
234
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:85
|
|
235
|
+
Zip::COMPRESSION_METHOD_WAVPACK = T.let(T.unsafe(nil), Integer)
|
|
236
|
+
|
|
237
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:2
|
|
238
|
+
class Zip::CentralDirectory
|
|
239
|
+
include ::Enumerable
|
|
240
|
+
|
|
241
|
+
# @return [CentralDirectory] a new instance of CentralDirectory
|
|
242
|
+
#
|
|
243
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:18
|
|
244
|
+
def initialize(entries = T.unsafe(nil), comment = T.unsafe(nil))
|
|
245
|
+
;
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:202
|
|
249
|
+
def ==(other)
|
|
250
|
+
;
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Returns the value of attribute comment.
|
|
254
|
+
#
|
|
255
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:11
|
|
256
|
+
def comment; end
|
|
257
|
+
|
|
258
|
+
# For iterating over the entries.
|
|
259
|
+
#
|
|
260
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:184
|
|
261
|
+
def each(&a_proc)
|
|
262
|
+
;
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Returns an Enumerable containing the entries.
|
|
266
|
+
#
|
|
267
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:14
|
|
268
|
+
def entries; end
|
|
269
|
+
|
|
270
|
+
# @raise [Error]
|
|
271
|
+
#
|
|
272
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:167
|
|
273
|
+
def get_64_e_o_c_d(buf)
|
|
274
|
+
;
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# @raise [Error]
|
|
278
|
+
#
|
|
279
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:141
|
|
280
|
+
def get_e_o_c_d(buf)
|
|
281
|
+
;
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# @raise [Error]
|
|
285
|
+
#
|
|
286
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:87
|
|
287
|
+
def read_64_e_o_c_d(buf)
|
|
288
|
+
;
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:119
|
|
292
|
+
def read_central_directory_entries(io)
|
|
293
|
+
;
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# @raise [Error]
|
|
297
|
+
#
|
|
298
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:102
|
|
299
|
+
def read_e_o_c_d(buf)
|
|
300
|
+
;
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:131
|
|
304
|
+
def read_from_stream(io)
|
|
305
|
+
;
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Returns the number of entries in the central directory (and
|
|
309
|
+
# consequently in the zip archive).
|
|
310
|
+
#
|
|
311
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:190
|
|
312
|
+
def size; end
|
|
313
|
+
|
|
314
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:158
|
|
315
|
+
def start_buf(io)
|
|
316
|
+
;
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:24
|
|
320
|
+
def write_to_stream(io)
|
|
321
|
+
;
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# @return [Boolean]
|
|
325
|
+
#
|
|
326
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:154
|
|
327
|
+
def zip64_file?(buf)
|
|
328
|
+
;
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
private
|
|
332
|
+
|
|
333
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:57
|
|
334
|
+
def write_64_e_o_c_d(io, offset, cdir_size)
|
|
335
|
+
;
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:75
|
|
339
|
+
def write_64_eocd_locator(io, zip64_eocd_offset)
|
|
340
|
+
;
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:40
|
|
344
|
+
def write_e_o_c_d(io, offset, cdir_size)
|
|
345
|
+
;
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
class << self
|
|
349
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:194
|
|
350
|
+
def read_from_stream(io)
|
|
351
|
+
;
|
|
352
|
+
end
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:5
|
|
357
|
+
Zip::CentralDirectory::END_OF_CDS = T.let(T.unsafe(nil), Integer)
|
|
358
|
+
|
|
359
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:8
|
|
360
|
+
Zip::CentralDirectory::MAX_END_OF_CDS_SIZE = T.let(T.unsafe(nil), Integer)
|
|
361
|
+
|
|
362
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:9
|
|
363
|
+
Zip::CentralDirectory::STATIC_EOCD_SIZE = T.let(T.unsafe(nil), Integer)
|
|
364
|
+
|
|
365
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:6
|
|
366
|
+
Zip::CentralDirectory::ZIP64_END_OF_CDS = T.let(T.unsafe(nil), Integer)
|
|
367
|
+
|
|
368
|
+
# source://rubyzip-2.3.2/lib/zip/central_directory.rb:7
|
|
369
|
+
Zip::CentralDirectory::ZIP64_EOCD_LOCATOR = T.let(T.unsafe(nil), Integer)
|
|
370
|
+
|
|
371
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:5
|
|
372
|
+
class Zip::CompressionMethodError < ::Zip::Error; end
|
|
373
|
+
|
|
374
|
+
# source://rubyzip-2.3.2/lib/zip/compressor.rb:2
|
|
375
|
+
class Zip::Compressor
|
|
376
|
+
# source://rubyzip-2.3.2/lib/zip/compressor.rb:3
|
|
377
|
+
def finish; end
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# source://rubyzip-2.3.2/lib/zip/dos_time.rb:3
|
|
381
|
+
class Zip::DOSTime < ::Time
|
|
382
|
+
# Dos time is only stored with two seconds accuracy
|
|
383
|
+
#
|
|
384
|
+
# source://rubyzip-2.3.2/lib/zip/dos_time.rb:28
|
|
385
|
+
def dos_equals(other)
|
|
386
|
+
;
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# source://rubyzip-2.3.2/lib/zip/dos_time.rb:21
|
|
390
|
+
def to_binary_dos_date; end
|
|
391
|
+
|
|
392
|
+
# Register DX, the Date:
|
|
393
|
+
# Bits 0-4 day (1-31)
|
|
394
|
+
# bits 5-8 month (1-12)
|
|
395
|
+
# bits 9-15 year (four digit year minus 1980)
|
|
396
|
+
#
|
|
397
|
+
# source://rubyzip-2.3.2/lib/zip/dos_time.rb:15
|
|
398
|
+
def to_binary_dos_time; end
|
|
399
|
+
|
|
400
|
+
class << self
|
|
401
|
+
# Create a DOSTime instance from a vanilla Time instance.
|
|
402
|
+
#
|
|
403
|
+
# source://rubyzip-2.3.2/lib/zip/dos_time.rb:33
|
|
404
|
+
def from_time(time)
|
|
405
|
+
;
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# source://rubyzip-2.3.2/lib/zip/dos_time.rb:37
|
|
409
|
+
def parse_binary_dos_format(bin_dos_date, bin_dos_time)
|
|
410
|
+
;
|
|
411
|
+
end
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:10
|
|
416
|
+
class Zip::DecompressionError < ::Zip::Error; end
|
|
417
|
+
|
|
418
|
+
# source://rubyzip-2.3.2/lib/zip/decompressor.rb:2
|
|
419
|
+
class Zip::Decompressor
|
|
420
|
+
# @return [Decompressor] a new instance of Decompressor
|
|
421
|
+
#
|
|
422
|
+
# source://rubyzip-2.3.2/lib/zip/decompressor.rb:20
|
|
423
|
+
def initialize(input_stream, decompressed_size = T.unsafe(nil))
|
|
424
|
+
;
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
# Returns the value of attribute decompressed_size.
|
|
428
|
+
#
|
|
429
|
+
# source://rubyzip-2.3.2/lib/zip/decompressor.rb:18
|
|
430
|
+
def decompressed_size; end
|
|
431
|
+
|
|
432
|
+
# Returns the value of attribute input_stream.
|
|
433
|
+
#
|
|
434
|
+
# source://rubyzip-2.3.2/lib/zip/decompressor.rb:17
|
|
435
|
+
def input_stream; end
|
|
436
|
+
|
|
437
|
+
class << self
|
|
438
|
+
# source://rubyzip-2.3.2/lib/zip/decompressor.rb:5
|
|
439
|
+
def decompressor_classes; end
|
|
440
|
+
|
|
441
|
+
# source://rubyzip-2.3.2/lib/zip/decompressor.rb:13
|
|
442
|
+
def find_by_compression_method(compression_method)
|
|
443
|
+
;
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
# source://rubyzip-2.3.2/lib/zip/decompressor.rb:9
|
|
447
|
+
def register(compression_method, decompressor_class)
|
|
448
|
+
;
|
|
449
|
+
end
|
|
450
|
+
end
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
# source://rubyzip-2.3.2/lib/zip/decompressor.rb:3
|
|
454
|
+
Zip::Decompressor::CHUNK_SIZE = T.let(T.unsafe(nil), Integer)
|
|
455
|
+
|
|
456
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb:2
|
|
457
|
+
class Zip::DecryptedIo
|
|
458
|
+
# @return [DecryptedIo] a new instance of DecryptedIo
|
|
459
|
+
#
|
|
460
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb:5
|
|
461
|
+
def initialize(io, decrypter)
|
|
462
|
+
;
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb:10
|
|
466
|
+
def read(length = T.unsafe(nil), outbuf = T.unsafe(nil))
|
|
467
|
+
;
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
private
|
|
471
|
+
|
|
472
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb:28
|
|
473
|
+
def buffer; end
|
|
474
|
+
|
|
475
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb:24
|
|
476
|
+
def eof; end
|
|
477
|
+
|
|
478
|
+
# @return [Boolean]
|
|
479
|
+
#
|
|
480
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb:32
|
|
481
|
+
def input_finished?; end
|
|
482
|
+
|
|
483
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb:36
|
|
484
|
+
def produce_input; end
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb:3
|
|
488
|
+
Zip::DecryptedIo::CHUNK_SIZE = T.let(T.unsafe(nil), Integer)
|
|
489
|
+
|
|
490
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/encryption.rb:5
|
|
491
|
+
class Zip::Decrypter; end
|
|
492
|
+
|
|
493
|
+
# source://rubyzip-2.3.2/lib/zip/deflater.rb:2
|
|
494
|
+
class Zip::Deflater < ::Zip::Compressor
|
|
495
|
+
# @return [Deflater] a new instance of Deflater
|
|
496
|
+
#
|
|
497
|
+
# source://rubyzip-2.3.2/lib/zip/deflater.rb:3
|
|
498
|
+
def initialize(output_stream, level = T.unsafe(nil), encrypter = T.unsafe(nil))
|
|
499
|
+
;
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
# source://rubyzip-2.3.2/lib/zip/deflater.rb:12
|
|
503
|
+
def <<(data)
|
|
504
|
+
;
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# Returns the value of attribute crc.
|
|
508
|
+
#
|
|
509
|
+
# source://rubyzip-2.3.2/lib/zip/deflater.rb:28
|
|
510
|
+
def crc; end
|
|
511
|
+
|
|
512
|
+
# source://rubyzip-2.3.2/lib/zip/deflater.rb:24
|
|
513
|
+
def finish; end
|
|
514
|
+
|
|
515
|
+
# Returns the value of attribute size.
|
|
516
|
+
#
|
|
517
|
+
# source://rubyzip-2.3.2/lib/zip/deflater.rb:28
|
|
518
|
+
def size; end
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:4
|
|
522
|
+
class Zip::DestinationFileExistsError < ::Zip::Error; end
|
|
523
|
+
|
|
524
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/encryption.rb:2
|
|
525
|
+
class Zip::Encrypter; end
|
|
526
|
+
|
|
527
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:3
|
|
528
|
+
class Zip::Entry
|
|
529
|
+
# @return [Entry] a new instance of Entry
|
|
530
|
+
#
|
|
531
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:55
|
|
532
|
+
def initialize(*args)
|
|
533
|
+
;
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:512
|
|
537
|
+
def <=>(other)
|
|
538
|
+
;
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:502
|
|
542
|
+
def ==(other)
|
|
543
|
+
;
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:151
|
|
547
|
+
def calculate_local_header_size; end
|
|
548
|
+
|
|
549
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:164
|
|
550
|
+
def cdir_header_size; end
|
|
551
|
+
|
|
552
|
+
# @raise [::Zip::Error]
|
|
553
|
+
#
|
|
554
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:376
|
|
555
|
+
def check_c_dir_entry_comment_size; end
|
|
556
|
+
|
|
557
|
+
# @raise [Error]
|
|
558
|
+
#
|
|
559
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:370
|
|
560
|
+
def check_c_dir_entry_signature; end
|
|
561
|
+
|
|
562
|
+
# @raise [Error]
|
|
563
|
+
#
|
|
564
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:364
|
|
565
|
+
def check_c_dir_entry_static_header_length(buf)
|
|
566
|
+
;
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
# @raise [::Zip::EntryNameError]
|
|
570
|
+
#
|
|
571
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:49
|
|
572
|
+
def check_name(name)
|
|
573
|
+
;
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:603
|
|
577
|
+
def clean_up; end
|
|
578
|
+
|
|
579
|
+
# Returns the value of attribute comment.
|
|
580
|
+
#
|
|
581
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
582
|
+
def comment; end
|
|
583
|
+
|
|
584
|
+
# Sets the attribute comment
|
|
585
|
+
#
|
|
586
|
+
# @param value the value to set the attribute comment to.
|
|
587
|
+
#
|
|
588
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
589
|
+
def comment=(_arg0)
|
|
590
|
+
;
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:147
|
|
594
|
+
def comment_size; end
|
|
595
|
+
|
|
596
|
+
# Returns the value of attribute compressed_size.
|
|
597
|
+
#
|
|
598
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
599
|
+
def compressed_size; end
|
|
600
|
+
|
|
601
|
+
# Sets the attribute compressed_size
|
|
602
|
+
#
|
|
603
|
+
# @param value the value to set the attribute compressed_size to.
|
|
604
|
+
#
|
|
605
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
606
|
+
def compressed_size=(_arg0)
|
|
607
|
+
;
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
# Returns the value of attribute compression_method.
|
|
611
|
+
#
|
|
612
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
613
|
+
def compression_method; end
|
|
614
|
+
|
|
615
|
+
# Sets the attribute compression_method
|
|
616
|
+
#
|
|
617
|
+
# @param value the value to set the attribute compression_method to.
|
|
618
|
+
#
|
|
619
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
620
|
+
def compression_method=(_arg0)
|
|
621
|
+
;
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
# Returns the value of attribute crc.
|
|
625
|
+
#
|
|
626
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
627
|
+
def crc; end
|
|
628
|
+
|
|
629
|
+
# Sets the attribute crc
|
|
630
|
+
#
|
|
631
|
+
# @param value the value to set the attribute crc to.
|
|
632
|
+
#
|
|
633
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
634
|
+
def crc=(_arg0)
|
|
635
|
+
;
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:114
|
|
639
|
+
def directory?; end
|
|
640
|
+
|
|
641
|
+
# Returns the value of attribute dirty.
|
|
642
|
+
#
|
|
643
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
644
|
+
def dirty; end
|
|
645
|
+
|
|
646
|
+
# Sets the attribute dirty
|
|
647
|
+
#
|
|
648
|
+
# @param value the value to set the attribute dirty to.
|
|
649
|
+
#
|
|
650
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
651
|
+
def dirty=(_arg0)
|
|
652
|
+
;
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
# @return [Boolean]
|
|
656
|
+
#
|
|
657
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:76
|
|
658
|
+
def encrypted?; end
|
|
659
|
+
|
|
660
|
+
# Returns the value of attribute external_file_attributes.
|
|
661
|
+
#
|
|
662
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
663
|
+
def external_file_attributes; end
|
|
664
|
+
|
|
665
|
+
# Sets the attribute external_file_attributes
|
|
666
|
+
#
|
|
667
|
+
# @param value the value to set the attribute external_file_attributes to.
|
|
668
|
+
#
|
|
669
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
670
|
+
def external_file_attributes=(_arg0)
|
|
671
|
+
;
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
# Returns the value of attribute extra.
|
|
675
|
+
#
|
|
676
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
677
|
+
def extra; end
|
|
678
|
+
|
|
679
|
+
# Sets the attribute extra
|
|
680
|
+
#
|
|
681
|
+
# @param value the value to set the attribute extra to.
|
|
682
|
+
#
|
|
683
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
684
|
+
def extra=(_arg0)
|
|
685
|
+
;
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:143
|
|
689
|
+
def extra_size; end
|
|
690
|
+
|
|
691
|
+
# Extracts entry to file dest_path (defaults to @name).
|
|
692
|
+
# NB: The caller is responsible for making sure dest_path is safe, if it
|
|
693
|
+
# is passed.
|
|
694
|
+
#
|
|
695
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:176
|
|
696
|
+
def extract(dest_path = T.unsafe(nil), &block)
|
|
697
|
+
;
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:114
|
|
701
|
+
def file?; end
|
|
702
|
+
|
|
703
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:407
|
|
704
|
+
def file_stat(path)
|
|
705
|
+
;
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
# @raise [InternalError]
|
|
709
|
+
# @return [Boolean]
|
|
710
|
+
#
|
|
711
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:106
|
|
712
|
+
def file_type_is?(type)
|
|
713
|
+
;
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:16
|
|
717
|
+
def filepath; end
|
|
718
|
+
|
|
719
|
+
# Returns the value of attribute follow_symlinks.
|
|
720
|
+
#
|
|
721
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
722
|
+
def follow_symlinks; end
|
|
723
|
+
|
|
724
|
+
# Sets the attribute follow_symlinks
|
|
725
|
+
#
|
|
726
|
+
# @param value the value to set the attribute follow_symlinks to.
|
|
727
|
+
#
|
|
728
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
729
|
+
def follow_symlinks=(_arg0)
|
|
730
|
+
;
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
# Returns the value of attribute fstype.
|
|
734
|
+
#
|
|
735
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
736
|
+
def fstype; end
|
|
737
|
+
|
|
738
|
+
# Sets the attribute fstype
|
|
739
|
+
#
|
|
740
|
+
# @param value the value to set the attribute fstype to.
|
|
741
|
+
#
|
|
742
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
743
|
+
def fstype=(_arg0)
|
|
744
|
+
;
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:16
|
|
748
|
+
def ftype; end
|
|
749
|
+
|
|
750
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:550
|
|
751
|
+
def gather_fileinfo_from_srcpath(src_path)
|
|
752
|
+
;
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:415
|
|
756
|
+
def get_extra_attributes_from_path(path)
|
|
757
|
+
;
|
|
758
|
+
end
|
|
759
|
+
|
|
760
|
+
# Returns an IO like object for the given ZipEntry.
|
|
761
|
+
# Warning: may behave weird with symlinks.
|
|
762
|
+
#
|
|
763
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:518
|
|
764
|
+
def get_input_stream(&block)
|
|
765
|
+
;
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:595
|
|
769
|
+
def get_raw_input_stream(&block)
|
|
770
|
+
;
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
# Returns the value of attribute gp_flags.
|
|
774
|
+
#
|
|
775
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
776
|
+
def gp_flags; end
|
|
777
|
+
|
|
778
|
+
# Sets the attribute gp_flags
|
|
779
|
+
#
|
|
780
|
+
# @param value the value to set the attribute gp_flags to.
|
|
781
|
+
#
|
|
782
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
783
|
+
def gp_flags=(_arg0)
|
|
784
|
+
;
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# Returns the value of attribute header_signature.
|
|
788
|
+
#
|
|
789
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
790
|
+
def header_signature; end
|
|
791
|
+
|
|
792
|
+
# Sets the attribute header_signature
|
|
793
|
+
#
|
|
794
|
+
# @param value the value to set the attribute header_signature to.
|
|
795
|
+
#
|
|
796
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
797
|
+
def header_signature=(_arg0)
|
|
798
|
+
;
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
# @return [Boolean]
|
|
802
|
+
#
|
|
803
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:80
|
|
804
|
+
def incomplete?; end
|
|
805
|
+
|
|
806
|
+
# Returns the value of attribute internal_file_attributes.
|
|
807
|
+
#
|
|
808
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
809
|
+
def internal_file_attributes; end
|
|
810
|
+
|
|
811
|
+
# Sets the attribute internal_file_attributes
|
|
812
|
+
#
|
|
813
|
+
# @param value the value to set the attribute internal_file_attributes to.
|
|
814
|
+
#
|
|
815
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
816
|
+
def internal_file_attributes=(_arg0)
|
|
817
|
+
;
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:135
|
|
821
|
+
def local_entry_offset; end
|
|
822
|
+
|
|
823
|
+
# Returns the value of attribute local_header_offset.
|
|
824
|
+
#
|
|
825
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
826
|
+
def local_header_offset; end
|
|
827
|
+
|
|
828
|
+
# Sets the attribute local_header_offset
|
|
829
|
+
#
|
|
830
|
+
# @param value the value to set the attribute local_header_offset to.
|
|
831
|
+
#
|
|
832
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
833
|
+
def local_header_offset=(_arg0)
|
|
834
|
+
;
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:84
|
|
838
|
+
def mtime; end
|
|
839
|
+
|
|
840
|
+
# Returns the value of attribute name.
|
|
841
|
+
#
|
|
842
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
843
|
+
def name; end
|
|
844
|
+
|
|
845
|
+
# Sets the attribute name
|
|
846
|
+
#
|
|
847
|
+
# @param value the value to set the attribute name to.
|
|
848
|
+
#
|
|
849
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
850
|
+
def name=(_arg0)
|
|
851
|
+
;
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
# @return [Boolean]
|
|
855
|
+
#
|
|
856
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:119
|
|
857
|
+
def name_is_directory?; end
|
|
858
|
+
|
|
859
|
+
# Is the name a relative path, free of `..` patterns that could lead to
|
|
860
|
+
# path traversal attacks? This does NOT handle symlinks; if the path
|
|
861
|
+
# contains symlinks, this check is NOT enough to guarantee safety.
|
|
862
|
+
#
|
|
863
|
+
# @return [Boolean]
|
|
864
|
+
#
|
|
865
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:126
|
|
866
|
+
def name_safe?; end
|
|
867
|
+
|
|
868
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:139
|
|
869
|
+
def name_size; end
|
|
870
|
+
|
|
871
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:169
|
|
872
|
+
def next_header_offset; end
|
|
873
|
+
|
|
874
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:447
|
|
875
|
+
def pack_c_dir_entry; end
|
|
876
|
+
|
|
877
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:284
|
|
878
|
+
def pack_local_entry; end
|
|
879
|
+
|
|
880
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:589
|
|
881
|
+
def parent_as_string; end
|
|
882
|
+
|
|
883
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:390
|
|
884
|
+
def read_c_dir_entry(io)
|
|
885
|
+
;
|
|
886
|
+
end
|
|
887
|
+
|
|
888
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:382
|
|
889
|
+
def read_c_dir_extra_field(io)
|
|
890
|
+
;
|
|
891
|
+
end
|
|
892
|
+
|
|
893
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:245
|
|
894
|
+
def read_local_entry(io)
|
|
895
|
+
;
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
# Returns the value of attribute restore_ownership.
|
|
899
|
+
#
|
|
900
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
901
|
+
def restore_ownership; end
|
|
902
|
+
|
|
903
|
+
# Sets the attribute restore_ownership
|
|
904
|
+
#
|
|
905
|
+
# @param value the value to set the attribute restore_ownership to.
|
|
906
|
+
#
|
|
907
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
908
|
+
def restore_ownership=(_arg0)
|
|
909
|
+
;
|
|
910
|
+
end
|
|
911
|
+
|
|
912
|
+
# Returns the value of attribute restore_permissions.
|
|
913
|
+
#
|
|
914
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
915
|
+
def restore_permissions; end
|
|
916
|
+
|
|
917
|
+
# Sets the attribute restore_permissions
|
|
918
|
+
#
|
|
919
|
+
# @param value the value to set the attribute restore_permissions to.
|
|
920
|
+
#
|
|
921
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
922
|
+
def restore_permissions=(_arg0)
|
|
923
|
+
;
|
|
924
|
+
end
|
|
925
|
+
|
|
926
|
+
# Returns the value of attribute restore_times.
|
|
927
|
+
#
|
|
928
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
929
|
+
def restore_times; end
|
|
930
|
+
|
|
931
|
+
# Sets the attribute restore_times
|
|
932
|
+
#
|
|
933
|
+
# @param value the value to set the attribute restore_times to.
|
|
934
|
+
#
|
|
935
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
936
|
+
def restore_times=(_arg0)
|
|
937
|
+
;
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:18
|
|
941
|
+
def set_default_vars_values; end
|
|
942
|
+
|
|
943
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:438
|
|
944
|
+
def set_extra_attributes_on_path(dest_path)
|
|
945
|
+
;
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:335
|
|
949
|
+
def set_ftype_from_c_dir_entry; end
|
|
950
|
+
|
|
951
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:425
|
|
952
|
+
def set_unix_attributes_on_path(dest_path)
|
|
953
|
+
;
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
# Returns the value of attribute size.
|
|
957
|
+
#
|
|
958
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
959
|
+
def size; end
|
|
960
|
+
|
|
961
|
+
# Sets the attribute size
|
|
962
|
+
#
|
|
963
|
+
# @param value the value to set the attribute size to.
|
|
964
|
+
#
|
|
965
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
966
|
+
def size=(_arg0)
|
|
967
|
+
;
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:114
|
|
971
|
+
def symlink?; end
|
|
972
|
+
|
|
973
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:84
|
|
974
|
+
def time; end
|
|
975
|
+
|
|
976
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:98
|
|
977
|
+
def time=(value)
|
|
978
|
+
;
|
|
979
|
+
end
|
|
980
|
+
|
|
981
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:191
|
|
982
|
+
def to_s; end
|
|
983
|
+
|
|
984
|
+
# Returns the value of attribute unix_gid.
|
|
985
|
+
#
|
|
986
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
987
|
+
def unix_gid; end
|
|
988
|
+
|
|
989
|
+
# Sets the attribute unix_gid
|
|
990
|
+
#
|
|
991
|
+
# @param value the value to set the attribute unix_gid to.
|
|
992
|
+
#
|
|
993
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
994
|
+
def unix_gid=(_arg0)
|
|
995
|
+
;
|
|
996
|
+
end
|
|
997
|
+
|
|
998
|
+
# Returns the value of attribute unix_perms.
|
|
999
|
+
#
|
|
1000
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
1001
|
+
def unix_perms; end
|
|
1002
|
+
|
|
1003
|
+
# Sets the attribute unix_perms
|
|
1004
|
+
#
|
|
1005
|
+
# @param value the value to set the attribute unix_perms to.
|
|
1006
|
+
#
|
|
1007
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
1008
|
+
def unix_perms=(_arg0)
|
|
1009
|
+
;
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
# Returns the value of attribute unix_uid.
|
|
1013
|
+
#
|
|
1014
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
1015
|
+
def unix_uid; end
|
|
1016
|
+
|
|
1017
|
+
# Sets the attribute unix_uid
|
|
1018
|
+
#
|
|
1019
|
+
# @param value the value to set the attribute unix_uid to.
|
|
1020
|
+
#
|
|
1021
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
1022
|
+
def unix_uid=(_arg0)
|
|
1023
|
+
;
|
|
1024
|
+
end
|
|
1025
|
+
|
|
1026
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:311
|
|
1027
|
+
def unpack_c_dir_entry(buf)
|
|
1028
|
+
;
|
|
1029
|
+
end
|
|
1030
|
+
|
|
1031
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:230
|
|
1032
|
+
def unpack_local_entry(buf)
|
|
1033
|
+
;
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
# check before rewriting an entry (after file sizes are known)
|
|
1037
|
+
# that we didn't change the header size (and thus clobber file data or something)
|
|
1038
|
+
#
|
|
1039
|
+
# @raise [Error]
|
|
1040
|
+
#
|
|
1041
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:157
|
|
1042
|
+
def verify_local_header_size!; end
|
|
1043
|
+
|
|
1044
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:474
|
|
1045
|
+
def write_c_dir_entry(io)
|
|
1046
|
+
;
|
|
1047
|
+
end
|
|
1048
|
+
|
|
1049
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:299
|
|
1050
|
+
def write_local_entry(io, rewrite = T.unsafe(nil))
|
|
1051
|
+
;
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:578
|
|
1055
|
+
def write_to_zip_output_stream(zip_output_stream)
|
|
1056
|
+
;
|
|
1057
|
+
end
|
|
1058
|
+
|
|
1059
|
+
# Returns the value of attribute zipfile.
|
|
1060
|
+
#
|
|
1061
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
1062
|
+
def zipfile; end
|
|
1063
|
+
|
|
1064
|
+
# Sets the attribute zipfile
|
|
1065
|
+
#
|
|
1066
|
+
# @param value the value to set the attribute zipfile to.
|
|
1067
|
+
#
|
|
1068
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:9
|
|
1069
|
+
def zipfile=(_arg0)
|
|
1070
|
+
;
|
|
1071
|
+
end
|
|
1072
|
+
|
|
1073
|
+
private
|
|
1074
|
+
|
|
1075
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:642
|
|
1076
|
+
def create_directory(dest_path)
|
|
1077
|
+
;
|
|
1078
|
+
end
|
|
1079
|
+
|
|
1080
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:615
|
|
1081
|
+
def create_file(dest_path, _continue_on_exists_proc = T.unsafe(nil))
|
|
1082
|
+
;
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
# BUG: create_symlink() does not use &block
|
|
1086
|
+
#
|
|
1087
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:659
|
|
1088
|
+
def create_symlink(dest_path)
|
|
1089
|
+
;
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1092
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:677
|
|
1093
|
+
def data_descriptor_size; end
|
|
1094
|
+
|
|
1095
|
+
# apply missing data from the zip64 extra information field, if present
|
|
1096
|
+
# (required when file sizes exceed 2**32, but can be used for all files)
|
|
1097
|
+
#
|
|
1098
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:667
|
|
1099
|
+
def parse_zip64_extra(for_local_header)
|
|
1100
|
+
;
|
|
1101
|
+
end
|
|
1102
|
+
|
|
1103
|
+
# create a zip64 extra information field if we need one
|
|
1104
|
+
#
|
|
1105
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:682
|
|
1106
|
+
def prep_zip64_extra(for_local_header)
|
|
1107
|
+
;
|
|
1108
|
+
end
|
|
1109
|
+
|
|
1110
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:609
|
|
1111
|
+
def set_time(binary_dos_date, binary_dos_time)
|
|
1112
|
+
;
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
class << self
|
|
1116
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:208
|
|
1117
|
+
def read_c_dir_entry(io)
|
|
1118
|
+
;
|
|
1119
|
+
end
|
|
1120
|
+
|
|
1121
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:221
|
|
1122
|
+
def read_local_entry(io)
|
|
1123
|
+
;
|
|
1124
|
+
end
|
|
1125
|
+
|
|
1126
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:204
|
|
1127
|
+
def read_zip_64_long(io)
|
|
1128
|
+
;
|
|
1129
|
+
end
|
|
1130
|
+
|
|
1131
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:200
|
|
1132
|
+
def read_zip_long(io)
|
|
1133
|
+
;
|
|
1134
|
+
end
|
|
1135
|
+
|
|
1136
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:196
|
|
1137
|
+
def read_zip_short(io)
|
|
1138
|
+
;
|
|
1139
|
+
end
|
|
1140
|
+
end
|
|
1141
|
+
end
|
|
1142
|
+
|
|
1143
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:5
|
|
1144
|
+
Zip::Entry::DEFLATED = T.let(T.unsafe(nil), Integer)
|
|
1145
|
+
|
|
1146
|
+
# Language encoding flag (EFS) bit
|
|
1147
|
+
#
|
|
1148
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:7
|
|
1149
|
+
Zip::Entry::EFS = T.let(T.unsafe(nil), Integer)
|
|
1150
|
+
|
|
1151
|
+
# source://rubyzip-2.3.2/lib/zip/entry.rb:4
|
|
1152
|
+
Zip::Entry::STORED = T.let(T.unsafe(nil), Integer)
|
|
1153
|
+
|
|
1154
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:3
|
|
1155
|
+
class Zip::EntryExistsError < ::Zip::Error; end
|
|
1156
|
+
|
|
1157
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:6
|
|
1158
|
+
class Zip::EntryNameError < ::Zip::Error; end
|
|
1159
|
+
|
|
1160
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:2
|
|
1161
|
+
class Zip::EntrySet
|
|
1162
|
+
include ::Enumerable
|
|
1163
|
+
|
|
1164
|
+
# @return [EntrySet] a new instance of EntrySet
|
|
1165
|
+
#
|
|
1166
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:6
|
|
1167
|
+
def initialize(an_enumerable = T.unsafe(nil))
|
|
1168
|
+
;
|
|
1169
|
+
end
|
|
1170
|
+
|
|
1171
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:20
|
|
1172
|
+
def <<(entry)
|
|
1173
|
+
;
|
|
1174
|
+
end
|
|
1175
|
+
|
|
1176
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:51
|
|
1177
|
+
def ==(other)
|
|
1178
|
+
;
|
|
1179
|
+
end
|
|
1180
|
+
|
|
1181
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:32
|
|
1182
|
+
def delete(entry)
|
|
1183
|
+
;
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
# deep clone
|
|
1187
|
+
#
|
|
1188
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:47
|
|
1189
|
+
def dup; end
|
|
1190
|
+
|
|
1191
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:36
|
|
1192
|
+
def each; end
|
|
1193
|
+
|
|
1194
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:42
|
|
1195
|
+
def entries; end
|
|
1196
|
+
|
|
1197
|
+
# Returns the value of attribute entry_order.
|
|
1198
|
+
#
|
|
1199
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:4
|
|
1200
|
+
def entry_order; end
|
|
1201
|
+
|
|
1202
|
+
# Sets the attribute entry_order
|
|
1203
|
+
#
|
|
1204
|
+
# @param value the value to set the attribute entry_order to.
|
|
1205
|
+
#
|
|
1206
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:4
|
|
1207
|
+
def entry_order=(_arg0)
|
|
1208
|
+
;
|
|
1209
|
+
end
|
|
1210
|
+
|
|
1211
|
+
# Returns the value of attribute entry_set.
|
|
1212
|
+
#
|
|
1213
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:4
|
|
1214
|
+
def entry_set; end
|
|
1215
|
+
|
|
1216
|
+
# Sets the attribute entry_set
|
|
1217
|
+
#
|
|
1218
|
+
# @param value the value to set the attribute entry_set to.
|
|
1219
|
+
#
|
|
1220
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:4
|
|
1221
|
+
def entry_set=(_arg0)
|
|
1222
|
+
;
|
|
1223
|
+
end
|
|
1224
|
+
|
|
1225
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:16
|
|
1226
|
+
def find_entry(entry)
|
|
1227
|
+
;
|
|
1228
|
+
end
|
|
1229
|
+
|
|
1230
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:61
|
|
1231
|
+
def glob(pattern, flags = T.unsafe(nil))
|
|
1232
|
+
;
|
|
1233
|
+
end
|
|
1234
|
+
|
|
1235
|
+
# @return [Boolean]
|
|
1236
|
+
#
|
|
1237
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:12
|
|
1238
|
+
def include?(entry)
|
|
1239
|
+
;
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1242
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:26
|
|
1243
|
+
def length; end
|
|
1244
|
+
|
|
1245
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:57
|
|
1246
|
+
def parent(entry)
|
|
1247
|
+
;
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1250
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:20
|
|
1251
|
+
def push(entry)
|
|
1252
|
+
;
|
|
1253
|
+
end
|
|
1254
|
+
|
|
1255
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:26
|
|
1256
|
+
def size; end
|
|
1257
|
+
|
|
1258
|
+
protected
|
|
1259
|
+
|
|
1260
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:72
|
|
1261
|
+
def sorted_entries; end
|
|
1262
|
+
|
|
1263
|
+
private
|
|
1264
|
+
|
|
1265
|
+
# source://rubyzip-2.3.2/lib/zip/entry_set.rb:78
|
|
1266
|
+
def to_key(entry)
|
|
1267
|
+
;
|
|
1268
|
+
end
|
|
1269
|
+
end
|
|
1270
|
+
|
|
1271
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:7
|
|
1272
|
+
class Zip::EntrySizeError < ::Zip::Error; end
|
|
1273
|
+
|
|
1274
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:2
|
|
1275
|
+
class Zip::Error < ::StandardError; end
|
|
1276
|
+
|
|
1277
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:2
|
|
1278
|
+
class Zip::ExtraField < ::Hash
|
|
1279
|
+
# @return [ExtraField] a new instance of ExtraField
|
|
1280
|
+
#
|
|
1281
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:5
|
|
1282
|
+
def initialize(binstr = T.unsafe(nil))
|
|
1283
|
+
;
|
|
1284
|
+
end
|
|
1285
|
+
|
|
1286
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:80
|
|
1287
|
+
def c_dir_size; end
|
|
1288
|
+
|
|
1289
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:54
|
|
1290
|
+
def create(name)
|
|
1291
|
+
;
|
|
1292
|
+
end
|
|
1293
|
+
|
|
1294
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:28
|
|
1295
|
+
def create_unknown_item; end
|
|
1296
|
+
|
|
1297
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:9
|
|
1298
|
+
def extra_field_type_exist(binstr, id, len, index)
|
|
1299
|
+
;
|
|
1300
|
+
end
|
|
1301
|
+
|
|
1302
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:19
|
|
1303
|
+
def extra_field_type_unknown(binstr, len, index)
|
|
1304
|
+
;
|
|
1305
|
+
end
|
|
1306
|
+
|
|
1307
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:84
|
|
1308
|
+
def length; end
|
|
1309
|
+
|
|
1310
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:84
|
|
1311
|
+
def local_size; end
|
|
1312
|
+
|
|
1313
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:37
|
|
1314
|
+
def merge(binstr)
|
|
1315
|
+
;
|
|
1316
|
+
end
|
|
1317
|
+
|
|
1318
|
+
# place Unknown last, so "extra" data that is missing the proper signature/size
|
|
1319
|
+
# does not prevent known fields from being read back in
|
|
1320
|
+
#
|
|
1321
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:64
|
|
1322
|
+
def ordered_values; end
|
|
1323
|
+
|
|
1324
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:84
|
|
1325
|
+
def size; end
|
|
1326
|
+
|
|
1327
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:76
|
|
1328
|
+
def to_c_dir_bin; end
|
|
1329
|
+
|
|
1330
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:70
|
|
1331
|
+
def to_local_bin; end
|
|
1332
|
+
|
|
1333
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:70
|
|
1334
|
+
def to_s; end
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/generic.rb:2
|
|
1338
|
+
class Zip::ExtraField::Generic
|
|
1339
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/generic.rb:25
|
|
1340
|
+
def ==(other)
|
|
1341
|
+
;
|
|
1342
|
+
end
|
|
1343
|
+
|
|
1344
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/generic.rb:14
|
|
1345
|
+
def initial_parse(binstr)
|
|
1346
|
+
;
|
|
1347
|
+
end
|
|
1348
|
+
|
|
1349
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/generic.rb:39
|
|
1350
|
+
def to_c_dir_bin; end
|
|
1351
|
+
|
|
1352
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/generic.rb:34
|
|
1353
|
+
def to_local_bin; end
|
|
1354
|
+
|
|
1355
|
+
class << self
|
|
1356
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/generic.rb:9
|
|
1357
|
+
def name; end
|
|
1358
|
+
|
|
1359
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/generic.rb:3
|
|
1360
|
+
def register_map; end
|
|
1361
|
+
end
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1364
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field.rb:3
|
|
1365
|
+
Zip::ExtraField::ID_MAP = T.let(T.unsafe(nil), Hash)
|
|
1366
|
+
|
|
1367
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:3
|
|
1368
|
+
class Zip::ExtraField::IUnix < ::Zip::ExtraField::Generic
|
|
1369
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:7
|
|
1370
|
+
def initialize(binstr = T.unsafe(nil))
|
|
1371
|
+
;
|
|
1372
|
+
end
|
|
1373
|
+
|
|
1374
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:27
|
|
1375
|
+
def ==(other)
|
|
1376
|
+
;
|
|
1377
|
+
end
|
|
1378
|
+
|
|
1379
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:13
|
|
1380
|
+
def gid; end
|
|
1381
|
+
|
|
1382
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:13
|
|
1383
|
+
def gid=(_arg0)
|
|
1384
|
+
;
|
|
1385
|
+
end
|
|
1386
|
+
|
|
1387
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:15
|
|
1388
|
+
def merge(binstr)
|
|
1389
|
+
;
|
|
1390
|
+
end
|
|
1391
|
+
|
|
1392
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:35
|
|
1393
|
+
def pack_for_c_dir; end
|
|
1394
|
+
|
|
1395
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:31
|
|
1396
|
+
def pack_for_local; end
|
|
1397
|
+
|
|
1398
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:13
|
|
1399
|
+
def uid; end
|
|
1400
|
+
|
|
1401
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:13
|
|
1402
|
+
def uid=(_arg0)
|
|
1403
|
+
;
|
|
1404
|
+
end
|
|
1405
|
+
end
|
|
1406
|
+
|
|
1407
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/unix.rb:4
|
|
1408
|
+
Zip::ExtraField::IUnix::HEADER_ID = T.let(T.unsafe(nil), String)
|
|
1409
|
+
|
|
1410
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:4
|
|
1411
|
+
class Zip::ExtraField::NTFS < ::Zip::ExtraField::Generic
|
|
1412
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:11
|
|
1413
|
+
def initialize(binstr = T.unsafe(nil))
|
|
1414
|
+
;
|
|
1415
|
+
end
|
|
1416
|
+
|
|
1417
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:38
|
|
1418
|
+
def ==(other)
|
|
1419
|
+
;
|
|
1420
|
+
end
|
|
1421
|
+
|
|
1422
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:18
|
|
1423
|
+
def atime; end
|
|
1424
|
+
|
|
1425
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:18
|
|
1426
|
+
def atime=(_arg0)
|
|
1427
|
+
;
|
|
1428
|
+
end
|
|
1429
|
+
|
|
1430
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:18
|
|
1431
|
+
def ctime; end
|
|
1432
|
+
|
|
1433
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:18
|
|
1434
|
+
def ctime=(_arg0)
|
|
1435
|
+
;
|
|
1436
|
+
end
|
|
1437
|
+
|
|
1438
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:20
|
|
1439
|
+
def merge(binstr)
|
|
1440
|
+
;
|
|
1441
|
+
end
|
|
1442
|
+
|
|
1443
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:18
|
|
1444
|
+
def mtime; end
|
|
1445
|
+
|
|
1446
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:18
|
|
1447
|
+
def mtime=(_arg0)
|
|
1448
|
+
;
|
|
1449
|
+
end
|
|
1450
|
+
|
|
1451
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:50
|
|
1452
|
+
def pack_for_c_dir; end
|
|
1453
|
+
|
|
1454
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:45
|
|
1455
|
+
def pack_for_local; end
|
|
1456
|
+
|
|
1457
|
+
private
|
|
1458
|
+
|
|
1459
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:86
|
|
1460
|
+
def from_ntfs_time(ntfs_time)
|
|
1461
|
+
;
|
|
1462
|
+
end
|
|
1463
|
+
|
|
1464
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:68
|
|
1465
|
+
def parse_tags(content)
|
|
1466
|
+
;
|
|
1467
|
+
end
|
|
1468
|
+
|
|
1469
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:90
|
|
1470
|
+
def to_ntfs_time(time)
|
|
1471
|
+
;
|
|
1472
|
+
end
|
|
1473
|
+
end
|
|
1474
|
+
|
|
1475
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:5
|
|
1476
|
+
Zip::ExtraField::NTFS::HEADER_ID = T.let(T.unsafe(nil), String)
|
|
1477
|
+
|
|
1478
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:9
|
|
1479
|
+
Zip::ExtraField::NTFS::SEC_TO_UNIX_EPOCH = T.let(T.unsafe(nil), Integer)
|
|
1480
|
+
|
|
1481
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb:8
|
|
1482
|
+
Zip::ExtraField::NTFS::WINDOWS_TICK = T.let(T.unsafe(nil), Float)
|
|
1483
|
+
|
|
1484
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:3
|
|
1485
|
+
class Zip::ExtraField::OldUnix < ::Zip::ExtraField::Generic
|
|
1486
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:7
|
|
1487
|
+
def initialize(binstr = T.unsafe(nil))
|
|
1488
|
+
;
|
|
1489
|
+
end
|
|
1490
|
+
|
|
1491
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:31
|
|
1492
|
+
def ==(other)
|
|
1493
|
+
;
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1496
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:15
|
|
1497
|
+
def atime; end
|
|
1498
|
+
|
|
1499
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:15
|
|
1500
|
+
def atime=(_arg0)
|
|
1501
|
+
;
|
|
1502
|
+
end
|
|
1503
|
+
|
|
1504
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:15
|
|
1505
|
+
def gid; end
|
|
1506
|
+
|
|
1507
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:15
|
|
1508
|
+
def gid=(_arg0)
|
|
1509
|
+
;
|
|
1510
|
+
end
|
|
1511
|
+
|
|
1512
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:17
|
|
1513
|
+
def merge(binstr)
|
|
1514
|
+
;
|
|
1515
|
+
end
|
|
1516
|
+
|
|
1517
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:15
|
|
1518
|
+
def mtime; end
|
|
1519
|
+
|
|
1520
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:15
|
|
1521
|
+
def mtime=(_arg0)
|
|
1522
|
+
;
|
|
1523
|
+
end
|
|
1524
|
+
|
|
1525
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:42
|
|
1526
|
+
def pack_for_c_dir; end
|
|
1527
|
+
|
|
1528
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:38
|
|
1529
|
+
def pack_for_local; end
|
|
1530
|
+
|
|
1531
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:15
|
|
1532
|
+
def uid; end
|
|
1533
|
+
|
|
1534
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:15
|
|
1535
|
+
def uid=(_arg0)
|
|
1536
|
+
;
|
|
1537
|
+
end
|
|
1538
|
+
end
|
|
1539
|
+
|
|
1540
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb:4
|
|
1541
|
+
Zip::ExtraField::OldUnix::HEADER_ID = T.let(T.unsafe(nil), String)
|
|
1542
|
+
|
|
1543
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:3
|
|
1544
|
+
class Zip::ExtraField::UniversalTime < ::Zip::ExtraField::Generic
|
|
1545
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:11
|
|
1546
|
+
def initialize(binstr = T.unsafe(nil))
|
|
1547
|
+
;
|
|
1548
|
+
end
|
|
1549
|
+
|
|
1550
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:57
|
|
1551
|
+
def ==(other)
|
|
1552
|
+
;
|
|
1553
|
+
end
|
|
1554
|
+
|
|
1555
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:20
|
|
1556
|
+
def atime; end
|
|
1557
|
+
|
|
1558
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:22
|
|
1559
|
+
def atime=(time)
|
|
1560
|
+
;
|
|
1561
|
+
end
|
|
1562
|
+
|
|
1563
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:20
|
|
1564
|
+
def ctime; end
|
|
1565
|
+
|
|
1566
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:27
|
|
1567
|
+
def ctime=(time)
|
|
1568
|
+
;
|
|
1569
|
+
end
|
|
1570
|
+
|
|
1571
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:20
|
|
1572
|
+
def flag; end
|
|
1573
|
+
|
|
1574
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:37
|
|
1575
|
+
def merge(binstr)
|
|
1576
|
+
;
|
|
1577
|
+
end
|
|
1578
|
+
|
|
1579
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:20
|
|
1580
|
+
def mtime; end
|
|
1581
|
+
|
|
1582
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:32
|
|
1583
|
+
def mtime=(time)
|
|
1584
|
+
;
|
|
1585
|
+
end
|
|
1586
|
+
|
|
1587
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:71
|
|
1588
|
+
def pack_for_c_dir; end
|
|
1589
|
+
|
|
1590
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:63
|
|
1591
|
+
def pack_for_local; end
|
|
1592
|
+
end
|
|
1593
|
+
|
|
1594
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:7
|
|
1595
|
+
Zip::ExtraField::UniversalTime::ATIME_MASK = T.let(T.unsafe(nil), Integer)
|
|
1596
|
+
|
|
1597
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:8
|
|
1598
|
+
Zip::ExtraField::UniversalTime::CTIME_MASK = T.let(T.unsafe(nil), Integer)
|
|
1599
|
+
|
|
1600
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:4
|
|
1601
|
+
Zip::ExtraField::UniversalTime::HEADER_ID = T.let(T.unsafe(nil), String)
|
|
1602
|
+
|
|
1603
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb:9
|
|
1604
|
+
Zip::ExtraField::UniversalTime::MTIME_MASK = T.let(T.unsafe(nil), Integer)
|
|
1605
|
+
|
|
1606
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:3
|
|
1607
|
+
class Zip::ExtraField::Zip64 < ::Zip::ExtraField::Generic
|
|
1608
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:8
|
|
1609
|
+
def initialize(binstr = T.unsafe(nil))
|
|
1610
|
+
;
|
|
1611
|
+
end
|
|
1612
|
+
|
|
1613
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:20
|
|
1614
|
+
def ==(other)
|
|
1615
|
+
;
|
|
1616
|
+
end
|
|
1617
|
+
|
|
1618
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:4
|
|
1619
|
+
def compressed_size; end
|
|
1620
|
+
|
|
1621
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:4
|
|
1622
|
+
def compressed_size=(_arg0)
|
|
1623
|
+
;
|
|
1624
|
+
end
|
|
1625
|
+
|
|
1626
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:4
|
|
1627
|
+
def disk_start_number; end
|
|
1628
|
+
|
|
1629
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:4
|
|
1630
|
+
def disk_start_number=(_arg0)
|
|
1631
|
+
;
|
|
1632
|
+
end
|
|
1633
|
+
|
|
1634
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:27
|
|
1635
|
+
def merge(binstr)
|
|
1636
|
+
;
|
|
1637
|
+
end
|
|
1638
|
+
|
|
1639
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:4
|
|
1640
|
+
def original_size; end
|
|
1641
|
+
|
|
1642
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:4
|
|
1643
|
+
def original_size=(_arg0)
|
|
1644
|
+
;
|
|
1645
|
+
end
|
|
1646
|
+
|
|
1647
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:60
|
|
1648
|
+
def pack_for_c_dir; end
|
|
1649
|
+
|
|
1650
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:53
|
|
1651
|
+
def pack_for_local; end
|
|
1652
|
+
|
|
1653
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:36
|
|
1654
|
+
def parse(original_size, compressed_size, relative_header_offset = T.unsafe(nil), disk_start_number = T.unsafe(nil))
|
|
1655
|
+
;
|
|
1656
|
+
end
|
|
1657
|
+
|
|
1658
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:4
|
|
1659
|
+
def relative_header_offset; end
|
|
1660
|
+
|
|
1661
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:4
|
|
1662
|
+
def relative_header_offset=(_arg0)
|
|
1663
|
+
;
|
|
1664
|
+
end
|
|
1665
|
+
|
|
1666
|
+
private
|
|
1667
|
+
|
|
1668
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:48
|
|
1669
|
+
def extract(size, format)
|
|
1670
|
+
;
|
|
1671
|
+
end
|
|
1672
|
+
end
|
|
1673
|
+
|
|
1674
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64.rb:5
|
|
1675
|
+
Zip::ExtraField::Zip64::HEADER_ID = T.let(T.unsafe(nil), String)
|
|
1676
|
+
|
|
1677
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64_placeholder.rb:5
|
|
1678
|
+
class Zip::ExtraField::Zip64Placeholder < ::Zip::ExtraField::Generic
|
|
1679
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64_placeholder.rb:9
|
|
1680
|
+
def initialize(_binstr = T.unsafe(nil))
|
|
1681
|
+
;
|
|
1682
|
+
end
|
|
1683
|
+
|
|
1684
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64_placeholder.rb:11
|
|
1685
|
+
def pack_for_local; end
|
|
1686
|
+
end
|
|
1687
|
+
|
|
1688
|
+
# source://rubyzip-2.3.2/lib/zip/extra_field/zip64_placeholder.rb:6
|
|
1689
|
+
Zip::ExtraField::Zip64Placeholder::HEADER_ID = T.let(T.unsafe(nil), String)
|
|
1690
|
+
|
|
1691
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:15
|
|
1692
|
+
Zip::FILE_TYPE_DIR = T.let(T.unsafe(nil), Integer)
|
|
1693
|
+
|
|
1694
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:14
|
|
1695
|
+
Zip::FILE_TYPE_FILE = T.let(T.unsafe(nil), Integer)
|
|
1696
|
+
|
|
1697
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:16
|
|
1698
|
+
Zip::FILE_TYPE_SYMLINK = T.let(T.unsafe(nil), Integer)
|
|
1699
|
+
|
|
1700
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:40
|
|
1701
|
+
Zip::FSTYPES = T.let(T.unsafe(nil), Hash)
|
|
1702
|
+
|
|
1703
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:31
|
|
1704
|
+
Zip::FSTYPE_ACORN = T.let(T.unsafe(nil), Integer)
|
|
1705
|
+
|
|
1706
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:19
|
|
1707
|
+
Zip::FSTYPE_AMIGA = T.let(T.unsafe(nil), Integer)
|
|
1708
|
+
|
|
1709
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:23
|
|
1710
|
+
Zip::FSTYPE_ATARI = T.let(T.unsafe(nil), Integer)
|
|
1711
|
+
|
|
1712
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:38
|
|
1713
|
+
Zip::FSTYPE_ATHEOS = T.let(T.unsafe(nil), Integer)
|
|
1714
|
+
|
|
1715
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:34
|
|
1716
|
+
Zip::FSTYPE_BEOS = T.let(T.unsafe(nil), Integer)
|
|
1717
|
+
|
|
1718
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:27
|
|
1719
|
+
Zip::FSTYPE_CPM = T.let(T.unsafe(nil), Integer)
|
|
1720
|
+
|
|
1721
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:18
|
|
1722
|
+
Zip::FSTYPE_FAT = T.let(T.unsafe(nil), Integer)
|
|
1723
|
+
|
|
1724
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:24
|
|
1725
|
+
Zip::FSTYPE_HPFS = T.let(T.unsafe(nil), Integer)
|
|
1726
|
+
|
|
1727
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:25
|
|
1728
|
+
Zip::FSTYPE_MAC = T.let(T.unsafe(nil), Integer)
|
|
1729
|
+
|
|
1730
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:37
|
|
1731
|
+
Zip::FSTYPE_MAC_OSX = T.let(T.unsafe(nil), Integer)
|
|
1732
|
+
|
|
1733
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:33
|
|
1734
|
+
Zip::FSTYPE_MVS = T.let(T.unsafe(nil), Integer)
|
|
1735
|
+
|
|
1736
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:29
|
|
1737
|
+
Zip::FSTYPE_NTFS = T.let(T.unsafe(nil), Integer)
|
|
1738
|
+
|
|
1739
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:30
|
|
1740
|
+
Zip::FSTYPE_QDOS = T.let(T.unsafe(nil), Integer)
|
|
1741
|
+
|
|
1742
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:35
|
|
1743
|
+
Zip::FSTYPE_TANDEM = T.let(T.unsafe(nil), Integer)
|
|
1744
|
+
|
|
1745
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:36
|
|
1746
|
+
Zip::FSTYPE_THEOS = T.let(T.unsafe(nil), Integer)
|
|
1747
|
+
|
|
1748
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:28
|
|
1749
|
+
Zip::FSTYPE_TOPS20 = T.let(T.unsafe(nil), Integer)
|
|
1750
|
+
|
|
1751
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:21
|
|
1752
|
+
Zip::FSTYPE_UNIX = T.let(T.unsafe(nil), Integer)
|
|
1753
|
+
|
|
1754
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:32
|
|
1755
|
+
Zip::FSTYPE_VFAT = T.let(T.unsafe(nil), Integer)
|
|
1756
|
+
|
|
1757
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:20
|
|
1758
|
+
Zip::FSTYPE_VMS = T.let(T.unsafe(nil), Integer)
|
|
1759
|
+
|
|
1760
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:22
|
|
1761
|
+
Zip::FSTYPE_VM_CMS = T.let(T.unsafe(nil), Integer)
|
|
1762
|
+
|
|
1763
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:26
|
|
1764
|
+
Zip::FSTYPE_Z_SYSTEM = T.let(T.unsafe(nil), Integer)
|
|
1765
|
+
|
|
1766
|
+
# ZipFile is modeled after java.util.zip.ZipFile from the Java SDK.
|
|
1767
|
+
# The most important methods are those inherited from
|
|
1768
|
+
# ZipCentralDirectory for accessing information about the entries in
|
|
1769
|
+
# the archive and methods such as get_input_stream and
|
|
1770
|
+
# get_output_stream for reading from and writing entries to the
|
|
1771
|
+
# archive. The class includes a few convenience methods such as
|
|
1772
|
+
# #extract for extracting entries to the filesystem, and #remove,
|
|
1773
|
+
# #replace, #rename and #mkdir for making simple modifications to
|
|
1774
|
+
# the archive.
|
|
1775
|
+
#
|
|
1776
|
+
# Modifications to a zip archive are not committed until #commit or
|
|
1777
|
+
# #close is called. The method #open accepts a block following
|
|
1778
|
+
# the pattern from File.open offering a simple way to
|
|
1779
|
+
# automatically close the archive when the block returns.
|
|
1780
|
+
#
|
|
1781
|
+
# The following example opens zip archive <code>my.zip</code>
|
|
1782
|
+
# (creating it if it doesn't exist) and adds an entry
|
|
1783
|
+
# <code>first.txt</code> and a directory entry <code>a_dir</code>
|
|
1784
|
+
# to it.
|
|
1785
|
+
#
|
|
1786
|
+
# require 'zip'
|
|
1787
|
+
#
|
|
1788
|
+
# Zip::File.open("my.zip", Zip::File::CREATE) {
|
|
1789
|
+
# |zipfile|
|
|
1790
|
+
# zipfile.get_output_stream("first.txt") { |f| f.puts "Hello from ZipFile" }
|
|
1791
|
+
# zipfile.mkdir("a_dir")
|
|
1792
|
+
# }
|
|
1793
|
+
#
|
|
1794
|
+
# The next example reopens <code>my.zip</code> writes the contents of
|
|
1795
|
+
# <code>first.txt</code> to standard out and deletes the entry from
|
|
1796
|
+
# the archive.
|
|
1797
|
+
#
|
|
1798
|
+
# require 'zip'
|
|
1799
|
+
#
|
|
1800
|
+
# Zip::File.open("my.zip", Zip::File::CREATE) {
|
|
1801
|
+
# |zipfile|
|
|
1802
|
+
# puts zipfile.read("first.txt")
|
|
1803
|
+
# zipfile.remove("first.txt")
|
|
1804
|
+
# }
|
|
1805
|
+
#
|
|
1806
|
+
# ZipFileSystem offers an alternative API that emulates ruby's
|
|
1807
|
+
# interface for accessing the filesystem, ie. the File and Dir classes.
|
|
1808
|
+
#
|
|
1809
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:45
|
|
1810
|
+
class Zip::File < ::Zip::CentralDirectory
|
|
1811
|
+
# Opens a zip archive. Pass true as the second parameter to create
|
|
1812
|
+
# a new archive if it doesn't exist already.
|
|
1813
|
+
#
|
|
1814
|
+
# @return [File] a new instance of File
|
|
1815
|
+
#
|
|
1816
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:76
|
|
1817
|
+
def initialize(path_or_io, create = T.unsafe(nil), buffer = T.unsafe(nil), options = T.unsafe(nil))
|
|
1818
|
+
;
|
|
1819
|
+
end
|
|
1820
|
+
|
|
1821
|
+
# Convenience method for adding the contents of a file to the archive
|
|
1822
|
+
#
|
|
1823
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:299
|
|
1824
|
+
def add(entry, src_path, &continue_on_exists_proc)
|
|
1825
|
+
;
|
|
1826
|
+
end
|
|
1827
|
+
|
|
1828
|
+
# Convenience method for adding the contents of a file to the archive
|
|
1829
|
+
# in Stored format (uncompressed)
|
|
1830
|
+
#
|
|
1831
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:310
|
|
1832
|
+
def add_stored(entry, src_path, &continue_on_exists_proc)
|
|
1833
|
+
;
|
|
1834
|
+
end
|
|
1835
|
+
|
|
1836
|
+
# Closes the zip file committing any changes that has been made.
|
|
1837
|
+
#
|
|
1838
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:372
|
|
1839
|
+
def close; end
|
|
1840
|
+
|
|
1841
|
+
# Returns the zip files comment, if it has one
|
|
1842
|
+
#
|
|
1843
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:72
|
|
1844
|
+
def comment; end
|
|
1845
|
+
|
|
1846
|
+
# Returns the zip files comment, if it has one
|
|
1847
|
+
#
|
|
1848
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:72
|
|
1849
|
+
def comment=(_arg0)
|
|
1850
|
+
;
|
|
1851
|
+
end
|
|
1852
|
+
|
|
1853
|
+
# Commits changes that has been made since the previous commit to
|
|
1854
|
+
# the zip archive.
|
|
1855
|
+
#
|
|
1856
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:346
|
|
1857
|
+
def commit; end
|
|
1858
|
+
|
|
1859
|
+
# Returns true if any changes has been made to this archive since
|
|
1860
|
+
# the previous commit
|
|
1861
|
+
#
|
|
1862
|
+
# @return [Boolean]
|
|
1863
|
+
#
|
|
1864
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:378
|
|
1865
|
+
def commit_required?; end
|
|
1866
|
+
|
|
1867
|
+
# Extracts entry to file dest_path.
|
|
1868
|
+
#
|
|
1869
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:338
|
|
1870
|
+
def extract(entry, dest_path, &block)
|
|
1871
|
+
;
|
|
1872
|
+
end
|
|
1873
|
+
|
|
1874
|
+
# Searches for entry with the specified name. Returns nil if
|
|
1875
|
+
# no entry is found. See also get_entry
|
|
1876
|
+
#
|
|
1877
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:387
|
|
1878
|
+
def find_entry(entry_name)
|
|
1879
|
+
;
|
|
1880
|
+
end
|
|
1881
|
+
|
|
1882
|
+
# Searches for an entry just as find_entry, but throws Errno::ENOENT
|
|
1883
|
+
# if no entry is found.
|
|
1884
|
+
#
|
|
1885
|
+
# @raise [Errno::ENOENT]
|
|
1886
|
+
#
|
|
1887
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:404
|
|
1888
|
+
def get_entry(entry)
|
|
1889
|
+
;
|
|
1890
|
+
end
|
|
1891
|
+
|
|
1892
|
+
# Returns an input stream to the specified entry. If a block is passed
|
|
1893
|
+
# the stream object is passed to the block and the stream is automatically
|
|
1894
|
+
# closed afterwards just as with ruby's builtin File.open method.
|
|
1895
|
+
#
|
|
1896
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:258
|
|
1897
|
+
def get_input_stream(entry, &a_proc)
|
|
1898
|
+
;
|
|
1899
|
+
end
|
|
1900
|
+
|
|
1901
|
+
# Returns an output stream to the specified entry. If entry is not an instance
|
|
1902
|
+
# of Zip::Entry, a new Zip::Entry will be initialized using the arguments
|
|
1903
|
+
# specified. If a block is passed the stream object is passed to the block and
|
|
1904
|
+
# the stream is automatically closed afterwards just as with ruby's builtin
|
|
1905
|
+
# File.open method.
|
|
1906
|
+
#
|
|
1907
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:267
|
|
1908
|
+
def get_output_stream(entry, permission_int = T.unsafe(nil), comment = T.unsafe(nil), extra = T.unsafe(nil), compressed_size = T.unsafe(nil), crc = T.unsafe(nil), compression_method = T.unsafe(nil), size = T.unsafe(nil), time = T.unsafe(nil), &a_proc)
|
|
1909
|
+
;
|
|
1910
|
+
end
|
|
1911
|
+
|
|
1912
|
+
# Searches for entries given a glob
|
|
1913
|
+
#
|
|
1914
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:398
|
|
1915
|
+
def glob(*args, &block)
|
|
1916
|
+
;
|
|
1917
|
+
end
|
|
1918
|
+
|
|
1919
|
+
# Creates a directory
|
|
1920
|
+
#
|
|
1921
|
+
# @raise [Errno::EEXIST]
|
|
1922
|
+
#
|
|
1923
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:412
|
|
1924
|
+
def mkdir(entry_name, permission = T.unsafe(nil))
|
|
1925
|
+
;
|
|
1926
|
+
end
|
|
1927
|
+
|
|
1928
|
+
# Returns the value of attribute name.
|
|
1929
|
+
#
|
|
1930
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:60
|
|
1931
|
+
def name; end
|
|
1932
|
+
|
|
1933
|
+
# Returns a string containing the contents of the specified entry
|
|
1934
|
+
#
|
|
1935
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:294
|
|
1936
|
+
def read(entry)
|
|
1937
|
+
;
|
|
1938
|
+
end
|
|
1939
|
+
|
|
1940
|
+
# Removes the specified entry.
|
|
1941
|
+
#
|
|
1942
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:316
|
|
1943
|
+
def remove(entry)
|
|
1944
|
+
;
|
|
1945
|
+
end
|
|
1946
|
+
|
|
1947
|
+
# Renames the specified entry.
|
|
1948
|
+
#
|
|
1949
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:321
|
|
1950
|
+
def rename(entry, new_name, &continue_on_exists_proc)
|
|
1951
|
+
;
|
|
1952
|
+
end
|
|
1953
|
+
|
|
1954
|
+
# Replaces the specified entry with the contents of src_path (from
|
|
1955
|
+
# the file system).
|
|
1956
|
+
#
|
|
1957
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:331
|
|
1958
|
+
def replace(entry, src_path)
|
|
1959
|
+
;
|
|
1960
|
+
end
|
|
1961
|
+
|
|
1962
|
+
# default -> false.
|
|
1963
|
+
#
|
|
1964
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:63
|
|
1965
|
+
def restore_ownership; end
|
|
1966
|
+
|
|
1967
|
+
# default -> false.
|
|
1968
|
+
#
|
|
1969
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:63
|
|
1970
|
+
def restore_ownership=(_arg0)
|
|
1971
|
+
;
|
|
1972
|
+
end
|
|
1973
|
+
|
|
1974
|
+
# default -> false, but will be set to true in a future version.
|
|
1975
|
+
#
|
|
1976
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:66
|
|
1977
|
+
def restore_permissions; end
|
|
1978
|
+
|
|
1979
|
+
# default -> false, but will be set to true in a future version.
|
|
1980
|
+
#
|
|
1981
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:66
|
|
1982
|
+
def restore_permissions=(_arg0)
|
|
1983
|
+
;
|
|
1984
|
+
end
|
|
1985
|
+
|
|
1986
|
+
# default -> false, but will be set to true in a future version.
|
|
1987
|
+
#
|
|
1988
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:69
|
|
1989
|
+
def restore_times; end
|
|
1990
|
+
|
|
1991
|
+
# default -> false, but will be set to true in a future version.
|
|
1992
|
+
#
|
|
1993
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:69
|
|
1994
|
+
def restore_times=(_arg0)
|
|
1995
|
+
;
|
|
1996
|
+
end
|
|
1997
|
+
|
|
1998
|
+
# Returns the name of the zip archive
|
|
1999
|
+
#
|
|
2000
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:289
|
|
2001
|
+
def to_s; end
|
|
2002
|
+
|
|
2003
|
+
# Write buffer write changes to buffer and return
|
|
2004
|
+
#
|
|
2005
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:364
|
|
2006
|
+
def write_buffer(io = T.unsafe(nil))
|
|
2007
|
+
;
|
|
2008
|
+
end
|
|
2009
|
+
|
|
2010
|
+
private
|
|
2011
|
+
|
|
2012
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:434
|
|
2013
|
+
def check_entry_exists(entry_name, continue_on_exists_proc, proc_name)
|
|
2014
|
+
;
|
|
2015
|
+
end
|
|
2016
|
+
|
|
2017
|
+
# @raise [Errno::ENOENT]
|
|
2018
|
+
#
|
|
2019
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:446
|
|
2020
|
+
def check_file(path)
|
|
2021
|
+
;
|
|
2022
|
+
end
|
|
2023
|
+
|
|
2024
|
+
# @return [Boolean]
|
|
2025
|
+
#
|
|
2026
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:422
|
|
2027
|
+
def directory?(new_entry, src_path)
|
|
2028
|
+
;
|
|
2029
|
+
end
|
|
2030
|
+
|
|
2031
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:450
|
|
2032
|
+
def on_success_replace; end
|
|
2033
|
+
|
|
2034
|
+
class << self
|
|
2035
|
+
# Same as #open. But outputs data to a buffer instead of a file
|
|
2036
|
+
#
|
|
2037
|
+
# @yield [zf]
|
|
2038
|
+
#
|
|
2039
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:132
|
|
2040
|
+
def add_buffer; end
|
|
2041
|
+
|
|
2042
|
+
# Iterates over the contents of the ZipFile. This is more efficient
|
|
2043
|
+
# than using a ZipInputStream since this methods simply iterates
|
|
2044
|
+
# through the entries in the central directory structure in the archive
|
|
2045
|
+
# whereas ZipInputStream jumps through the entire archive accessing the
|
|
2046
|
+
# local entry headers (which contain the same information as the
|
|
2047
|
+
# central directory).
|
|
2048
|
+
#
|
|
2049
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:171
|
|
2050
|
+
def foreach(zip_file_name, &block)
|
|
2051
|
+
;
|
|
2052
|
+
end
|
|
2053
|
+
|
|
2054
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:187
|
|
2055
|
+
def get_partial_zip_file_name(zip_file_name, partial_zip_file_name)
|
|
2056
|
+
;
|
|
2057
|
+
end
|
|
2058
|
+
|
|
2059
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:196
|
|
2060
|
+
def get_segment_count_for_split(zip_file_size, segment_size)
|
|
2061
|
+
;
|
|
2062
|
+
end
|
|
2063
|
+
|
|
2064
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:177
|
|
2065
|
+
def get_segment_size_for_split(segment_size)
|
|
2066
|
+
;
|
|
2067
|
+
end
|
|
2068
|
+
|
|
2069
|
+
# Similar to ::new. If a block is passed the Zip::File object is passed
|
|
2070
|
+
# to the block and is automatically closed afterwards, just as with
|
|
2071
|
+
# ruby's builtin File::open method.
|
|
2072
|
+
#
|
|
2073
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:120
|
|
2074
|
+
def open(file_name, create = T.unsafe(nil), options = T.unsafe(nil))
|
|
2075
|
+
;
|
|
2076
|
+
end
|
|
2077
|
+
|
|
2078
|
+
# Like #open, but reads zip archive contents from a String or open IO
|
|
2079
|
+
# stream, and outputs data to a buffer.
|
|
2080
|
+
# (This can be used to extract data from a
|
|
2081
|
+
# downloaded zip archive without first saving it to disk.)
|
|
2082
|
+
#
|
|
2083
|
+
# @yield [zf]
|
|
2084
|
+
#
|
|
2085
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:143
|
|
2086
|
+
def open_buffer(io, options = T.unsafe(nil))
|
|
2087
|
+
;
|
|
2088
|
+
end
|
|
2089
|
+
|
|
2090
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:200
|
|
2091
|
+
def put_split_signature(szip_file, segment_size)
|
|
2092
|
+
;
|
|
2093
|
+
end
|
|
2094
|
+
|
|
2095
|
+
# TODO: Make the code more understandable
|
|
2096
|
+
#
|
|
2097
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:209
|
|
2098
|
+
def save_splited_part(zip_file, partial_zip_file_name, zip_file_size, szip_file_index, segment_size, segment_count)
|
|
2099
|
+
;
|
|
2100
|
+
end
|
|
2101
|
+
|
|
2102
|
+
# Splits an archive into parts with segment size
|
|
2103
|
+
#
|
|
2104
|
+
# @raise [Error]
|
|
2105
|
+
#
|
|
2106
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:231
|
|
2107
|
+
def split(zip_file_name, segment_size = T.unsafe(nil), delete_zip_file = T.unsafe(nil), partial_zip_file_name = T.unsafe(nil))
|
|
2108
|
+
;
|
|
2109
|
+
end
|
|
2110
|
+
end
|
|
2111
|
+
end
|
|
2112
|
+
|
|
2113
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:46
|
|
2114
|
+
Zip::File::CREATE = T.let(T.unsafe(nil), TrueClass)
|
|
2115
|
+
|
|
2116
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:51
|
|
2117
|
+
Zip::File::DATA_BUFFER_SIZE = T.let(T.unsafe(nil), Integer)
|
|
2118
|
+
|
|
2119
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:54
|
|
2120
|
+
Zip::File::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
|
|
2121
|
+
|
|
2122
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:52
|
|
2123
|
+
Zip::File::IO_METHODS = T.let(T.unsafe(nil), Array)
|
|
2124
|
+
|
|
2125
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:49
|
|
2126
|
+
Zip::File::MAX_SEGMENT_SIZE = T.let(T.unsafe(nil), Integer)
|
|
2127
|
+
|
|
2128
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:50
|
|
2129
|
+
Zip::File::MIN_SEGMENT_SIZE = T.let(T.unsafe(nil), Integer)
|
|
2130
|
+
|
|
2131
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:47
|
|
2132
|
+
Zip::File::SPLIT_SIGNATURE = T.let(T.unsafe(nil), Integer)
|
|
2133
|
+
|
|
2134
|
+
# source://rubyzip-2.3.2/lib/zip/file.rb:48
|
|
2135
|
+
Zip::File::ZIP64_EOCD_SIGNATURE = T.let(T.unsafe(nil), Integer)
|
|
2136
|
+
|
|
2137
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:9
|
|
2138
|
+
class Zip::GPFBit3Error < ::Zip::Error; end
|
|
2139
|
+
|
|
2140
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras.rb:2
|
|
2141
|
+
module Zip::IOExtras
|
|
2142
|
+
class << self
|
|
2143
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras.rb:8
|
|
2144
|
+
def copy_stream(ostream, istream)
|
|
2145
|
+
;
|
|
2146
|
+
end
|
|
2147
|
+
|
|
2148
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras.rb:12
|
|
2149
|
+
def copy_stream_n(ostream, istream, nbytes)
|
|
2150
|
+
;
|
|
2151
|
+
end
|
|
2152
|
+
end
|
|
2153
|
+
end
|
|
2154
|
+
|
|
2155
|
+
# Implements many of the convenience methods of IO
|
|
2156
|
+
# such as gets, getc, readline and readlines
|
|
2157
|
+
# depends on: input_finished?, produce_input and read
|
|
2158
|
+
#
|
|
2159
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:6
|
|
2160
|
+
module Zip::IOExtras::AbstractInputStream
|
|
2161
|
+
include ::Enumerable
|
|
2162
|
+
include ::Zip::IOExtras::FakeIO
|
|
2163
|
+
|
|
2164
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:10
|
|
2165
|
+
def initialize; end
|
|
2166
|
+
|
|
2167
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:107
|
|
2168
|
+
def each(a_sep_string = T.unsafe(nil))
|
|
2169
|
+
;
|
|
2170
|
+
end
|
|
2171
|
+
|
|
2172
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:107
|
|
2173
|
+
def each_line(a_sep_string = T.unsafe(nil))
|
|
2174
|
+
;
|
|
2175
|
+
end
|
|
2176
|
+
|
|
2177
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:115
|
|
2178
|
+
def eof; end
|
|
2179
|
+
|
|
2180
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:115
|
|
2181
|
+
def eof?; end
|
|
2182
|
+
|
|
2183
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:94
|
|
2184
|
+
def flush; end
|
|
2185
|
+
|
|
2186
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:58
|
|
2187
|
+
def gets(a_sep_string = T.unsafe(nil), number_of_bytes = T.unsafe(nil))
|
|
2188
|
+
;
|
|
2189
|
+
end
|
|
2190
|
+
|
|
2191
|
+
# Returns the value of attribute lineno.
|
|
2192
|
+
#
|
|
2193
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:17
|
|
2194
|
+
def lineno; end
|
|
2195
|
+
|
|
2196
|
+
# Sets the attribute lineno
|
|
2197
|
+
#
|
|
2198
|
+
# @param value the value to set the attribute lineno to.
|
|
2199
|
+
#
|
|
2200
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:17
|
|
2201
|
+
def lineno=(_arg0)
|
|
2202
|
+
;
|
|
2203
|
+
end
|
|
2204
|
+
|
|
2205
|
+
# Returns the value of attribute pos.
|
|
2206
|
+
#
|
|
2207
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:18
|
|
2208
|
+
def pos; end
|
|
2209
|
+
|
|
2210
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:20
|
|
2211
|
+
def read(number_of_bytes = T.unsafe(nil), buf = T.unsafe(nil))
|
|
2212
|
+
;
|
|
2213
|
+
end
|
|
2214
|
+
|
|
2215
|
+
# @raise [EOFError]
|
|
2216
|
+
#
|
|
2217
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:100
|
|
2218
|
+
def readline(a_sep_string = T.unsafe(nil))
|
|
2219
|
+
;
|
|
2220
|
+
end
|
|
2221
|
+
|
|
2222
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:52
|
|
2223
|
+
def readlines(a_sep_string = T.unsafe(nil))
|
|
2224
|
+
;
|
|
2225
|
+
end
|
|
2226
|
+
|
|
2227
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb:90
|
|
2228
|
+
def ungetc(byte)
|
|
2229
|
+
;
|
|
2230
|
+
end
|
|
2231
|
+
end
|
|
2232
|
+
|
|
2233
|
+
# Implements many of the output convenience methods of IO.
|
|
2234
|
+
# relies on <<
|
|
2235
|
+
#
|
|
2236
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_output_stream.rb:5
|
|
2237
|
+
module Zip::IOExtras::AbstractOutputStream
|
|
2238
|
+
include ::Zip::IOExtras::FakeIO
|
|
2239
|
+
|
|
2240
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_output_stream.rb:13
|
|
2241
|
+
def print(*params)
|
|
2242
|
+
;
|
|
2243
|
+
end
|
|
2244
|
+
|
|
2245
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_output_stream.rb:17
|
|
2246
|
+
def printf(a_format_string, *params)
|
|
2247
|
+
;
|
|
2248
|
+
end
|
|
2249
|
+
|
|
2250
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_output_stream.rb:21
|
|
2251
|
+
def putc(an_object)
|
|
2252
|
+
;
|
|
2253
|
+
end
|
|
2254
|
+
|
|
2255
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_output_stream.rb:33
|
|
2256
|
+
def puts(*params)
|
|
2257
|
+
;
|
|
2258
|
+
end
|
|
2259
|
+
|
|
2260
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras/abstract_output_stream.rb:8
|
|
2261
|
+
def write(data)
|
|
2262
|
+
;
|
|
2263
|
+
end
|
|
2264
|
+
end
|
|
2265
|
+
|
|
2266
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras.rb:3
|
|
2267
|
+
Zip::IOExtras::CHUNK_SIZE = T.let(T.unsafe(nil), Integer)
|
|
2268
|
+
|
|
2269
|
+
# Implements kind_of? in order to pretend to be an IO object
|
|
2270
|
+
#
|
|
2271
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras.rb:23
|
|
2272
|
+
module Zip::IOExtras::FakeIO
|
|
2273
|
+
# @return [Boolean]
|
|
2274
|
+
#
|
|
2275
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras.rb:24
|
|
2276
|
+
def kind_of?(object)
|
|
2277
|
+
;
|
|
2278
|
+
end
|
|
2279
|
+
end
|
|
2280
|
+
|
|
2281
|
+
# source://rubyzip-2.3.2/lib/zip/ioextras.rb:5
|
|
2282
|
+
Zip::IOExtras::RANGE_ALL = T.let(T.unsafe(nil), Range)
|
|
2283
|
+
|
|
2284
|
+
# source://rubyzip-2.3.2/lib/zip/inflater.rb:2
|
|
2285
|
+
class Zip::Inflater < ::Zip::Decompressor
|
|
2286
|
+
# @return [Inflater] a new instance of Inflater
|
|
2287
|
+
#
|
|
2288
|
+
# source://rubyzip-2.3.2/lib/zip/inflater.rb:3
|
|
2289
|
+
def initialize(*args)
|
|
2290
|
+
;
|
|
2291
|
+
end
|
|
2292
|
+
|
|
2293
|
+
# source://rubyzip-2.3.2/lib/zip/inflater.rb:22
|
|
2294
|
+
def eof; end
|
|
2295
|
+
|
|
2296
|
+
# source://rubyzip-2.3.2/lib/zip/inflater.rb:22
|
|
2297
|
+
def eof?; end
|
|
2298
|
+
|
|
2299
|
+
# source://rubyzip-2.3.2/lib/zip/inflater.rb:10
|
|
2300
|
+
def read(length = T.unsafe(nil), outbuf = T.unsafe(nil))
|
|
2301
|
+
;
|
|
2302
|
+
end
|
|
2303
|
+
|
|
2304
|
+
private
|
|
2305
|
+
|
|
2306
|
+
# @return [Boolean]
|
|
2307
|
+
#
|
|
2308
|
+
# source://rubyzip-2.3.2/lib/zip/inflater.rb:44
|
|
2309
|
+
def input_finished?; end
|
|
2310
|
+
|
|
2311
|
+
# source://rubyzip-2.3.2/lib/zip/inflater.rb:30
|
|
2312
|
+
def produce_input; end
|
|
2313
|
+
end
|
|
2314
|
+
|
|
2315
|
+
# InputStream is the basic class for reading zip entries in a
|
|
2316
|
+
# zip file. It is possible to create a InputStream object directly,
|
|
2317
|
+
# passing the zip file name to the constructor, but more often than not
|
|
2318
|
+
# the InputStream will be obtained from a File (perhaps using the
|
|
2319
|
+
# ZipFileSystem interface) object for a particular entry in the zip
|
|
2320
|
+
# archive.
|
|
2321
|
+
#
|
|
2322
|
+
# A InputStream inherits IOExtras::AbstractInputStream in order
|
|
2323
|
+
# to provide an IO-like interface for reading from a single zip
|
|
2324
|
+
# entry. Beyond methods for mimicking an IO-object it contains
|
|
2325
|
+
# the method get_next_entry for iterating through the entries of
|
|
2326
|
+
# an archive. get_next_entry returns a Entry object that describes
|
|
2327
|
+
# the zip entry the InputStream is currently reading from.
|
|
2328
|
+
#
|
|
2329
|
+
# Example that creates a zip archive with ZipOutputStream and reads it
|
|
2330
|
+
# back again with a InputStream.
|
|
2331
|
+
#
|
|
2332
|
+
# require 'zip'
|
|
2333
|
+
#
|
|
2334
|
+
# Zip::OutputStream.open("my.zip") do |io|
|
|
2335
|
+
#
|
|
2336
|
+
# io.put_next_entry("first_entry.txt")
|
|
2337
|
+
# io.write "Hello world!"
|
|
2338
|
+
#
|
|
2339
|
+
# io.put_next_entry("adir/first_entry.txt")
|
|
2340
|
+
# io.write "Hello again!"
|
|
2341
|
+
# end
|
|
2342
|
+
#
|
|
2343
|
+
#
|
|
2344
|
+
# Zip::InputStream.open("my.zip") do |io|
|
|
2345
|
+
#
|
|
2346
|
+
# while (entry = io.get_next_entry)
|
|
2347
|
+
# puts "Contents of #{entry.name}: '#{io.read}'"
|
|
2348
|
+
# end
|
|
2349
|
+
# end
|
|
2350
|
+
#
|
|
2351
|
+
# java.util.zip.ZipInputStream is the original inspiration for this
|
|
2352
|
+
# class.
|
|
2353
|
+
#
|
|
2354
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:41
|
|
2355
|
+
class Zip::InputStream
|
|
2356
|
+
include ::Enumerable
|
|
2357
|
+
include ::Zip::IOExtras::FakeIO
|
|
2358
|
+
include ::Zip::IOExtras::AbstractInputStream
|
|
2359
|
+
|
|
2360
|
+
# Opens the indicated zip file. An exception is thrown
|
|
2361
|
+
# if the specified offset in the specified filename is
|
|
2362
|
+
# not a local zip entry header.
|
|
2363
|
+
#
|
|
2364
|
+
# @param context [String||IO||StringIO] file path or IO/StringIO object
|
|
2365
|
+
# @param offset [Integer] offset in the IO/StringIO
|
|
2366
|
+
# @return [InputStream] a new instance of InputStream
|
|
2367
|
+
#
|
|
2368
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:52
|
|
2369
|
+
def initialize(context, offset = T.unsafe(nil), decrypter = T.unsafe(nil))
|
|
2370
|
+
;
|
|
2371
|
+
end
|
|
2372
|
+
|
|
2373
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:60
|
|
2374
|
+
def close; end
|
|
2375
|
+
|
|
2376
|
+
# Returns a Entry object. It is necessary to call this
|
|
2377
|
+
# method on a newly created InputStream before reading from
|
|
2378
|
+
# the first entry in the archive. Returns nil when there are
|
|
2379
|
+
# no more entries.
|
|
2380
|
+
#
|
|
2381
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:68
|
|
2382
|
+
def get_next_entry; end
|
|
2383
|
+
|
|
2384
|
+
# Rewinds the stream to the beginning of the current entry
|
|
2385
|
+
#
|
|
2386
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:74
|
|
2387
|
+
def rewind; end
|
|
2388
|
+
|
|
2389
|
+
# Modeled after IO.sysread
|
|
2390
|
+
#
|
|
2391
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:84
|
|
2392
|
+
def sysread(length = T.unsafe(nil), outbuf = T.unsafe(nil))
|
|
2393
|
+
;
|
|
2394
|
+
end
|
|
2395
|
+
|
|
2396
|
+
protected
|
|
2397
|
+
|
|
2398
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:149
|
|
2399
|
+
def get_decompressor; end
|
|
2400
|
+
|
|
2401
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:142
|
|
2402
|
+
def get_decrypted_io; end
|
|
2403
|
+
|
|
2404
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:111
|
|
2405
|
+
def get_io(io_or_file, offset = T.unsafe(nil))
|
|
2406
|
+
;
|
|
2407
|
+
end
|
|
2408
|
+
|
|
2409
|
+
# @return [Boolean]
|
|
2410
|
+
#
|
|
2411
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:172
|
|
2412
|
+
def input_finished?; end
|
|
2413
|
+
|
|
2414
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:123
|
|
2415
|
+
def open_entry; end
|
|
2416
|
+
|
|
2417
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:168
|
|
2418
|
+
def produce_input; end
|
|
2419
|
+
|
|
2420
|
+
class << self
|
|
2421
|
+
# Same as #initialize but if a block is passed the opened
|
|
2422
|
+
# stream is passed to the block and closed when the block
|
|
2423
|
+
# returns.
|
|
2424
|
+
#
|
|
2425
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:92
|
|
2426
|
+
def open(filename_or_io, offset = T.unsafe(nil), decrypter = T.unsafe(nil))
|
|
2427
|
+
;
|
|
2428
|
+
end
|
|
2429
|
+
|
|
2430
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:103
|
|
2431
|
+
def open_buffer(filename_or_io, offset = T.unsafe(nil))
|
|
2432
|
+
;
|
|
2433
|
+
end
|
|
2434
|
+
end
|
|
2435
|
+
end
|
|
2436
|
+
|
|
2437
|
+
# source://rubyzip-2.3.2/lib/zip/input_stream.rb:42
|
|
2438
|
+
Zip::InputStream::CHUNK_SIZE = T.let(T.unsafe(nil), Integer)
|
|
2439
|
+
|
|
2440
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:8
|
|
2441
|
+
class Zip::InternalError < ::Zip::Error; end
|
|
2442
|
+
|
|
2443
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:7
|
|
2444
|
+
Zip::LOCAL_ENTRY_SIGNATURE = T.let(T.unsafe(nil), Integer)
|
|
2445
|
+
|
|
2446
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:8
|
|
2447
|
+
Zip::LOCAL_ENTRY_STATIC_HEADER_LENGTH = T.let(T.unsafe(nil), Integer)
|
|
2448
|
+
|
|
2449
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:9
|
|
2450
|
+
Zip::LOCAL_ENTRY_TRAILING_DESCRIPTOR_LENGTH = T.let(T.unsafe(nil), Integer)
|
|
2451
|
+
|
|
2452
|
+
# source://rubyzip-2.3.2/lib/zip/null_compressor.rb:2
|
|
2453
|
+
class Zip::NullCompressor < ::Zip::Compressor
|
|
2454
|
+
include ::Singleton
|
|
2455
|
+
extend ::Singleton::SingletonClassMethods
|
|
2456
|
+
|
|
2457
|
+
# @raise [IOError]
|
|
2458
|
+
#
|
|
2459
|
+
# source://rubyzip-2.3.2/lib/zip/null_compressor.rb:5
|
|
2460
|
+
def <<(_data)
|
|
2461
|
+
;
|
|
2462
|
+
end
|
|
2463
|
+
|
|
2464
|
+
# Returns the value of attribute compressed_size.
|
|
2465
|
+
#
|
|
2466
|
+
# source://rubyzip-2.3.2/lib/zip/null_compressor.rb:9
|
|
2467
|
+
def compressed_size; end
|
|
2468
|
+
|
|
2469
|
+
# Returns the value of attribute size.
|
|
2470
|
+
#
|
|
2471
|
+
# source://rubyzip-2.3.2/lib/zip/null_compressor.rb:9
|
|
2472
|
+
def size; end
|
|
2473
|
+
end
|
|
2474
|
+
|
|
2475
|
+
# source://rubyzip-2.3.2/lib/zip/null_decompressor.rb:2
|
|
2476
|
+
module Zip::NullDecompressor
|
|
2477
|
+
private
|
|
2478
|
+
|
|
2479
|
+
# source://rubyzip-2.3.2/lib/zip/null_decompressor.rb:9
|
|
2480
|
+
def eof; end
|
|
2481
|
+
|
|
2482
|
+
# source://rubyzip-2.3.2/lib/zip/null_decompressor.rb:9
|
|
2483
|
+
def eof?; end
|
|
2484
|
+
|
|
2485
|
+
# source://rubyzip-2.3.2/lib/zip/null_decompressor.rb:5
|
|
2486
|
+
def read(_length = T.unsafe(nil), _outbuf = T.unsafe(nil))
|
|
2487
|
+
;
|
|
2488
|
+
end
|
|
2489
|
+
|
|
2490
|
+
class << self
|
|
2491
|
+
# source://rubyzip-2.3.2/lib/zip/null_decompressor.rb:9
|
|
2492
|
+
def eof; end
|
|
2493
|
+
|
|
2494
|
+
# source://rubyzip-2.3.2/lib/zip/null_decompressor.rb:5
|
|
2495
|
+
def read(_length = T.unsafe(nil), _outbuf = T.unsafe(nil))
|
|
2496
|
+
;
|
|
2497
|
+
end
|
|
2498
|
+
end
|
|
2499
|
+
end
|
|
2500
|
+
|
|
2501
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:30
|
|
2502
|
+
class Zip::NullDecrypter < ::Zip::Decrypter
|
|
2503
|
+
include ::Zip::NullEncryption
|
|
2504
|
+
|
|
2505
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:33
|
|
2506
|
+
def decrypt(data)
|
|
2507
|
+
;
|
|
2508
|
+
end
|
|
2509
|
+
|
|
2510
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:37
|
|
2511
|
+
def reset!(_header)
|
|
2512
|
+
;
|
|
2513
|
+
end
|
|
2514
|
+
end
|
|
2515
|
+
|
|
2516
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:12
|
|
2517
|
+
class Zip::NullEncrypter < ::Zip::Encrypter
|
|
2518
|
+
include ::Zip::NullEncryption
|
|
2519
|
+
|
|
2520
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:23
|
|
2521
|
+
def data_descriptor(_crc32, _compressed_size, _uncomprssed_size)
|
|
2522
|
+
;
|
|
2523
|
+
end
|
|
2524
|
+
|
|
2525
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:19
|
|
2526
|
+
def encrypt(data)
|
|
2527
|
+
;
|
|
2528
|
+
end
|
|
2529
|
+
|
|
2530
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:15
|
|
2531
|
+
def header(_mtime)
|
|
2532
|
+
;
|
|
2533
|
+
end
|
|
2534
|
+
|
|
2535
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:27
|
|
2536
|
+
def reset!; end
|
|
2537
|
+
end
|
|
2538
|
+
|
|
2539
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:2
|
|
2540
|
+
module Zip::NullEncryption
|
|
2541
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:7
|
|
2542
|
+
def gp_flags; end
|
|
2543
|
+
|
|
2544
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb:3
|
|
2545
|
+
def header_bytesize; end
|
|
2546
|
+
end
|
|
2547
|
+
|
|
2548
|
+
# source://rubyzip-2.3.2/lib/zip/null_input_stream.rb:2
|
|
2549
|
+
module Zip::NullInputStream
|
|
2550
|
+
include ::Zip::NullDecompressor
|
|
2551
|
+
include ::Enumerable
|
|
2552
|
+
include ::Zip::IOExtras::FakeIO
|
|
2553
|
+
include ::Zip::IOExtras::AbstractInputStream
|
|
2554
|
+
end
|
|
2555
|
+
|
|
2556
|
+
# ZipOutputStream is the basic class for writing zip files. It is
|
|
2557
|
+
# possible to create a ZipOutputStream object directly, passing
|
|
2558
|
+
# the zip file name to the constructor, but more often than not
|
|
2559
|
+
# the ZipOutputStream will be obtained from a ZipFile (perhaps using the
|
|
2560
|
+
# ZipFileSystem interface) object for a particular entry in the zip
|
|
2561
|
+
# archive.
|
|
2562
|
+
#
|
|
2563
|
+
# A ZipOutputStream inherits IOExtras::AbstractOutputStream in order
|
|
2564
|
+
# to provide an IO-like interface for writing to a single zip
|
|
2565
|
+
# entry. Beyond methods for mimicking an IO-object it contains
|
|
2566
|
+
# the method put_next_entry that closes the current entry
|
|
2567
|
+
# and creates a new.
|
|
2568
|
+
#
|
|
2569
|
+
# Please refer to ZipInputStream for example code.
|
|
2570
|
+
#
|
|
2571
|
+
# java.util.zip.ZipOutputStream is the original inspiration for this
|
|
2572
|
+
# class.
|
|
2573
|
+
#
|
|
2574
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:20
|
|
2575
|
+
class Zip::OutputStream
|
|
2576
|
+
include ::Zip::IOExtras::FakeIO
|
|
2577
|
+
include ::Zip::IOExtras::AbstractOutputStream
|
|
2578
|
+
|
|
2579
|
+
# Opens the indicated zip file. If a file with that name already
|
|
2580
|
+
# exists it will be overwritten.
|
|
2581
|
+
#
|
|
2582
|
+
# @return [OutputStream] a new instance of OutputStream
|
|
2583
|
+
#
|
|
2584
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:27
|
|
2585
|
+
def initialize(file_name, stream = T.unsafe(nil), encrypter = T.unsafe(nil))
|
|
2586
|
+
;
|
|
2587
|
+
end
|
|
2588
|
+
|
|
2589
|
+
# Modeled after IO.<<
|
|
2590
|
+
#
|
|
2591
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:189
|
|
2592
|
+
def <<(data)
|
|
2593
|
+
;
|
|
2594
|
+
end
|
|
2595
|
+
|
|
2596
|
+
# Closes the stream and writes the central directory to the zip file
|
|
2597
|
+
#
|
|
2598
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:69
|
|
2599
|
+
def close; end
|
|
2600
|
+
|
|
2601
|
+
# Closes the stream and writes the central directory to the zip file
|
|
2602
|
+
#
|
|
2603
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:80
|
|
2604
|
+
def close_buffer; end
|
|
2605
|
+
|
|
2606
|
+
# Returns the value of attribute comment.
|
|
2607
|
+
#
|
|
2608
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:23
|
|
2609
|
+
def comment; end
|
|
2610
|
+
|
|
2611
|
+
# Sets the attribute comment
|
|
2612
|
+
#
|
|
2613
|
+
# @param value the value to set the attribute comment to.
|
|
2614
|
+
#
|
|
2615
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:23
|
|
2616
|
+
def comment=(_arg0)
|
|
2617
|
+
;
|
|
2618
|
+
end
|
|
2619
|
+
|
|
2620
|
+
# @raise [Error]
|
|
2621
|
+
#
|
|
2622
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:109
|
|
2623
|
+
def copy_raw_entry(entry)
|
|
2624
|
+
;
|
|
2625
|
+
end
|
|
2626
|
+
|
|
2627
|
+
# Closes the current entry and opens a new for writing.
|
|
2628
|
+
# +entry+ can be a ZipEntry object or a string.
|
|
2629
|
+
#
|
|
2630
|
+
# @raise [Error]
|
|
2631
|
+
#
|
|
2632
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:92
|
|
2633
|
+
def put_next_entry(entry_name, comment = T.unsafe(nil), extra = T.unsafe(nil), compression_method = T.unsafe(nil), level = T.unsafe(nil))
|
|
2634
|
+
;
|
|
2635
|
+
end
|
|
2636
|
+
|
|
2637
|
+
protected
|
|
2638
|
+
|
|
2639
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:182
|
|
2640
|
+
def finish; end
|
|
2641
|
+
|
|
2642
|
+
private
|
|
2643
|
+
|
|
2644
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:130
|
|
2645
|
+
def finalize_current_entry; end
|
|
2646
|
+
|
|
2647
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:154
|
|
2648
|
+
def get_compressor(entry, level)
|
|
2649
|
+
;
|
|
2650
|
+
end
|
|
2651
|
+
|
|
2652
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:145
|
|
2653
|
+
def init_next_entry(entry, level = T.unsafe(nil))
|
|
2654
|
+
;
|
|
2655
|
+
end
|
|
2656
|
+
|
|
2657
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:166
|
|
2658
|
+
def update_local_headers; end
|
|
2659
|
+
|
|
2660
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:175
|
|
2661
|
+
def write_central_directory; end
|
|
2662
|
+
|
|
2663
|
+
class << self
|
|
2664
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:50
|
|
2665
|
+
def open(file_name, encrypter = T.unsafe(nil))
|
|
2666
|
+
;
|
|
2667
|
+
end
|
|
2668
|
+
|
|
2669
|
+
# Same as #open but writes to a filestream instead
|
|
2670
|
+
#
|
|
2671
|
+
# @yield [zos]
|
|
2672
|
+
#
|
|
2673
|
+
# source://rubyzip-2.3.2/lib/zip/output_stream.rb:60
|
|
2674
|
+
def write_buffer(io = T.unsafe(nil), encrypter = T.unsafe(nil))
|
|
2675
|
+
;
|
|
2676
|
+
end
|
|
2677
|
+
end
|
|
2678
|
+
end
|
|
2679
|
+
|
|
2680
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_compressor.rb:2
|
|
2681
|
+
class Zip::PassThruCompressor < ::Zip::Compressor
|
|
2682
|
+
# @return [PassThruCompressor] a new instance of PassThruCompressor
|
|
2683
|
+
#
|
|
2684
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_compressor.rb:3
|
|
2685
|
+
def initialize(output_stream)
|
|
2686
|
+
;
|
|
2687
|
+
end
|
|
2688
|
+
|
|
2689
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_compressor.rb:10
|
|
2690
|
+
def <<(data)
|
|
2691
|
+
;
|
|
2692
|
+
end
|
|
2693
|
+
|
|
2694
|
+
# Returns the value of attribute crc.
|
|
2695
|
+
#
|
|
2696
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_compressor.rb:17
|
|
2697
|
+
def crc; end
|
|
2698
|
+
|
|
2699
|
+
# Returns the value of attribute size.
|
|
2700
|
+
#
|
|
2701
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_compressor.rb:17
|
|
2702
|
+
def size; end
|
|
2703
|
+
end
|
|
2704
|
+
|
|
2705
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_decompressor.rb:2
|
|
2706
|
+
class Zip::PassThruDecompressor < ::Zip::Decompressor
|
|
2707
|
+
# @return [PassThruDecompressor] a new instance of PassThruDecompressor
|
|
2708
|
+
#
|
|
2709
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_decompressor.rb:3
|
|
2710
|
+
def initialize(*args)
|
|
2711
|
+
;
|
|
2712
|
+
end
|
|
2713
|
+
|
|
2714
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_decompressor.rb:19
|
|
2715
|
+
def eof; end
|
|
2716
|
+
|
|
2717
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_decompressor.rb:19
|
|
2718
|
+
def eof?; end
|
|
2719
|
+
|
|
2720
|
+
# source://rubyzip-2.3.2/lib/zip/pass_thru_decompressor.rb:8
|
|
2721
|
+
def read(length = T.unsafe(nil), outbuf = T.unsafe(nil))
|
|
2722
|
+
;
|
|
2723
|
+
end
|
|
2724
|
+
end
|
|
2725
|
+
|
|
2726
|
+
# source://rubyzip-2.3.2/lib/zip/streamable_directory.rb:2
|
|
2727
|
+
class Zip::StreamableDirectory < ::Zip::Entry
|
|
2728
|
+
# @return [StreamableDirectory] a new instance of StreamableDirectory
|
|
2729
|
+
#
|
|
2730
|
+
# source://rubyzip-2.3.2/lib/zip/streamable_directory.rb:3
|
|
2731
|
+
def initialize(zipfile, entry, src_path = T.unsafe(nil), permission = T.unsafe(nil))
|
|
2732
|
+
;
|
|
2733
|
+
end
|
|
2734
|
+
end
|
|
2735
|
+
|
|
2736
|
+
# source://rubyzip-2.3.2/lib/zip/streamable_stream.rb:2
|
|
2737
|
+
class Zip::StreamableStream
|
|
2738
|
+
# @return [StreamableStream] a new instance of StreamableStream
|
|
2739
|
+
#
|
|
2740
|
+
# source://rubyzip-2.3.2/lib/zip/streamable_stream.rb:3
|
|
2741
|
+
def initialize(entry)
|
|
2742
|
+
;
|
|
2743
|
+
end
|
|
2744
|
+
|
|
2745
|
+
# source://rubyzip-2.3.2/lib/zip/streamable_stream.rb:44
|
|
2746
|
+
def clean_up; end
|
|
2747
|
+
|
|
2748
|
+
# source://rubyzip-2.3.2/lib/zip/streamable_stream.rb:21
|
|
2749
|
+
def get_input_stream; end
|
|
2750
|
+
|
|
2751
|
+
# source://rubyzip-2.3.2/lib/zip/streamable_stream.rb:9
|
|
2752
|
+
def get_output_stream; end
|
|
2753
|
+
|
|
2754
|
+
# source://rubyzip-2.3.2/lib/zip/streamable_stream.rb:39
|
|
2755
|
+
def write_to_zip_output_stream(output_stream)
|
|
2756
|
+
;
|
|
2757
|
+
end
|
|
2758
|
+
end
|
|
2759
|
+
|
|
2760
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:73
|
|
2761
|
+
class Zip::TraditionalDecrypter < ::Zip::Decrypter
|
|
2762
|
+
include ::Zip::TraditionalEncryption
|
|
2763
|
+
|
|
2764
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:76
|
|
2765
|
+
def decrypt(data)
|
|
2766
|
+
;
|
|
2767
|
+
end
|
|
2768
|
+
|
|
2769
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:80
|
|
2770
|
+
def reset!(header)
|
|
2771
|
+
;
|
|
2772
|
+
end
|
|
2773
|
+
|
|
2774
|
+
private
|
|
2775
|
+
|
|
2776
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:89
|
|
2777
|
+
def decode(num)
|
|
2778
|
+
;
|
|
2779
|
+
end
|
|
2780
|
+
end
|
|
2781
|
+
|
|
2782
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:39
|
|
2783
|
+
class Zip::TraditionalEncrypter < ::Zip::Encrypter
|
|
2784
|
+
include ::Zip::TraditionalEncryption
|
|
2785
|
+
|
|
2786
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:56
|
|
2787
|
+
def data_descriptor(crc32, compressed_size, uncomprssed_size)
|
|
2788
|
+
;
|
|
2789
|
+
end
|
|
2790
|
+
|
|
2791
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:52
|
|
2792
|
+
def encrypt(data)
|
|
2793
|
+
;
|
|
2794
|
+
end
|
|
2795
|
+
|
|
2796
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:42
|
|
2797
|
+
def header(mtime)
|
|
2798
|
+
;
|
|
2799
|
+
end
|
|
2800
|
+
|
|
2801
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:60
|
|
2802
|
+
def reset!; end
|
|
2803
|
+
|
|
2804
|
+
private
|
|
2805
|
+
|
|
2806
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:66
|
|
2807
|
+
def encode(num)
|
|
2808
|
+
;
|
|
2809
|
+
end
|
|
2810
|
+
end
|
|
2811
|
+
|
|
2812
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:2
|
|
2813
|
+
module Zip::TraditionalEncryption
|
|
2814
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:3
|
|
2815
|
+
def initialize(password)
|
|
2816
|
+
;
|
|
2817
|
+
end
|
|
2818
|
+
|
|
2819
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:12
|
|
2820
|
+
def gp_flags; end
|
|
2821
|
+
|
|
2822
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:8
|
|
2823
|
+
def header_bytesize; end
|
|
2824
|
+
|
|
2825
|
+
protected
|
|
2826
|
+
|
|
2827
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:33
|
|
2828
|
+
def decrypt_byte; end
|
|
2829
|
+
|
|
2830
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:18
|
|
2831
|
+
def reset_keys!; end
|
|
2832
|
+
|
|
2833
|
+
# source://rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb:27
|
|
2834
|
+
def update_keys(num)
|
|
2835
|
+
;
|
|
2836
|
+
end
|
|
2837
|
+
end
|
|
2838
|
+
|
|
2839
|
+
# this library's version
|
|
2840
|
+
#
|
|
2841
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:10
|
|
2842
|
+
Zip::VERSION_MADE_BY = T.let(T.unsafe(nil), Integer)
|
|
2843
|
+
|
|
2844
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:11
|
|
2845
|
+
Zip::VERSION_NEEDED_TO_EXTRACT = T.let(T.unsafe(nil), Integer)
|
|
2846
|
+
|
|
2847
|
+
# source://rubyzip-2.3.2/lib/zip/constants.rb:12
|
|
2848
|
+
Zip::VERSION_NEEDED_TO_EXTRACT_ZIP64 = T.let(T.unsafe(nil), Integer)
|
|
2849
|
+
|
|
2850
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:16
|
|
2851
|
+
Zip::ZipCompressionMethodError = Zip::CompressionMethodError
|
|
2852
|
+
|
|
2853
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:15
|
|
2854
|
+
Zip::ZipDestinationFileExistsError = Zip::DestinationFileExistsError
|
|
2855
|
+
|
|
2856
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:14
|
|
2857
|
+
Zip::ZipEntryExistsError = Zip::EntryExistsError
|
|
2858
|
+
|
|
2859
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:17
|
|
2860
|
+
Zip::ZipEntryNameError = Zip::EntryNameError
|
|
2861
|
+
|
|
2862
|
+
# Backwards compatibility with v1 (delete in v2)
|
|
2863
|
+
#
|
|
2864
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:13
|
|
2865
|
+
Zip::ZipError = Zip::Error
|
|
2866
|
+
|
|
2867
|
+
# source://rubyzip-2.3.2/lib/zip/errors.rb:18
|
|
2868
|
+
Zip::ZipInternalError = Zip::InternalError
|