rspec-support 3.0.0.rc1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -3
- data/Changelog.md +3 -0
- data/lib/rspec/support.rb +2 -1
- data/lib/rspec/support/differ.rb +1 -1
- data/lib/rspec/support/ruby_features.rb +9 -3
- data/lib/rspec/support/spec/with_isolated_stderr.rb +1 -0
- data/lib/rspec/support/version.rb +1 -1
- metadata +47 -40
- metadata.gz.sig +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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=
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
2
|
-
?.�Dj��G�v�qs�
|
3
|
-
l���Փ
|
1
|
+
s�v�x=`��萑�������#�~�����˭5�"6����n8������hxxF���wɸR1$�A\jyT��*F��y_�gj%�(�̾pћB9�&,$܌���.�"��aN�^�Ύ����@mӛ̒���b32���(i�8O��:�r@2R.��!�T�bP�����'1���<�y!+��KŮ�@i-@�b�����bB�Z+l�y"�ư�M�2�r�=���`LU�Ֆ�&e�_ |�����j�%�|?�������
|
data/Changelog.md
CHANGED
data/lib/rspec/support.rb
CHANGED
@@ -27,6 +27,7 @@ module RSpec
|
|
27
27
|
|
28
28
|
define_optimized_require_for_rspec(:support) { |f| require_relative(f) }
|
29
29
|
require_rspec_support "version"
|
30
|
+
require_rspec_support "ruby_features"
|
30
31
|
|
31
32
|
# @api private
|
32
33
|
KERNEL_METHOD_METHOD = ::Kernel.instance_method(:method)
|
@@ -40,7 +41,7 @@ module RSpec
|
|
40
41
|
#
|
41
42
|
# - Objects that redefine #method (e.g. an HTTPRequest struct)
|
42
43
|
# - BasicObject subclasses that mixin a Kernel dup (e.g. SimpleDelegator)
|
43
|
-
if
|
44
|
+
if RubyFeatures.supports_rebinding_module_methods?
|
44
45
|
def self.method_handle_for(object, method_name)
|
45
46
|
KERNEL_METHOD_METHOD.bind(object).call(method_name)
|
46
47
|
end
|
data/lib/rspec/support/differ.rb
CHANGED
@@ -11,19 +11,25 @@ module RSpec
|
|
11
11
|
module_function :optional_and_splat_args_supported?
|
12
12
|
|
13
13
|
def kw_args_supported?
|
14
|
-
RUBY_VERSION >= '2.0.0' && RUBY_ENGINE != 'rbx'
|
14
|
+
RUBY_VERSION >= '2.0.0' && RUBY_ENGINE != 'rbx' && RUBY_ENGINE != 'jruby'
|
15
15
|
end
|
16
16
|
module_function :kw_args_supported?
|
17
17
|
|
18
18
|
def required_kw_args_supported?
|
19
|
-
RUBY_VERSION >= '2.1.0' && RUBY_ENGINE != 'rbx'
|
19
|
+
RUBY_VERSION >= '2.1.0' && RUBY_ENGINE != 'rbx' && RUBY_ENGINE != 'jruby'
|
20
20
|
end
|
21
21
|
module_function :required_kw_args_supported?
|
22
22
|
|
23
23
|
def module_prepends_supported?
|
24
|
-
|
24
|
+
Module.private_method_defined?(:prepend)
|
25
25
|
end
|
26
26
|
module_function :module_prepends_supported?
|
27
|
+
|
28
|
+
def supports_rebinding_module_methods?
|
29
|
+
# RBX and JRuby don't yet support this.
|
30
|
+
RUBY_VERSION.to_i >= 2 && RUBY_ENGINE != 'rbx' && RUBY_ENGINE != 'jruby'
|
31
|
+
end
|
32
|
+
module_function :supports_rebinding_module_methods?
|
27
33
|
end
|
28
34
|
end
|
29
35
|
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.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
@@ -13,71 +13,78 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain:
|
16
|
-
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
16
|
+
- !binary |-
|
17
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURqakNDQW5hZ0F3SUJB
|
18
|
+
Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJHTVJJd0VBWURWUVFEREFseWMz
|
19
|
+
QmwKWXkxa1pYWXhHekFaQ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FRUhUQWJnUmx5CmMz
|
35
|
+
QmxZeTFrWlhaQVoyOXZaMnhsWjI5MWNITXVZMjl0TUNRR0ExVWRFZ1FkTUJ1
|
36
|
+
QkdYSnpjR1ZqTFdSbGRrQm4KYjI5bmJHVm5iM1Z3Y3k1amIyMHdEUVlKS29a
|
37
|
+
SWh2Y05BUUVGQlFBRGdnRUJBSDI3akFaOHNEN3ZuWHVwajZZKwpCYUJkZkh0
|
38
|
+
Q2tGYXNsTEowYUt1TURJVlh3WXVLZnFvVzE1Y1pQRExtU0lFQnVRRk0zbHc2
|
39
|
+
ZC9oRUVMNFVvMmpaCkZ2dG1INU94aWZQRHpGeVV0Q0w0eXA2cWdOZS9YZjZz
|
40
|
+
RHNSZzZGbUtjcGdxQ3dOT21zVmlhZjBMUFNVSC9HWVEKM1Rlb3o4UUNhRGJE
|
41
|
+
N0FLc2ZmVDdlRHJuYkhuS3dlTzFYZGVtUkpDOTh1L3lZeG5Hek1TV0tFc24w
|
42
|
+
OWV0QmxaOQo3SDY3azVaM3VmNmNmTFpnVG9XTDZ6U2h6WlkzTnVuNXI3M1lz
|
43
|
+
TmYyL1FaT2U0VVplNHZmR3ZuNmJhdzUzeXM5CjF5SEMxQWNTWXB2aTJkQWJP
|
44
|
+
aUhUNWlRRitrcm00d3NlOEtjdFhnVE5uak1zSEVvR0t1bEpTMi9zWmw5MGpj
|
45
|
+
Q3oKbXVBPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
46
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
40
47
|
dependencies:
|
41
48
|
- !ruby/object:Gem::Dependency
|
42
49
|
name: bundler
|
43
50
|
requirement: !ruby/object:Gem::Requirement
|
44
51
|
requirements:
|
45
|
-
- -
|
52
|
+
- - ~>
|
46
53
|
- !ruby/object:Gem::Version
|
47
54
|
version: '1.3'
|
48
55
|
type: :development
|
49
56
|
prerelease: false
|
50
57
|
version_requirements: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '1.3'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: rake
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - ~>
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: 10.0.0
|
62
69
|
type: :development
|
63
70
|
prerelease: false
|
64
71
|
version_requirements: !ruby/object:Gem::Requirement
|
65
72
|
requirements:
|
66
|
-
- -
|
73
|
+
- - ~>
|
67
74
|
- !ruby/object:Gem::Version
|
68
75
|
version: 10.0.0
|
69
76
|
- !ruby/object:Gem::Dependency
|
70
77
|
name: rspec
|
71
78
|
requirement: !ruby/object:Gem::Requirement
|
72
79
|
requirements:
|
73
|
-
- -
|
80
|
+
- - ! '>='
|
74
81
|
- !ruby/object:Gem::Version
|
75
82
|
version: 3.0.0.pre
|
76
83
|
type: :development
|
77
84
|
prerelease: false
|
78
85
|
version_requirements: !ruby/object:Gem::Requirement
|
79
86
|
requirements:
|
80
|
-
- -
|
87
|
+
- - ! '>='
|
81
88
|
- !ruby/object:Gem::Version
|
82
89
|
version: 3.0.0.pre
|
83
90
|
description: Support utilities for RSpec gems
|
@@ -86,9 +93,6 @@ executables: []
|
|
86
93
|
extensions: []
|
87
94
|
extra_rdoc_files: []
|
88
95
|
files:
|
89
|
-
- Changelog.md
|
90
|
-
- LICENSE.txt
|
91
|
-
- README.md
|
92
96
|
- lib/rspec/support.rb
|
93
97
|
- lib/rspec/support/caller_filter.rb
|
94
98
|
- lib/rspec/support/differ.rb
|
@@ -106,29 +110,32 @@ files:
|
|
106
110
|
- lib/rspec/support/version.rb
|
107
111
|
- lib/rspec/support/version_checker.rb
|
108
112
|
- lib/rspec/support/warnings.rb
|
113
|
+
- README.md
|
114
|
+
- LICENSE.txt
|
115
|
+
- Changelog.md
|
109
116
|
homepage: https://github.com/rspec/rspec-support
|
110
117
|
licenses:
|
111
118
|
- MIT
|
112
119
|
metadata: {}
|
113
120
|
post_install_message:
|
114
121
|
rdoc_options:
|
115
|
-
-
|
122
|
+
- --charset=UTF-8
|
116
123
|
require_paths:
|
117
124
|
- lib
|
118
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
119
126
|
requirements:
|
120
|
-
- -
|
127
|
+
- - ! '>='
|
121
128
|
- !ruby/object:Gem::Version
|
122
129
|
version: 1.8.7
|
123
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
131
|
requirements:
|
125
|
-
- -
|
132
|
+
- - ! '>='
|
126
133
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
134
|
+
version: '0'
|
128
135
|
requirements: []
|
129
136
|
rubyforge_project: rspec
|
130
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.0.7
|
131
138
|
signing_key:
|
132
139
|
specification_version: 4
|
133
|
-
summary: rspec-support-3.0.0
|
140
|
+
summary: rspec-support-3.0.0
|
134
141
|
test_files: []
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
C
|
2
|
-
|
3
|
-
��{�d��c��u*����ln+��&�4WG��T��
|
1
|
+
VcA=-��@���si�^떺OT�Jꩇ㎑n�+��9,I�̌C�츭��߷dž1��8�f~�*3#�(��N�]�=|�@�0���K߉n��=k;�h[`�`��{���ڳ藹�=����Z�ִ�l�χ�-��ړC�h�>In��*���:�@TSh!n_����L�G:6�m9'���kx���=�2t�AN^��~C��?���%�Eu�:)�-�|ow{�
|
2
|
+
n�
|