paperback 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/tests.yml +46 -0
- data/.rubocop-disables.yml +26 -9
- data/CHANGELOG.md +7 -0
- data/README.md +4 -1
- data/lib/paperback/cli.rb +17 -0
- data/lib/paperback/document.rb +74 -11
- data/lib/paperback/preparer.rb +76 -21
- data/lib/paperback/version.rb +2 -1
- data/lib/paperback.rb +12 -0
- data/paperback.gemspec +10 -7
- data/sorbet/config +3 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/chunky_png@1.4.0.rbi +4498 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
- data/sorbet/rbi/gems/parser@3.2.0.0.rbi +6963 -0
- data/sorbet/rbi/gems/pdf-core@0.4.0.rbi +1682 -0
- data/sorbet/rbi/gems/prawn@1.3.0.rbi +5567 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +9990 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +408 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +3023 -0
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
- data/sorbet/rbi/gems/regexp_parser@2.6.1.rbi +3481 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
- data/sorbet/rbi/gems/rqrcode@0.10.1.rbi +617 -0
- data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10791 -0
- data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +8106 -0
- data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +5305 -0
- data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1617 -0
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +88 -0
- data/sorbet/rbi/gems/rubocop-ast@1.24.1.rbi +6617 -0
- data/sorbet/rbi/gems/rubocop@0.93.1.rbi +40848 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1234 -0
- data/sorbet/rbi/gems/sixword@0.4.0.rbi +536 -0
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
- data/sorbet/rbi/gems/subprocess@1.5.6.rbi +391 -0
- data/sorbet/rbi/gems/tapioca@0.10.5.rbi +3207 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
- data/sorbet/rbi/gems/ttfunk@1.4.0.rbi +1951 -0
- data/sorbet/rbi/gems/unicode-display_width@1.8.0.rbi +40 -0
- data/sorbet/rbi/gems/unparser@0.6.7.rbi +4524 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
- data/sorbet/rbi/gems/yard@0.9.28.rbi +17816 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- data/spec/functional/paperback/cli_spec.rb +54 -25
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/paperback_spec.rb +1 -0
- metadata +89 -13
- data/sample/aes.key +0 -1
- data/sample/aes.pdf +0 -14413
- data/sample/aes.pdf.passphrase.txt +0 -1
- data/sample/rsa2048.pdf +0 -106803
- data/sample/rsa2048.pdf.passphrase.txt +0 -1
- data/sample/rsa2048.pem +0 -27
@@ -0,0 +1,1234 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `ruby-progressbar` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem ruby-progressbar`.
|
6
|
+
|
7
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#1
|
8
|
+
class ProgressBar
|
9
|
+
class << self
|
10
|
+
# source://ruby-progressbar//lib/ruby-progressbar.rb#19
|
11
|
+
def create(*args); end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#4
|
16
|
+
class ProgressBar::Base
|
17
|
+
extend ::Forwardable
|
18
|
+
|
19
|
+
# @return [Base] a new instance of Base
|
20
|
+
#
|
21
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#16
|
22
|
+
def initialize(options = T.unsafe(nil)); end
|
23
|
+
|
24
|
+
def clear(*args, **_arg1, &block); end
|
25
|
+
|
26
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#88
|
27
|
+
def decrement; end
|
28
|
+
|
29
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#44
|
30
|
+
def finish; end
|
31
|
+
|
32
|
+
# @return [Boolean]
|
33
|
+
#
|
34
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#80
|
35
|
+
def finished?; end
|
36
|
+
|
37
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#154
|
38
|
+
def format(other); end
|
39
|
+
|
40
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#154
|
41
|
+
def format=(other); end
|
42
|
+
|
43
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#92
|
44
|
+
def increment; end
|
45
|
+
|
46
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#150
|
47
|
+
def inspect; end
|
48
|
+
|
49
|
+
def log(*args, **_arg1, &block); end
|
50
|
+
|
51
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#54
|
52
|
+
def pause; end
|
53
|
+
|
54
|
+
# @return [Boolean]
|
55
|
+
#
|
56
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#74
|
57
|
+
def paused?; end
|
58
|
+
|
59
|
+
def progress(*args, **_arg1, &block); end
|
60
|
+
|
61
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#96
|
62
|
+
def progress=(new_progress); end
|
63
|
+
|
64
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#104
|
65
|
+
def progress_mark=(mark); end
|
66
|
+
|
67
|
+
def refresh(*args, **_arg1, &block); end
|
68
|
+
|
69
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#108
|
70
|
+
def remainder_mark=(mark); end
|
71
|
+
|
72
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#66
|
73
|
+
def reset; end
|
74
|
+
|
75
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#62
|
76
|
+
def resume; end
|
77
|
+
|
78
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#39
|
79
|
+
def start(options = T.unsafe(nil)); end
|
80
|
+
|
81
|
+
# @return [Boolean]
|
82
|
+
#
|
83
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#84
|
84
|
+
def started?; end
|
85
|
+
|
86
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#58
|
87
|
+
def stop; end
|
88
|
+
|
89
|
+
# @return [Boolean]
|
90
|
+
#
|
91
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#74
|
92
|
+
def stopped?; end
|
93
|
+
|
94
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#112
|
95
|
+
def title; end
|
96
|
+
|
97
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#116
|
98
|
+
def title=(title); end
|
99
|
+
|
100
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#127
|
101
|
+
def to_h; end
|
102
|
+
|
103
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#120
|
104
|
+
def to_s(new_format = T.unsafe(nil)); end
|
105
|
+
|
106
|
+
def total(*args, **_arg1, &block); end
|
107
|
+
|
108
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#100
|
109
|
+
def total=(new_total); end
|
110
|
+
|
111
|
+
protected
|
112
|
+
|
113
|
+
# Returns the value of attribute autofinish.
|
114
|
+
#
|
115
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
116
|
+
def autofinish; end
|
117
|
+
|
118
|
+
# Sets the attribute autofinish
|
119
|
+
#
|
120
|
+
# @param value the value to set the attribute autofinish to.
|
121
|
+
#
|
122
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
123
|
+
def autofinish=(_arg0); end
|
124
|
+
|
125
|
+
# Returns the value of attribute autostart.
|
126
|
+
#
|
127
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
128
|
+
def autostart; end
|
129
|
+
|
130
|
+
# Sets the attribute autostart
|
131
|
+
#
|
132
|
+
# @param value the value to set the attribute autostart to.
|
133
|
+
#
|
134
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
135
|
+
def autostart=(_arg0); end
|
136
|
+
|
137
|
+
# Returns the value of attribute bar.
|
138
|
+
#
|
139
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
140
|
+
def bar; end
|
141
|
+
|
142
|
+
# Sets the attribute bar
|
143
|
+
#
|
144
|
+
# @param value the value to set the attribute bar to.
|
145
|
+
#
|
146
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
147
|
+
def bar=(_arg0); end
|
148
|
+
|
149
|
+
# Returns the value of attribute finished.
|
150
|
+
#
|
151
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
152
|
+
def finished; end
|
153
|
+
|
154
|
+
# Sets the attribute finished
|
155
|
+
#
|
156
|
+
# @param value the value to set the attribute finished to.
|
157
|
+
#
|
158
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
159
|
+
def finished=(_arg0); end
|
160
|
+
|
161
|
+
# Returns the value of attribute output.
|
162
|
+
#
|
163
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
164
|
+
def output; end
|
165
|
+
|
166
|
+
# Sets the attribute output
|
167
|
+
#
|
168
|
+
# @param value the value to set the attribute output to.
|
169
|
+
#
|
170
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
171
|
+
def output=(_arg0); end
|
172
|
+
|
173
|
+
# Returns the value of attribute percentage.
|
174
|
+
#
|
175
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
176
|
+
def percentage; end
|
177
|
+
|
178
|
+
# Sets the attribute percentage
|
179
|
+
#
|
180
|
+
# @param value the value to set the attribute percentage to.
|
181
|
+
#
|
182
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
183
|
+
def percentage=(_arg0); end
|
184
|
+
|
185
|
+
# Returns the value of attribute progressable.
|
186
|
+
#
|
187
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
188
|
+
def progressable; end
|
189
|
+
|
190
|
+
# Sets the attribute progressable
|
191
|
+
#
|
192
|
+
# @param value the value to set the attribute progressable to.
|
193
|
+
#
|
194
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
195
|
+
def progressable=(_arg0); end
|
196
|
+
|
197
|
+
# Returns the value of attribute rate.
|
198
|
+
#
|
199
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
200
|
+
def rate; end
|
201
|
+
|
202
|
+
# Sets the attribute rate
|
203
|
+
#
|
204
|
+
# @param value the value to set the attribute rate to.
|
205
|
+
#
|
206
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
207
|
+
def rate=(_arg0); end
|
208
|
+
|
209
|
+
# Returns the value of attribute time.
|
210
|
+
#
|
211
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
212
|
+
def time; end
|
213
|
+
|
214
|
+
# Sets the attribute time
|
215
|
+
#
|
216
|
+
# @param value the value to set the attribute time to.
|
217
|
+
#
|
218
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
219
|
+
def time=(_arg0); end
|
220
|
+
|
221
|
+
# Returns the value of attribute timer.
|
222
|
+
#
|
223
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
224
|
+
def timer; end
|
225
|
+
|
226
|
+
# Sets the attribute timer
|
227
|
+
#
|
228
|
+
# @param value the value to set the attribute timer to.
|
229
|
+
#
|
230
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
231
|
+
def timer=(_arg0); end
|
232
|
+
|
233
|
+
# Returns the value of attribute title_comp.
|
234
|
+
#
|
235
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
236
|
+
def title_comp; end
|
237
|
+
|
238
|
+
# Sets the attribute title_comp
|
239
|
+
#
|
240
|
+
# @param value the value to set the attribute title_comp to.
|
241
|
+
#
|
242
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#164
|
243
|
+
def title_comp=(_arg0); end
|
244
|
+
|
245
|
+
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#176
|
246
|
+
def update_progress(*args); end
|
247
|
+
end
|
248
|
+
|
249
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#2
|
250
|
+
module ProgressBar::Calculators; end
|
251
|
+
|
252
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#3
|
253
|
+
class ProgressBar::Calculators::Length
|
254
|
+
# @return [Length] a new instance of Length
|
255
|
+
#
|
256
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#8
|
257
|
+
def initialize(options = T.unsafe(nil)); end
|
258
|
+
|
259
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#25
|
260
|
+
def calculate_length; end
|
261
|
+
|
262
|
+
# Returns the value of attribute current_length.
|
263
|
+
#
|
264
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5
|
265
|
+
def current_length; end
|
266
|
+
|
267
|
+
# Sets the attribute current_length
|
268
|
+
#
|
269
|
+
# @param value the value to set the attribute current_length to.
|
270
|
+
#
|
271
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5
|
272
|
+
def current_length=(_arg0); end
|
273
|
+
|
274
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#14
|
275
|
+
def length; end
|
276
|
+
|
277
|
+
# @return [Boolean]
|
278
|
+
#
|
279
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#18
|
280
|
+
def length_changed?; end
|
281
|
+
|
282
|
+
# Returns the value of attribute length_override.
|
283
|
+
#
|
284
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#4
|
285
|
+
def length_override; end
|
286
|
+
|
287
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#33
|
288
|
+
def length_override=(other); end
|
289
|
+
|
290
|
+
# Returns the value of attribute output.
|
291
|
+
#
|
292
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5
|
293
|
+
def output; end
|
294
|
+
|
295
|
+
# Sets the attribute output
|
296
|
+
#
|
297
|
+
# @param value the value to set the attribute output to.
|
298
|
+
#
|
299
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5
|
300
|
+
def output=(_arg0); end
|
301
|
+
|
302
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#29
|
303
|
+
def reset_length; end
|
304
|
+
|
305
|
+
private
|
306
|
+
|
307
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#57
|
308
|
+
def dynamic_width; end
|
309
|
+
|
310
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#87
|
311
|
+
def dynamic_width_stty; end
|
312
|
+
|
313
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#91
|
314
|
+
def dynamic_width_tput; end
|
315
|
+
|
316
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#78
|
317
|
+
def dynamic_width_via_io_object; end
|
318
|
+
|
319
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#73
|
320
|
+
def dynamic_width_via_output_stream_object; end
|
321
|
+
|
322
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#83
|
323
|
+
def dynamic_width_via_system_calls; end
|
324
|
+
|
325
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#43
|
326
|
+
def terminal_width; end
|
327
|
+
|
328
|
+
# @return [Boolean]
|
329
|
+
#
|
330
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#95
|
331
|
+
def unix?; end
|
332
|
+
end
|
333
|
+
|
334
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/running_average.rb#3
|
335
|
+
class ProgressBar::Calculators::RunningAverage
|
336
|
+
class << self
|
337
|
+
# source://ruby-progressbar//lib/ruby-progressbar/calculators/running_average.rb#4
|
338
|
+
def calculate(current_average, new_value_to_average, smoothing_factor); end
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#5
|
343
|
+
module ProgressBar::Components; end
|
344
|
+
|
345
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#6
|
346
|
+
class ProgressBar::Components::Bar
|
347
|
+
# @return [Bar] a new instance of Bar
|
348
|
+
#
|
349
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#17
|
350
|
+
def initialize(options = T.unsafe(nil)); end
|
351
|
+
|
352
|
+
# Returns the value of attribute length.
|
353
|
+
#
|
354
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
355
|
+
def length; end
|
356
|
+
|
357
|
+
# Sets the attribute length
|
358
|
+
#
|
359
|
+
# @param value the value to set the attribute length to.
|
360
|
+
#
|
361
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
362
|
+
def length=(_arg0); end
|
363
|
+
|
364
|
+
# Returns the value of attribute progress.
|
365
|
+
#
|
366
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
367
|
+
def progress; end
|
368
|
+
|
369
|
+
# Sets the attribute progress
|
370
|
+
#
|
371
|
+
# @param value the value to set the attribute progress to.
|
372
|
+
#
|
373
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
374
|
+
def progress=(_arg0); end
|
375
|
+
|
376
|
+
# Returns the value of attribute progress_mark.
|
377
|
+
#
|
378
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
379
|
+
def progress_mark; end
|
380
|
+
|
381
|
+
# Sets the attribute progress_mark
|
382
|
+
#
|
383
|
+
# @param value the value to set the attribute progress_mark to.
|
384
|
+
#
|
385
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
386
|
+
def progress_mark=(_arg0); end
|
387
|
+
|
388
|
+
# Returns the value of attribute remainder_mark.
|
389
|
+
#
|
390
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
391
|
+
def remainder_mark; end
|
392
|
+
|
393
|
+
# Sets the attribute remainder_mark
|
394
|
+
#
|
395
|
+
# @param value the value to set the attribute remainder_mark to.
|
396
|
+
#
|
397
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
398
|
+
def remainder_mark=(_arg0); end
|
399
|
+
|
400
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#25
|
401
|
+
def to_s(options = T.unsafe(nil)); end
|
402
|
+
|
403
|
+
# Returns the value of attribute upa_steps.
|
404
|
+
#
|
405
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
406
|
+
def upa_steps; end
|
407
|
+
|
408
|
+
# Sets the attribute upa_steps
|
409
|
+
#
|
410
|
+
# @param value the value to set the attribute upa_steps to.
|
411
|
+
#
|
412
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
|
413
|
+
def upa_steps=(_arg0); end
|
414
|
+
|
415
|
+
private
|
416
|
+
|
417
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#51
|
418
|
+
def bar(length); end
|
419
|
+
|
420
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#85
|
421
|
+
def bar_with_percentage(length); end
|
422
|
+
|
423
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#57
|
424
|
+
def complete_bar(length); end
|
425
|
+
|
426
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#63
|
427
|
+
def complete_bar_with_percentage(length); end
|
428
|
+
|
429
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#91
|
430
|
+
def completed_length; end
|
431
|
+
|
432
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#75
|
433
|
+
def incomplete_space(length); end
|
434
|
+
|
435
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#47
|
436
|
+
def incomplete_string; end
|
437
|
+
|
438
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#37
|
439
|
+
def integrated_percentage_complete_string; end
|
440
|
+
|
441
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#43
|
442
|
+
def standard_complete_string; end
|
443
|
+
|
444
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#95
|
445
|
+
def unknown_progress_frame; end
|
446
|
+
|
447
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#69
|
448
|
+
def unknown_string; end
|
449
|
+
end
|
450
|
+
|
451
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#7
|
452
|
+
ProgressBar::Components::Bar::DEFAULT_PROGRESS_MARK = T.let(T.unsafe(nil), String)
|
453
|
+
|
454
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#8
|
455
|
+
ProgressBar::Components::Bar::DEFAULT_REMAINDER_MARK = T.let(T.unsafe(nil), String)
|
456
|
+
|
457
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#9
|
458
|
+
ProgressBar::Components::Bar::DEFAULT_UPA_STEPS = T.let(T.unsafe(nil), Array)
|
459
|
+
|
460
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#3
|
461
|
+
class ProgressBar::Components::Percentage
|
462
|
+
# @return [Percentage] a new instance of Percentage
|
463
|
+
#
|
464
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#6
|
465
|
+
def initialize(options = T.unsafe(nil)); end
|
466
|
+
|
467
|
+
# Returns the value of attribute progress.
|
468
|
+
#
|
469
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#4
|
470
|
+
def progress; end
|
471
|
+
|
472
|
+
# Sets the attribute progress
|
473
|
+
#
|
474
|
+
# @param value the value to set the attribute progress to.
|
475
|
+
#
|
476
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#4
|
477
|
+
def progress=(_arg0); end
|
478
|
+
|
479
|
+
private
|
480
|
+
|
481
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#16
|
482
|
+
def justified_percentage; end
|
483
|
+
|
484
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#24
|
485
|
+
def justified_percentage_with_precision; end
|
486
|
+
|
487
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#12
|
488
|
+
def percentage; end
|
489
|
+
|
490
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#20
|
491
|
+
def percentage_with_precision; end
|
492
|
+
end
|
493
|
+
|
494
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#3
|
495
|
+
class ProgressBar::Components::Rate
|
496
|
+
# @return [Rate] a new instance of Rate
|
497
|
+
#
|
498
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#10
|
499
|
+
def initialize(options = T.unsafe(nil)); end
|
500
|
+
|
501
|
+
# Returns the value of attribute progress.
|
502
|
+
#
|
503
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
504
|
+
def progress; end
|
505
|
+
|
506
|
+
# Sets the attribute progress
|
507
|
+
#
|
508
|
+
# @param value the value to set the attribute progress to.
|
509
|
+
#
|
510
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
511
|
+
def progress=(_arg0); end
|
512
|
+
|
513
|
+
# Returns the value of attribute rate_scale.
|
514
|
+
#
|
515
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
516
|
+
def rate_scale; end
|
517
|
+
|
518
|
+
# Sets the attribute rate_scale
|
519
|
+
#
|
520
|
+
# @param value the value to set the attribute rate_scale to.
|
521
|
+
#
|
522
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
523
|
+
def rate_scale=(_arg0); end
|
524
|
+
|
525
|
+
# Returns the value of attribute started_at.
|
526
|
+
#
|
527
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
528
|
+
def started_at; end
|
529
|
+
|
530
|
+
# Sets the attribute started_at
|
531
|
+
#
|
532
|
+
# @param value the value to set the attribute started_at to.
|
533
|
+
#
|
534
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
535
|
+
def started_at=(_arg0); end
|
536
|
+
|
537
|
+
# Returns the value of attribute stopped_at.
|
538
|
+
#
|
539
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
540
|
+
def stopped_at; end
|
541
|
+
|
542
|
+
# Sets the attribute stopped_at
|
543
|
+
#
|
544
|
+
# @param value the value to set the attribute stopped_at to.
|
545
|
+
#
|
546
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
547
|
+
def stopped_at=(_arg0); end
|
548
|
+
|
549
|
+
# Returns the value of attribute timer.
|
550
|
+
#
|
551
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
552
|
+
def timer; end
|
553
|
+
|
554
|
+
# Sets the attribute timer
|
555
|
+
#
|
556
|
+
# @param value the value to set the attribute timer to.
|
557
|
+
#
|
558
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
|
559
|
+
def timer=(_arg0); end
|
560
|
+
|
561
|
+
private
|
562
|
+
|
563
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#34
|
564
|
+
def base_rate; end
|
565
|
+
|
566
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#38
|
567
|
+
def elapsed_seconds; end
|
568
|
+
|
569
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#20
|
570
|
+
def rate_of_change(format_string = T.unsafe(nil)); end
|
571
|
+
|
572
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#26
|
573
|
+
def rate_of_change_with_precision; end
|
574
|
+
|
575
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#30
|
576
|
+
def scaled_rate; end
|
577
|
+
end
|
578
|
+
|
579
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#6
|
580
|
+
class ProgressBar::Components::Time
|
581
|
+
# @return [Time] a new instance of Time
|
582
|
+
#
|
583
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#20
|
584
|
+
def initialize(options = T.unsafe(nil)); end
|
585
|
+
|
586
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#30
|
587
|
+
def elapsed_with_label; end
|
588
|
+
|
589
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#26
|
590
|
+
def estimated_with_label; end
|
591
|
+
|
592
|
+
protected
|
593
|
+
|
594
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#48
|
595
|
+
def estimated_with_friendly_oob; end
|
596
|
+
|
597
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#36
|
598
|
+
def estimated_with_no_oob; end
|
599
|
+
|
600
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#42
|
601
|
+
def estimated_with_unknown_oob; end
|
602
|
+
|
603
|
+
# Returns the value of attribute out_of_bounds_time_format.
|
604
|
+
#
|
605
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#54
|
606
|
+
def out_of_bounds_time_format; end
|
607
|
+
|
608
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#58
|
609
|
+
def out_of_bounds_time_format=(format); end
|
610
|
+
|
611
|
+
# Returns the value of attribute progress.
|
612
|
+
#
|
613
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#55
|
614
|
+
def progress; end
|
615
|
+
|
616
|
+
# Sets the attribute progress
|
617
|
+
#
|
618
|
+
# @param value the value to set the attribute progress to.
|
619
|
+
#
|
620
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#55
|
621
|
+
def progress=(_arg0); end
|
622
|
+
|
623
|
+
# Returns the value of attribute timer.
|
624
|
+
#
|
625
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#55
|
626
|
+
def timer; end
|
627
|
+
|
628
|
+
# Sets the attribute timer
|
629
|
+
#
|
630
|
+
# @param value the value to set the attribute timer to.
|
631
|
+
#
|
632
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#55
|
633
|
+
def timer=(_arg0); end
|
634
|
+
|
635
|
+
private
|
636
|
+
|
637
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#82
|
638
|
+
def elapsed; end
|
639
|
+
|
640
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#68
|
641
|
+
def estimated; end
|
642
|
+
|
643
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#94
|
644
|
+
def estimated_seconds_remaining; end
|
645
|
+
|
646
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#90
|
647
|
+
def estimated_with_elapsed_fallback; end
|
648
|
+
end
|
649
|
+
|
650
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#14
|
651
|
+
ProgressBar::Components::Time::ELAPSED_LABEL = T.let(T.unsafe(nil), String)
|
652
|
+
|
653
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#13
|
654
|
+
ProgressBar::Components::Time::ESTIMATED_LABEL = T.let(T.unsafe(nil), String)
|
655
|
+
|
656
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#12
|
657
|
+
ProgressBar::Components::Time::NO_TIME_ELAPSED_TEXT = T.let(T.unsafe(nil), String)
|
658
|
+
|
659
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#11
|
660
|
+
ProgressBar::Components::Time::OOB_FRIENDLY_TIME_TEXT = T.let(T.unsafe(nil), String)
|
661
|
+
|
662
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#9
|
663
|
+
ProgressBar::Components::Time::OOB_LIMIT_IN_HOURS = T.let(T.unsafe(nil), Integer)
|
664
|
+
|
665
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#15
|
666
|
+
ProgressBar::Components::Time::OOB_TEXT_TO_FORMAT = T.let(T.unsafe(nil), Hash)
|
667
|
+
|
668
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#8
|
669
|
+
ProgressBar::Components::Time::OOB_TIME_FORMATS = T.let(T.unsafe(nil), Array)
|
670
|
+
|
671
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#10
|
672
|
+
ProgressBar::Components::Time::OOB_UNKNOWN_TIME_TEXT = T.let(T.unsafe(nil), String)
|
673
|
+
|
674
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#7
|
675
|
+
ProgressBar::Components::Time::TIME_FORMAT = T.let(T.unsafe(nil), String)
|
676
|
+
|
677
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#3
|
678
|
+
class ProgressBar::Components::Title
|
679
|
+
# @return [Title] a new instance of Title
|
680
|
+
#
|
681
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#8
|
682
|
+
def initialize(options = T.unsafe(nil)); end
|
683
|
+
|
684
|
+
# Returns the value of attribute title.
|
685
|
+
#
|
686
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#6
|
687
|
+
def title; end
|
688
|
+
|
689
|
+
# Sets the attribute title
|
690
|
+
#
|
691
|
+
# @param value the value to set the attribute title to.
|
692
|
+
#
|
693
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#6
|
694
|
+
def title=(_arg0); end
|
695
|
+
end
|
696
|
+
|
697
|
+
# source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#4
|
698
|
+
ProgressBar::Components::Title::DEFAULT_TITLE = T.let(T.unsafe(nil), String)
|
699
|
+
|
700
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#2
|
701
|
+
module ProgressBar::Format; end
|
702
|
+
|
703
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/formatter.rb#3
|
704
|
+
class ProgressBar::Format::Formatter
|
705
|
+
class << self
|
706
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/formatter.rb#4
|
707
|
+
def process(format_string, max_length, bar); end
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
711
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#3
|
712
|
+
class ProgressBar::Format::Molecule
|
713
|
+
# @return [Molecule] a new instance of Molecule
|
714
|
+
#
|
715
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#32
|
716
|
+
def initialize(letter); end
|
717
|
+
|
718
|
+
# @return [Boolean]
|
719
|
+
#
|
720
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#37
|
721
|
+
def bar_molecule?; end
|
722
|
+
|
723
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#45
|
724
|
+
def full_key; end
|
725
|
+
|
726
|
+
# Returns the value of attribute key.
|
727
|
+
#
|
728
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#29
|
729
|
+
def key; end
|
730
|
+
|
731
|
+
# Sets the attribute key
|
732
|
+
#
|
733
|
+
# @param value the value to set the attribute key to.
|
734
|
+
#
|
735
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#29
|
736
|
+
def key=(_arg0); end
|
737
|
+
|
738
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#49
|
739
|
+
def lookup_value(environment, length = T.unsafe(nil)); end
|
740
|
+
|
741
|
+
# Returns the value of attribute method_name.
|
742
|
+
#
|
743
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#29
|
744
|
+
def method_name; end
|
745
|
+
|
746
|
+
# Sets the attribute method_name
|
747
|
+
#
|
748
|
+
# @param value the value to set the attribute method_name to.
|
749
|
+
#
|
750
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#29
|
751
|
+
def method_name=(_arg0); end
|
752
|
+
|
753
|
+
# @return [Boolean]
|
754
|
+
#
|
755
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#41
|
756
|
+
def non_bar_molecule?; end
|
757
|
+
end
|
758
|
+
|
759
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#27
|
760
|
+
ProgressBar::Format::Molecule::BAR_MOLECULES = T.let(T.unsafe(nil), Array)
|
761
|
+
|
762
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#4
|
763
|
+
ProgressBar::Format::Molecule::MOLECULES = T.let(T.unsafe(nil), Hash)
|
764
|
+
|
765
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#3
|
766
|
+
class ProgressBar::Format::String < ::String
|
767
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#11
|
768
|
+
def bar_molecule_placeholder_length; end
|
769
|
+
|
770
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#19
|
771
|
+
def bar_molecules; end
|
772
|
+
|
773
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#7
|
774
|
+
def displayable_length; end
|
775
|
+
|
776
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#23
|
777
|
+
def molecules; end
|
778
|
+
|
779
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#15
|
780
|
+
def non_bar_molecules; end
|
781
|
+
end
|
782
|
+
|
783
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#5
|
784
|
+
ProgressBar::Format::String::ANSI_SGR_PATTERN = T.let(T.unsafe(nil), Regexp)
|
785
|
+
|
786
|
+
# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#4
|
787
|
+
ProgressBar::Format::String::MOLECULE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
788
|
+
|
789
|
+
# source://ruby-progressbar//lib/ruby-progressbar/errors/invalid_progress_error.rb#2
|
790
|
+
class ProgressBar::InvalidProgressError < ::RuntimeError; end
|
791
|
+
|
792
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#2
|
793
|
+
class ProgressBar::Output
|
794
|
+
# @return [Output] a new instance of Output
|
795
|
+
#
|
796
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#7
|
797
|
+
def initialize(options = T.unsafe(nil)); end
|
798
|
+
|
799
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#34
|
800
|
+
def clear_string; end
|
801
|
+
|
802
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#38
|
803
|
+
def length; end
|
804
|
+
|
805
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#27
|
806
|
+
def log(string); end
|
807
|
+
|
808
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#47
|
809
|
+
def refresh(options = T.unsafe(nil)); end
|
810
|
+
|
811
|
+
# Returns the value of attribute stream.
|
812
|
+
#
|
813
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#5
|
814
|
+
def stream; end
|
815
|
+
|
816
|
+
# Sets the attribute stream
|
817
|
+
#
|
818
|
+
# @param value the value to set the attribute stream to.
|
819
|
+
#
|
820
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#5
|
821
|
+
def stream=(_arg0); end
|
822
|
+
|
823
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#42
|
824
|
+
def with_refresh; end
|
825
|
+
|
826
|
+
protected
|
827
|
+
|
828
|
+
# Returns the value of attribute bar.
|
829
|
+
#
|
830
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#57
|
831
|
+
def bar; end
|
832
|
+
|
833
|
+
# Sets the attribute bar
|
834
|
+
#
|
835
|
+
# @param value the value to set the attribute bar to.
|
836
|
+
#
|
837
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#57
|
838
|
+
def bar=(_arg0); end
|
839
|
+
|
840
|
+
# Returns the value of attribute length_calculator.
|
841
|
+
#
|
842
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#57
|
843
|
+
def length_calculator; end
|
844
|
+
|
845
|
+
# Sets the attribute length_calculator
|
846
|
+
#
|
847
|
+
# @param value the value to set the attribute length_calculator to.
|
848
|
+
#
|
849
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#57
|
850
|
+
def length_calculator=(_arg0); end
|
851
|
+
|
852
|
+
# Returns the value of attribute throttle.
|
853
|
+
#
|
854
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#57
|
855
|
+
def throttle; end
|
856
|
+
|
857
|
+
# Sets the attribute throttle
|
858
|
+
#
|
859
|
+
# @param value the value to set the attribute throttle to.
|
860
|
+
#
|
861
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#57
|
862
|
+
def throttle=(_arg0); end
|
863
|
+
|
864
|
+
private
|
865
|
+
|
866
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#63
|
867
|
+
def print_and_flush; end
|
868
|
+
|
869
|
+
class << self
|
870
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#17
|
871
|
+
def detect(options = T.unsafe(nil)); end
|
872
|
+
end
|
873
|
+
end
|
874
|
+
|
875
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#3
|
876
|
+
ProgressBar::Output::DEFAULT_OUTPUT_STREAM = T.let(T.unsafe(nil), IO)
|
877
|
+
|
878
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#4
|
879
|
+
module ProgressBar::Outputs; end
|
880
|
+
|
881
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#5
|
882
|
+
class ProgressBar::Outputs::NonTty < ::ProgressBar::Output
|
883
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#18
|
884
|
+
def bar_update_string; end
|
885
|
+
|
886
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#8
|
887
|
+
def clear; end
|
888
|
+
|
889
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#28
|
890
|
+
def default_format; end
|
891
|
+
|
892
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#38
|
893
|
+
def eol; end
|
894
|
+
|
895
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#14
|
896
|
+
def last_update_length; end
|
897
|
+
|
898
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#36
|
899
|
+
def refresh_with_format_change(*_arg0); end
|
900
|
+
|
901
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#32
|
902
|
+
def resolve_format(*_arg0); end
|
903
|
+
|
904
|
+
protected
|
905
|
+
|
906
|
+
# Sets the attribute last_update_length
|
907
|
+
#
|
908
|
+
# @param value the value to set the attribute last_update_length to.
|
909
|
+
#
|
910
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#44
|
911
|
+
def last_update_length=(_arg0); end
|
912
|
+
end
|
913
|
+
|
914
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#6
|
915
|
+
ProgressBar::Outputs::NonTty::DEFAULT_FORMAT_STRING = T.let(T.unsafe(nil), String)
|
916
|
+
|
917
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#5
|
918
|
+
class ProgressBar::Outputs::Tty < ::ProgressBar::Output
|
919
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#15
|
920
|
+
def bar_update_string; end
|
921
|
+
|
922
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#10
|
923
|
+
def clear; end
|
924
|
+
|
925
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#19
|
926
|
+
def default_format; end
|
927
|
+
|
928
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#27
|
929
|
+
def eol; end
|
930
|
+
|
931
|
+
# source://ruby-progressbar//lib/ruby-progressbar/output.rb#42
|
932
|
+
def refresh_with_format_change; end
|
933
|
+
|
934
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#23
|
935
|
+
def resolve_format(other_format); end
|
936
|
+
end
|
937
|
+
|
938
|
+
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#6
|
939
|
+
ProgressBar::Outputs::Tty::DEFAULT_FORMAT_STRING = T.let(T.unsafe(nil), String)
|
940
|
+
|
941
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#4
|
942
|
+
class ProgressBar::Progress
|
943
|
+
# @return [Progress] a new instance of Progress
|
944
|
+
#
|
945
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#16
|
946
|
+
def initialize(options = T.unsafe(nil)); end
|
947
|
+
|
948
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#114
|
949
|
+
def absolute; end
|
950
|
+
|
951
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#47
|
952
|
+
def decrement; end
|
953
|
+
|
954
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#29
|
955
|
+
def finish; end
|
956
|
+
|
957
|
+
# @return [Boolean]
|
958
|
+
#
|
959
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#33
|
960
|
+
def finished?; end
|
961
|
+
|
962
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#37
|
963
|
+
def increment; end
|
964
|
+
|
965
|
+
# @return [Boolean]
|
966
|
+
#
|
967
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#95
|
968
|
+
def none?; end
|
969
|
+
|
970
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#83
|
971
|
+
def percentage_completed; end
|
972
|
+
|
973
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#107
|
974
|
+
def percentage_completed_with_precision; end
|
975
|
+
|
976
|
+
# Returns the value of attribute progress.
|
977
|
+
#
|
978
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#9
|
979
|
+
def progress; end
|
980
|
+
|
981
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#61
|
982
|
+
def progress=(new_progress); end
|
983
|
+
|
984
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#57
|
985
|
+
def reset; end
|
986
|
+
|
987
|
+
# Returns the value of attribute running_average.
|
988
|
+
#
|
989
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#12
|
990
|
+
def running_average; end
|
991
|
+
|
992
|
+
# Sets the attribute running_average
|
993
|
+
#
|
994
|
+
# @param value the value to set the attribute running_average to.
|
995
|
+
#
|
996
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#12
|
997
|
+
def running_average=(_arg0); end
|
998
|
+
|
999
|
+
# Returns the value of attribute smoothing.
|
1000
|
+
#
|
1001
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#12
|
1002
|
+
def smoothing; end
|
1003
|
+
|
1004
|
+
# Sets the attribute smoothing
|
1005
|
+
#
|
1006
|
+
# @param value the value to set the attribute smoothing to.
|
1007
|
+
#
|
1008
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#12
|
1009
|
+
def smoothing=(_arg0); end
|
1010
|
+
|
1011
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#23
|
1012
|
+
def start(options = T.unsafe(nil)); end
|
1013
|
+
|
1014
|
+
# Returns the value of attribute starting_position.
|
1015
|
+
#
|
1016
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#12
|
1017
|
+
def starting_position; end
|
1018
|
+
|
1019
|
+
# Sets the attribute starting_position
|
1020
|
+
#
|
1021
|
+
# @param value the value to set the attribute starting_position to.
|
1022
|
+
#
|
1023
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#12
|
1024
|
+
def starting_position=(_arg0); end
|
1025
|
+
|
1026
|
+
# Returns the value of attribute total.
|
1027
|
+
#
|
1028
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#9
|
1029
|
+
def total; end
|
1030
|
+
|
1031
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#74
|
1032
|
+
def total=(new_total); end
|
1033
|
+
|
1034
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#103
|
1035
|
+
def total_with_unknown_indicator; end
|
1036
|
+
|
1037
|
+
# @return [Boolean]
|
1038
|
+
#
|
1039
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#99
|
1040
|
+
def unknown?; end
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#6
|
1044
|
+
ProgressBar::Progress::DEFAULT_BEGINNING_POSITION = T.let(T.unsafe(nil), Integer)
|
1045
|
+
|
1046
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#7
|
1047
|
+
ProgressBar::Progress::DEFAULT_SMOOTHING = T.let(T.unsafe(nil), Float)
|
1048
|
+
|
1049
|
+
# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#5
|
1050
|
+
ProgressBar::Progress::DEFAULT_TOTAL = T.let(T.unsafe(nil), Integer)
|
1051
|
+
|
1052
|
+
# source://ruby-progressbar//lib/ruby-progressbar/refinements/enumerator.rb#2
|
1053
|
+
module ProgressBar::Refinements; end
|
1054
|
+
|
1055
|
+
# source://ruby-progressbar//lib/ruby-progressbar/refinements/enumerator.rb#3
|
1056
|
+
module ProgressBar::Refinements::Enumerator; end
|
1057
|
+
|
1058
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#2
|
1059
|
+
class ProgressBar::Throttle
|
1060
|
+
# @return [Throttle] a new instance of Throttle
|
1061
|
+
#
|
1062
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#8
|
1063
|
+
def initialize(options = T.unsafe(nil)); end
|
1064
|
+
|
1065
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#15
|
1066
|
+
def choke(options = T.unsafe(nil)); end
|
1067
|
+
|
1068
|
+
# Returns the value of attribute rate.
|
1069
|
+
#
|
1070
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
|
1071
|
+
def rate; end
|
1072
|
+
|
1073
|
+
# Sets the attribute rate
|
1074
|
+
#
|
1075
|
+
# @param value the value to set the attribute rate to.
|
1076
|
+
#
|
1077
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
|
1078
|
+
def rate=(_arg0); end
|
1079
|
+
|
1080
|
+
# Returns the value of attribute started_at.
|
1081
|
+
#
|
1082
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
|
1083
|
+
def started_at; end
|
1084
|
+
|
1085
|
+
# Sets the attribute started_at
|
1086
|
+
#
|
1087
|
+
# @param value the value to set the attribute started_at to.
|
1088
|
+
#
|
1089
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
|
1090
|
+
def started_at=(_arg0); end
|
1091
|
+
|
1092
|
+
# Returns the value of attribute stopped_at.
|
1093
|
+
#
|
1094
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
|
1095
|
+
def stopped_at; end
|
1096
|
+
|
1097
|
+
# Sets the attribute stopped_at
|
1098
|
+
#
|
1099
|
+
# @param value the value to set the attribute stopped_at to.
|
1100
|
+
#
|
1101
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
|
1102
|
+
def stopped_at=(_arg0); end
|
1103
|
+
|
1104
|
+
# Returns the value of attribute timer.
|
1105
|
+
#
|
1106
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
|
1107
|
+
def timer; end
|
1108
|
+
|
1109
|
+
# Sets the attribute timer
|
1110
|
+
#
|
1111
|
+
# @param value the value to set the attribute timer to.
|
1112
|
+
#
|
1113
|
+
# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
|
1114
|
+
def timer=(_arg0); end
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
# source://ruby-progressbar//lib/ruby-progressbar/time.rb#3
|
1118
|
+
class ProgressBar::Time
|
1119
|
+
# @return [Time] a new instance of Time
|
1120
|
+
#
|
1121
|
+
# source://ruby-progressbar//lib/ruby-progressbar/time.rb#11
|
1122
|
+
def initialize(time = T.unsafe(nil)); end
|
1123
|
+
|
1124
|
+
# source://ruby-progressbar//lib/ruby-progressbar/time.rb#15
|
1125
|
+
def now; end
|
1126
|
+
|
1127
|
+
# source://ruby-progressbar//lib/ruby-progressbar/time.rb#19
|
1128
|
+
def unmocked_time_method; end
|
1129
|
+
|
1130
|
+
protected
|
1131
|
+
|
1132
|
+
# Returns the value of attribute time.
|
1133
|
+
#
|
1134
|
+
# source://ruby-progressbar//lib/ruby-progressbar/time.rb#29
|
1135
|
+
def time; end
|
1136
|
+
|
1137
|
+
# Sets the attribute time
|
1138
|
+
#
|
1139
|
+
# @param value the value to set the attribute time to.
|
1140
|
+
#
|
1141
|
+
# source://ruby-progressbar//lib/ruby-progressbar/time.rb#29
|
1142
|
+
def time=(_arg0); end
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
# source://ruby-progressbar//lib/ruby-progressbar/time.rb#4
|
1146
|
+
ProgressBar::Time::TIME_MOCKING_LIBRARY_METHODS = T.let(T.unsafe(nil), Array)
|
1147
|
+
|
1148
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#4
|
1149
|
+
class ProgressBar::Timer
|
1150
|
+
# @return [Timer] a new instance of Timer
|
1151
|
+
#
|
1152
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#8
|
1153
|
+
def initialize(options = T.unsafe(nil)); end
|
1154
|
+
|
1155
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#61
|
1156
|
+
def divide_seconds(seconds); end
|
1157
|
+
|
1158
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#53
|
1159
|
+
def elapsed_seconds; end
|
1160
|
+
|
1161
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#57
|
1162
|
+
def elapsed_whole_seconds; end
|
1163
|
+
|
1164
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#23
|
1165
|
+
def pause; end
|
1166
|
+
|
1167
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#39
|
1168
|
+
def reset; end
|
1169
|
+
|
1170
|
+
# @return [Boolean]
|
1171
|
+
#
|
1172
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#44
|
1173
|
+
def reset?; end
|
1174
|
+
|
1175
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#48
|
1176
|
+
def restart; end
|
1177
|
+
|
1178
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#27
|
1179
|
+
def resume; end
|
1180
|
+
|
1181
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#12
|
1182
|
+
def start; end
|
1183
|
+
|
1184
|
+
# @return [Boolean]
|
1185
|
+
#
|
1186
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#31
|
1187
|
+
def started?; end
|
1188
|
+
|
1189
|
+
# Returns the value of attribute started_at.
|
1190
|
+
#
|
1191
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5
|
1192
|
+
def started_at; end
|
1193
|
+
|
1194
|
+
# Sets the attribute started_at
|
1195
|
+
#
|
1196
|
+
# @param value the value to set the attribute started_at to.
|
1197
|
+
#
|
1198
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5
|
1199
|
+
def started_at=(_arg0); end
|
1200
|
+
|
1201
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#17
|
1202
|
+
def stop; end
|
1203
|
+
|
1204
|
+
# @return [Boolean]
|
1205
|
+
#
|
1206
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#35
|
1207
|
+
def stopped?; end
|
1208
|
+
|
1209
|
+
# Returns the value of attribute stopped_at.
|
1210
|
+
#
|
1211
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5
|
1212
|
+
def stopped_at; end
|
1213
|
+
|
1214
|
+
# Sets the attribute stopped_at
|
1215
|
+
#
|
1216
|
+
# @param value the value to set the attribute stopped_at to.
|
1217
|
+
#
|
1218
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5
|
1219
|
+
def stopped_at=(_arg0); end
|
1220
|
+
|
1221
|
+
protected
|
1222
|
+
|
1223
|
+
# Returns the value of attribute time.
|
1224
|
+
#
|
1225
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#70
|
1226
|
+
def time; end
|
1227
|
+
|
1228
|
+
# Sets the attribute time
|
1229
|
+
#
|
1230
|
+
# @param value the value to set the attribute time to.
|
1231
|
+
#
|
1232
|
+
# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#70
|
1233
|
+
def time=(_arg0); end
|
1234
|
+
end
|