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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b9b9911ae20e74205a6dd93c5e4641a37563799
4
- data.tar.gz: 7385d63e79c103ecd2d1e6e25f20d46411db8e02
3
+ metadata.gz: 9cb39de744327700003b6241dbe2f204df549c8a
4
+ data.tar.gz: 22a3ecd3996e27935caf7bd9ad13fa9eee6af36c
5
5
  SHA512:
6
- metadata.gz: bb233547c47a7ec39114f17fb0247cfc3356728c4ded119cc3f8b5231f85e38e4c40f3255b313bd8fb9953a9790bc3bfc2a7a6d5d288ae8f4c2b8c34f7714193
7
- data.tar.gz: d8b8473de27ce0b9c4e616bb94cbf4ab112696ae336dc89c1b1eb561bbf089a1f6824e98406254f3e0f38d0c8857aa803312c38b9bd3832d0dda69ddd5dac2cd
6
+ metadata.gz: c6d4f9bbcf292127109f31f16d5795192d2179b029f81627fddebbed9a314657f10a0f87c50253d6577dbf1f25f4bc188850d44278d03fc93170620558d9cc25
7
+ data.tar.gz: 4ca2228ef2a97c06660fe78feafb7327cf15ab7385c838b6fad1e6281bf1a0b70090ea499fa14f9171b12786804917f4a2ae70bac59ddd0a98122a1a7241b3c5
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
 
@@ -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
- def initialize(block)
137
- super(Support.proc_to_lambda(block))
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
 
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Support
3
3
  module Version
4
- STRING = '3.0.1'
4
+ STRING = '3.0.2'
5
5
  end
6
6
  end
7
7
  end
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.1
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-20 00:00:00.000000000 Z
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.1
133
+ summary: rspec-support-3.0.2
134
134
  test_files: []
metadata.gz.sig CHANGED
Binary file