tty-progressbar 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/Rakefile +2 -2
- data/lib/tty/progressbar/version.rb +1 -1
- data/spec/spec_helper.rb +4 -2
- data/tty-progressbar.gemspec +9 -8
- metadata +13 -78
- data/.codeclimate.yml +0 -11
- data/.gitignore +0 -14
- data/.rspec +0 -3
- data/.travis.yml +0 -26
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -14
- data/ISSUE_TEMPLATE.md +0 -23
- data/PULL_REQUEST_TEMPLATE.md +0 -18
- data/appveyor.yml +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aedcd9e5ed7d14d3b50023577a864d973f136c24210d9fb3257ef31fb0a17d14
|
4
|
+
data.tar.gz: 5415df0a28f43df5fdcee7c154537d4cec6e47af4a30360f1c840a428ef494d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe9efc020a6f6303fb217858ffc5fb2dd5c6a227e4eb6d02f27b546d02e59efb8022c9fe8d1331651fbf5f384071717063a1cb36ccd8929900f25bbd4a6f58b4
|
7
|
+
data.tar.gz: 3320f20951540bbebb844a2634fc5e2a772b90b0073292b6f464c43737ee01e1cc636b8001b3b271ba264847aa9af68d6b55424c63bdd44cfb43f367f0f776d6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## [v0.17.0] - 2019-05-31
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
* Change gemspec to load files directly without git
|
7
|
+
* Change to update tty-cursor and tty-screen dependencies
|
8
|
+
|
3
9
|
## [v0.16.0] - 2018-08-27
|
4
10
|
|
5
11
|
### Added
|
@@ -195,6 +201,7 @@
|
|
195
201
|
|
196
202
|
* Initial implementation and release
|
197
203
|
|
204
|
+
[v0.17.0]: https://github.com/piotrmurach/tty-progressbar/compare/v0.16.0...v0.17.0
|
198
205
|
[v0.16.0]: https://github.com/piotrmurach/tty-progressbar/compare/v0.15.1...v0.16.0
|
199
206
|
[v0.15.1]: https://github.com/piotrmurach/tty-progressbar/compare/v0.15.0...v0.15.1
|
200
207
|
[v0.15.0]: https://github.com/piotrmurach/tty-progressbar/compare/v0.14.0...v0.15.0
|
data/README.md
CHANGED
@@ -482,7 +482,7 @@ which outputs:
|
|
482
482
|
|
483
483
|
### 4.4 Unicode
|
484
484
|
|
485
|
-
The format string as well as `:complete`, `:head` and `:
|
485
|
+
The format string as well as `:complete`, `:head` and `:incomplete` configuration options can contain Unicode characters that aren't monospaced.
|
486
486
|
|
487
487
|
For example, you can specify complete bar progression character to be Unicode non-monospaced:
|
488
488
|
|
data/Rakefile
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
if ENV['COVERAGE'] || ENV['TRAVIS']
|
2
4
|
require 'simplecov'
|
3
5
|
require 'coveralls'
|
4
6
|
|
5
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
7
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
6
8
|
SimpleCov::Formatter::HTMLFormatter,
|
7
9
|
Coveralls::SimpleCov::Formatter
|
8
|
-
]
|
10
|
+
])
|
9
11
|
|
10
12
|
SimpleCov.start do
|
11
13
|
command_name 'spec'
|
data/tty-progressbar.gemspec
CHANGED
@@ -6,26 +6,27 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "tty-progressbar"
|
7
7
|
spec.version = TTY::ProgressBar::VERSION
|
8
8
|
spec.authors = ["Piotr Murach"]
|
9
|
-
spec.email = [""]
|
9
|
+
spec.email = ["me@piotrmurach.com"]
|
10
10
|
spec.summary = %q{A flexible progress bars drawing in terminal emulators.}
|
11
11
|
spec.description = %q{A flexible progress bars drawing in terminal emulators.}
|
12
12
|
spec.homepage = "https://piotrmurach.github.io/tty/"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
|
-
spec.files =
|
15
|
+
spec.files = Dir['{lib,spec,examples}/**/*.rb']
|
16
|
+
spec.files += Dir['tasks/*', 'tty-progressbar.gemspec']
|
17
|
+
spec.files += Dir['README.md', 'CHANGELOG.md', 'LICENSE.txt', 'Rakefile']
|
16
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
19
|
spec.require_paths = ["lib"]
|
19
20
|
|
20
21
|
spec.required_ruby_version = '>= 2.0.0'
|
21
22
|
|
22
23
|
spec.add_dependency 'strings-ansi', '~> 0.1.0'
|
23
|
-
spec.add_dependency 'tty-cursor', '~> 0.
|
24
|
-
spec.add_dependency 'tty-screen', '~> 0.
|
25
|
-
spec.add_dependency 'unicode-display_width', '~> 1.
|
24
|
+
spec.add_dependency 'tty-cursor', '~> 0.7'
|
25
|
+
spec.add_dependency 'tty-screen', '~> 0.7'
|
26
|
+
spec.add_dependency 'unicode-display_width', '~> 1.6'
|
26
27
|
|
27
|
-
spec.add_development_dependency 'bundler', '>= 1.5.0'
|
28
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
28
|
+
spec.add_development_dependency 'bundler', '>= 1.5.0'
|
29
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
30
|
spec.add_development_dependency 'timecop', '~> 0.9.1'
|
30
31
|
spec.add_development_dependency 'rake'
|
31
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tty-progressbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: strings-ansi
|
@@ -30,42 +30,42 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: '0.7'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: '0.7'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: tty-screen
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: '0.7'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: '0.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: unicode-display_width
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.6'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
68
|
+
version: '1.6'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,9 +73,6 @@ dependencies:
|
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 1.5.0
|
76
|
-
- - "<"
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: '2.0'
|
79
76
|
type: :development
|
80
77
|
prerelease: false
|
81
78
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -83,23 +80,20 @@ dependencies:
|
|
83
80
|
- - ">="
|
84
81
|
- !ruby/object:Gem::Version
|
85
82
|
version: 1.5.0
|
86
|
-
- - "<"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '2.0'
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
84
|
name: rspec
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
92
86
|
requirements:
|
93
87
|
- - "~>"
|
94
88
|
- !ruby/object:Gem::Version
|
95
|
-
version: '3.
|
89
|
+
version: '3.0'
|
96
90
|
type: :development
|
97
91
|
prerelease: false
|
98
92
|
version_requirements: !ruby/object:Gem::Requirement
|
99
93
|
requirements:
|
100
94
|
- - "~>"
|
101
95
|
- !ruby/object:Gem::Version
|
102
|
-
version: '3.
|
96
|
+
version: '3.0'
|
103
97
|
- !ruby/object:Gem::Dependency
|
104
98
|
name: timecop
|
105
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,24 +124,15 @@ dependencies:
|
|
130
124
|
version: '0'
|
131
125
|
description: A flexible progress bars drawing in terminal emulators.
|
132
126
|
email:
|
133
|
-
-
|
127
|
+
- me@piotrmurach.com
|
134
128
|
executables: []
|
135
129
|
extensions: []
|
136
130
|
extra_rdoc_files: []
|
137
131
|
files:
|
138
|
-
- ".codeclimate.yml"
|
139
|
-
- ".gitignore"
|
140
|
-
- ".rspec"
|
141
|
-
- ".travis.yml"
|
142
132
|
- CHANGELOG.md
|
143
|
-
- CODE_OF_CONDUCT.md
|
144
|
-
- Gemfile
|
145
|
-
- ISSUE_TEMPLATE.md
|
146
133
|
- LICENSE.txt
|
147
|
-
- PULL_REQUEST_TEMPLATE.md
|
148
134
|
- README.md
|
149
135
|
- Rakefile
|
150
|
-
- appveyor.yml
|
151
136
|
- examples/color.rb
|
152
137
|
- examples/failure.rb
|
153
138
|
- examples/iterator.rb
|
@@ -254,58 +239,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
239
|
- !ruby/object:Gem::Version
|
255
240
|
version: '0'
|
256
241
|
requirements: []
|
257
|
-
|
258
|
-
rubygems_version: 2.7.3
|
242
|
+
rubygems_version: 3.0.3
|
259
243
|
signing_key:
|
260
244
|
specification_version: 4
|
261
245
|
summary: A flexible progress bars drawing in terminal emulators.
|
262
|
-
test_files:
|
263
|
-
- spec/spec_helper.rb
|
264
|
-
- spec/unit/advance_spec.rb
|
265
|
-
- spec/unit/clear_spec.rb
|
266
|
-
- spec/unit/complete_spec.rb
|
267
|
-
- spec/unit/converter/to_bytes_spec.rb
|
268
|
-
- spec/unit/converter/to_seconds_spec.rb
|
269
|
-
- spec/unit/converter/to_time_spec.rb
|
270
|
-
- spec/unit/custom_formatter_spec.rb
|
271
|
-
- spec/unit/custom_token_spec.rb
|
272
|
-
- spec/unit/events_spec.rb
|
273
|
-
- spec/unit/finish_spec.rb
|
274
|
-
- spec/unit/formatter/bar_spec.rb
|
275
|
-
- spec/unit/formatter/byte_rate_spec.rb
|
276
|
-
- spec/unit/formatter/current_byte_spec.rb
|
277
|
-
- spec/unit/formatter/current_spec.rb
|
278
|
-
- spec/unit/formatter/elapsed_spec.rb
|
279
|
-
- spec/unit/formatter/estimated_spec.rb
|
280
|
-
- spec/unit/formatter/mean_byte_spec.rb
|
281
|
-
- spec/unit/formatter/mean_rate_spec.rb
|
282
|
-
- spec/unit/formatter/percent_spec.rb
|
283
|
-
- spec/unit/formatter/rate_spec.rb
|
284
|
-
- spec/unit/formatter/total_byte_spec.rb
|
285
|
-
- spec/unit/formatter/total_spec.rb
|
286
|
-
- spec/unit/frequency_spec.rb
|
287
|
-
- spec/unit/head_spec.rb
|
288
|
-
- spec/unit/hide_cursor_spec.rb
|
289
|
-
- spec/unit/inspect_spec.rb
|
290
|
-
- spec/unit/iterate_spec.rb
|
291
|
-
- spec/unit/log_spec.rb
|
292
|
-
- spec/unit/meter_spec.rb
|
293
|
-
- spec/unit/multi/advance_spec.rb
|
294
|
-
- spec/unit/multi/events_spec.rb
|
295
|
-
- spec/unit/multi/finish_spec.rb
|
296
|
-
- spec/unit/multi/line_inset_spec.rb
|
297
|
-
- spec/unit/multi/register_spec.rb
|
298
|
-
- spec/unit/multi/reset_spec.rb
|
299
|
-
- spec/unit/multi/stop_spec.rb
|
300
|
-
- spec/unit/multi/width_spec.rb
|
301
|
-
- spec/unit/new_spec.rb
|
302
|
-
- spec/unit/pipeline_spec.rb
|
303
|
-
- spec/unit/ratio_spec.rb
|
304
|
-
- spec/unit/render_spec.rb
|
305
|
-
- spec/unit/reset_spec.rb
|
306
|
-
- spec/unit/resize_spec.rb
|
307
|
-
- spec/unit/set_current_spec.rb
|
308
|
-
- spec/unit/start_spec.rb
|
309
|
-
- spec/unit/stop_spec.rb
|
310
|
-
- spec/unit/update_spec.rb
|
311
|
-
- spec/unit/width_spec.rb
|
246
|
+
test_files: []
|
data/.codeclimate.yml
DELETED
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
sudo: false
|
4
|
-
cache: bundler
|
5
|
-
before_install: "gem update bundler"
|
6
|
-
script: "bundle exec rake ci"
|
7
|
-
rvm:
|
8
|
-
- 2.0.0
|
9
|
-
- 2.1.10
|
10
|
-
- 2.2.9
|
11
|
-
- 2.3.6
|
12
|
-
- 2.4.4
|
13
|
-
- 2.5.1
|
14
|
-
- ruby-head
|
15
|
-
- jruby-9.1.5.0
|
16
|
-
- jruby-head
|
17
|
-
matrix:
|
18
|
-
allow_failures:
|
19
|
-
- rvm: ruby-head
|
20
|
-
- rvm: jruby-9.1.5.0
|
21
|
-
- rvm: jruby-head
|
22
|
-
fast_finish: true
|
23
|
-
branches:
|
24
|
-
only: master
|
25
|
-
notifications:
|
26
|
-
email: false
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at [email]. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/ISSUE_TEMPLATE.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
### Are you in the right place?
|
2
|
-
* For issues or feature requests file a GitHub issue in this repository
|
3
|
-
* For general questions or discussion post in [Gitter](https://gitter.im/piotrmurach/tty)
|
4
|
-
|
5
|
-
### Describe the problem
|
6
|
-
A brief description of the issue/feature.
|
7
|
-
|
8
|
-
### Steps to reproduce the problem
|
9
|
-
```
|
10
|
-
Your code here to reproduce the issue
|
11
|
-
```
|
12
|
-
|
13
|
-
### Actual behaviour
|
14
|
-
What happened? This could be a description, log output, error raised etc...
|
15
|
-
|
16
|
-
### Expected behaviour
|
17
|
-
What did you expect to happen?
|
18
|
-
|
19
|
-
### Describe your environment
|
20
|
-
|
21
|
-
* OS version:
|
22
|
-
* Ruby version:
|
23
|
-
* TTY::ProgressBar version:
|
data/PULL_REQUEST_TEMPLATE.md
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
### Describe the change
|
2
|
-
What does this Pull Request do?
|
3
|
-
|
4
|
-
### Why are we doing this?
|
5
|
-
Any related context as to why is this is a desirable change.
|
6
|
-
|
7
|
-
### Benefits
|
8
|
-
How will the library improve?
|
9
|
-
|
10
|
-
### Drawbacks
|
11
|
-
Possible drawbacks applying this change.
|
12
|
-
|
13
|
-
### Requirements
|
14
|
-
Put an X between brackets on each line if you have done the item:
|
15
|
-
[] Tests written & passing locally?
|
16
|
-
[] Code style checked?
|
17
|
-
[] Rebased with `master` branch?
|
18
|
-
[] Documentaion updated?
|
data/appveyor.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
---
|
2
|
-
install:
|
3
|
-
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
4
|
-
- ruby --version
|
5
|
-
- gem --version
|
6
|
-
- bundle install
|
7
|
-
build: off
|
8
|
-
test_script:
|
9
|
-
- bundle exec rake ci
|
10
|
-
environment:
|
11
|
-
matrix:
|
12
|
-
- ruby_version: "200"
|
13
|
-
- ruby_version: "200-x64"
|
14
|
-
- ruby_version: "21"
|
15
|
-
- ruby_version: "21-x64"
|
16
|
-
- ruby_version: "22"
|
17
|
-
- ruby_version: "22-x64"
|
18
|
-
- ruby_version: "23"
|
19
|
-
- ruby_version: "23-x64"
|
20
|
-
- ruby_version: "24"
|
21
|
-
- ruby_version: "24-x64"
|
22
|
-
- ruby_version: "25"
|
23
|
-
- ruby_version: "25-x64"
|