progressbar 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b33b35967bde2d97d385a221d1967fe21fa57856
4
+ data.tar.gz: 776f253cb483eb64048ad53e83c3dcef3c15a037
5
+ SHA512:
6
+ metadata.gz: a3903d317334071b929b8b54bb1235e80a04a09ef1f18e7dcb889e085790f1dcdaf3f0cd209926d8212655a5aff2ab041a6f52a1cdbafbc31800271425dd4e42
7
+ data.tar.gz: 58b62e68e5d88d86638f0b30b7894240833e11dace0a423f561489ef6671b97f2dc6807c27b15ee3c86eccf2cb59b9cad61ecd79d3f397b91a5bebbe2f750b83
@@ -0,0 +1 @@
1
+ 2.0.0
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in ruby-duration.gemspec
4
4
  gemspec
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- progressbar (0.12.0)
4
+ progressbar (0.21.0)
5
5
 
6
6
  GEM
7
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
8
8
  specs:
9
9
  bluecloth (2.1.0)
10
10
  minitest (2.2.2)
@@ -10,7 +10,7 @@
10
10
  #
11
11
 
12
12
  class ProgressBar
13
- VERSION = "0.20.0"
13
+ VERSION = "0.21.0"
14
14
 
15
15
  def initialize (title, total, out = STDERR)
16
16
  @title = title
@@ -160,7 +160,7 @@ private
160
160
 
161
161
  DEFAULT_WIDTH = 80
162
162
  def get_term_width
163
- if ENV['COLUMNS'] =~ /^\d+$/
163
+ term_width = if ENV['COLUMNS'] =~ /^\d+$/
164
164
  ENV['COLUMNS'].to_i
165
165
  elsif (RUBY_PLATFORM =~ /java/ || (!STDIN.tty? && ENV['TERM'])) && shell_command_exists?('tput')
166
166
  `tput cols`.to_i
@@ -169,6 +169,12 @@ private
169
169
  else
170
170
  DEFAULT_WIDTH
171
171
  end
172
+
173
+ if term_width > 0
174
+ term_width
175
+ else
176
+ DEFAULT_WIDTH
177
+ end
172
178
  rescue
173
179
  DEFAULT_WIDTH
174
180
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: progressbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
5
- prerelease:
4
+ version: 0.21.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Satoru Takabayashi
@@ -10,102 +9,90 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-02-10 00:00:00.000000000 Z
12
+ date: 2013-09-13 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: bundler
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: 1.0.0
23
21
  type: :development
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: 1.0.0
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: minitest
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: yard
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: rake
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - '>='
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - '>='
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: simplecov
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ! '>='
74
+ - - '>='
85
75
  - !ruby/object:Gem::Version
86
76
  version: 0.3.5
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ! '>='
81
+ - - '>='
93
82
  - !ruby/object:Gem::Version
94
83
  version: 0.3.5
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: bluecloth
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - '>='
101
89
  - !ruby/object:Gem::Version
102
90
  version: 0.3.5
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - '>='
109
96
  - !ruby/object:Gem::Version
110
97
  version: 0.3.5
111
98
  description: Ruby/ProgressBar is a text progress bar library for Ruby. It can indicate
@@ -118,7 +105,7 @@ extensions: []
118
105
  extra_rdoc_files: []
119
106
  files:
120
107
  - .gitignore
121
- - .rvmrc
108
+ - .ruby-version
122
109
  - .travis.yml
123
110
  - ChangeLog
124
111
  - Gemfile
@@ -132,27 +119,26 @@ files:
132
119
  homepage: http://github.com/peleteiro/progressbar
133
120
  licenses:
134
121
  - Ruby
122
+ metadata: {}
135
123
  post_install_message:
136
124
  rdoc_options:
137
125
  - --charset=UTF-8
138
126
  require_paths:
139
127
  - lib
140
128
  required_ruby_version: !ruby/object:Gem::Requirement
141
- none: false
142
129
  requirements:
143
- - - ! '>='
130
+ - - '>='
144
131
  - !ruby/object:Gem::Version
145
132
  version: '0'
146
133
  required_rubygems_version: !ruby/object:Gem::Requirement
147
- none: false
148
134
  requirements:
149
- - - ! '>='
135
+ - - '>='
150
136
  - !ruby/object:Gem::Version
151
137
  version: 1.3.6
152
138
  requirements: []
153
139
  rubyforge_project:
154
- rubygems_version: 1.8.24
140
+ rubygems_version: 2.0.6
155
141
  signing_key:
156
- specification_version: 3
142
+ specification_version: 4
157
143
  summary: Ruby/ProgressBar is a text progress bar library for Ruby.
158
144
  test_files: []
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm 1.9.3@progressbar