mangrove 0.24.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -5
- data/lib/mangrove/result.rb +73 -64
- data/lib/mangrove/version.rb +1 -1
- data/rbi/mangrove.rbi +20 -0
- data/sorbet/rbi/annotations/rainbow.rbi +3 -3
- data/sorbet/rbi/gems/{diff-lcs@1.5.0.rbi → diff-lcs@1.5.1.rbi} +100 -48
- data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.2.rbi} +1 -0
- data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.2.rbi} +95 -74
- data/sorbet/rbi/gems/{parallel@1.23.0.rbi → parallel@1.24.0.rbi} +9 -1
- data/sorbet/rbi/gems/{parser@3.2.2.4.rbi → parser@3.3.2.0.rbi} +1267 -1282
- data/sorbet/rbi/gems/prism@0.29.0.rbi +37987 -0
- data/sorbet/rbi/gems/{psych@5.1.1.1.rbi → psych@5.1.2.rbi} +231 -267
- data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.0.rbi} +37 -36
- data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.2.1.rbi} +217 -73
- data/sorbet/rbi/gems/{rbi@0.1.3.rbi → rbi@0.1.13.rbi} +322 -166
- data/sorbet/rbi/gems/{rdoc@6.6.0.rbi → rdoc@6.7.0.rbi} +735 -685
- data/sorbet/rbi/gems/{regexp_parser@2.8.2.rbi → regexp_parser@2.9.2.rbi} +192 -169
- data/sorbet/rbi/gems/{reline@0.4.0.rbi → reline@0.5.8.rbi} +1 -0
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.2.8.rbi} +122 -109
- data/sorbet/rbi/gems/{rspec-core@3.12.2.rbi → rspec-core@3.13.0.rbi} +400 -300
- data/sorbet/rbi/gems/{rspec-expectations@3.12.3.rbi → rspec-expectations@3.13.0.rbi} +173 -119
- data/sorbet/rbi/gems/{rspec-mocks@3.12.6.rbi → rspec-mocks@3.13.1.rbi} +195 -160
- data/sorbet/rbi/gems/{rspec-support@3.12.1.rbi → rspec-support@3.13.1.rbi} +319 -298
- data/sorbet/rbi/gems/{rspec@3.12.0.rbi → rspec@3.13.0.rbi} +23 -22
- data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +315 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.31.3.rbi} +348 -285
- data/sorbet/rbi/gems/{rubocop-capybara@2.19.0.rbi → rubocop-capybara@2.20.0.rbi} +148 -65
- data/sorbet/rbi/gems/{rubocop-factory_bot@2.24.0.rbi → rubocop-factory_bot@2.25.1.rbi} +70 -20
- data/sorbet/rbi/gems/{rubocop-rspec@2.24.1.rbi → rubocop-rspec@2.30.0.rbi} +678 -389
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +911 -0
- data/sorbet/rbi/gems/{rubocop@1.57.1.rbi → rubocop@1.64.1.rbi} +3225 -1915
- data/sorbet/rbi/gems/{ruby-lsp@0.12.0.rbi → ruby-lsp@0.17.2.rbi} +1 -0
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/{tapioca@0.11.10.rbi → tapioca@0.14.3.rbi} +268 -234
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +57 -50
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +154 -82
- metadata +38 -38
- data/sorbet/rbi/gems/base64@0.1.1.rbi +0 -172
- data/sorbet/rbi/gems/irb@1.9.0.rbi +0 -342
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/prism@0.15.1.rbi +0 -23922
- data/sorbet/rbi/gems/ruboclean@0.4.0.rbi +0 -189
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
- /data/sorbet/rbi/gems/{stringio@3.0.9.rbi → stringio@3.1.0.rbi} +0 -0
@@ -4,75 +4,76 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `rspec-support` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem rspec-support`.
|
6
6
|
|
7
|
-
|
7
|
+
|
8
|
+
# source://rspec-support//lib/rspec/support.rb#3
|
8
9
|
module RSpec
|
9
10
|
extend ::RSpec::Support::Warnings
|
10
11
|
|
11
12
|
class << self
|
12
|
-
# source://rspec-core/3.
|
13
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#70
|
13
14
|
def clear_examples; end
|
14
15
|
|
15
|
-
# source://rspec-core/3.
|
16
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#85
|
16
17
|
def configuration; end
|
17
18
|
|
18
|
-
# source://rspec-core/3.
|
19
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
|
19
20
|
def configuration=(_arg0); end
|
20
21
|
|
21
|
-
# source://rspec-core/3.
|
22
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#97
|
22
23
|
def configure; end
|
23
24
|
|
24
|
-
# source://rspec-core/3.
|
25
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#194
|
25
26
|
def const_missing(name); end
|
26
27
|
|
27
|
-
# source://rspec-core/3.
|
28
|
+
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
28
29
|
def context(*args, &example_group_block); end
|
29
30
|
|
30
|
-
# source://rspec-core/3.
|
31
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#122
|
31
32
|
def current_example; end
|
32
33
|
|
33
|
-
# source://rspec-core/3.
|
34
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#128
|
34
35
|
def current_example=(example); end
|
35
36
|
|
36
|
-
# source://rspec-core/3.
|
37
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#154
|
37
38
|
def current_scope; end
|
38
39
|
|
39
|
-
# source://rspec-core/3.
|
40
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#134
|
40
41
|
def current_scope=(scope); end
|
41
42
|
|
42
|
-
# source://rspec-core/3.
|
43
|
+
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
43
44
|
def describe(*args, &example_group_block); end
|
44
45
|
|
45
|
-
# source://rspec-core/3.
|
46
|
+
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
46
47
|
def example_group(*args, &example_group_block); end
|
47
48
|
|
48
|
-
# source://rspec-core/3.
|
49
|
+
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
49
50
|
def fcontext(*args, &example_group_block); end
|
50
51
|
|
51
|
-
# source://rspec-core/3.
|
52
|
+
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
52
53
|
def fdescribe(*args, &example_group_block); end
|
53
54
|
|
54
|
-
# source://rspec-core/3.
|
55
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#58
|
55
56
|
def reset; end
|
56
57
|
|
57
|
-
# source://rspec-core/3.
|
58
|
+
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
|
58
59
|
def shared_context(name, *args, &block); end
|
59
60
|
|
60
|
-
# source://rspec-core/3.
|
61
|
+
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
|
61
62
|
def shared_examples(name, *args, &block); end
|
62
63
|
|
63
|
-
# source://rspec-core/3.
|
64
|
+
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
|
64
65
|
def shared_examples_for(name, *args, &block); end
|
65
66
|
|
66
|
-
# source://rspec-core/3.
|
67
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#160
|
67
68
|
def world; end
|
68
69
|
|
69
|
-
# source://rspec-core/3.
|
70
|
+
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
|
70
71
|
def world=(_arg0); end
|
71
72
|
|
72
|
-
# source://rspec-core/3.
|
73
|
+
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
73
74
|
def xcontext(*args, &example_group_block); end
|
74
75
|
|
75
|
-
# source://rspec-core/3.
|
76
|
+
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
76
77
|
def xdescribe(*args, &example_group_block); end
|
77
78
|
end
|
78
79
|
end
|
@@ -82,18 +83,18 @@ end
|
|
82
83
|
# the code using the library, which is far more useful than the particular
|
83
84
|
# internal method that raised an error.
|
84
85
|
#
|
85
|
-
# source://rspec-support//lib/rspec/support/caller_filter.rb#
|
86
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#10
|
86
87
|
class RSpec::CallerFilter
|
87
88
|
class << self
|
88
89
|
# Earlier rubies do not support the two argument form of `caller`. This
|
89
90
|
# fallback is logically the same, but slower.
|
90
91
|
#
|
91
|
-
# source://rspec-support//lib/rspec/support/caller_filter.rb#
|
92
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#49
|
92
93
|
def first_non_rspec_line(skip_frames = T.unsafe(nil), increment = T.unsafe(nil)); end
|
93
94
|
end
|
94
95
|
end
|
95
96
|
|
96
|
-
# source://rspec-support//lib/rspec/support/caller_filter.rb#
|
97
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#20
|
97
98
|
RSpec::CallerFilter::ADDITIONAL_TOP_LEVEL_FILES = T.let(T.unsafe(nil), Array)
|
98
99
|
|
99
100
|
# rubygems/core_ext/kernel_require.rb isn't actually part of rspec (obviously) but we want
|
@@ -103,23 +104,23 @@ RSpec::CallerFilter::ADDITIONAL_TOP_LEVEL_FILES = T.let(T.unsafe(nil), Array)
|
|
103
104
|
# file, but it depends on if rubygems is loaded or not. We don't want to have to deal
|
104
105
|
# with this complexity in our `RSpec.deprecate` calls, so we ignore it here.
|
105
106
|
#
|
106
|
-
# source://rspec-support//lib/rspec/support/caller_filter.rb#
|
107
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#30
|
107
108
|
RSpec::CallerFilter::IGNORE_REGEX = T.let(T.unsafe(nil), Regexp)
|
108
109
|
|
109
|
-
# source://rspec-support//lib/rspec/support/caller_filter.rb#
|
110
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#22
|
110
111
|
RSpec::CallerFilter::LIB_REGEX = T.let(T.unsafe(nil), Regexp)
|
111
112
|
|
112
|
-
# source://rspec-support//lib/rspec/support/caller_filter.rb#
|
113
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#11
|
113
114
|
RSpec::CallerFilter::RSPEC_LIBS = T.let(T.unsafe(nil), Array)
|
114
115
|
|
115
|
-
# source://rspec-support//lib/rspec/support.rb#
|
116
|
+
# source://rspec-support//lib/rspec/support.rb#4
|
116
117
|
module RSpec::Support
|
117
118
|
class << self
|
118
119
|
# Used internally to get a class of a given object, even if it does not respond to #class.
|
119
120
|
#
|
120
121
|
# @api private
|
121
122
|
#
|
122
|
-
# source://rspec-support//lib/rspec/support.rb#
|
123
|
+
# source://rspec-support//lib/rspec/support.rb#86
|
123
124
|
def class_of(object); end
|
124
125
|
|
125
126
|
# Defines a helper method that is optimized to require files from the
|
@@ -134,7 +135,7 @@ module RSpec::Support
|
|
134
135
|
#
|
135
136
|
# @api private
|
136
137
|
#
|
137
|
-
# source://rspec-support//lib/rspec/support.rb#
|
138
|
+
# source://rspec-support//lib/rspec/support.rb#16
|
138
139
|
def define_optimized_require_for_rspec(lib, &require_relative); end
|
139
140
|
|
140
141
|
# Remove a previously registered matcher. Useful for cleaning up after
|
@@ -142,36 +143,36 @@ module RSpec::Support
|
|
142
143
|
#
|
143
144
|
# @private
|
144
145
|
#
|
145
|
-
# source://rspec-support//lib/rspec/support/matcher_definition.rb#
|
146
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#24
|
146
147
|
def deregister_matcher_definition(&block); end
|
147
148
|
|
148
149
|
# @api private
|
149
150
|
#
|
150
|
-
# source://rspec-support//lib/rspec/support.rb#
|
151
|
+
# source://rspec-support//lib/rspec/support.rb#113
|
151
152
|
def failure_notifier; end
|
152
153
|
|
153
154
|
# @api private
|
154
155
|
#
|
155
|
-
# source://rspec-support//lib/rspec/support.rb#
|
156
|
+
# source://rspec-support//lib/rspec/support.rb#105
|
156
157
|
def failure_notifier=(callable); end
|
157
158
|
|
158
159
|
# @private
|
159
160
|
# @return [Boolean]
|
160
161
|
#
|
161
|
-
# source://rspec-support//lib/rspec/support/matcher_definition.rb#
|
162
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#29
|
162
163
|
def is_a_matcher?(object); end
|
163
164
|
|
164
165
|
# @private
|
165
166
|
#
|
166
|
-
# source://rspec-support//lib/rspec/support/matcher_definition.rb#
|
167
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#6
|
167
168
|
def matcher_definitions; end
|
168
169
|
|
169
|
-
# source://rspec-support//lib/rspec/support.rb#
|
170
|
+
# source://rspec-support//lib/rspec/support.rb#54
|
170
171
|
def method_handle_for(object, method_name); end
|
171
172
|
|
172
173
|
# @api private
|
173
174
|
#
|
174
|
-
# source://rspec-support//lib/rspec/support.rb#
|
175
|
+
# source://rspec-support//lib/rspec/support.rb#118
|
175
176
|
def notify_failure(failure, options = T.unsafe(nil)); end
|
176
177
|
|
177
178
|
# Used internally to break cyclic dependency between mocks, expectations,
|
@@ -181,48 +182,48 @@ module RSpec::Support
|
|
181
182
|
#
|
182
183
|
# @private
|
183
184
|
#
|
184
|
-
# source://rspec-support//lib/rspec/support/matcher_definition.rb#
|
185
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#16
|
185
186
|
def register_matcher_definition(&block); end
|
186
187
|
|
187
|
-
# source://rspec-support//lib/rspec/support.rb#
|
188
|
+
# source://rspec-support//lib/rspec/support.rb#25
|
188
189
|
def require_rspec_core(f); end
|
189
190
|
|
190
|
-
# source://rspec-support//lib/rspec/support.rb#
|
191
|
+
# source://rspec-support//lib/rspec/support.rb#25
|
191
192
|
def require_rspec_support(f); end
|
192
193
|
|
193
194
|
# gives a string representation of an object for use in RSpec descriptions
|
194
195
|
#
|
195
196
|
# @api private
|
196
197
|
#
|
197
|
-
# source://rspec-support//lib/rspec/support/matcher_definition.rb#
|
198
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#36
|
198
199
|
def rspec_description_for_object(object); end
|
199
200
|
|
200
|
-
# source://rspec-support//lib/rspec/support.rb#
|
201
|
+
# source://rspec-support//lib/rspec/support.rb#95
|
201
202
|
def thread_local_data; end
|
202
203
|
|
203
204
|
# @api private
|
204
205
|
#
|
205
|
-
# source://rspec-support//lib/rspec/support.rb#
|
206
|
+
# source://rspec-support//lib/rspec/support.rb#140
|
206
207
|
def warning_notifier; end
|
207
208
|
|
208
209
|
# @api private
|
209
210
|
#
|
210
|
-
# source://rspec-support//lib/rspec/support.rb#
|
211
|
+
# source://rspec-support//lib/rspec/support.rb#133
|
211
212
|
def warning_notifier=(_arg0); end
|
212
213
|
|
213
214
|
# @api private
|
214
215
|
#
|
215
|
-
# source://rspec-support//lib/rspec/support.rb#
|
216
|
+
# source://rspec-support//lib/rspec/support.rb#123
|
216
217
|
def with_failure_notifier(callable); end
|
217
218
|
end
|
218
219
|
end
|
219
220
|
|
220
221
|
# @private
|
221
222
|
#
|
222
|
-
# source://rspec-support//lib/rspec/support.rb#
|
223
|
+
# source://rspec-support//lib/rspec/support.rb#145
|
223
224
|
module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
|
224
225
|
class << self
|
225
|
-
# source://rspec-support//lib/rspec/support.rb#
|
226
|
+
# source://rspec-support//lib/rspec/support.rb#150
|
226
227
|
def ===(exception); end
|
227
228
|
end
|
228
229
|
end
|
@@ -230,7 +231,7 @@ end
|
|
230
231
|
# These exceptions are dangerous to rescue as rescuing them
|
231
232
|
# would interfere with things we should not interfere with.
|
232
233
|
#
|
233
|
-
# source://rspec-support//lib/rspec/support.rb#
|
234
|
+
# source://rspec-support//lib/rspec/support.rb#148
|
234
235
|
RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T.unsafe(nil), Array)
|
235
236
|
|
236
237
|
# Deals with the slightly different semantics of block arguments.
|
@@ -243,144 +244,144 @@ RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T
|
|
243
244
|
#
|
244
245
|
# @api private
|
245
246
|
#
|
246
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
247
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#268
|
247
248
|
class RSpec::Support::BlockSignature < ::RSpec::Support::MethodSignature
|
248
249
|
# @api private
|
249
250
|
#
|
250
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
251
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#270
|
251
252
|
def classify_parameters; end
|
252
253
|
end
|
253
254
|
|
254
255
|
# @private
|
255
256
|
#
|
256
|
-
# source://rspec-support//lib/rspec/support/comparable_version.rb#
|
257
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#6
|
257
258
|
class RSpec::Support::ComparableVersion
|
258
259
|
include ::Comparable
|
259
260
|
|
260
261
|
# @return [ComparableVersion] a new instance of ComparableVersion
|
261
262
|
#
|
262
|
-
# source://rspec-support//lib/rspec/support/comparable_version.rb#
|
263
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#11
|
263
264
|
def initialize(string); end
|
264
265
|
|
265
|
-
# source://rspec-support//lib/rspec/support/comparable_version.rb#
|
266
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#15
|
266
267
|
def <=>(other); end
|
267
268
|
|
268
|
-
# source://rspec-support//lib/rspec/support/comparable_version.rb#
|
269
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#37
|
269
270
|
def segments; end
|
270
271
|
|
271
272
|
# Returns the value of attribute string.
|
272
273
|
#
|
273
|
-
# source://rspec-support//lib/rspec/support/comparable_version.rb#
|
274
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#9
|
274
275
|
def string; end
|
275
276
|
end
|
276
277
|
|
277
278
|
# @private
|
278
279
|
#
|
279
|
-
# source://rspec-support//lib/rspec/support.rb#
|
280
|
+
# source://rspec-support//lib/rspec/support.rb#110
|
280
281
|
RSpec::Support::DEFAULT_FAILURE_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
281
282
|
|
282
283
|
# @private
|
283
284
|
#
|
284
|
-
# source://rspec-support//lib/rspec/support.rb#
|
285
|
+
# source://rspec-support//lib/rspec/support.rb#137
|
285
286
|
RSpec::Support::DEFAULT_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
286
287
|
|
287
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
288
|
+
# source://rspec-support//lib/rspec/support/differ.rb#12
|
288
289
|
class RSpec::Support::Differ
|
289
290
|
# @return [Differ] a new instance of Differ
|
290
291
|
#
|
291
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
292
|
+
# source://rspec-support//lib/rspec/support/differ.rb#69
|
292
293
|
def initialize(opts = T.unsafe(nil)); end
|
293
294
|
|
294
295
|
# @return [Boolean]
|
295
296
|
#
|
296
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
297
|
+
# source://rspec-support//lib/rspec/support/differ.rb#65
|
297
298
|
def color?; end
|
298
299
|
|
299
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
300
|
+
# source://rspec-support//lib/rspec/support/differ.rb#13
|
300
301
|
def diff(actual, expected); end
|
301
302
|
|
302
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
303
|
+
# source://rspec-support//lib/rspec/support/differ.rb#59
|
303
304
|
def diff_as_object(actual, expected); end
|
304
305
|
|
305
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
306
|
+
# source://rspec-support//lib/rspec/support/differ.rb#30
|
306
307
|
def diff_as_string(actual, expected); end
|
307
308
|
|
308
309
|
private
|
309
310
|
|
310
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
311
|
+
# source://rspec-support//lib/rspec/support/differ.rb#130
|
311
312
|
def add_old_hunk_to_hunk(hunk, oldhunk); end
|
312
313
|
|
313
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
314
|
+
# source://rspec-support//lib/rspec/support/differ.rb#126
|
314
315
|
def add_to_output(output, string); end
|
315
316
|
|
316
317
|
# @return [Boolean]
|
317
318
|
#
|
318
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
319
|
+
# source://rspec-support//lib/rspec/support/differ.rb#80
|
319
320
|
def all_strings?(*args); end
|
320
321
|
|
321
322
|
# @return [Boolean]
|
322
323
|
#
|
323
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
324
|
+
# source://rspec-support//lib/rspec/support/differ.rb#84
|
324
325
|
def any_multiline_strings?(*args); end
|
325
326
|
|
326
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
327
|
+
# source://rspec-support//lib/rspec/support/differ.rb#155
|
327
328
|
def blue(text); end
|
328
329
|
|
329
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
330
|
+
# source://rspec-support//lib/rspec/support/differ.rb#117
|
330
331
|
def build_hunks(actual, expected); end
|
331
332
|
|
332
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
333
|
+
# source://rspec-support//lib/rspec/support/differ.rb#92
|
333
334
|
def coerce_to_string(string_or_array); end
|
334
335
|
|
335
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
336
|
+
# source://rspec-support//lib/rspec/support/differ.rb#143
|
336
337
|
def color(text, color_code); end
|
337
338
|
|
338
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
339
|
+
# source://rspec-support//lib/rspec/support/differ.rb#163
|
339
340
|
def color_diff(diff); end
|
340
341
|
|
341
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
342
|
+
# source://rspec-support//lib/rspec/support/differ.rb#97
|
342
343
|
def diffably_stringify(array); end
|
343
344
|
|
344
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
345
|
+
# source://rspec-support//lib/rspec/support/differ.rb#121
|
345
346
|
def finalize_output(output, final_line); end
|
346
347
|
|
347
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
348
|
+
# source://rspec-support//lib/rspec/support/differ.rb#139
|
348
349
|
def format_type; end
|
349
350
|
|
350
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
351
|
+
# source://rspec-support//lib/rspec/support/differ.rb#151
|
351
352
|
def green(text); end
|
352
353
|
|
353
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
354
|
+
# source://rspec-support//lib/rspec/support/differ.rb#204
|
354
355
|
def handle_encoding_errors(actual, expected); end
|
355
356
|
|
356
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
357
|
+
# source://rspec-support//lib/rspec/support/differ.rb#194
|
357
358
|
def hash_to_string(hash); end
|
358
359
|
|
359
360
|
# @return [Boolean]
|
360
361
|
#
|
361
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
362
|
+
# source://rspec-support//lib/rspec/support/differ.rb#108
|
362
363
|
def multiline?(string); end
|
363
364
|
|
364
365
|
# @return [Boolean]
|
365
366
|
#
|
366
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
367
|
+
# source://rspec-support//lib/rspec/support/differ.rb#88
|
367
368
|
def no_numbers?(*args); end
|
368
369
|
|
369
370
|
# @return [Boolean]
|
370
371
|
#
|
371
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
372
|
+
# source://rspec-support//lib/rspec/support/differ.rb#76
|
372
373
|
def no_procs?(*args); end
|
373
374
|
|
374
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
375
|
+
# source://rspec-support//lib/rspec/support/differ.rb#159
|
375
376
|
def normal(text); end
|
376
377
|
|
377
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
378
|
+
# source://rspec-support//lib/rspec/support/differ.rb#180
|
378
379
|
def object_to_string(object); end
|
379
380
|
|
380
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
381
|
+
# source://rspec-support//lib/rspec/support/differ.rb#147
|
381
382
|
def red(text); end
|
382
383
|
|
383
|
-
# source://rspec-support//lib/rspec/support/differ.rb#
|
384
|
+
# source://rspec-support//lib/rspec/support/differ.rb#134
|
384
385
|
def safely_flatten(array); end
|
385
386
|
end
|
386
387
|
|
@@ -389,14 +390,14 @@ end
|
|
389
390
|
#
|
390
391
|
# @api private
|
391
392
|
#
|
392
|
-
# source://rspec-support//lib/rspec/support/directory_maker.rb#
|
393
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#11
|
393
394
|
class RSpec::Support::DirectoryMaker
|
394
395
|
class << self
|
395
396
|
# Implements nested directory construction
|
396
397
|
#
|
397
398
|
# @api private
|
398
399
|
#
|
399
|
-
# source://rspec-support//lib/rspec/support/directory_maker.rb#
|
400
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#15
|
400
401
|
def mkdir_p(path); end
|
401
402
|
|
402
403
|
private
|
@@ -404,65 +405,65 @@ class RSpec::Support::DirectoryMaker
|
|
404
405
|
# @api private
|
405
406
|
# @return [Boolean]
|
406
407
|
#
|
407
|
-
# source://rspec-support//lib/rspec/support/directory_maker.rb#
|
408
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#57
|
408
409
|
def directory_exists?(dirname); end
|
409
410
|
|
410
411
|
# @api private
|
411
412
|
#
|
412
|
-
# source://rspec-support//lib/rspec/support/directory_maker.rb#
|
413
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#52
|
413
414
|
def generate_path(stack, part); end
|
414
415
|
|
415
416
|
# @api private
|
416
417
|
#
|
417
|
-
# source://rspec-support//lib/rspec/support/directory_maker.rb#
|
418
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#49
|
418
419
|
def generate_stack(path); end
|
419
420
|
end
|
420
421
|
end
|
421
422
|
|
422
423
|
# @private
|
423
424
|
#
|
424
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
425
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#6
|
425
426
|
class RSpec::Support::EncodedString
|
426
427
|
# @return [EncodedString] a new instance of EncodedString
|
427
428
|
#
|
428
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
429
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#16
|
429
430
|
def initialize(string, encoding = T.unsafe(nil)); end
|
430
431
|
|
431
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
432
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#28
|
432
433
|
def <<(string); end
|
433
434
|
|
434
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
435
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
435
436
|
def ==(*args, &block); end
|
436
437
|
|
437
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
438
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
438
439
|
def empty?(*args, &block); end
|
439
440
|
|
440
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
441
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
441
442
|
def encoding(*args, &block); end
|
442
443
|
|
443
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
444
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
444
445
|
def eql?(*args, &block); end
|
445
446
|
|
446
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
447
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
447
448
|
def lines(*args, &block); end
|
448
449
|
|
449
450
|
# Returns the value of attribute source_encoding.
|
450
451
|
#
|
451
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
452
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#21
|
452
453
|
def source_encoding; end
|
453
454
|
|
454
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
455
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#41
|
455
456
|
def split(regex_or_string); end
|
456
457
|
|
457
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
458
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#46
|
458
459
|
def to_s; end
|
459
460
|
|
460
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
461
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#46
|
461
462
|
def to_str; end
|
462
463
|
|
463
464
|
private
|
464
465
|
|
465
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
466
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#139
|
466
467
|
def detect_source_encoding(string); end
|
467
468
|
|
468
469
|
# Encoding Exceptions:
|
@@ -504,7 +505,7 @@ class RSpec::Support::EncodedString
|
|
504
505
|
# RangeError: out of char range
|
505
506
|
# e.g. the UTF-16LE emoji: 128169.chr
|
506
507
|
#
|
507
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
508
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#93
|
508
509
|
def matching_encoding(string); end
|
509
510
|
|
510
511
|
# http://stackoverflow.com/a/8711118/879854
|
@@ -512,11 +513,11 @@ class RSpec::Support::EncodedString
|
|
512
513
|
# with invalid encoding, which is a pretty good proxy
|
513
514
|
# for the invalid byte sequence that causes an ArgumentError
|
514
515
|
#
|
515
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
516
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#124
|
516
517
|
def remove_invalid_bytes(string); end
|
517
518
|
|
518
519
|
class << self
|
519
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
520
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#143
|
520
521
|
def pick_encoding(source_a, source_b); end
|
521
522
|
end
|
522
523
|
end
|
@@ -525,50 +526,50 @@ end
|
|
525
526
|
# U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else
|
526
527
|
# ? ("\x3F")
|
527
528
|
#
|
528
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
529
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#14
|
529
530
|
RSpec::Support::EncodedString::REPLACE = T.let(T.unsafe(nil), String)
|
530
531
|
|
531
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
532
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#9
|
532
533
|
RSpec::Support::EncodedString::US_ASCII = T.let(T.unsafe(nil), String)
|
533
534
|
|
534
535
|
# Reduce allocations by storing constants.
|
535
536
|
#
|
536
|
-
# source://rspec-support//lib/rspec/support/encoded_string.rb#
|
537
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#8
|
537
538
|
RSpec::Support::EncodedString::UTF_8 = T.let(T.unsafe(nil), String)
|
538
539
|
|
539
540
|
# @private
|
540
541
|
#
|
541
|
-
# source://rspec-support//lib/rspec/support/hunk_generator.rb#
|
542
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#9
|
542
543
|
class RSpec::Support::HunkGenerator
|
543
544
|
# @return [HunkGenerator] a new instance of HunkGenerator
|
544
545
|
#
|
545
|
-
# source://rspec-support//lib/rspec/support/hunk_generator.rb#
|
546
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#10
|
546
547
|
def initialize(actual, expected); end
|
547
548
|
|
548
|
-
# source://rspec-support//lib/rspec/support/hunk_generator.rb#
|
549
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#15
|
549
550
|
def hunks; end
|
550
551
|
|
551
552
|
private
|
552
553
|
|
553
|
-
# source://rspec-support//lib/rspec/support/hunk_generator.rb#
|
554
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#32
|
554
555
|
def actual_lines; end
|
555
556
|
|
556
|
-
# source://rspec-support//lib/rspec/support/hunk_generator.rb#
|
557
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#36
|
557
558
|
def build_hunk(piece); end
|
558
559
|
|
559
|
-
# source://rspec-support//lib/rspec/support/hunk_generator.rb#
|
560
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#44
|
560
561
|
def context_lines; end
|
561
562
|
|
562
|
-
# source://rspec-support//lib/rspec/support/hunk_generator.rb#
|
563
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#24
|
563
564
|
def diffs; end
|
564
565
|
|
565
|
-
# source://rspec-support//lib/rspec/support/hunk_generator.rb#
|
566
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#28
|
566
567
|
def expected_lines; end
|
567
568
|
end
|
568
569
|
|
569
570
|
# @api private
|
570
571
|
#
|
571
|
-
# source://rspec-support//lib/rspec/support.rb#
|
572
|
+
# source://rspec-support//lib/rspec/support.rb#40
|
572
573
|
RSpec::Support::KERNEL_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
573
574
|
|
574
575
|
# Allows matchers to be used instead of providing keyword arguments. In
|
@@ -576,11 +577,11 @@ RSpec::Support::KERNEL_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
|
576
577
|
#
|
577
578
|
# @private
|
578
579
|
#
|
579
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
580
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#395
|
580
581
|
class RSpec::Support::LooseSignatureVerifier < ::RSpec::Support::MethodSignatureVerifier
|
581
582
|
private
|
582
583
|
|
583
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
584
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#398
|
584
585
|
def split_args(*args); end
|
585
586
|
end
|
586
587
|
|
@@ -593,30 +594,30 @@ end
|
|
593
594
|
#
|
594
595
|
# @private
|
595
596
|
#
|
596
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
597
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#415
|
597
598
|
class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
|
598
599
|
# @return [SignatureWithKeywordArgumentsMatcher] a new instance of SignatureWithKeywordArgumentsMatcher
|
599
600
|
#
|
600
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
601
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#416
|
601
602
|
def initialize(signature); end
|
602
603
|
|
603
604
|
# @return [Boolean]
|
604
605
|
#
|
605
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
606
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#436
|
606
607
|
def has_kw_args_in?(args); end
|
607
608
|
|
608
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
609
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#424
|
609
610
|
def invalid_kw_args_from(_kw_args); end
|
610
611
|
|
611
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
612
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#420
|
612
613
|
def missing_kw_args_from(_kw_args); end
|
613
614
|
|
614
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
615
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#428
|
615
616
|
def non_kw_args_arity_description; end
|
616
617
|
|
617
618
|
# @return [Boolean]
|
618
619
|
#
|
619
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
620
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#432
|
620
621
|
def valid_non_kw_args?(*args); end
|
621
622
|
end
|
622
623
|
|
@@ -625,22 +626,22 @@ end
|
|
625
626
|
#
|
626
627
|
# @private
|
627
628
|
#
|
628
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
629
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#13
|
629
630
|
class RSpec::Support::MethodSignature
|
630
631
|
# @return [MethodSignature] a new instance of MethodSignature
|
631
632
|
#
|
632
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
633
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#16
|
633
634
|
def initialize(method); end
|
634
635
|
|
635
636
|
# @return [Boolean]
|
636
637
|
#
|
637
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
638
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#98
|
638
639
|
def arbitrary_kw_args?; end
|
639
640
|
|
640
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
641
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#38
|
641
642
|
def classify_arity(arity = T.unsafe(nil)); end
|
642
643
|
|
643
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
644
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#106
|
644
645
|
def classify_parameters; end
|
645
646
|
|
646
647
|
# Without considering what the last arg is, could it
|
@@ -648,10 +649,10 @@ class RSpec::Support::MethodSignature
|
|
648
649
|
#
|
649
650
|
# @return [Boolean]
|
650
651
|
#
|
651
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
652
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#92
|
652
653
|
def could_contain_kw_args?(args); end
|
653
654
|
|
654
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
655
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#51
|
655
656
|
def description; end
|
656
657
|
|
657
658
|
# If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments
|
@@ -659,42 +660,42 @@ class RSpec::Support::MethodSignature
|
|
659
660
|
#
|
660
661
|
# @return [Boolean]
|
661
662
|
#
|
662
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
663
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#84
|
663
664
|
def has_kw_args_in?(args); end
|
664
665
|
|
665
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
666
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#77
|
666
667
|
def invalid_kw_args_from(given_kw_args); end
|
667
668
|
|
668
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
669
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14
|
669
670
|
def max_non_kw_args; end
|
670
671
|
|
671
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
672
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14
|
672
673
|
def min_non_kw_args; end
|
673
674
|
|
674
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
675
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#73
|
675
676
|
def missing_kw_args_from(given_kw_args); end
|
676
677
|
|
677
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
678
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#23
|
678
679
|
def non_kw_args_arity_description; end
|
679
680
|
|
680
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
681
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14
|
681
682
|
def optional_kw_args; end
|
682
683
|
|
683
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
684
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14
|
684
685
|
def required_kw_args; end
|
685
686
|
|
686
687
|
# @return [Boolean]
|
687
688
|
#
|
688
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
689
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#102
|
689
690
|
def unlimited_args?; end
|
690
691
|
|
691
692
|
# @return [Boolean]
|
692
693
|
#
|
693
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
694
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#31
|
694
695
|
def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = T.unsafe(nil)); end
|
695
696
|
end
|
696
697
|
|
697
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
698
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#162
|
698
699
|
RSpec::Support::MethodSignature::INFINITY = T.let(T.unsafe(nil), Float)
|
699
700
|
|
700
701
|
# Encapsulates expectations about the number of arguments and
|
@@ -702,70 +703,70 @@ RSpec::Support::MethodSignature::INFINITY = T.let(T.unsafe(nil), Float)
|
|
702
703
|
#
|
703
704
|
# @api private
|
704
705
|
#
|
705
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
706
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#219
|
706
707
|
class RSpec::Support::MethodSignatureExpectation
|
707
708
|
# @api private
|
708
709
|
# @return [MethodSignatureExpectation] a new instance of MethodSignatureExpectation
|
709
710
|
#
|
710
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
711
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#220
|
711
712
|
def initialize; end
|
712
713
|
|
713
714
|
# @api private
|
714
715
|
# @return [Boolean]
|
715
716
|
#
|
716
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
717
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#247
|
717
718
|
def empty?; end
|
718
719
|
|
719
720
|
# @api private
|
720
721
|
#
|
721
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
722
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231
|
722
723
|
def expect_arbitrary_keywords; end
|
723
724
|
|
724
725
|
# @api private
|
725
726
|
#
|
726
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
727
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231
|
727
728
|
def expect_arbitrary_keywords=(_arg0); end
|
728
729
|
|
729
730
|
# @api private
|
730
731
|
#
|
731
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
732
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231
|
732
733
|
def expect_unlimited_arguments; end
|
733
734
|
|
734
735
|
# @api private
|
735
736
|
#
|
736
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
737
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231
|
737
738
|
def expect_unlimited_arguments=(_arg0); end
|
738
739
|
|
739
740
|
# @api private
|
740
741
|
#
|
741
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
742
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
|
742
743
|
def keywords; end
|
743
744
|
|
744
745
|
# @api private
|
745
746
|
#
|
746
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
747
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#254
|
747
748
|
def keywords=(values); end
|
748
749
|
|
749
750
|
# @api private
|
750
751
|
#
|
751
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
752
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
|
752
753
|
def max_count; end
|
753
754
|
|
754
755
|
# @api private
|
755
756
|
# @raise [ArgumentError]
|
756
757
|
#
|
757
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
758
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#233
|
758
759
|
def max_count=(number); end
|
759
760
|
|
760
761
|
# @api private
|
761
762
|
#
|
762
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
763
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
|
763
764
|
def min_count; end
|
764
765
|
|
765
766
|
# @api private
|
766
767
|
# @raise [ArgumentError]
|
767
768
|
#
|
768
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
769
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#240
|
769
770
|
def min_count=(number); end
|
770
771
|
end
|
771
772
|
|
@@ -773,48 +774,48 @@ end
|
|
773
774
|
#
|
774
775
|
# @api private
|
775
776
|
#
|
776
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
777
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#280
|
777
778
|
class RSpec::Support::MethodSignatureVerifier
|
778
779
|
# @api private
|
779
780
|
# @return [MethodSignatureVerifier] a new instance of MethodSignatureVerifier
|
780
781
|
#
|
781
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
782
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#283
|
782
783
|
def initialize(signature, args = T.unsafe(nil)); end
|
783
784
|
|
784
785
|
# @api private
|
785
786
|
#
|
786
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
787
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#326
|
787
788
|
def error_message; end
|
788
789
|
|
789
790
|
# @api private
|
790
791
|
#
|
791
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
792
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281
|
792
793
|
def kw_args; end
|
793
794
|
|
794
795
|
# @api private
|
795
796
|
#
|
796
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
797
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281
|
797
798
|
def max_non_kw_args; end
|
798
799
|
|
799
800
|
# @api private
|
800
801
|
#
|
801
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
802
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281
|
802
803
|
def min_non_kw_args; end
|
803
804
|
|
804
805
|
# @api private
|
805
806
|
#
|
806
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
807
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281
|
807
808
|
def non_kw_args; end
|
808
809
|
|
809
810
|
# @api private
|
810
811
|
# @return [Boolean]
|
811
812
|
#
|
812
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
813
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#318
|
813
814
|
def valid?; end
|
814
815
|
|
815
816
|
# @api private
|
816
817
|
#
|
817
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
818
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#290
|
818
819
|
def with_expectation(expectation); end
|
819
820
|
|
820
821
|
private
|
@@ -822,34 +823,34 @@ class RSpec::Support::MethodSignatureVerifier
|
|
822
823
|
# @api private
|
823
824
|
# @return [Boolean]
|
824
825
|
#
|
825
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
826
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#357
|
826
827
|
def arbitrary_kw_args?; end
|
827
828
|
|
828
829
|
# @api private
|
829
830
|
#
|
830
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
831
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#353
|
831
832
|
def invalid_kw_args; end
|
832
833
|
|
833
834
|
# @api private
|
834
835
|
#
|
835
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
836
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#349
|
836
837
|
def missing_kw_args; end
|
837
838
|
|
838
839
|
# @api private
|
839
840
|
#
|
840
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
841
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#365
|
841
842
|
def split_args(*args); end
|
842
843
|
|
843
844
|
# @api private
|
844
845
|
# @return [Boolean]
|
845
846
|
#
|
846
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
847
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#361
|
847
848
|
def unlimited_args?; end
|
848
849
|
|
849
850
|
# @api private
|
850
851
|
# @return [Boolean]
|
851
852
|
#
|
852
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
853
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#345
|
853
854
|
def valid_non_kw_args?; end
|
854
855
|
end
|
855
856
|
|
@@ -858,46 +859,46 @@ end
|
|
858
859
|
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#65
|
859
860
|
class RSpec::Support::Mutex < ::Thread::Mutex
|
860
861
|
class << self
|
861
|
-
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#
|
862
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#70
|
862
863
|
def new; end
|
863
864
|
end
|
864
865
|
end
|
865
866
|
|
866
867
|
# If you mock Mutex.new you break our usage of Mutex, so
|
867
|
-
# instead we capture the original method to return
|
868
|
+
# instead we capture the original method to return Mutexes.
|
868
869
|
#
|
869
|
-
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#
|
870
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#68
|
870
871
|
RSpec::Support::Mutex::NEW_MUTEX_METHOD = T.let(T.unsafe(nil), Method)
|
871
872
|
|
872
873
|
# Provides query methods for different OS or OS features.
|
873
874
|
#
|
874
875
|
# @api private
|
875
876
|
#
|
876
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
877
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#11
|
877
878
|
module RSpec::Support::OS
|
878
879
|
private
|
879
880
|
|
880
881
|
# @api private
|
881
882
|
#
|
882
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
883
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#14
|
883
884
|
def windows?; end
|
884
885
|
|
885
886
|
# @api private
|
886
887
|
#
|
887
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
888
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#18
|
888
889
|
def windows_file_path?; end
|
889
890
|
|
890
891
|
class << self
|
891
892
|
# @api private
|
892
893
|
# @return [Boolean]
|
893
894
|
#
|
894
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
895
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#14
|
895
896
|
def windows?; end
|
896
897
|
|
897
898
|
# @api private
|
898
899
|
# @return [Boolean]
|
899
900
|
#
|
900
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
901
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#18
|
901
902
|
def windows_file_path?; end
|
902
903
|
end
|
903
904
|
end
|
@@ -907,37 +908,37 @@ end
|
|
907
908
|
#
|
908
909
|
# @api private
|
909
910
|
#
|
910
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
911
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#10
|
911
912
|
class RSpec::Support::ObjectFormatter
|
912
913
|
# @api private
|
913
914
|
# @return [ObjectFormatter] a new instance of ObjectFormatter
|
914
915
|
#
|
915
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
916
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#29
|
916
917
|
def initialize(max_formatted_output_length = T.unsafe(nil)); end
|
917
918
|
|
918
919
|
# @api private
|
919
920
|
#
|
920
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
921
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#34
|
921
922
|
def format(object); end
|
922
923
|
|
923
924
|
# @api private
|
924
925
|
#
|
925
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
926
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#13
|
926
927
|
def max_formatted_output_length; end
|
927
928
|
|
928
929
|
# @api private
|
929
930
|
#
|
930
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
931
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#13
|
931
932
|
def max_formatted_output_length=(_arg0); end
|
932
933
|
|
933
934
|
# @api private
|
934
935
|
#
|
935
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
936
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#70
|
936
937
|
def prepare_array(array); end
|
937
938
|
|
938
939
|
# @api private
|
939
940
|
#
|
940
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
941
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#94
|
941
942
|
def prepare_element(element); end
|
942
943
|
|
943
944
|
# Prepares the provided object to be formatted by wrapping it as needed
|
@@ -952,28 +953,28 @@ class RSpec::Support::ObjectFormatter
|
|
952
953
|
#
|
953
954
|
# @api private
|
954
955
|
#
|
955
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
956
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#58
|
956
957
|
def prepare_for_inspection(object); end
|
957
958
|
|
958
959
|
# @api private
|
959
960
|
#
|
960
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
961
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#76
|
961
962
|
def prepare_hash(input_hash); end
|
962
963
|
|
963
964
|
# @api private
|
964
965
|
# @return [Boolean]
|
965
966
|
#
|
966
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
967
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#113
|
967
968
|
def recursive_structure?(object); end
|
968
969
|
|
969
970
|
# @api private
|
970
971
|
#
|
971
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
972
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#86
|
972
973
|
def sort_hash_keys(input_hash); end
|
973
974
|
|
974
975
|
# @api private
|
975
976
|
#
|
976
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
977
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#106
|
977
978
|
def with_entering_structure(structure); end
|
978
979
|
|
979
980
|
private
|
@@ -985,7 +986,7 @@ class RSpec::Support::ObjectFormatter
|
|
985
986
|
#
|
986
987
|
# @api private
|
987
988
|
#
|
988
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
989
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#268
|
989
990
|
def truncate_string(str, start_index, end_index); end
|
990
991
|
|
991
992
|
class << self
|
@@ -994,24 +995,24 @@ class RSpec::Support::ObjectFormatter
|
|
994
995
|
#
|
995
996
|
# @api private
|
996
997
|
#
|
997
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
998
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#17
|
998
999
|
def default_instance; end
|
999
1000
|
|
1000
1001
|
# @api private
|
1001
1002
|
#
|
1002
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1003
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#21
|
1003
1004
|
def format(object); end
|
1004
1005
|
|
1005
1006
|
# @api private
|
1006
1007
|
#
|
1007
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1008
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#25
|
1008
1009
|
def prepare_for_inspection(object); end
|
1009
1010
|
end
|
1010
1011
|
end
|
1011
1012
|
|
1012
1013
|
# @api private
|
1013
1014
|
#
|
1014
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1015
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#127
|
1015
1016
|
class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct
|
1016
1017
|
# Returns the value of attribute formatter
|
1017
1018
|
#
|
@@ -1027,7 +1028,7 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct
|
|
1027
1028
|
# @api private
|
1028
1029
|
# @raise [NotImplementedError]
|
1029
1030
|
#
|
1030
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1031
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#132
|
1031
1032
|
def inspect; end
|
1032
1033
|
|
1033
1034
|
# Returns the value of attribute object
|
@@ -1043,7 +1044,7 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct
|
|
1043
1044
|
|
1044
1045
|
# @api private
|
1045
1046
|
#
|
1046
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1047
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#136
|
1047
1048
|
def pretty_print(pp); end
|
1048
1049
|
|
1049
1050
|
class << self
|
@@ -1053,7 +1054,7 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct
|
|
1053
1054
|
# @raise [NotImplementedError]
|
1054
1055
|
# @return [Boolean]
|
1055
1056
|
#
|
1056
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1057
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#128
|
1057
1058
|
def can_inspect?(_object); end
|
1058
1059
|
|
1059
1060
|
def inspect; end
|
@@ -1065,106 +1066,106 @@ end
|
|
1065
1066
|
|
1066
1067
|
# @api private
|
1067
1068
|
#
|
1068
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1069
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#177
|
1069
1070
|
class RSpec::Support::ObjectFormatter::BigDecimalInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1070
1071
|
# @api private
|
1071
1072
|
#
|
1072
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1073
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#182
|
1073
1074
|
def inspect; end
|
1074
1075
|
|
1075
1076
|
class << self
|
1076
1077
|
# @api private
|
1077
1078
|
# @return [Boolean]
|
1078
1079
|
#
|
1079
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1080
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#178
|
1080
1081
|
def can_inspect?(object); end
|
1081
1082
|
end
|
1082
1083
|
end
|
1083
1084
|
|
1084
1085
|
# @api private
|
1085
1086
|
#
|
1086
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1087
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#159
|
1087
1088
|
class RSpec::Support::ObjectFormatter::DateTimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1088
1089
|
# ActiveSupport sometimes overrides inspect. If `ActiveSupport` is
|
1089
1090
|
# defined use a custom format string that includes more time precision.
|
1090
1091
|
#
|
1091
1092
|
# @api private
|
1092
1093
|
#
|
1093
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1094
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#168
|
1094
1095
|
def inspect; end
|
1095
1096
|
|
1096
1097
|
class << self
|
1097
1098
|
# @api private
|
1098
1099
|
# @return [Boolean]
|
1099
1100
|
#
|
1100
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1101
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#162
|
1101
1102
|
def can_inspect?(object); end
|
1102
1103
|
end
|
1103
1104
|
end
|
1104
1105
|
|
1105
1106
|
# @api private
|
1106
1107
|
#
|
1107
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1108
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#160
|
1108
1109
|
RSpec::Support::ObjectFormatter::DateTimeInspector::FORMAT = T.let(T.unsafe(nil), String)
|
1109
1110
|
|
1110
1111
|
# @api private
|
1111
1112
|
#
|
1112
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1113
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#224
|
1113
1114
|
class RSpec::Support::ObjectFormatter::DelegatorInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1114
1115
|
# @api private
|
1115
1116
|
#
|
1116
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1117
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#229
|
1117
1118
|
def inspect; end
|
1118
1119
|
|
1119
1120
|
class << self
|
1120
1121
|
# @api private
|
1121
1122
|
# @return [Boolean]
|
1122
1123
|
#
|
1123
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1124
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#225
|
1124
1125
|
def can_inspect?(object); end
|
1125
1126
|
end
|
1126
1127
|
end
|
1127
1128
|
|
1128
1129
|
# @api private
|
1129
1130
|
#
|
1130
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1131
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#187
|
1131
1132
|
class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1132
1133
|
# @api private
|
1133
1134
|
#
|
1134
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1135
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#192
|
1135
1136
|
def inspect; end
|
1136
1137
|
|
1137
1138
|
class << self
|
1138
1139
|
# @api private
|
1139
1140
|
# @return [Boolean]
|
1140
1141
|
#
|
1141
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1142
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#188
|
1142
1143
|
def can_inspect?(object); end
|
1143
1144
|
end
|
1144
1145
|
end
|
1145
1146
|
|
1146
1147
|
# @api private
|
1147
1148
|
#
|
1148
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1149
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#11
|
1149
1150
|
RSpec::Support::ObjectFormatter::ELLIPSIS = T.let(T.unsafe(nil), String)
|
1150
1151
|
|
1151
1152
|
# @api private
|
1152
1153
|
#
|
1153
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1154
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#247
|
1154
1155
|
RSpec::Support::ObjectFormatter::INSPECTOR_CLASSES = T.let(T.unsafe(nil), Array)
|
1155
1156
|
|
1156
1157
|
# @api private
|
1157
1158
|
#
|
1158
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1159
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#117
|
1159
1160
|
class RSpec::Support::ObjectFormatter::InspectableItem < ::Struct
|
1160
1161
|
# @api private
|
1161
1162
|
#
|
1162
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1163
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#118
|
1163
1164
|
def inspect; end
|
1164
1165
|
|
1165
1166
|
# @api private
|
1166
1167
|
#
|
1167
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1168
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#122
|
1168
1169
|
def pretty_print(pp); end
|
1169
1170
|
|
1170
1171
|
# Returns the value of attribute text
|
@@ -1189,109 +1190,109 @@ end
|
|
1189
1190
|
|
1190
1191
|
# @api private
|
1191
1192
|
#
|
1192
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1193
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#234
|
1193
1194
|
class RSpec::Support::ObjectFormatter::InspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1194
1195
|
# @api private
|
1195
1196
|
#
|
1196
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1197
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#242
|
1197
1198
|
def inspect; end
|
1198
1199
|
|
1199
1200
|
class << self
|
1200
1201
|
# @api private
|
1201
1202
|
# @return [Boolean]
|
1202
1203
|
#
|
1203
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1204
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#235
|
1204
1205
|
def can_inspect?(object); end
|
1205
1206
|
end
|
1206
1207
|
end
|
1207
1208
|
|
1208
1209
|
# @api private
|
1209
1210
|
#
|
1210
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1211
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#141
|
1211
1212
|
class RSpec::Support::ObjectFormatter::TimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1212
1213
|
# for 1.8.7
|
1213
1214
|
#
|
1214
1215
|
# @api private
|
1215
1216
|
#
|
1216
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1217
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#149
|
1217
1218
|
def inspect; end
|
1218
1219
|
|
1219
1220
|
class << self
|
1220
1221
|
# @api private
|
1221
1222
|
# @return [Boolean]
|
1222
1223
|
#
|
1223
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1224
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#144
|
1224
1225
|
def can_inspect?(object); end
|
1225
1226
|
end
|
1226
1227
|
end
|
1227
1228
|
|
1228
1229
|
# @api private
|
1229
1230
|
#
|
1230
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1231
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#142
|
1231
1232
|
RSpec::Support::ObjectFormatter::TimeInspector::FORMAT = T.let(T.unsafe(nil), String)
|
1232
1233
|
|
1233
1234
|
# @api private
|
1234
1235
|
#
|
1235
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1236
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#197
|
1236
1237
|
class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1237
1238
|
# @api private
|
1238
1239
|
#
|
1239
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1240
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#207
|
1240
1241
|
def inspect; end
|
1241
1242
|
|
1242
1243
|
# @api private
|
1243
1244
|
#
|
1244
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1245
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#211
|
1245
1246
|
def klass; end
|
1246
1247
|
|
1247
1248
|
# http://stackoverflow.com/a/2818916
|
1248
1249
|
#
|
1249
1250
|
# @api private
|
1250
1251
|
#
|
1251
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1252
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#216
|
1252
1253
|
def native_object_id; end
|
1253
1254
|
|
1254
1255
|
class << self
|
1255
1256
|
# @api private
|
1256
1257
|
# @return [Boolean]
|
1257
1258
|
#
|
1258
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1259
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#200
|
1259
1260
|
def can_inspect?(object); end
|
1260
1261
|
end
|
1261
1262
|
end
|
1262
1263
|
|
1263
1264
|
# @api private
|
1264
1265
|
#
|
1265
|
-
# source://rspec-support//lib/rspec/support/object_formatter.rb#
|
1266
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#198
|
1266
1267
|
RSpec::Support::ObjectFormatter::UninspectableObjectInspector::OBJECT_ID_FORMAT = T.let(T.unsafe(nil), String)
|
1267
1268
|
|
1268
1269
|
# Provides recursive constant lookup methods useful for
|
1269
1270
|
# constant stubbing.
|
1270
1271
|
#
|
1271
|
-
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#
|
1272
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#7
|
1272
1273
|
module RSpec::Support::RecursiveConstMethods
|
1273
1274
|
# @return [Boolean]
|
1274
1275
|
#
|
1275
|
-
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#
|
1276
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#45
|
1276
1277
|
def const_defined_on?(mod, const_name); end
|
1277
1278
|
|
1278
|
-
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#
|
1279
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#53
|
1279
1280
|
def constants_defined_on(mod); end
|
1280
1281
|
|
1281
1282
|
# @raise [NameError]
|
1282
1283
|
#
|
1283
|
-
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#
|
1284
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#49
|
1284
1285
|
def get_const_defined_on(mod, const_name); end
|
1285
1286
|
|
1286
|
-
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#
|
1287
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#73
|
1287
1288
|
def normalize_const_name(const_name); end
|
1288
1289
|
|
1289
1290
|
# @return [Boolean]
|
1290
1291
|
#
|
1291
|
-
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#
|
1292
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#64
|
1292
1293
|
def recursive_const_defined?(const_name); end
|
1293
1294
|
|
1294
|
-
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#
|
1295
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#58
|
1295
1296
|
def recursive_const_get(const_name); end
|
1296
1297
|
end
|
1297
1298
|
|
@@ -1307,22 +1308,22 @@ end
|
|
1307
1308
|
#
|
1308
1309
|
# @private
|
1309
1310
|
#
|
1310
|
-
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#
|
1311
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#16
|
1311
1312
|
class RSpec::Support::ReentrantMutex
|
1312
1313
|
# @return [ReentrantMutex] a new instance of ReentrantMutex
|
1313
1314
|
#
|
1314
|
-
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#
|
1315
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#17
|
1315
1316
|
def initialize; end
|
1316
1317
|
|
1317
|
-
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#
|
1318
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#23
|
1318
1319
|
def synchronize; end
|
1319
1320
|
|
1320
1321
|
private
|
1321
1322
|
|
1322
|
-
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#
|
1323
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#35
|
1323
1324
|
def enter; end
|
1324
1325
|
|
1325
|
-
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#
|
1326
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#40
|
1326
1327
|
def exit; end
|
1327
1328
|
end
|
1328
1329
|
|
@@ -1330,85 +1331,85 @@ end
|
|
1330
1331
|
#
|
1331
1332
|
# @api private
|
1332
1333
|
#
|
1333
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1334
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#26
|
1334
1335
|
module RSpec::Support::Ruby
|
1335
1336
|
private
|
1336
1337
|
|
1337
1338
|
# @api private
|
1338
1339
|
#
|
1339
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1340
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#29
|
1340
1341
|
def jruby?; end
|
1341
1342
|
|
1342
1343
|
# @api private
|
1343
1344
|
#
|
1344
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1345
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#37
|
1345
1346
|
def jruby_9000?; end
|
1346
1347
|
|
1347
1348
|
# @api private
|
1348
1349
|
#
|
1349
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1350
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#33
|
1350
1351
|
def jruby_version; end
|
1351
1352
|
|
1352
1353
|
# @api private
|
1353
1354
|
#
|
1354
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1355
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#49
|
1355
1356
|
def mri?; end
|
1356
1357
|
|
1357
1358
|
# @api private
|
1358
1359
|
#
|
1359
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1360
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#45
|
1360
1361
|
def non_mri?; end
|
1361
1362
|
|
1362
1363
|
# @api private
|
1363
1364
|
#
|
1364
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1365
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#41
|
1365
1366
|
def rbx?; end
|
1366
1367
|
|
1367
1368
|
# @api private
|
1368
1369
|
#
|
1369
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1370
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#53
|
1370
1371
|
def truffleruby?; end
|
1371
1372
|
|
1372
1373
|
class << self
|
1373
1374
|
# @api private
|
1374
1375
|
# @return [Boolean]
|
1375
1376
|
#
|
1376
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1377
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#29
|
1377
1378
|
def jruby?; end
|
1378
1379
|
|
1379
1380
|
# @api private
|
1380
1381
|
# @return [Boolean]
|
1381
1382
|
#
|
1382
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1383
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#37
|
1383
1384
|
def jruby_9000?; end
|
1384
1385
|
|
1385
1386
|
# @api private
|
1386
1387
|
#
|
1387
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1388
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#33
|
1388
1389
|
def jruby_version; end
|
1389
1390
|
|
1390
1391
|
# @api private
|
1391
1392
|
# @return [Boolean]
|
1392
1393
|
#
|
1393
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1394
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#49
|
1394
1395
|
def mri?; end
|
1395
1396
|
|
1396
1397
|
# @api private
|
1397
1398
|
# @return [Boolean]
|
1398
1399
|
#
|
1399
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1400
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#45
|
1400
1401
|
def non_mri?; end
|
1401
1402
|
|
1402
1403
|
# @api private
|
1403
1404
|
# @return [Boolean]
|
1404
1405
|
#
|
1405
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1406
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#41
|
1406
1407
|
def rbx?; end
|
1407
1408
|
|
1408
1409
|
# @api private
|
1409
1410
|
# @return [Boolean]
|
1410
1411
|
#
|
1411
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1412
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#53
|
1412
1413
|
def truffleruby?; end
|
1413
1414
|
end
|
1414
1415
|
end
|
@@ -1418,18 +1419,18 @@ end
|
|
1418
1419
|
#
|
1419
1420
|
# @api private
|
1420
1421
|
#
|
1421
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1422
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#62
|
1422
1423
|
module RSpec::Support::RubyFeatures
|
1423
1424
|
private
|
1424
1425
|
|
1425
1426
|
# @api private
|
1426
1427
|
#
|
1427
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1428
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#85
|
1428
1429
|
def caller_locations_supported?; end
|
1429
1430
|
|
1430
1431
|
# @api private
|
1431
1432
|
#
|
1432
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1433
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#155
|
1433
1434
|
def distincts_kw_args_from_positional_hash?; end
|
1434
1435
|
|
1435
1436
|
# On JRuby 1.7 `--1.8` mode, `Process.respond_to?(:fork)` returns true,
|
@@ -1442,131 +1443,151 @@ module RSpec::Support::RubyFeatures
|
|
1442
1443
|
# @api private
|
1443
1444
|
# @return [Boolean]
|
1444
1445
|
#
|
1445
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1446
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#76
|
1446
1447
|
def fork_supported?; end
|
1447
1448
|
|
1449
|
+
# https://rubyreferences.github.io/rubychanges/3.0.html#keyword-arguments-are-now-fully-separated-from-positional-arguments
|
1450
|
+
#
|
1451
|
+
# @api private
|
1452
|
+
# @return [Boolean]
|
1453
|
+
#
|
1454
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#111
|
1455
|
+
def kw_arg_separation?; end
|
1456
|
+
|
1448
1457
|
# @api private
|
1449
1458
|
# @return [Boolean]
|
1450
1459
|
#
|
1451
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1460
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#160
|
1452
1461
|
def kw_args_supported?; end
|
1453
1462
|
|
1454
1463
|
# @api private
|
1455
1464
|
#
|
1456
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1465
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#216
|
1457
1466
|
def module_prepends_supported?; end
|
1458
1467
|
|
1459
1468
|
# @api private
|
1460
1469
|
#
|
1461
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1470
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#212
|
1462
1471
|
def module_refinement_supported?; end
|
1463
1472
|
|
1464
1473
|
# @api private
|
1465
1474
|
#
|
1466
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1475
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#81
|
1467
1476
|
def optional_and_splat_args_supported?; end
|
1468
1477
|
|
1469
1478
|
# @api private
|
1470
1479
|
# @return [Boolean]
|
1471
1480
|
#
|
1472
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1481
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#164
|
1473
1482
|
def required_kw_args_supported?; end
|
1474
1483
|
|
1475
1484
|
# @api private
|
1476
1485
|
# @return [Boolean]
|
1477
1486
|
#
|
1478
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1487
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#146
|
1479
1488
|
def ripper_supported?; end
|
1480
1489
|
|
1481
1490
|
# @api private
|
1482
1491
|
# @return [Boolean]
|
1483
1492
|
#
|
1484
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1493
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#90
|
1485
1494
|
def supports_exception_cause?; end
|
1486
1495
|
|
1487
1496
|
# @api private
|
1488
1497
|
# @return [Boolean]
|
1489
1498
|
#
|
1490
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1499
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#168
|
1491
1500
|
def supports_rebinding_module_methods?; end
|
1492
1501
|
|
1493
1502
|
# @api private
|
1494
1503
|
# @return [Boolean]
|
1495
1504
|
#
|
1496
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1505
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#100
|
1506
|
+
def supports_syntax_suggest?; end
|
1507
|
+
|
1508
|
+
# @api private
|
1509
|
+
# @return [Boolean]
|
1510
|
+
#
|
1511
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#121
|
1497
1512
|
def supports_taint?; end
|
1498
1513
|
|
1499
1514
|
class << self
|
1500
1515
|
# @api private
|
1501
1516
|
# @return [Boolean]
|
1502
1517
|
#
|
1503
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1518
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#85
|
1504
1519
|
def caller_locations_supported?; end
|
1505
1520
|
|
1506
1521
|
# @api private
|
1507
1522
|
# @return [Boolean]
|
1508
1523
|
#
|
1509
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1524
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#155
|
1510
1525
|
def distincts_kw_args_from_positional_hash?; end
|
1511
1526
|
|
1512
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1527
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#76
|
1513
1528
|
def fork_supported?; end
|
1514
1529
|
|
1515
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1530
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#111
|
1531
|
+
def kw_arg_separation?; end
|
1532
|
+
|
1533
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#160
|
1516
1534
|
def kw_args_supported?; end
|
1517
1535
|
|
1518
1536
|
# @api private
|
1519
1537
|
# @return [Boolean]
|
1520
1538
|
#
|
1521
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1539
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#216
|
1522
1540
|
def module_prepends_supported?; end
|
1523
1541
|
|
1524
1542
|
# @api private
|
1525
1543
|
# @return [Boolean]
|
1526
1544
|
#
|
1527
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1545
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#212
|
1528
1546
|
def module_refinement_supported?; end
|
1529
1547
|
|
1530
1548
|
# @api private
|
1531
1549
|
# @return [Boolean]
|
1532
1550
|
#
|
1533
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1551
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#81
|
1534
1552
|
def optional_and_splat_args_supported?; end
|
1535
1553
|
|
1536
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1554
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#164
|
1537
1555
|
def required_kw_args_supported?; end
|
1538
1556
|
|
1539
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1557
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#146
|
1540
1558
|
def ripper_supported?; end
|
1541
1559
|
|
1542
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1560
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#90
|
1543
1561
|
def supports_exception_cause?; end
|
1544
1562
|
|
1545
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1563
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#168
|
1546
1564
|
def supports_rebinding_module_methods?; end
|
1547
1565
|
|
1548
|
-
# source://rspec-support//lib/rspec/support/ruby_features.rb#
|
1566
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#100
|
1567
|
+
def supports_syntax_suggest?; end
|
1568
|
+
|
1569
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#121
|
1549
1570
|
def supports_taint?; end
|
1550
1571
|
end
|
1551
1572
|
end
|
1552
1573
|
|
1553
|
-
# Figures out
|
1574
|
+
# Figures out whether a given method can accept various arguments.
|
1554
1575
|
# Surprisingly non-trivial.
|
1555
1576
|
#
|
1556
1577
|
# @private
|
1557
1578
|
#
|
1558
|
-
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#
|
1579
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#389
|
1559
1580
|
RSpec::Support::StrictSignatureVerifier = RSpec::Support::MethodSignatureVerifier
|
1560
1581
|
|
1561
|
-
# source://rspec-support//lib/rspec/support/version.rb#
|
1582
|
+
# source://rspec-support//lib/rspec/support/version.rb#5
|
1562
1583
|
module RSpec::Support::Version; end
|
1563
1584
|
|
1564
|
-
# source://rspec-support//lib/rspec/support/version.rb#
|
1585
|
+
# source://rspec-support//lib/rspec/support/version.rb#6
|
1565
1586
|
RSpec::Support::Version::STRING = T.let(T.unsafe(nil), String)
|
1566
1587
|
|
1567
|
-
# source://rspec-support//lib/rspec/support/warnings.rb#
|
1588
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#8
|
1568
1589
|
module RSpec::Support::Warnings
|
1569
|
-
# source://rspec-support//lib/rspec/support/warnings.rb#
|
1590
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#9
|
1570
1591
|
def deprecate(deprecated, options = T.unsafe(nil)); end
|
1571
1592
|
|
1572
1593
|
# Used internally to print deprecation warnings
|
@@ -1574,36 +1595,36 @@ module RSpec::Support::Warnings
|
|
1574
1595
|
#
|
1575
1596
|
# @private
|
1576
1597
|
#
|
1577
|
-
# source://rspec-support//lib/rspec/support/warnings.rb#
|
1598
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#17
|
1578
1599
|
def warn_deprecation(message, options = T.unsafe(nil)); end
|
1579
1600
|
|
1580
1601
|
# Used internally to print longer warnings
|
1581
1602
|
#
|
1582
1603
|
# @private
|
1583
1604
|
#
|
1584
|
-
# source://rspec-support//lib/rspec/support/warnings.rb#
|
1605
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#31
|
1585
1606
|
def warn_with(message, options = T.unsafe(nil)); end
|
1586
1607
|
|
1587
1608
|
# Used internally to print warnings
|
1588
1609
|
#
|
1589
1610
|
# @private
|
1590
1611
|
#
|
1591
|
-
# source://rspec-support//lib/rspec/support/warnings.rb#
|
1612
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#24
|
1592
1613
|
def warning(text, options = T.unsafe(nil)); end
|
1593
1614
|
end
|
1594
1615
|
|
1595
|
-
# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#
|
1616
|
+
# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#7
|
1596
1617
|
module RSpec::Support::WithKeywordsWhenNeeded
|
1597
1618
|
private
|
1598
1619
|
|
1599
1620
|
# Remove this in RSpec 4 in favour of explicitly passed in kwargs where
|
1600
1621
|
# this is used. Works around a warning in Ruby 2.7
|
1601
1622
|
#
|
1602
|
-
# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#
|
1623
|
+
# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#17
|
1603
1624
|
def class_exec(klass, *args, **_arg2, &block); end
|
1604
1625
|
|
1605
1626
|
class << self
|
1606
|
-
# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#
|
1627
|
+
# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#17
|
1607
1628
|
def class_exec(klass, *args, **_arg2, &block); end
|
1608
1629
|
end
|
1609
1630
|
end
|