tty-progressbar 0.12.2 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -2
  3. data/CHANGELOG.md +8 -0
  4. data/CODE_OF_CONDUCT.md +74 -0
  5. data/Gemfile +0 -1
  6. data/README.md +2 -0
  7. data/appveyor.yml +2 -4
  8. data/lib/tty-progressbar.rb +0 -2
  9. data/lib/tty/progressbar.rb +0 -1
  10. data/lib/tty/progressbar/configuration.rb +0 -2
  11. data/lib/tty/progressbar/converter.rb +0 -1
  12. data/lib/tty/progressbar/formatter.rb +0 -1
  13. data/lib/tty/progressbar/formatter/bar.rb +0 -1
  14. data/lib/tty/progressbar/formatter/byte_rate.rb +0 -1
  15. data/lib/tty/progressbar/formatter/current.rb +0 -1
  16. data/lib/tty/progressbar/formatter/current_byte.rb +0 -1
  17. data/lib/tty/progressbar/formatter/elapsed.rb +0 -1
  18. data/lib/tty/progressbar/formatter/estimated.rb +0 -1
  19. data/lib/tty/progressbar/formatter/mean_byte.rb +0 -1
  20. data/lib/tty/progressbar/formatter/mean_rate.rb +0 -1
  21. data/lib/tty/progressbar/formatter/percent.rb +0 -1
  22. data/lib/tty/progressbar/formatter/rate.rb +0 -1
  23. data/lib/tty/progressbar/formatter/total.rb +0 -1
  24. data/lib/tty/progressbar/formatter/total_byte.rb +0 -1
  25. data/lib/tty/progressbar/meter.rb +0 -1
  26. data/lib/tty/progressbar/multi.rb +0 -1
  27. data/lib/tty/progressbar/pipeline.rb +0 -2
  28. data/lib/tty/progressbar/version.rb +1 -3
  29. data/spec/spec_helper.rb +1 -3
  30. data/spec/unit/advance_spec.rb +0 -2
  31. data/spec/unit/clear_spec.rb +0 -2
  32. data/spec/unit/complete_spec.rb +0 -2
  33. data/spec/unit/converter/to_bytes_spec.rb +0 -2
  34. data/spec/unit/converter/to_seconds_spec.rb +0 -2
  35. data/spec/unit/converter/to_time_spec.rb +0 -2
  36. data/spec/unit/custom_formatter_spec.rb +0 -2
  37. data/spec/unit/custom_token_spec.rb +0 -2
  38. data/spec/unit/events_spec.rb +0 -2
  39. data/spec/unit/finish_spec.rb +0 -2
  40. data/spec/unit/formatter/bar_spec.rb +0 -2
  41. data/spec/unit/formatter/byte_rate_spec.rb +0 -2
  42. data/spec/unit/formatter/current_byte_spec.rb +0 -2
  43. data/spec/unit/formatter/current_spec.rb +0 -2
  44. data/spec/unit/formatter/elapsed_spec.rb +0 -2
  45. data/spec/unit/formatter/estimated_spec.rb +0 -2
  46. data/spec/unit/formatter/mean_byte_spec.rb +0 -2
  47. data/spec/unit/formatter/mean_rate_spec.rb +0 -2
  48. data/spec/unit/formatter/percent_spec.rb +0 -2
  49. data/spec/unit/formatter/rate_spec.rb +0 -2
  50. data/spec/unit/formatter/total_byte_spec.rb +0 -2
  51. data/spec/unit/formatter/total_spec.rb +0 -2
  52. data/spec/unit/frequency_spec.rb +0 -2
  53. data/spec/unit/head_spec.rb +0 -2
  54. data/spec/unit/hide_cursor_spec.rb +0 -2
  55. data/spec/unit/inspect_spec.rb +0 -2
  56. data/spec/unit/iterate_spec.rb +0 -2
  57. data/spec/unit/log_spec.rb +0 -2
  58. data/spec/unit/meter_spec.rb +0 -2
  59. data/spec/unit/multi/advance_spec.rb +0 -2
  60. data/spec/unit/multi/events_spec.rb +0 -2
  61. data/spec/unit/multi/finish_spec.rb +0 -2
  62. data/spec/unit/multi/line_inset_spec.rb +0 -2
  63. data/spec/unit/multi/register_spec.rb +0 -2
  64. data/spec/unit/multi/stop_spec.rb +0 -2
  65. data/spec/unit/new_spec.rb +0 -2
  66. data/spec/unit/pipeline_spec.rb +0 -2
  67. data/spec/unit/ratio_spec.rb +0 -2
  68. data/spec/unit/reset_spec.rb +0 -2
  69. data/spec/unit/resize_spec.rb +0 -2
  70. data/spec/unit/set_current_spec.rb +0 -2
  71. data/spec/unit/start_spec.rb +0 -2
  72. data/spec/unit/stop_spec.rb +0 -2
  73. data/spec/unit/update_spec.rb +0 -2
  74. data/spec/unit/width_spec.rb +0 -2
  75. data/tasks/console.rake +1 -3
  76. data/tasks/coverage.rake +0 -2
  77. data/tasks/spec.rake +0 -2
  78. data/tty-progressbar.gemspec +3 -1
  79. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 464521adfe6e527ac1ab61aadd19cd657cf0f6aa
