rspec-support 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YmZkNzExNTk1MTdmOTdhMDQ4NzE4MzlkMTNjMzEzM2U0MzA3ZWIyNw==
5
- data.tar.gz: !binary |-
6
- N2E2ZGZiZTVmZmRiMTNmZDcxNzZjYzVjYzFlMDM4M2JkMDIwMzQ3Mg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZmU4Y2JjZjIzZTczNDRkMTk0NjA0NTFkOTdhYjUyOWU4YmVhMWYwN2IxMWYz
10
- Y2NhZDA4ODUyMmQ2NDdkZGJhMjVhMmExOGZhOGVjZGRhMzhjMzIzMGY1ZTMw
11
- MGY1Y2EzY2NlM2JhYTA0NWI5YmRlY2Y5YjI4NjQ5ZDc3OGJhZWM=
12
- data.tar.gz: !binary |-
13
- Y2RmNjhmZTEzMmJmNWIwNDJiZDkzOTdiYjQzNTU5MWMzNzQ4NzdkNTEwZjU1
14
- NzYzNDk4NmM0NDZiMDhiOWMzOTkwMDZjNTE3YzZiYjI5NzQ0YWU2Y2FiYmMy
15
- YzU0MTI4MmZjNmM2ZWUxMTdlMDFmMmJlNTYxMGJhNzM2ODBmYzk=
2
+ SHA1:
3
+ metadata.gz: 2b9b9911ae20e74205a6dd93c5e4641a37563799
4
+ data.tar.gz: 7385d63e79c103ecd2d1e6e25f20d46411db8e02
5
+ SHA512:
6
+ metadata.gz: bb233547c47a7ec39114f17fb0247cfc3356728c4ded119cc3f8b5231f85e38e4c40f3255b313bd8fb9953a9790bc3bfc2a7a6d5d288ae8f4c2b8c34f7714193
7
+ data.tar.gz: d8b8473de27ce0b9c4e616bb94cbf4ab112696ae336dc89c1b1eb561bbf089a1f6824e98406254f3e0f38d0c8857aa803312c38b9bd3832d0dda69ddd5dac2cd
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ ### 3.0.1 / 2014-06-19
2
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0...v3.0.1)
3
+
4
+ * Fix `BlockSignature` so that it correctly differentiates between
5
+ required and optional block args. (Myron Marston, rspec-mocks#714)
6
+
1
7
  ### 3.0.0 / 2014-06-01
2
8
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0.rc1...v3.0.0)
3
9
 
@@ -54,5 +54,32 @@ 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
57
84
  end
58
85
  end
@@ -133,11 +133,8 @@ module RSpec
133
133
  #
134
134
  # @api private
135
135
  class BlockSignature < MethodSignature
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
136
+ def initialize(block)
137
+ super(Support.proc_to_lambda(block))
141
138
  end
142
139
  end
143
140
 
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Support
3
3
  module Version
4
- STRING = '3.0.0'
4
+ STRING = '3.0.1'
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.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -13,78 +13,71 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain:
16
- - !binary |-
17
- LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURqakNDQW5hZ0F3SUJB
18
- Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJHTVJJd0VBWURWUVFEREFseWMz
19
- QmwKWXkxa1pYWXhHekFaQmdvSmtpYUprL0lzWkFFWkZndG5iMjluYkdWbmIz
20
- VndjekVUTUJFR0NnbVNKb21UOGl4awpBUmtXQTJOdmJUQWVGdzB4TXpFeE1E
21
- Y3hPVFF5TlRsYUZ3MHhOREV4TURjeE9UUXlOVGxhTUVZeEVqQVFCZ05WCkJB
22
- TU1DWEp6Y0dWakxXUmxkakViTUJrR0NnbVNKb21UOGl4a0FSa1dDMmR2YjJk
23
- c1pXZHZkWEJ6TVJNd0VRWUsKQ1pJbWlaUHlMR1FCR1JZRFkyOXRNSUlCSWpB
24
- TkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQQpuaENlWm91
25
- RExYV081NW5vK0VkWk5DdGpYamZKUTFYOVRiUGN2QkREMjlPeXBJVWNlMmgv
26
- VmRLWEIyZ0k3WkhzCkY1TmtQZ2dzbFRFckdGbVdBdElpdXI3dTk0M1JWcUhP
27
- c3lvSXN5MDY1RjlmQ3RyeWtrQSsyMmVsdlREaGE0SXoKUlVDdnVoUTNrbGF0
28
- WWs0akYrY0d0MWpOT05OVmRMT2l5MGJNeW52Y003aG9WUTJBb213R3MrY0VP
29
- V1EvNGRrRApKY05WM3FmekY1UUJjVEQyMzcyWE5NNTNiMjVuWVZRU1gyS0g1
30
- RkY3QmhsS3lvdjMzYk9tMmdBOU0rbVdJdWpXCnFna3l4VmxmcmxFK1pCZ1Yz
31
- d1huMUNvamcxTHBUcT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T7eDrnbHnKweO1XdemRJC98u/yYxnGzMSWKEsn09etBlZ9
35
+ 7H67k5Z3uf6cfLZgToWL6zShzZY3Nun5r73YsNf2/QZOe4UZe4vfGvn6baw53ys9
36
+ 1yHC1AcSYpvi2dAbOiHT5iQF+krm4wse8KctXgTNnjMsHEoGKulJS2/sZl90jcCz
37
+ muA=
38
+ -----END CERTIFICATE-----
39
+ date: 2014-06-20 00:00:00.000000000 Z
47
40
  dependencies:
