array_with_progress 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d9168135d123a7340ac52333d1856408e57a3427
4
- data.tar.gz: b5c16ae2b04e94a07719532365b4494d2fa18658
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MjY2NDJjNzVkYzI5MDJjMGNmNjBjOTVmYzAzY2JmZmMyNzZkNGU4Yw==
5
+ data.tar.gz: !binary |-
6
+ MzY2YWNmZjM3MDExYjlhNzQyY2FmNmRhMDVmN2U2NTQyMzcyODZhYg==
5
7
  SHA512:
6
- metadata.gz: f94f10c7006041ad9038cf4b6e1f3f747aca73078e923da686d19b7c675df34ff284c40ba047ba6e067ac62d9216c458c45032bf1d51d90e6eaec0c573fef7a7
7
- data.tar.gz: ad43981523803f91c6d5ef8c7f4117ca37c94c338e972f4111da05f3b1375ddcfc7079cad54b6e72a78c29f3552c19aa0c8b9d36ba176c476c8f927b2ab1cfdf
8
+ metadata.gz: !binary |-
9
+ MzQ5OGYzMjYyYjk4MTBkYjI3YTQ3NGY5ZjY0YTJiNGYyM2ZhNWQ1NGQzOWIw
10
+ NDI2MGIyYWM0NTUwYjk5YzY3YTcxNWNmZTZiYWNhYzNhOGQ0ODBlNTM3YWU1
11
+ NzgyOTliMWFiZmZiMzRlYmJlZTgyNmY0NWM4NTk0MmM4MWUzNzE=
12
+ data.tar.gz: !binary |-
13
+ MDMwZThkYTc3ZmJkYmNmMTUyZDM0ZTVhYWFiMzVhM2JhMjA5ZTc5Zjk4OTE4
14
+ OTVmYWUwZWMxNTZmMWJmYzgxYjY5ZWZjYTcxYzJiN2ZhZjJjN2MxNzZkMWRm
15
+ NjdlYTljN2E2NTY5NzQ3NjFkNzUxZTkwYzZmMGFkNDBkYTdiZGU=
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in array_with_progress.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'coveralls', require: false
8
+ end
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ArrayWithProgress
2
2
 
3
- [![Build Status](https://travis-ci.org/dabroz/array_with_progress.svg?branch=master)](https://travis-ci.org/dabroz/array_with_progress)
3
+ [![Build Status](https://travis-ci.org/dabroz/array_with_progress.svg?branch=master)](https://travis-ci.org/dabroz/array_with_progress) [![Coverage Status](https://coveralls.io/repos/dabroz/array_with_progress/badge.svg)](https://coveralls.io/r/dabroz/array_with_progress) [![Gem Version](https://badge.fury.io/rb/array_with_progress.svg)](http://badge.fury.io/rb/array_with_progress) [![Code Climate](https://codeclimate.com/github/dabroz/array_with_progress/badges/gpa.svg)](https://codeclimate.com/github/dabroz/array_with_progress)
4
4
 
5
5
  Easily visualize progress of any Ruby task. A drop in replacement for `Array.each`.
6
6
 
@@ -65,7 +65,12 @@ class ArrayProgressItem
65
65
 
66
66
  def display_name
67
67
  width = ArrayProgressConfiguration.item_width
68
- (description + ' ' + self.name + ' ' + self.extra_name).strip[0..width-1].ljust(width, ' ')
68
+ ret = (description + ' ' + self.name + ' ' + self.extra_name)
69
+ ret = ret.gsub("\n", ' ')
70
+ ret = ret.strip
71
+ ret = ret[0..width-1]
72
+ ret = ret.ljust(width, ' ')
73
+ ret
69
74
  end
70
75
 
71
76
  def reprint!
@@ -1,3 +1,3 @@
1
1
  module ArrayWithProgress
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: array_with_progress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Dąbrowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-18 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '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
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: highline
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '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
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.7'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '10.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activerecord
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: Easily visualize progress of any Ruby task. A drop in replacement for
@@ -105,9 +105,9 @@ executables: []
105
105
  extensions: []
106
106
  extra_rdoc_files: []
107
107
  files:
108
- - ".gitignore"
109
- - ".rspec"
110
- - ".travis.yml"
108
+ - .gitignore
109
+ - .rspec
110
+ - .travis.yml
111
111
  - Gemfile
112
112
  - LICENSE.txt
113
113
  - README.md
@@ -130,17 +130,17 @@ require_paths:
130
130
  - lib
131
131
  required_ruby_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - ">="
133
+ - - ! '>='
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ">="
138
+ - - ! '>='
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.4.5
143
+ rubygems_version: 2.4.6
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Easily visualize progress of any Ruby task. A drop in replacement for Array.each.