tty-progressbar 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 352677d511081780de389f441c94367e9c43439d
4
- data.tar.gz: a76e419403efc5d4e86987272ce365df173edb57
3
+ metadata.gz: 2f2cf9c0a69a06ce555230e540d06eb2ead51d7b
4
+ data.tar.gz: 658a14537dd201fbab6378aa4acc27c6e8cc216e
5
5
  SHA512:
6
- metadata.gz: 682bcc03f3f85f5825331b0caf3c41df49d089d19db7168ae1f1f34e624ca7f14b6c89a16b6aa6348f8f951851b1ff758ff9d36e1e9424dda2ecb70772f82a38
7
- data.tar.gz: b520bc8143e6736f7214ac6bac1b9b187769c635fecec636a6ac3c8288cb20c5fc6a78d935b251f8521942aa0c68e40d5898eb6325f7b81783c96c275c0ab7ce
6
+ metadata.gz: 89b95358acafece957b2f627dfde1e70ba4455acde5c1f186555db8f669437521d53d9e266980c0cf4d2d1d5c838cc71decd1ef90e08c3ea53abafac6c031e62
7
+ data.tar.gz: 974c483f4a929549136c981213eefe26dd378eeadfcfc7cae6f97e7033f4593f8c321afbfbfdca50f25bc58f366197274168176892e0550a567f789ed5bf73ba
data/.travis.yml CHANGED
@@ -5,6 +5,7 @@ rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
7
  - 2.1.0
8
+ - 2.2.0
8
9
  - ruby-head
9
10
  matrix:
10
11
  include:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.5.1 (May 31, 2015)
2
+
3
+ * Update tty-screen dependency with bug fixes
4
+
1
5
  0.5.0 (January 1, 2015)
2
6
 
3
7
  * Add ability to reset progress
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ group :development do
7
7
  gem 'rspec', '~> 3.1.0'
8
8
  gem 'yard', '~> 0.8.7'
9
9
  gem 'timecop', '~> 0.7.1'
10
- gem 'pastel', '~> 0.3.0'
10
+ gem 'pastel', '~> 0.4.0'
11
11
  end
12
12
 
13
13
  group :metrics do
data/README.md CHANGED
@@ -1,13 +1,15 @@
1
1
  # TTY::ProgressBar
2
- [![Gem Version](https://badge.fury.io/rb/tty-progressbar.png)][gem]
3
- [![Build Status](https://secure.travis-ci.org/peter-murach/tty-progressbar.png?branch=master)][travis]
4
- [![Code Climate](https://codeclimate.com/github/peter-murach/tty-progressbar.png)][codeclimate]
5
- [![Coverage Status](https://coveralls.io/repos/peter-murach/tty-progressbar/badge.png)][coverage]
2
+ [![Gem Version](https://badge.fury.io/rb/tty-progressbar.svg)][gem]
3
+ [![Build Status](https://secure.travis-ci.org/peter-murach/tty-progressbar.svg?branch=master)][travis]
4
+ [![Code Climate](https://codeclimate.com/github/peter-murach/tty-progressbar/badges/gpa.svg)][codeclimate]
5
+ [![Coverage Status](https://coveralls.io/repos/peter-murach/tty-progressbar/badge.svg)][coverage]
6
+ [![Inline docs](http://inch-ci.org/github/peter-murach/tty-progressbar.svg?branch=master)][inchpages]
6
7
 
7
8
  [gem]: http://badge.fury.io/rb/tty-progressbar
8
9
  [travis]: http://travis-ci.org/peter-murach/tty-progressbar
9
10
  [codeclimate]: https://codeclimate.com/github/peter-murach/tty-progressbar
10
11
  [coverage]: https://coveralls.io/r/peter-murach/tty-progressbar
12
+ [inchpages]: http://inch-ci.org/github/peter-murach/tty-progressbar
11
13
 
12
14
  > A flexible progress bars drawing in terminal emulators.
13
15
 
@@ -341,4 +343,4 @@ downloading [======================= ] 4.12MB/s
341
343
 
342
344
  ## Copyright
343
345
 
344
- Copyright (c) 2015 Piotr Murach. See LICENSE for further details.
346
+ Copyright (c) 2014-2015 Piotr Murach. See LICENSE for further details.
@@ -249,9 +249,11 @@ module TTY
249
249
 
250
250
  # Determine terminal width
251
251
  #
252
+ # @return [Integer]
253
+ #
252
254
  # @api public
253
255
  def max_columns
254
- TTY::Screen.new.width
256
+ TTY::Screen.width
255
257
  end
256
258
 
257
259
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TTY
4
4
  class ProgressBar
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.1'
6
6
  end # ProgressBar
7
7
  end # TTY
@@ -11,8 +11,7 @@ RSpec.describe TTY::ProgressBar, 'width' do
11
11
  config.total = 5
12
12
  config.width = 1024
13
13
  end
14
- screen = double(:screen, width: 20)
15
- allow(TTY::Screen).to receive(:new).and_return(screen)
14
+ allow(TTY::Screen).to receive(:width).and_return(20)
16
15
  5.times { progress.advance }
17
16
  output.rewind
18
17
  expect(output.read).to eq([
@@ -18,7 +18,7 @@ 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.add_dependency "tty-screen", '~> 0.1.0'
21
+ spec.add_dependency "tty-screen", '~> 0.2.0'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '~> 1.6'
24
24
  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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Murach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-01 00:00:00.000000000 Z
11
+ date: 2015-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-screen
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0
19
+ version: 0.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.0
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement