progressbar 1.8.2 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +5 -5
- data/Rakefile +0 -0
- data/lib/progressbar.rb +2 -0
- data/lib/ruby-progressbar/base.rb +24 -2
- data/lib/ruby-progressbar/calculators/length.rb +14 -3
- data/lib/ruby-progressbar/components/time.rb +6 -2
- data/lib/ruby-progressbar/format/formatter.rb +1 -1
- data/lib/ruby-progressbar/format/molecule.rb +2 -1
- data/lib/ruby-progressbar/output.rb +14 -7
- data/lib/ruby-progressbar/outputs/null.rb +33 -0
- data/lib/ruby-progressbar/progress.rb +4 -0
- data/lib/ruby-progressbar/refinements.rb +1 -0
- data/lib/ruby-progressbar/refinements/enumerator.rb +25 -0
- data/lib/ruby-progressbar/version.rb +1 -1
- metadata +31 -70
- metadata.gz.sig +0 -0
- data/lib/ruby-progressbar/calculators/length_spec.rb +0 -9
- data/spec/fixtures/benchmark.rb +0 -28
- data/spec/ruby-progressbar/base_spec.rb +0 -949
- data/spec/ruby-progressbar/calculators/length_calculator_spec.rb +0 -19
- data/spec/ruby-progressbar/calculators/running_average_spec.rb +0 -19
- data/spec/ruby-progressbar/components/bar_spec.rb +0 -234
- data/spec/ruby-progressbar/components/percentage_spec.rb +0 -9
- data/spec/ruby-progressbar/components/rate_spec.rb +0 -9
- data/spec/ruby-progressbar/components/throttle_spec.rb +0 -157
- data/spec/ruby-progressbar/components/time_spec.rb +0 -307
- data/spec/ruby-progressbar/components/title_spec.rb +0 -12
- data/spec/ruby-progressbar/format/formatter_spec.rb +0 -9
- data/spec/ruby-progressbar/format/molecule_spec.rb +0 -30
- data/spec/ruby-progressbar/format/string_spec.rb +0 -9
- data/spec/ruby-progressbar/output_spec.rb +0 -7
- data/spec/ruby-progressbar/outputs/non_tty_spec.rb +0 -9
- data/spec/ruby-progressbar/outputs/tty_spec.rb +0 -9
- data/spec/ruby-progressbar/progress_spec.rb +0 -156
- data/spec/ruby-progressbar/time_spec.rb +0 -45
- data/spec/ruby-progressbar/timer_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -6
- data/spec/support/time.rb +0 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f2b3dd564ea79b42aff1b69292c39069069efd5
|
|
4
|
+
data.tar.gz: 6875bf6216a6d834b2caed6477af1a2eefe8ede9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e388c8a1576d42b3a884bdd8784d27c2149a64cd9ece8fa841b8d63387776ff583e55f868765261819e10b182ea7bc8c3d90b2c60b06d23695e36f2522ced68a
|
|
7
|
+
data.tar.gz: 72e8985dbde3bb6890712e6a80864f408d78f27026b1c6d0368fcc125c8a65d8cd0385f02150b00221d1d3e3a1d7a77cd140824348bfa42e2890f56d3657994e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/README.md
CHANGED
|
@@ -2,13 +2,13 @@ Ruby/ProgressBar
|
|
|
2
2
|
================================
|
|
3
3
|
[](https://rubygems.org/gems/ruby-progressbar)    [](http://travis-ci.org/jfelchner/ruby-progressbar) [](https://codeclimate.com/github/jfelchner/ruby-progressbar) [](https://codeclimate.com/github/jfelchner/ruby-progressbar)
|
|
4
4
|
|
|
5
|
-
<img src="https://
|
|
5
|
+
<img src="https://kompanee-public-assets.s3.amazonaws.com/readmes/ruby-progressbar-cage.png" align="right" />
|
|
6
6
|
|
|
7
7
|
The **ultimate** text progress bar library for Ruby! It'll **SMASH YOU OVER THE HEAD** with a **PURE RUSH** of progress bar excitement!
|
|
8
8
|
|
|
9
9
|
Don't miss out on what all the kids are talking about! If you want everyone to know that your gem or app can survive _in the cage_ then YOU WANT **RUBY-PROGRESSBAR**!
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
<br><br><br>
|
|
12
12
|
|
|
13
13
|
Full Reference
|
|
14
14
|
--------------------------------
|
|
@@ -25,7 +25,7 @@ If you have problems, please create a [Github issue](https://github.com/jfelchne
|
|
|
25
25
|
Credits
|
|
26
26
|
--------------------------------
|
|
27
27
|
|
|
28
|
-

|
|
29
29
|
|
|
30
30
|
ruby-progressbar is maintained by [The Kompanee, Ltd.](http://www.thekompanee.com)
|
|
31
31
|
|
|
@@ -34,5 +34,5 @@ The names and logos for The Kompanee are trademarks of The Kompanee, Ltd.
|
|
|
34
34
|
License
|
|
35
35
|
--------------------------------
|
|
36
36
|
|
|
37
|
-
ruby-progressbar 1.0 is Copyright © 2011-
|
|
38
|
-
ruby-progressbar 0.9.0 is Copyright © 2008 [Satoru Takabayashi](http://
|
|
37
|
+
ruby-progressbar 1.0 is Copyright © 2011-2018 The Kompanee. It is free software, and may be redistributed under the terms specified in the LICENSE file.
|
|
38
|
+
ruby-progressbar 0.9.0 is Copyright © 2008 [Satoru Takabayashi](http://0xcc.net)
|
data/Rakefile
CHANGED
|
File without changes
|
data/lib/progressbar.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
+
|
|
2
3
|
require 'ruby-progressbar/output'
|
|
3
4
|
require 'ruby-progressbar/outputs/tty'
|
|
4
5
|
require 'ruby-progressbar/outputs/non_tty'
|
|
@@ -10,6 +11,7 @@ require 'ruby-progressbar/calculators/running_average'
|
|
|
10
11
|
require 'ruby-progressbar/components'
|
|
11
12
|
require 'ruby-progressbar/format'
|
|
12
13
|
require 'ruby-progressbar/base'
|
|
14
|
+
require 'ruby-progressbar/refinements' unless RUBY_VERSION.start_with?('1.')
|
|
13
15
|
|
|
14
16
|
class ProgressBar
|
|
15
17
|
def self.create(*args)
|
|
@@ -37,8 +37,6 @@ class Base
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
def start(options = {})
|
|
40
|
-
clear
|
|
41
|
-
|
|
42
40
|
timer.start
|
|
43
41
|
update_progress(:start, options)
|
|
44
42
|
end
|
|
@@ -125,6 +123,30 @@ class Base
|
|
|
125
123
|
Format::Formatter.process(@format, output.length, self)
|
|
126
124
|
end
|
|
127
125
|
|
|
126
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength
|
|
127
|
+
def to_h
|
|
128
|
+
{
|
|
129
|
+
'output_stream' => output.__send__(:stream),
|
|
130
|
+
'length' => output.length,
|
|
131
|
+
'title' => title_comp.title,
|
|
132
|
+
'progress_mark' => bar.progress_mark,
|
|
133
|
+
'remainder_mark' => bar.remainder_mark,
|
|
134
|
+
'progress' => progressable.progress,
|
|
135
|
+
'total' => progressable.total,
|
|
136
|
+
'percentage' => progressable.percentage_completed_with_precision.to_f,
|
|
137
|
+
'elapsed_time_in_seconds' => time.__send__(:timer).elapsed_seconds,
|
|
138
|
+
'estimated_time_remaining_in_seconds' => time.__send__(:estimated_seconds_remaining),
|
|
139
|
+
'base_rate_of_change' => rate.__send__(:base_rate),
|
|
140
|
+
'scaled_rate_of_change' => rate.__send__(:scaled_rate),
|
|
141
|
+
'unknown_progress_animation_steps' => bar.upa_steps,
|
|
142
|
+
'throttle_rate' => output.__send__(:throttle).rate,
|
|
143
|
+
'started?' => started?,
|
|
144
|
+
'stopped?' => stopped?,
|
|
145
|
+
'finished?' => finished?
|
|
146
|
+
}
|
|
147
|
+
end
|
|
148
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength
|
|
149
|
+
|
|
128
150
|
def inspect
|
|
129
151
|
"#<ProgressBar:#{progress}/#{total || 'unknown'}>"
|
|
130
152
|
end
|
|
@@ -2,10 +2,12 @@ class ProgressBar
|
|
|
2
2
|
module Calculators
|
|
3
3
|
class Length
|
|
4
4
|
attr_reader :length_override
|
|
5
|
-
attr_accessor :current_length
|
|
5
|
+
attr_accessor :current_length,
|
|
6
|
+
:output
|
|
6
7
|
|
|
7
8
|
def initialize(options = {})
|
|
8
9
|
self.length_override = options[:length]
|
|
10
|
+
self.output = options[:output]
|
|
9
11
|
self.current_length = nil
|
|
10
12
|
end
|
|
11
13
|
|
|
@@ -37,21 +39,25 @@ class Length
|
|
|
37
39
|
|
|
38
40
|
# This code was copied and modified from Rake, available under MIT-LICENSE
|
|
39
41
|
# Copyright (c) 2003, 2004 Jim Weirich
|
|
42
|
+
# rubocop:disable Lint/RescueWithoutErrorClass
|
|
40
43
|
def terminal_width
|
|
41
44
|
return 80 unless unix?
|
|
42
45
|
|
|
43
46
|
result = dynamic_width
|
|
44
|
-
result < 20 ? 80 : result
|
|
47
|
+
(result < 20) ? 80 : result
|
|
45
48
|
rescue
|
|
46
49
|
80
|
|
47
50
|
end
|
|
51
|
+
# rubocop:enable Lint/RescueWithoutErrorClass
|
|
48
52
|
|
|
49
53
|
# rubocop:disable Lint/DuplicateMethods
|
|
50
54
|
begin
|
|
51
55
|
require 'io/console'
|
|
52
56
|
|
|
53
57
|
def dynamic_width
|
|
54
|
-
if
|
|
58
|
+
if output && output.tty?
|
|
59
|
+
dynamic_width_via_output_stream_object
|
|
60
|
+
elsif IO.console
|
|
55
61
|
dynamic_width_via_io_object
|
|
56
62
|
else
|
|
57
63
|
dynamic_width_via_system_calls
|
|
@@ -63,6 +69,11 @@ class Length
|
|
|
63
69
|
end
|
|
64
70
|
end
|
|
65
71
|
|
|
72
|
+
def dynamic_width_via_output_stream_object
|
|
73
|
+
_rows, columns = output.winsize
|
|
74
|
+
columns
|
|
75
|
+
end
|
|
76
|
+
|
|
66
77
|
def dynamic_width_via_io_object
|
|
67
78
|
_rows, columns = IO.console.winsize
|
|
68
79
|
columns
|
|
@@ -63,9 +63,11 @@ class Time
|
|
|
63
63
|
private
|
|
64
64
|
|
|
65
65
|
def estimated
|
|
66
|
-
|
|
66
|
+
memo_estimated_seconds_remaining = estimated_seconds_remaining
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
return OOB_UNKNOWN_TIME_TEXT unless memo_estimated_seconds_remaining
|
|
69
|
+
|
|
70
|
+
hours, minutes, seconds = timer.divide_seconds(memo_estimated_seconds_remaining)
|
|
69
71
|
|
|
70
72
|
if hours > OOB_LIMIT_IN_HOURS && out_of_bounds_time_format
|
|
71
73
|
out_of_bounds_time
|
|
@@ -87,6 +89,8 @@ class Time
|
|
|
87
89
|
end
|
|
88
90
|
|
|
89
91
|
def estimated_seconds_remaining
|
|
92
|
+
return if progress.unknown? || progress.none? || timer.stopped?
|
|
93
|
+
|
|
90
94
|
(timer.elapsed_seconds * (progress.total / progress.running_average - 1)).round
|
|
91
95
|
end
|
|
92
96
|
|
|
@@ -13,7 +13,7 @@ class Formatter
|
|
|
13
13
|
bar_length = max_length -
|
|
14
14
|
processed_string.displayable_length +
|
|
15
15
|
format_string.bar_molecule_placeholder_length
|
|
16
|
-
bar_length = bar_length < 0 ? 0 : bar_length
|
|
16
|
+
bar_length = (bar_length < 0) ? 0 : bar_length
|
|
17
17
|
|
|
18
18
|
format_string.bar_molecules.each do |molecule|
|
|
19
19
|
processed_string.gsub!(molecule.full_key,
|
|
@@ -6,6 +6,7 @@ class Molecule
|
|
|
6
6
|
:T => [:title_comp, :title],
|
|
7
7
|
:c => [:progressable, :progress],
|
|
8
8
|
:C => [:progressable, :total],
|
|
9
|
+
:u => [:progressable, :total_with_unknown_indicator],
|
|
9
10
|
:p => [:percentage, :percentage],
|
|
10
11
|
:P => [:percentage, :percentage_with_precision],
|
|
11
12
|
:j => [:percentage, :justified_percentage],
|
|
@@ -19,7 +20,7 @@ class Molecule
|
|
|
19
20
|
:w => [:bar, :bar_with_percentage],
|
|
20
21
|
:i => [:bar, :incomplete_space],
|
|
21
22
|
:r => [:rate, :rate_of_change],
|
|
22
|
-
:R => [:rate, :rate_of_change_with_precision]
|
|
23
|
+
:R => [:rate, :rate_of_change_with_precision]
|
|
23
24
|
}.freeze
|
|
24
25
|
|
|
25
26
|
BAR_MOLECULES = %w{w B b i}.freeze
|
|
@@ -7,12 +7,17 @@ class Output
|
|
|
7
7
|
def initialize(options = {})
|
|
8
8
|
self.bar = options[:bar]
|
|
9
9
|
self.stream = options[:output] || DEFAULT_OUTPUT_STREAM
|
|
10
|
-
self.length_calculator = Calculators::Length.new(options)
|
|
11
10
|
self.throttle = Throttle.new(options)
|
|
11
|
+
self.length_calculator = Calculators::Length.new(
|
|
12
|
+
:length => options[:length],
|
|
13
|
+
:output => stream
|
|
14
|
+
)
|
|
12
15
|
end
|
|
13
16
|
|
|
14
17
|
def self.detect(options = {})
|
|
15
|
-
if (options[:output]
|
|
18
|
+
if options[:output].is_a?(Class) && options[:output] <= ProgressBar::Output
|
|
19
|
+
options[:output].new(options)
|
|
20
|
+
elsif (options[:output] || DEFAULT_OUTPUT_STREAM).tty?
|
|
16
21
|
Outputs::Tty.new(options)
|
|
17
22
|
else
|
|
18
23
|
Outputs::NonTty.new(options)
|
|
@@ -47,15 +52,17 @@ class Output
|
|
|
47
52
|
end
|
|
48
53
|
end
|
|
49
54
|
|
|
50
|
-
def print_and_flush
|
|
51
|
-
stream.print bar_update_string + eol
|
|
52
|
-
stream.flush
|
|
53
|
-
end
|
|
54
|
-
|
|
55
55
|
protected
|
|
56
56
|
|
|
57
57
|
attr_accessor :length_calculator,
|
|
58
58
|
:throttle,
|
|
59
59
|
:bar
|
|
60
|
+
|
|
61
|
+
private
|
|
62
|
+
|
|
63
|
+
def print_and_flush
|
|
64
|
+
stream.print bar_update_string + eol
|
|
65
|
+
stream.flush
|
|
66
|
+
end
|
|
60
67
|
end
|
|
61
68
|
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
require 'ruby-progressbar/output'
|
|
2
|
+
|
|
3
|
+
class ProgressBar
|
|
4
|
+
module Outputs
|
|
5
|
+
class Null < Output
|
|
6
|
+
alias refresh_with_format_change with_refresh
|
|
7
|
+
|
|
8
|
+
def clear; end
|
|
9
|
+
def log(_string); end
|
|
10
|
+
def refresh(*); end
|
|
11
|
+
|
|
12
|
+
def clear_string
|
|
13
|
+
''
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def bar_update_string
|
|
17
|
+
''
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def default_format
|
|
21
|
+
''
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def resolve_format(_format)
|
|
25
|
+
''
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def eol
|
|
29
|
+
''
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'ruby-progressbar/refinements/enumerator'
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
class ProgressBar
|
|
2
|
+
module Refinements
|
|
3
|
+
module Enumerator
|
|
4
|
+
refine ::Enumerator do
|
|
5
|
+
# rubocop:disable Metrics/BlockNesting
|
|
6
|
+
def with_progressbar(options = {}, &block)
|
|
7
|
+
chain = ::Enumerator.new do |yielder|
|
|
8
|
+
progress_bar = ProgressBar.create(options.merge(:starting_at => 0, :total => size))
|
|
9
|
+
|
|
10
|
+
each do |*args|
|
|
11
|
+
yielder.yield(*args).tap do
|
|
12
|
+
progress_bar.increment
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
return chain unless block_given?
|
|
18
|
+
|
|
19
|
+
chain.each(&block)
|
|
20
|
+
end
|
|
21
|
+
# rubocop:enable Metrics/BlockNesting
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: progressbar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thekompanee
|
|
@@ -13,26 +13,26 @@ cert_chain:
|
|
|
13
13
|
-----BEGIN CERTIFICATE-----
|
|
14
14
|
MIIDrjCCApagAwIBAgIBATANBgkqhkiG9w0BAQUFADBOMRowGAYDVQQDDBFhY2Nv
|
|
15
15
|
dW50c19ydWJ5Z2VtczEbMBkGCgmSJomT8ixkARkWC3RoZWtvbXBhbmVlMRMwEQYK
|
|
16
|
-
|
|
16
|
+
CZImiZPyLGQBGRYDY29tMB4XDTE3MDgwMjIyNTgyMVoXDTE4MDgwMjIyNTgyMVow
|
|
17
17
|
TjEaMBgGA1UEAwwRYWNjb3VudHNfcnVieWdlbXMxGzAZBgoJkiaJk/IsZAEZFgt0
|
|
18
18
|
aGVrb21wYW5lZTETMBEGCgmSJomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEB
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
BQADggEPADCCAQoCggEBAKunijEc/LhVt5JaoGNSvpxTGFH0B6nXlKczqYZwSq1v
|
|
20
|
+
t+N9yjAqbbaWf/gEABZC4OyTKj8CMV+XifPjd1pZgyzTjnNA9H11V0L6iT6ecjTa
|
|
21
|
+
psR7JOeDNBvvbQLIu1Bcq/YymX4XfUwGiUyP5ik9LUBCzkr9uSA4VrHdXEbU3vTf
|
|
22
|
+
CO9LSE+IWMSGIsaKe1GO/JgZ8rBPeRU2UtLiKVdbZsN54r9g2ALWKeHbwe8I+/X2
|
|
23
|
+
09Z5+O8umT6DyQ/ZQwJu1ose4S6xqKuZi3hrVLaZuqzrKXdFNa26YZvNesD69TkD
|
|
24
|
+
SUyGUo0nCfFRdpasF5b7FPqQrFHpM98GWHTIGfLi+3ECAwEAAaOBljCBkzAJBgNV
|
|
25
|
+
HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUq9CqCtrqfHhfx7IQAJK/ZxuP
|
|
26
|
+
lqUwLAYDVR0RBCUwI4EhYWNjb3VudHMrcnVieWdlbXNAdGhla29tcGFuZWUuY29t
|
|
27
27
|
MCwGA1UdEgQlMCOBIWFjY291bnRzK3J1YnlnZW1zQHRoZWtvbXBhbmVlLmNvbTAN
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
BgkqhkiG9w0BAQUFAAOCAQEAqjylrSicZbZBInAWZScw/c2oNz2kdnxh76IA/DbA
|
|
29
|
+
+TCjytQRyKgbynEoBrYf/c6Mc1gPrjPINNubj3GICajOPmYjJZcyn0uBOthBKjOx
|
|
30
|
+
23BI9sL4wNDvqJVkPuX9kd2YZP6S5UocoMVIrGouD8xzUFDAkghBJAI0rJyeW9ew
|
|
31
|
+
8GYAA2UPxYOZS25L5NEbRvQyZTifbqxoUiCAET/gbrnodvTTXDhZ8JV45/Fr3K97
|
|
32
|
+
PHO6SmWDz7oWa8pdUSTTn9dNIVaxsYYuqr1HyaHdhjItQLl/4S4wZu1yqMBEwyGO
|
|
33
|
+
HGJ2WkoCJ6ABU8wsO70PQd9pl1M3stScQLd3vWgPeuioBQ==
|
|
34
34
|
-----END CERTIFICATE-----
|
|
35
|
-
date:
|
|
35
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
|
36
36
|
dependencies:
|
|
37
37
|
- !ruby/object:Gem::Dependency
|
|
38
38
|
name: rspec
|
|
@@ -82,14 +82,14 @@ dependencies:
|
|
|
82
82
|
requirements:
|
|
83
83
|
- - "~>"
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
|
-
version: 0.0.
|
|
85
|
+
version: 0.0.6
|
|
86
86
|
type: :development
|
|
87
87
|
prerelease: false
|
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements:
|
|
90
90
|
- - "~>"
|
|
91
91
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: 0.0.
|
|
92
|
+
version: 0.0.6
|
|
93
93
|
- !ruby/object:Gem::Dependency
|
|
94
94
|
name: timecop
|
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -104,11 +104,11 @@ dependencies:
|
|
|
104
104
|
- - '='
|
|
105
105
|
- !ruby/object:Gem::Version
|
|
106
106
|
version: 0.6.1
|
|
107
|
-
description:
|
|
108
|
-
Ruby
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
description: 'Ruby/ProgressBar is an extremely flexible text progress bar library
|
|
108
|
+
for Ruby. The output can be customized with a flexible formatting system including:
|
|
109
|
+
percentage, bars of various formats, elapsed time and estimated time remaining.'
|
|
110
|
+
email:
|
|
111
|
+
- support@thekompanee.com
|
|
112
112
|
executables: []
|
|
113
113
|
extensions: []
|
|
114
114
|
extra_rdoc_files: []
|
|
@@ -119,7 +119,6 @@ files:
|
|
|
119
119
|
- lib/progressbar.rb
|
|
120
120
|
- lib/ruby-progressbar/base.rb
|
|
121
121
|
- lib/ruby-progressbar/calculators/length.rb
|
|
122
|
-
- lib/ruby-progressbar/calculators/length_spec.rb
|
|
123
122
|
- lib/ruby-progressbar/calculators/running_average.rb
|
|
124
123
|
- lib/ruby-progressbar/components.rb
|
|
125
124
|
- lib/ruby-progressbar/components/bar.rb
|
|
@@ -134,37 +133,20 @@ files:
|
|
|
134
133
|
- lib/ruby-progressbar/format/string.rb
|
|
135
134
|
- lib/ruby-progressbar/output.rb
|
|
136
135
|
- lib/ruby-progressbar/outputs/non_tty.rb
|
|
136
|
+
- lib/ruby-progressbar/outputs/null.rb
|
|
137
137
|
- lib/ruby-progressbar/outputs/tty.rb
|
|
138
138
|
- lib/ruby-progressbar/progress.rb
|
|
139
|
+
- lib/ruby-progressbar/refinements.rb
|
|
140
|
+
- lib/ruby-progressbar/refinements/enumerator.rb
|
|
139
141
|
- lib/ruby-progressbar/throttle.rb
|
|
140
142
|
- lib/ruby-progressbar/time.rb
|
|
141
143
|
- lib/ruby-progressbar/timer.rb
|
|
142
144
|
- lib/ruby-progressbar/version.rb
|
|
143
|
-
- spec/fixtures/benchmark.rb
|
|
144
|
-
- spec/ruby-progressbar/base_spec.rb
|
|
145
|
-
- spec/ruby-progressbar/calculators/length_calculator_spec.rb
|
|
146
|
-
- spec/ruby-progressbar/calculators/running_average_spec.rb
|
|
147
|
-
- spec/ruby-progressbar/components/bar_spec.rb
|
|
148
|
-
- spec/ruby-progressbar/components/percentage_spec.rb
|
|
149
|
-
- spec/ruby-progressbar/components/rate_spec.rb
|
|
150
|
-
- spec/ruby-progressbar/components/throttle_spec.rb
|
|
151
|
-
- spec/ruby-progressbar/components/time_spec.rb
|
|
152
|
-
- spec/ruby-progressbar/components/title_spec.rb
|
|
153
|
-
- spec/ruby-progressbar/format/formatter_spec.rb
|
|
154
|
-
- spec/ruby-progressbar/format/molecule_spec.rb
|
|
155
|
-
- spec/ruby-progressbar/format/string_spec.rb
|
|
156
|
-
- spec/ruby-progressbar/output_spec.rb
|
|
157
|
-
- spec/ruby-progressbar/outputs/non_tty_spec.rb
|
|
158
|
-
- spec/ruby-progressbar/outputs/tty_spec.rb
|
|
159
|
-
- spec/ruby-progressbar/progress_spec.rb
|
|
160
|
-
- spec/ruby-progressbar/time_spec.rb
|
|
161
|
-
- spec/ruby-progressbar/timer_spec.rb
|
|
162
|
-
- spec/spec_helper.rb
|
|
163
|
-
- spec/support/time.rb
|
|
164
145
|
homepage: https://github.com/jfelchner/ruby-progressbar
|
|
165
146
|
licenses:
|
|
166
147
|
- MIT
|
|
167
|
-
metadata:
|
|
148
|
+
metadata:
|
|
149
|
+
allowed_push_host: https://rubygems.org
|
|
168
150
|
post_install_message:
|
|
169
151
|
rdoc_options: []
|
|
170
152
|
require_paths:
|
|
@@ -181,29 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
181
163
|
version: '0'
|
|
182
164
|
requirements: []
|
|
183
165
|
rubyforge_project:
|
|
184
|
-
rubygems_version: 2.
|
|
166
|
+
rubygems_version: 2.6.8
|
|
185
167
|
signing_key:
|
|
186
168
|
specification_version: 4
|
|
187
169
|
summary: Ruby/ProgressBar is a flexible text progress bar library for Ruby.
|
|
188
|
-
test_files:
|
|
189
|
-
- spec/fixtures/benchmark.rb
|
|
190
|
-
- spec/ruby-progressbar/base_spec.rb
|
|
191
|
-
- spec/ruby-progressbar/calculators/length_calculator_spec.rb
|
|
192
|
-
- spec/ruby-progressbar/calculators/running_average_spec.rb
|
|
193
|
-
- spec/ruby-progressbar/components/bar_spec.rb
|
|
194
|
-
- spec/ruby-progressbar/components/percentage_spec.rb
|
|
195
|
-
- spec/ruby-progressbar/components/rate_spec.rb
|
|
196
|
-
- spec/ruby-progressbar/components/throttle_spec.rb
|
|
197
|
-
- spec/ruby-progressbar/components/time_spec.rb
|
|
198
|
-
- spec/ruby-progressbar/components/title_spec.rb
|
|
199
|
-
- spec/ruby-progressbar/format/formatter_spec.rb
|
|
200
|
-
- spec/ruby-progressbar/format/molecule_spec.rb
|
|
201
|
-
- spec/ruby-progressbar/format/string_spec.rb
|
|
202
|
-
- spec/ruby-progressbar/output_spec.rb
|
|
203
|
-
- spec/ruby-progressbar/outputs/non_tty_spec.rb
|
|
204
|
-
- spec/ruby-progressbar/outputs/tty_spec.rb
|
|
205
|
-
- spec/ruby-progressbar/progress_spec.rb
|
|
206
|
-
- spec/ruby-progressbar/time_spec.rb
|
|
207
|
-
- spec/ruby-progressbar/timer_spec.rb
|
|
208
|
-
- spec/spec_helper.rb
|
|
209
|
-
- spec/support/time.rb
|
|
170
|
+
test_files: []
|