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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c00acbc8425bb23667a673353ddd47b7be8ec83c
4
- data.tar.gz: f8ddbf3d1bd749a58dc127ba8e2eff03dc47b8ab
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OWI0NTI1YjgxOTFiODcwZTA0NGQyMTUwMTg1NWM2NDM2N2RhM2E2YQ==
5
+ data.tar.gz: !binary |-
6
+ ZDMyYThlNDA5NjY5ZDMxYmRhMmQ3ZjA4YWI1NzE0MDBkYzQ4ZmVjOA==
5
7
  SHA512:
6
- metadata.gz: 34afc9915d5e631a10d120e5e165a5520a31606080aa54303ff3fa7f0ddb2ee2b3badf8fee08140cc170bc9117cc58d5bafd7c8a311ab335a6f7b0d49af09bf7
7
- data.tar.gz: 15520d62ffbcade6b38fb17b318e73587318668f15c7036538c40b0e5852d2eab35a477a5b21aeea6c7fe71ed12ccf3dc7fa6778d3d6ca708ef50ab47354bb37
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
- alias_method :respond_to?, :respond_to_missing? if RUBY_VERSION < '1.9'
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'progress'
5
- s.version = '3.2.0'
5
+ s.version = '3.2.1'
6
6
  s.summary = %q{Show progress of long running tasks}
7
7
  s.homepage = "http://github.com/toy/#{s.name}"
8
8
  s.authors = ['Ivan Kuchin']
@@ -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.0
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-25 00:00:00.000000000 Z
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
- - ".gitignore"
48
- - ".rubocop.yml"
49
- - ".travis.yml"
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: