progress 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/progress/with_progress.rb +5 -1
- data/progress.gemspec +1 -1
- data/spec/progress_spec.rb +6 -0
- metadata +10 -23
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OWI0NTI1YjgxOTFiODcwZTA0NGQyMTUwMTg1NWM2NDM2N2RhM2E2YQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZDMyYThlNDA5NjY5ZDMxYmRhMmQ3ZjA4YWI1NzE0MDBkYzQ4ZmVjOA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MjZhOGNmYTY0N2Y5YWFmMDViNTA5OWU0ZGY4ZTZmNzBiYjgxNWRmZWEwM2Zk
|
10
|
+
YTBjN2U3MzBjMThiYWMxMWFiZWZmYjQ4Yzg3MWRlYzkzYWUxNWFkMGUyMmI3
|
11
|
+
NGI3MDVhNzE3NjU3Y2EyYmZlNGYzNDJmMjc1OGJlYmM5MzE2NjI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ODA4MGQ2NDYwMzYwZDExNDg5ODVjZjM1YzMxYmRlYTMxNmJjMThhMjZhNTVl
|
14
|
+
NzlhZTExYjQ4NmJlZWJkZWEyZWIzNTUyODVmZjMwMGI4Y2ZhOWNlZjI1ZDdl
|
15
|
+
YWI2OGVjYzczMmJkNmNlMWZlMmJkOTI0MTBjOTgwOTRhODJkY2E=
|
@@ -34,7 +34,11 @@ class Progress
|
|
34
34
|
enumerable_method?(method) || super
|
35
35
|
end
|
36
36
|
|
37
|
-
|
37
|
+
if RUBY_VERSION < '1.9'
|
38
|
+
def respond_to?(method, include_private = false)
|
39
|
+
enumerable_method?(method) || super
|
40
|
+
end
|
41
|
+
end
|
38
42
|
|
39
43
|
def method_missing(method, *args, &block)
|
40
44
|
if enumerable_method?(method)
|
data/progress.gemspec
CHANGED
data/spec/progress_spec.rb
CHANGED
@@ -57,6 +57,12 @@ describe Progress do
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
+
it 'returns false for respond_to? with non existing methods' do
|
61
|
+
with_progress = [1, 2, 3].with_progress
|
62
|
+
|
63
|
+
expect(with_progress).not_to respond_to(:should_not_be_defined)
|
64
|
+
end
|
65
|
+
|
60
66
|
it 'does not raise errors on extra step or stop' do
|
61
67
|
expect do
|
62
68
|
3.times_with_progress do
|
metadata
CHANGED
@@ -1,52 +1,38 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: progress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.0'
|
20
20
|
type: :development
|
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: '3.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rubocop
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0.27'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0.27'
|
41
27
|
description:
|
42
28
|
email:
|
43
29
|
executables: []
|
44
30
|
extensions: []
|
45
31
|
extra_rdoc_files: []
|
46
32
|
files:
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
33
|
+
- .gitignore
|
34
|
+
- .rubocop.yml
|
35
|
+
- .travis.yml
|
50
36
|
- Gemfile
|
51
37
|
- LICENSE.txt
|
52
38
|
- README.markdown
|
@@ -72,12 +58,12 @@ require_paths:
|
|
72
58
|
- lib
|
73
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
74
60
|
requirements:
|
75
|
-
- -
|
61
|
+
- - ! '>='
|
76
62
|
- !ruby/object:Gem::Version
|
77
63
|
version: '0'
|
78
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- -
|
66
|
+
- - ! '>='
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
69
|
requirements: []
|
@@ -89,3 +75,4 @@ summary: Show progress of long running tasks
|
|
89
75
|
test_files:
|
90
76
|
- spec/progress_spec.rb
|
91
77
|
- spec/test.csv
|
78
|
+
has_rdoc:
|