4
- data.tar.gz: 6ec1edf3103f0675efe9af020d968583084ea0ec
3
+ metadata.gz: ffbc5e8dbfe59fffa658892053d84d3f571ae501
4
+ data.tar.gz: 2605c62530355c6ddde735c12395f6a7a0d35cbf
5
5
  SHA512:
6
- metadata.gz: 49e8a4e0d022250c44ee782cae66ed1ce065062ae04388fbec78f4b25624861ce9f888257b30f06f5c5a1ba5bb35c4fa396837fe0afb02c04f5ecb3a5d4570d3
7
- data.tar.gz: f835a9a2579497d5c3f1c08122ab61b401180f3987480c3b5c24ad1a6291606705c0296b5511ce537aecd48beb1c20f04a1da019eba56a552d9a61a44ca6da96
6
+ metadata.gz: fedfcab4a057cd7d1488f003b4ab300fb33197ac8d3ad8157057d82684d357057b825d9e06fed00186c075a5bca97e73779ec210b191002a57b07dee64d24690
7
+ data.tar.gz: c203b0789b771f1bb9aadd1a7a19a4e7933d0d31591d6f2a0e48043013115ed3762d557167d5299098d427d5e003fa0f4d7061ee7c32217c8d0a4fe051f86d12
@@ -5,12 +5,11 @@ cache: bundler
5
5
  before_install: "gem update bundler"
6
6
  script: "bundle exec rake ci"
7
7
  rvm:
8
- - 1.9.3
9
8
  - 2.0.0
10
9
  - 2.1.10
11
10
  - 2.2.6
12
11
  - 2.3.3
13
- - 2.4.0
12
+ - 2.4.1
14
13
  - ruby-head
15
14
  - jruby-9.1.5.0
16
15
  - jruby-head
@@ -1,5 +1,12 @@
1
1
  # Change log
2
2
 
3
+ ## [v0.13.0] - 2017-10-29
4
+
5
+ ### Changed
6
+ * Change tty-screen dependency version
7
+ * Change gemspec to require Ruby >= 2.0.0
8
+ * Remove encoding comments
9
+
3
10
  ## [v0.12.2] - 2017-09-15
4
11
 
5
12
  ### Changed
@@ -144,6 +151,7 @@
144
151
 
145
152
  * Initial implementation and release
146
153
 
154
+ [v0.13.0]: https://github.com/peter-murach/tty-progressbar/compare/v0.12.2...v0.13.0
147
155
  [v0.12.2]: https://github.com/peter-murach/tty-progressbar/compare/v0.12.1...v0.12.2
148
156
  [v0.12.1]: https://github.com/peter-murach/tty-progressbar/compare/v0.12.0...v0.12.1
149
157
  [v0.12.0]: https://github.com/peter-murach/tty-progressbar/compare/v0.11.0...v0.12.0
@@ -0,0 +1,74 @@
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 CHANGED
@@ -7,7 +7,6 @@ group :test do
7
7
  gem 'pastel', '~> 0.7.0'
8
8
  gem 'coveralls', '~> 0.8.13'
9
9
  gem 'simplecov', '~> 0.11.2'
10
- gem 'term-ansicolor', '=1.3.2'
11
10
  end
12
11
 
13
12
  group :metrics do
data/README.md CHANGED
@@ -629,6 +629,8 @@ This will result in output similar to:
629
629
  4. Push to the branch (`git push origin my-new-feature`)
630
630
  5. Create a new Pull Request
631
631
 
632
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
633
+
632
634
  ## Copyright
633
635
 
634
636
  Copyright (c) 2014-2017 Piotr Murach. See LICENSE for further details.
@@ -9,7 +9,6 @@ test_script:
9
9
  - bundle exec rake ci
10
10
  environment:
11
11
  matrix:
12
- - ruby_version: "193"
13
12
  - ruby_version: "200"
14
13
  - ruby_version: "200-x64"
15
14
  - ruby_version: "21"
@@ -18,6 +17,5 @@ environment:
18
17
  - ruby_version: "22-x64"
19
18
  - ruby_version: "23"
20
19
  - ruby_version: "23-x64"
21
- matrix:
22
- allow_failures:
23
- - ruby_version: "193"
20
+ - ruby_version: "24"
21
+ - ruby_version: "24-x64"
@@ -1,4 +1,2 @@
1
- # encoding: utf-8
2
-
3
1
  require_relative 'tty/progressbar'
