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