48
41
  - !ruby/object:Gem::Dependency
49
42
  name: bundler
50
43
  requirement: !ruby/object:Gem::Requirement
51
44
  requirements:
52
- - - ~>
45
+ - - "~>"
53
46
  - !ruby/object:Gem::Version
54
47
  version: '1.3'
55
48
  type: :development
56
49
  prerelease: false
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.3'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
58
  requirements:
66
- - - ~>
59
+ - - "~>"
67
60
  - !ruby/object:Gem::Version
68
61
  version: 10.0.0
69
62
  type: :development
70
63
  prerelease: false
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
- - - ~>
66
+ - - "~>"
74
67
  - !ruby/object:Gem::Version
75
68
  version: 10.0.0
76
69
  - !ruby/object:Gem::Dependency
77
70
  name: rspec
78
71
  requirement: !ruby/object:Gem::Requirement
79
72
  requirements:
80
- - - ! '>='
73
+ - - ">="
81
74
  - !ruby/object:Gem::Version
82
75
  version: 3.0.0.pre
83
76
  type: :development
84
77
  prerelease: false
85
78
  version_requirements: !ruby/object:Gem::Requirement
86
79
  requirements:
87
- - - ! '>='
80
+ - - ">="
88
81
  - !ruby/object:Gem::Version
89
82
  version: 3.0.0.pre
90
83
  description: Support utilities for RSpec gems
@@ -93,6 +86,9 @@ executables: []
93
86
  extensions: []
94
87
  extra_rdoc_files: []
95
88
  files:
89
+ - Changelog.md
90
+ - LICENSE.txt
91
+ - README.md
96
92
  - lib/rspec/support.rb
97
93
  - lib/rspec/support/caller_filter.rb
98
94
  - lib/rspec/support/differ.rb
@@ -110,32 +106,29 @@ files:
110
106
  - lib/rspec/support/version.rb
111
107
  - lib/rspec/support/version_checker.rb
112
108
  - lib/rspec/support/warnings.rb
113
- - README.md
114
- - LICENSE.txt
115
- - Changelog.md
116
109
  homepage: https://github.com/rspec/rspec-support
117
110
  licenses:
118
111
  - MIT
119
112
  metadata: {}
120
113
  post_install_message:
121
114
  rdoc_options:
122
- - --charset=UTF-8
115
+ - "--charset=UTF-8"
123
116
  require_paths:
124
117
  - lib
125
118
  required_ruby_version: !ruby/object:Gem::Requirement
126
119
  requirements:
127
- - - ! '>='
120
+ - - ">="
128
121
  - !ruby/object:Gem::Version
129
122
  version: 1.8.7
130
123
  required_rubygems_version: !ruby/object:Gem::Requirement
131
124
  requirements:
132
- - - ! '>='
125
+ - - ">="
133
126
  - !ruby/object:Gem::Version
134
127
  version: '0'
135
128
  requirements: []
136
129
  rubyforge_project: rspec
137
- rubygems_version: 2.0.7
130
+ rubygems_version: 2.2.2
138
131
  signing_key:
139
132
  specification_version: 4
140
- summary: rspec-support-3.0.0
133
+ summary: rspec-support-3.0.1
141
134
  test_files: []
metadata.gz.sig CHANGED
Binary file