4
2
  require_relative 'tty/progressbar/multi'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require 'io/console'
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  module TTY
4
2
  class ProgressBar
5
3
  class Configuration
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module TTY
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require_relative 'pipeline'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module TTY
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require_relative '../converter'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module TTY
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require_relative '../converter'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require_relative '../converter'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require_relative '../converter'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require_relative '../converter'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require_relative '../converter'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module TTY
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require_relative '../converter'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module TTY
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require_relative '../converter'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module TTY
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require 'forwardable'
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  module TTY
4
2
  class ProgressBar
5
3
  # Used by {ProgressBar} to decorate format string
@@ -1,7 +1,5 @@
1
- # coding: utf-8
2
-
3
1
  module TTY
4
2
  class ProgressBar
5
- VERSION = '0.12.2'
3
+ VERSION = '0.13.0'
6
4
  end # ProgressBar
7
5
  end # TTY
@@ -1,6 +1,4 @@
1
- # encoding: utf-8
2
-
3
- if RUBY_VERSION > '1.9' and (ENV['COVERAGE'] || ENV['TRAVIS'])
1
+ if ENV['COVERAGE'] || ENV['TRAVIS']
4
2
  require 'simplecov'
5
3
  require 'coveralls'
6
4
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#advance' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, 'clear' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#complete?' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Converter, '#to_bytes' do
4
2
  subject(:converter) { described_class }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Converter, '#to_seconds' do
4
2
  subject(:converter) { described_class }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Converter, '#to_time' do
4
2
  subject(:converter) { described_class }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, 'custom formatter' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, 'custom token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, 'events' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#finish' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':bar token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':byte_rate token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':current_byte token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':current token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':elapsed token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':eta token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':mean_byte token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':mean_rate token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':percent token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':rate token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':total_byte token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':total token' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, 'frequency' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, ':head' do
4
2
  let(:output) { StringIO.new('', 'w+')}
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#hide_cursor' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#inspect' do
4
2
  it "inspects bar properties" do
5
3
  bar = described_class.new("downloading [:bar] :total", total: 30)
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#iterate' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#log' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Meter, '#rate' do
4
2
 
5
3
  before { Timecop.safe_mode = false }
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Multi, 'advance' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
  let(:save) { TTY::Cursor.save }
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Multi, 'events' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Multi, '#finish' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Multi, '#line_inset' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Multi, '#register' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Multi, '#stop' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '::new' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar::Pipeline, '#decorate' do
4
2
  subject(:pipeline) { described_class.new }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#ratio=' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#reset' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#resize' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#current=' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#start' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#stop' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#update' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  RSpec.describe TTY::ProgressBar, '#width' do
4
2
  let(:output) { StringIO.new('', 'w+') }
5
3
 
@@ -1,10 +1,8 @@
1
- # encoding: utf-8
2
-
3
1
  desc 'Load gem inside irb console'
4
2
  task :console do
5
3
  require 'irb'
6
4
  require 'irb/completion'
7
- require File.join(__FILE__, '../../lib/tty-progressbar')
5
+ require_relative '../lib/tty-progressbar'
8
6
  ARGV.clear
9
7
  IRB.start
10
8
  end
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  desc 'Measure code coverage'
4
2
  task :coverage do
5
3
  begin
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  begin
4
2
  require 'rspec/core/rake_task'
5
3
 
@@ -18,8 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = '>= 2.0.0'
22
+
21
23
  spec.add_dependency "tty-cursor", '~> 0.5.0'
22
- spec.add_dependency "tty-screen", '~> 0.5.0'
24
+ spec.add_dependency "tty-screen", '~> 0.6.0'
23
25
 
24
26
  spec.add_development_dependency 'bundler', '>= 1.5.0', '< 2.0'
25
27
  spec.add_development_dependency 'rspec', '~> 3.1'
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.12.2
4
+ version: 0.13.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: 2017-09-15 00:00:00.000000000 Z
11
+ date: 2017-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-cursor
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.5.0
33
+ version: 0.6.0
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.5.0
40
+ version: 0.6.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -98,6 +98,7 @@ files:
98
98
  - ".rspec"
99
99
  - ".travis.yml"
100
100
  - CHANGELOG.md
101
+ - CODE_OF_CONDUCT.md
101
102
  - Gemfile
102
103
  - LICENSE.txt
103
104
  - README.md
@@ -195,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
196
  requirements:
196
197
  - - ">="
197
198
  - !ruby/object:Gem::Version
198
- version: '0'
199
+ version: 2.0.0
199
200
  required_rubygems_version: !ruby/object:Gem::Requirement
200
201
  requirements:
201
202
  - - ">="