ruby-progressbar 1.9.0 → 1.10.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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/ruby-progressbar/calculators/length.rb +3 -2
- data/lib/ruby-progressbar/components/bar.rb +7 -1
- data/lib/ruby-progressbar/format/molecule.rb +2 -1
- data/lib/ruby-progressbar/outputs/non_tty.rb +1 -1
- data/lib/ruby-progressbar/refinements/enumerator.rb +0 -2
- data/lib/ruby-progressbar/time.rb +2 -0
- data/lib/ruby-progressbar/version.rb +1 -1
- metadata +39 -29
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 42ee7acdeadf208ea04bd6a634dbc999b264fe0914f1ffd7782ecbac90e50858
|
4
|
+
data.tar.gz: 0e7ece6126e208f2636f8e4841c6fd26ee1d935c16ff5d84075e65ac70371b98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36159642c868a944be95a1e6466366516096f7f875437ce3c304418ead4e97349cd8acac7123c2dc9550d18999f1ea629cc34aa622ae5497cea5cfa7a5563ee2
|
7
|
+
data.tar.gz: fc513c2a18cbd165cc1b69dc47c17d9c8f7844f14d86707c15fbc8ecea8c7ff51a9872d9b1bb61e4d505ce054a993c61dcdc7c260cb97a36edb53de49805496c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -39,7 +39,7 @@ class Length
|
|
39
39
|
|
40
40
|
# This code was copied and modified from Rake, available under MIT-LICENSE
|
41
41
|
# Copyright (c) 2003, 2004 Jim Weirich
|
42
|
-
# rubocop:disable
|
42
|
+
# rubocop:disable Style/RescueStandardError
|
43
43
|
def terminal_width
|
44
44
|
return 80 unless unix?
|
45
45
|
|
@@ -48,7 +48,7 @@ class Length
|
|
48
48
|
rescue
|
49
49
|
80
|
50
50
|
end
|
51
|
-
# rubocop:enable
|
51
|
+
# rubocop:enable Style/RescueStandardError
|
52
52
|
|
53
53
|
# rubocop:disable Lint/DuplicateMethods
|
54
54
|
begin
|
@@ -68,6 +68,7 @@ class Length
|
|
68
68
|
dynamic_width_via_system_calls
|
69
69
|
end
|
70
70
|
end
|
71
|
+
# rubocop:enable Lint/DuplicateMethods
|
71
72
|
|
72
73
|
def dynamic_width_via_output_stream_object
|
73
74
|
_rows, columns = output.winsize
|
@@ -57,7 +57,13 @@ class Bar
|
|
57
57
|
def complete_bar(length)
|
58
58
|
self.length = length
|
59
59
|
|
60
|
-
to_s
|
60
|
+
to_s(:format => :standard)
|
61
|
+
end
|
62
|
+
|
63
|
+
def complete_bar_with_percentage(length)
|
64
|
+
self.length = length
|
65
|
+
|
66
|
+
to_s(:format => :integrated_percentage)
|
61
67
|
end
|
62
68
|
|
63
69
|
def unknown_string
|
@@ -17,13 +17,14 @@ class Molecule
|
|
17
17
|
:f => [:time, :estimated_with_no_oob],
|
18
18
|
:B => [:bar, :complete_bar],
|
19
19
|
:b => [:bar, :bar],
|
20
|
+
:W => [:bar, :complete_bar_with_percentage],
|
20
21
|
:w => [:bar, :bar_with_percentage],
|
21
22
|
:i => [:bar, :incomplete_space],
|
22
23
|
:r => [:rate, :rate_of_change],
|
23
24
|
:R => [:rate, :rate_of_change_with_precision]
|
24
25
|
}.freeze
|
25
26
|
|
26
|
-
BAR_MOLECULES = %w{w B b i}.freeze
|
27
|
+
BAR_MOLECULES = %w{W w B b i}.freeze
|
27
28
|
|
28
29
|
attr_accessor :key,
|
29
30
|
:method_name
|
@@ -2,7 +2,6 @@ class ProgressBar
|
|
2
2
|
module Refinements
|
3
3
|
module Enumerator
|
4
4
|
refine ::Enumerator do
|
5
|
-
# rubocop:disable Metrics/BlockNesting
|
6
5
|
def with_progressbar(options = {}, &block)
|
7
6
|
chain = ::Enumerator.new do |yielder|
|
8
7
|
progress_bar = ProgressBar.create(options.merge(:starting_at => 0, :total => size))
|
@@ -18,7 +17,6 @@ refine ::Enumerator do
|
|
18
17
|
|
19
18
|
chain.each(&block)
|
20
19
|
end
|
21
|
-
# rubocop:enable Metrics/BlockNesting
|
22
20
|
end
|
23
21
|
end
|
24
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-progressbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thekompanee
|
@@ -11,28 +11,32 @@ bindir: bin
|
|
11
11
|
cert_chain:
|
12
12
|
- |
|
13
13
|
-----BEGIN CERTIFICATE-----
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
14
|
+
MIIEdjCCAt6gAwIBAgIBATANBgkqhkiG9w0BAQsFADAyMTAwLgYDVQQDDCdhY2Nv
|
15
|
+
dW50c19ydWJ5Z2Vtcy9EQz10aGVrb21wYW5lZS9EQz1jb20wHhcNMTgwODAzMjEz
|
16
|
+
NDA1WhcNMTkwODAzMjEzNDA1WjAyMTAwLgYDVQQDDCdhY2NvdW50c19ydWJ5Z2Vt
|
17
|
+
cy9EQz10aGVrb21wYW5lZS9EQz1jb20wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAw
|
18
|
+
ggGKAoIBgQCqhYn5ODEoLvuBIF2M1GzoaZU28+ntP5QApvDE0Te04n0JbBC1cNYH
|
19
|
+
mr71neeSx7tlZ9w9kJ/8GNcY5bm7pNJ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
+
JxeLxFp0fQc+Mfjx+bFdJgOhcXMjLnDtAaQoDkQfRvQmCTKkXUhNRoTiWtxojkjX
|
35
|
+
8mN+AQ66SKTSztEZRZWizqWmTUtkSG+IKlL5E9fUkLYsKV3xgiuwgh+3vSdz398u
|
36
|
+
KuaMSG4L1U+uHNl3upTjh6wZjzKptsxE0eHSeTlt74ei2EZ4XpDQgMAdxnG19eUY
|
37
|
+
Ew38fD/eb7KjFt6HWjaE88pp12uYoAUV0xTysHhml+rk1/rn/h3T1Exa
|
34
38
|
-----END CERTIFICATE-----
|
35
|
-
date:
|
39
|
+
date: 2018-08-03 00:00:00.000000000 Z
|
36
40
|
dependencies:
|
37
41
|
- !ruby/object:Gem::Dependency
|
38
42
|
name: rspec
|
@@ -40,14 +44,14 @@ dependencies:
|
|
40
44
|
requirements:
|
41
45
|
- - "~>"
|
42
46
|
- !ruby/object:Gem::Version
|
43
|
-
version: '3.
|
47
|
+
version: '3.7'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
50
|
version_requirements: !ruby/object:Gem::Requirement
|
47
51
|
requirements:
|
48
52
|
- - "~>"
|
49
53
|
- !ruby/object:Gem::Version
|
50
|
-
version: '3.
|
54
|
+
version: '3.7'
|
51
55
|
- !ruby/object:Gem::Dependency
|
52
56
|
name: rspectacular
|
53
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,14 +72,14 @@ dependencies:
|
|
68
72
|
requirements:
|
69
73
|
- - "~>"
|
70
74
|
- !ruby/object:Gem::Version
|
71
|
-
version: '2.
|
75
|
+
version: '2.3'
|
72
76
|
type: :development
|
73
77
|
prerelease: false
|
74
78
|
version_requirements: !ruby/object:Gem::Requirement
|
75
79
|
requirements:
|
76
80
|
- - "~>"
|
77
81
|
- !ruby/object:Gem::Version
|
78
|
-
version: '2.
|
82
|
+
version: '2.3'
|
79
83
|
- !ruby/object:Gem::Dependency
|
80
84
|
name: warning_filter
|
81
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,14 +100,14 @@ dependencies:
|
|
96
100
|
requirements:
|
97
101
|
- - '='
|
98
102
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.6.
|
103
|
+
version: 0.6.0
|
100
104
|
type: :development
|
101
105
|
prerelease: false
|
102
106
|
version_requirements: !ruby/object:Gem::Requirement
|
103
107
|
requirements:
|
104
108
|
- - '='
|
105
109
|
- !ruby/object:Gem::Version
|
106
|
-
version: 0.6.
|
110
|
+
version: 0.6.0
|
107
111
|
description: 'Ruby/ProgressBar is an extremely flexible text progress bar library
|
108
112
|
for Ruby. The output can be customized with a flexible formatting system including:
|
109
113
|
percentage, bars of various formats, elapsed time and estimated time remaining.'
|
@@ -147,6 +151,12 @@ licenses:
|
|
147
151
|
- MIT
|
148
152
|
metadata:
|
149
153
|
allowed_push_host: https://rubygems.org
|
154
|
+
bug_tracker_uri: https://github.com/jfelchner/ruby-progressbar/issues
|
155
|
+
changelog_uri: https://github.com/jfelchner/ruby-progressbar/CHANGELOG.md
|
156
|
+
documentation_uri: https://github.com/jfelchner/ruby-progressbar/tree/releases/v1.10.0
|
157
|
+
homepage_uri: https://github.com/jfelchner/ruby-progressbar
|
158
|
+
source_code_uri: https://github.com/jfelchner/ruby-progressbar
|
159
|
+
wiki_uri: https://github.com/jfelchner/ruby-progressbar/wiki
|
150
160
|
post_install_message:
|
151
161
|
rdoc_options: []
|
152
162
|
require_paths:
|
@@ -163,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
173
|
version: '0'
|
164
174
|
requirements: []
|
165
175
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.
|
176
|
+
rubygems_version: 2.7.7
|
167
177
|
signing_key:
|
168
178
|
specification_version: 4
|
169
179
|
summary: Ruby/ProgressBar is a flexible text progress bar library for Ruby.
|
metadata.gz.sig
CHANGED
Binary file
|