rspec-support 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +7 -0
- data/lib/rspec/support.rb +0 -27
- data/lib/rspec/support/method_signature_verifier.rb +5 -2
- data/lib/rspec/support/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cb39de744327700003b6241dbe2f204df549c8a
|
4
|
+
data.tar.gz: 22a3ecd3996e27935caf7bd9ad13fa9eee6af36c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d4f9bbcf292127109f31f16d5795192d2179b029f81627fddebbed9a314657f10a0f87c50253d6577dbf1f25f4bc188850d44278d03fc93170620558d9cc25
|
7
|
+
data.tar.gz: 4ca2228ef2a97c06660fe78feafb7327cf15ab7385c838b6fad1e6281bf1a0b70090ea499fa14f9171b12786804917f4a2ae70bac59ddd0a98122a1a7241b3c5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 3.0.2 / 2014-06-20
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.1...v3.0.2)
|
3
|
+
|
4
|
+
* Revert `BlockSignature` change from 3.0.1 because of a ruby bug that
|
5
|
+
caused it to change the block's behavior (https://bugs.ruby-lang.org/issues/9967).
|
6
|
+
(Myron Marston, rspec-mocks#721)
|
7
|
+
|
1
8
|
### 3.0.1 / 2014-06-19
|
2
9
|
[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0...v3.0.1)
|
3
10
|
|
data/lib/rspec/support.rb
CHANGED
@@ -54,32 +54,5 @@ module RSpec
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
57
|
-
|
58
|
-
if RUBY_PLATFORM == 'java'
|
59
|
-
if Proc.method_defined?(:lambda?)
|
60
|
-
def self.proc_to_lambda(block)
|
61
|
-
return block if block.lambda?
|
62
|
-
lambda(&block)
|
63
|
-
end
|
64
|
-
else
|
65
|
-
def self.proc_to_lambda(block)
|
66
|
-
lambda(&block)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
elsif respond_to?(:define_singleton_method)
|
70
|
-
def self.proc_to_lambda(block)
|
71
|
-
return block if block.lambda?
|
72
|
-
|
73
|
-
obj = Object.new
|
74
|
-
obj.define_singleton_method(:to_lambda, &block)
|
75
|
-
obj.method(:to_lambda).to_proc
|
76
|
-
end
|
77
|
-
else # 1.8.7
|
78
|
-
def self.proc_to_lambda(block)
|
79
|
-
obj = Object.new
|
80
|
-
(class << obj; self; end).__send__(:define_method, :to_lambda, &block)
|
81
|
-
obj.method(:to_lambda).to_proc
|
82
|
-
end
|
83
|
-
end
|
84
57
|
end
|
85
58
|
end
|
@@ -133,8 +133,11 @@ module RSpec
|
|
133
133
|
#
|
134
134
|
# @api private
|
135
135
|
class BlockSignature < MethodSignature
|
136
|
-
|
137
|
-
|
136
|
+
if RubyFeatures.optional_and_splat_args_supported?
|
137
|
+
def classify_parameters
|
138
|
+
super
|
139
|
+
@min_non_kw_args = @max_non_kw_args unless @max_non_kw_args == INFINITY
|
140
|
+
end
|
138
141
|
end
|
139
142
|
end
|
140
143
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
1yHC1AcSYpvi2dAbOiHT5iQF+krm4wse8KctXgTNnjMsHEoGKulJS2/sZl90jcCz
|
37
37
|
muA=
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date: 2014-06-
|
39
|
+
date: 2014-06-21 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
@@ -130,5 +130,5 @@ rubyforge_project: rspec
|
|
130
130
|
rubygems_version: 2.2.2
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
|
-
summary: rspec-support-3.0.
|
133
|
+
summary: rspec-support-3.0.2
|
134
134
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|