privat_bank_business_api 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.devcontainer/Dockerfile +17 -0
- data/.devcontainer/devcontainer.json +33 -0
- data/.devcontainer/post-create.sh +8 -0
- data/.rspec +3 -0
- data/.rubocop.yml +9 -0
- data/.vscode/settings.json +6 -0
- data/CHANGELOG.md +12 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE.txt +21 -0
- data/README.md +123 -0
- data/Rakefile +12 -0
- data/lib/pb_api/base_transformer.rb +19 -0
- data/lib/pb_api/client.rb +41 -0
- data/lib/pb_api/models/balance.rb +79 -0
- data/lib/pb_api/models/base_struct.rb +30 -0
- data/lib/pb_api/models/transaction.rb +114 -0
- data/lib/pb_api/pagination_helper.rb +73 -0
- data/lib/pb_api/resource.rb +97 -0
- data/lib/pb_api/resources/balance_resource.rb +40 -0
- data/lib/pb_api/resources/transaction_resource.rb +105 -0
- data/lib/pb_api/transformers/balance_transformer.rb +35 -0
- data/lib/pb_api/transformers/transaction_transformer.rb +46 -0
- data/lib/pb_api/types.rb +8 -0
- data/lib/pb_api/version.rb +5 -0
- data/lib/pb_api.rb +34 -0
- data/sig/privat_bank_buisness_api.rbs +4 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/faraday.rbi +17 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +9 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +9 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/diff-lcs@1.6.0.rbi +1134 -0
- data/sorbet/rbi/gems/dry-core@1.1.0.rbi +9 -0
- data/sorbet/rbi/gems/dry-inflector@1.2.0.rbi +9 -0
- data/sorbet/rbi/gems/dry-logic@1.6.0.rbi +9 -0
- data/sorbet/rbi/gems/dry-struct@1.7.1.rbi +925 -0
- data/sorbet/rbi/gems/dry-transformer@1.0.1.rbi +1512 -0
- data/sorbet/rbi/gems/dry-types@1.8.2.rbi +9 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +9 -0
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +9 -0
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +9 -0
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +9 -0
- data/sorbet/rbi/gems/faraday-multipart@1.1.0.rbi +9 -0
- data/sorbet/rbi/gems/faraday-net_http@1.0.2.rbi +9 -0
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +9 -0
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +9 -0
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +9 -0
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +9 -0
- data/sorbet/rbi/gems/faraday@1.10.4.rbi +9 -0
- data/sorbet/rbi/gems/faraday_middleware@1.2.1.rbi +9 -0
- data/sorbet/rbi/gems/i18n@1.14.7.rbi +2208 -0
- data/sorbet/rbi/gems/ice_nine@0.11.2.rbi +9 -0
- data/sorbet/rbi/gems/io-console@0.8.0.rbi +9 -0
- data/sorbet/rbi/gems/json@2.10.1.rbi +2120 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
- data/sorbet/rbi/gems/logger@1.6.6.rbi +940 -0
- data/sorbet/rbi/gems/money@6.19.0.rbi +2260 -0
- data/sorbet/rbi/gems/multipart-post@2.4.1.rbi +9 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
- data/sorbet/rbi/gems/parser@3.3.7.1.rbi +5525 -0
- data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
- data/sorbet/rbi/gems/prism@1.3.0.rbi +41403 -0
- data/sorbet/rbi/gems/psych@5.2.3.rbi +2435 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +164 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
- data/sorbet/rbi/gems/rbi@0.2.4.rbi +4542 -0
- data/sorbet/rbi/gems/rdoc@6.12.0.rbi +12758 -0
- data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
- data/sorbet/rbi/gems/reline@0.6.0.rbi +2451 -0
- data/sorbet/rbi/gems/rspec-core@3.13.3.rbi +10986 -0
- data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +8183 -0
- data/sorbet/rbi/gems/rspec-mocks@3.13.2.rbi +5341 -0
- data/sorbet/rbi/gems/rspec-support@3.13.2.rbi +1630 -0
- data/sorbet/rbi/gems/rspec@3.13.0.rbi +83 -0
- data/sorbet/rbi/gems/rubocop-ast@1.38.0.rbi +7654 -0
- data/sorbet/rbi/gems/rubocop@1.72.2.rbi +61026 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
- data/sorbet/rbi/gems/spoom@1.5.4.rbi +5026 -0
- data/sorbet/rbi/gems/stringio@3.1.5.rbi +9 -0
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3656 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
- data/sorbet/rbi/gems/zeitwerk@2.7.2.rbi +9 -0
- data/sorbet/rbi/todo.rbi +17 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +8 -0
- metadata +231 -0
@@ -0,0 +1,1630 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `rspec-support` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem rspec-support`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://rspec-support//lib/rspec/support.rb#3
|
9
|
+
module RSpec
|
10
|
+
extend ::RSpec::Support::Warnings
|
11
|
+
|
12
|
+
class << self
|
13
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#70
|
14
|
+
def clear_examples; end
|
15
|
+
|
16
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#85
|
17
|
+
def configuration; end
|
18
|
+
|
19
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#49
|
20
|
+
def configuration=(_arg0); end
|
21
|
+
|
22
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#97
|
23
|
+
def configure; end
|
24
|
+
|
25
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#194
|
26
|
+
def const_missing(name); end
|
27
|
+
|
28
|
+
# source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42
|
29
|
+
def context(*args, &example_group_block); end
|
30
|
+
|
31
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#122
|
32
|
+
def current_example; end
|
33
|
+
|
34
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#128
|
35
|
+
def current_example=(example); end
|
36
|
+
|
37
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#154
|
38
|
+
def current_scope; end
|
39
|
+
|
40
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#134
|
41
|
+
def current_scope=(scope); end
|
42
|
+
|
43
|
+
# source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42
|
44
|
+
def describe(*args, &example_group_block); end
|
45
|
+
|
46
|
+
# source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42
|
47
|
+
def example_group(*args, &example_group_block); end
|
48
|
+
|
49
|
+
# source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42
|
50
|
+
def fcontext(*args, &example_group_block); end
|
51
|
+
|
52
|
+
# source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42
|
53
|
+
def fdescribe(*args, &example_group_block); end
|
54
|
+
|
55
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#58
|
56
|
+
def reset; end
|
57
|
+
|
58
|
+
# source://rspec-core/3.13.3/lib/rspec/core/shared_example_group.rb#110
|
59
|
+
def shared_context(name, *args, &block); end
|
60
|
+
|
61
|
+
# source://rspec-core/3.13.3/lib/rspec/core/shared_example_group.rb#110
|
62
|
+
def shared_examples(name, *args, &block); end
|
63
|
+
|
64
|
+
# source://rspec-core/3.13.3/lib/rspec/core/shared_example_group.rb#110
|
65
|
+
def shared_examples_for(name, *args, &block); end
|
66
|
+
|
67
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#160
|
68
|
+
def world; end
|
69
|
+
|
70
|
+
# source://rspec-core/3.13.3/lib/rspec/core.rb#49
|
71
|
+
def world=(_arg0); end
|
72
|
+
|
73
|
+
# source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42
|
74
|
+
def xcontext(*args, &example_group_block); end
|
75
|
+
|
76
|
+
# source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42
|
77
|
+
def xdescribe(*args, &example_group_block); end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Consistent implementation for "cleaning" the caller method to strip out
|
82
|
+
# non-rspec lines. This enables errors to be reported at the call site in
|
83
|
+
# the code using the library, which is far more useful than the particular
|
84
|
+
# internal method that raised an error.
|
85
|
+
#
|
86
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#10
|
87
|
+
class RSpec::CallerFilter
|
88
|
+
class << self
|
89
|
+
# Earlier rubies do not support the two argument form of `caller`. This
|
90
|
+
# fallback is logically the same, but slower.
|
91
|
+
#
|
92
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#49
|
93
|
+
def first_non_rspec_line(skip_frames = T.unsafe(nil), increment = T.unsafe(nil)); end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#20
|
98
|
+
RSpec::CallerFilter::ADDITIONAL_TOP_LEVEL_FILES = T.let(T.unsafe(nil), Array)
|
99
|
+
|
100
|
+
# rubygems/core_ext/kernel_require.rb isn't actually part of rspec (obviously) but we want
|
101
|
+
# it ignored when we are looking for the first meaningful line of the backtrace outside
|
102
|
+
# of RSpec. It can show up in the backtrace as the immediate first caller
|
103
|
+
# when `CallerFilter.first_non_rspec_line` is called from the top level of a required
|
104
|
+
# file, but it depends on if rubygems is loaded or not. We don't want to have to deal
|
105
|
+
# with this complexity in our `RSpec.deprecate` calls, so we ignore it here.
|
106
|
+
#
|
107
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#30
|
108
|
+
RSpec::CallerFilter::IGNORE_REGEX = T.let(T.unsafe(nil), Regexp)
|
109
|
+
|
110
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#22
|
111
|
+
RSpec::CallerFilter::LIB_REGEX = T.let(T.unsafe(nil), Regexp)
|
112
|
+
|
113
|
+
# source://rspec-support//lib/rspec/support/caller_filter.rb#11
|
114
|
+
RSpec::CallerFilter::RSPEC_LIBS = T.let(T.unsafe(nil), Array)
|
115
|
+
|
116
|
+
# source://rspec-support//lib/rspec/support.rb#4
|
117
|
+
module RSpec::Support
|
118
|
+
class << self
|
119
|
+
# Used internally to get a class of a given object, even if it does not respond to #class.
|
120
|
+
#
|
121
|
+
# @api private
|
122
|
+
#
|
123
|
+
# source://rspec-support//lib/rspec/support.rb#86
|
124
|
+
def class_of(object); end
|
125
|
+
|
126
|
+
# Defines a helper method that is optimized to require files from the
|
127
|
+
# named lib. The passed block MUST be `{ |f| require_relative f }`
|
128
|
+
# because for `require_relative` to work properly from within the named
|
129
|
+
# lib the line of code must be IN that lib.
|
130
|
+
#
|
131
|
+
# `require_relative` is preferred when available because it is always O(1),
|
132
|
+
# regardless of the number of dirs in $LOAD_PATH. `require`, on the other
|
133
|
+
# hand, does a linear O(N) search over the dirs in the $LOAD_PATH until
|
134
|
+
# it can resolve the file relative to one of the dirs.
|
135
|
+
#
|
136
|
+
# @api private
|
137
|
+
#
|
138
|
+
# source://rspec-support//lib/rspec/support.rb#16
|
139
|
+
def define_optimized_require_for_rspec(lib, &require_relative); end
|
140
|
+
|
141
|
+
# Remove a previously registered matcher. Useful for cleaning up after
|
142
|
+
# yourself in specs.
|
143
|
+
#
|
144
|
+
# @private
|
145
|
+
#
|
146
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#24
|
147
|
+
def deregister_matcher_definition(&block); end
|
148
|
+
|
149
|
+
# @api private
|
150
|
+
#
|
151
|
+
# source://rspec-support//lib/rspec/support.rb#113
|
152
|
+
def failure_notifier; end
|
153
|
+
|
154
|
+
# @api private
|
155
|
+
#
|
156
|
+
# source://rspec-support//lib/rspec/support.rb#105
|
157
|
+
def failure_notifier=(callable); end
|
158
|
+
|
159
|
+
# @private
|
160
|
+
# @return [Boolean]
|
161
|
+
#
|
162
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#29
|
163
|
+
def is_a_matcher?(object); end
|
164
|
+
|
165
|
+
# @private
|
166
|
+
#
|
167
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#6
|
168
|
+
def matcher_definitions; end
|
169
|
+
|
170
|
+
# source://rspec-support//lib/rspec/support.rb#54
|
171
|
+
def method_handle_for(object, method_name); end
|
172
|
+
|
173
|
+
# @api private
|
174
|
+
#
|
175
|
+
# source://rspec-support//lib/rspec/support.rb#118
|
176
|
+
def notify_failure(failure, options = T.unsafe(nil)); end
|
177
|
+
|
178
|
+
# Used internally to break cyclic dependency between mocks, expectations,
|
179
|
+
# and support. We don't currently have a consistent implementation of our
|
180
|
+
# matchers, though we are considering changing that:
|
181
|
+
# https://github.com/rspec/rspec-mocks/issues/513
|
182
|
+
#
|
183
|
+
# @private
|
184
|
+
#
|
185
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#16
|
186
|
+
def register_matcher_definition(&block); end
|
187
|
+
|
188
|
+
# source://rspec-support//lib/rspec/support.rb#25
|
189
|
+
def require_rspec_core(f); end
|
190
|
+
|
191
|
+
# source://rspec-support//lib/rspec/support.rb#25
|
192
|
+
def require_rspec_support(f); end
|
193
|
+
|
194
|
+
# gives a string representation of an object for use in RSpec descriptions
|
195
|
+
#
|
196
|
+
# @api private
|
197
|
+
#
|
198
|
+
# source://rspec-support//lib/rspec/support/matcher_definition.rb#36
|
199
|
+
def rspec_description_for_object(object); end
|
200
|
+
|
201
|
+
# source://rspec-support//lib/rspec/support.rb#95
|
202
|
+
def thread_local_data; end
|
203
|
+
|
204
|
+
# @api private
|
205
|
+
#
|
206
|
+
# source://rspec-support//lib/rspec/support.rb#140
|
207
|
+
def warning_notifier; end
|
208
|
+
|
209
|
+
# @api private
|
210
|
+
#
|
211
|
+
# source://rspec-support//lib/rspec/support.rb#133
|
212
|
+
def warning_notifier=(_arg0); end
|
213
|
+
|
214
|
+
# @api private
|
215
|
+
#
|
216
|
+
# source://rspec-support//lib/rspec/support.rb#123
|
217
|
+
def with_failure_notifier(callable); end
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# @private
|
222
|
+
#
|
223
|
+
# source://rspec-support//lib/rspec/support.rb#145
|
224
|
+
module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
|
225
|
+
class << self
|
226
|
+
# source://rspec-support//lib/rspec/support.rb#150
|
227
|
+
def ===(exception); end
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# These exceptions are dangerous to rescue as rescuing them
|
232
|
+
# would interfere with things we should not interfere with.
|
233
|
+
#
|
234
|
+
# source://rspec-support//lib/rspec/support.rb#148
|
235
|
+
RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T.unsafe(nil), Array)
|
236
|
+
|
237
|
+
# Deals with the slightly different semantics of block arguments.
|
238
|
+
# For methods, arguments are required unless a default value is provided.
|
239
|
+
# For blocks, arguments are optional, even if no default value is provided.
|
240
|
+
#
|
241
|
+
# However, we want to treat block args as required since you virtually
|
242
|
+
# always want to pass a value for each received argument and our
|
243
|
+
# `and_yield` has treated block args as required for many years.
|
244
|
+
#
|
245
|
+
# @api private
|
246
|
+
#
|
247
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#268
|
248
|
+
class RSpec::Support::BlockSignature < ::RSpec::Support::MethodSignature
|
249
|
+
# @api private
|
250
|
+
#
|
251
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#270
|
252
|
+
def classify_parameters; end
|
253
|
+
end
|
254
|
+
|
255
|
+
# @private
|
256
|
+
#
|
257
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#6
|
258
|
+
class RSpec::Support::ComparableVersion
|
259
|
+
include ::Comparable
|
260
|
+
|
261
|
+
# @return [ComparableVersion] a new instance of ComparableVersion
|
262
|
+
#
|
263
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#11
|
264
|
+
def initialize(string); end
|
265
|
+
|
266
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#15
|
267
|
+
def <=>(other); end
|
268
|
+
|
269
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#37
|
270
|
+
def segments; end
|
271
|
+
|
272
|
+
# Returns the value of attribute string.
|
273
|
+
#
|
274
|
+
# source://rspec-support//lib/rspec/support/comparable_version.rb#9
|
275
|
+
def string; end
|
276
|
+
end
|
277
|
+
|
278
|
+
# @private
|
279
|
+
#
|
280
|
+
# source://rspec-support//lib/rspec/support.rb#110
|
281
|
+
RSpec::Support::DEFAULT_FAILURE_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
282
|
+
|
283
|
+
# @private
|
284
|
+
#
|
285
|
+
# source://rspec-support//lib/rspec/support.rb#137
|
286
|
+
RSpec::Support::DEFAULT_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc)
|
287
|
+
|
288
|
+
# source://rspec-support//lib/rspec/support/differ.rb#12
|
289
|
+
class RSpec::Support::Differ
|
290
|
+
# @return [Differ] a new instance of Differ
|
291
|
+
#
|
292
|
+
# source://rspec-support//lib/rspec/support/differ.rb#69
|
293
|
+
def initialize(opts = T.unsafe(nil)); end
|
294
|
+
|
295
|
+
# @return [Boolean]
|
296
|
+
#
|
297
|
+
# source://rspec-support//lib/rspec/support/differ.rb#65
|
298
|
+
def color?; end
|
299
|
+
|
300
|
+
# source://rspec-support//lib/rspec/support/differ.rb#13
|
301
|
+
def diff(actual, expected); end
|
302
|
+
|
303
|
+
# source://rspec-support//lib/rspec/support/differ.rb#59
|
304
|
+
def diff_as_object(actual, expected); end
|
305
|
+
|
306
|
+
# source://rspec-support//lib/rspec/support/differ.rb#30
|
307
|
+
def diff_as_string(actual, expected); end
|
308
|
+
|
309
|
+
private
|
310
|
+
|
311
|
+
# source://rspec-support//lib/rspec/support/differ.rb#130
|
312
|
+
def add_old_hunk_to_hunk(hunk, oldhunk); end
|
313
|
+
|
314
|
+
# source://rspec-support//lib/rspec/support/differ.rb#126
|
315
|
+
def add_to_output(output, string); end
|
316
|
+
|
317
|
+
# @return [Boolean]
|
318
|
+
#
|
319
|
+
# source://rspec-support//lib/rspec/support/differ.rb#80
|
320
|
+
def all_strings?(*args); end
|
321
|
+
|
322
|
+
# @return [Boolean]
|
323
|
+
#
|
324
|
+
# source://rspec-support//lib/rspec/support/differ.rb#84
|
325
|
+
def any_multiline_strings?(*args); end
|
326
|
+
|
327
|
+
# source://rspec-support//lib/rspec/support/differ.rb#155
|
328
|
+
def blue(text); end
|
329
|
+
|
330
|
+
# source://rspec-support//lib/rspec/support/differ.rb#117
|
331
|
+
def build_hunks(actual, expected); end
|
332
|
+
|
333
|
+
# source://rspec-support//lib/rspec/support/differ.rb#92
|
334
|
+
def coerce_to_string(string_or_array); end
|
335
|
+
|
336
|
+
# source://rspec-support//lib/rspec/support/differ.rb#143
|
337
|
+
def color(text, color_code); end
|
338
|
+
|
339
|
+
# source://rspec-support//lib/rspec/support/differ.rb#163
|
340
|
+
def color_diff(diff); end
|
341
|
+
|
342
|
+
# source://rspec-support//lib/rspec/support/differ.rb#97
|
343
|
+
def diffably_stringify(array); end
|
344
|
+
|
345
|
+
# source://rspec-support//lib/rspec/support/differ.rb#121
|
346
|
+
def finalize_output(output, final_line); end
|
347
|
+
|
348
|
+
# source://rspec-support//lib/rspec/support/differ.rb#139
|
349
|
+
def format_type; end
|
350
|
+
|
351
|
+
# source://rspec-support//lib/rspec/support/differ.rb#151
|
352
|
+
def green(text); end
|
353
|
+
|
354
|
+
# source://rspec-support//lib/rspec/support/differ.rb#204
|
355
|
+
def handle_encoding_errors(actual, expected); end
|
356
|
+
|
357
|
+
# source://rspec-support//lib/rspec/support/differ.rb#194
|
358
|
+
def hash_to_string(hash); end
|
359
|
+
|
360
|
+
# @return [Boolean]
|
361
|
+
#
|
362
|
+
# source://rspec-support//lib/rspec/support/differ.rb#108
|
363
|
+
def multiline?(string); end
|
364
|
+
|
365
|
+
# @return [Boolean]
|
366
|
+
#
|
367
|
+
# source://rspec-support//lib/rspec/support/differ.rb#88
|
368
|
+
def no_numbers?(*args); end
|
369
|
+
|
370
|
+
# @return [Boolean]
|
371
|
+
#
|
372
|
+
# source://rspec-support//lib/rspec/support/differ.rb#76
|
373
|
+
def no_procs?(*args); end
|
374
|
+
|
375
|
+
# source://rspec-support//lib/rspec/support/differ.rb#159
|
376
|
+
def normal(text); end
|
377
|
+
|
378
|
+
# source://rspec-support//lib/rspec/support/differ.rb#180
|
379
|
+
def object_to_string(object); end
|
380
|
+
|
381
|
+
# source://rspec-support//lib/rspec/support/differ.rb#147
|
382
|
+
def red(text); end
|
383
|
+
|
384
|
+
# source://rspec-support//lib/rspec/support/differ.rb#134
|
385
|
+
def safely_flatten(array); end
|
386
|
+
end
|
387
|
+
|
388
|
+
# Replacement for fileutils#mkdir_p because we don't want to require parts
|
389
|
+
# of stdlib in RSpec.
|
390
|
+
#
|
391
|
+
# @api private
|
392
|
+
#
|
393
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#11
|
394
|
+
class RSpec::Support::DirectoryMaker
|
395
|
+
class << self
|
396
|
+
# Implements nested directory construction
|
397
|
+
#
|
398
|
+
# @api private
|
399
|
+
#
|
400
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#15
|
401
|
+
def mkdir_p(path); end
|
402
|
+
|
403
|
+
private
|
404
|
+
|
405
|
+
# @api private
|
406
|
+
# @return [Boolean]
|
407
|
+
#
|
408
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#57
|
409
|
+
def directory_exists?(dirname); end
|
410
|
+
|
411
|
+
# @api private
|
412
|
+
#
|
413
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#52
|
414
|
+
def generate_path(stack, part); end
|
415
|
+
|
416
|
+
# @api private
|
417
|
+
#
|
418
|
+
# source://rspec-support//lib/rspec/support/directory_maker.rb#49
|
419
|
+
def generate_stack(path); end
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
# @private
|
424
|
+
#
|
425
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#6
|
426
|
+
class RSpec::Support::EncodedString
|
427
|
+
# @return [EncodedString] a new instance of EncodedString
|
428
|
+
#
|
429
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#16
|
430
|
+
def initialize(string, encoding = T.unsafe(nil)); end
|
431
|
+
|
432
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#28
|
433
|
+
def <<(string); end
|
434
|
+
|
435
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
436
|
+
def ==(*args, &block); end
|
437
|
+
|
438
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
439
|
+
def empty?(*args, &block); end
|
440
|
+
|
441
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
442
|
+
def encoding(*args, &block); end
|
443
|
+
|
444
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
445
|
+
def eql?(*args, &block); end
|
446
|
+
|
447
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#25
|
448
|
+
def lines(*args, &block); end
|
449
|
+
|
450
|
+
# Returns the value of attribute source_encoding.
|
451
|
+
#
|
452
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#21
|
453
|
+
def source_encoding; end
|
454
|
+
|
455
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#41
|
456
|
+
def split(regex_or_string); end
|
457
|
+
|
458
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#46
|
459
|
+
def to_s; end
|
460
|
+
|
461
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#46
|
462
|
+
def to_str; end
|
463
|
+
|
464
|
+
private
|
465
|
+
|
466
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#139
|
467
|
+
def detect_source_encoding(string); end
|
468
|
+
|
469
|
+
# Encoding Exceptions:
|
470
|
+
#
|
471
|
+
# Raised by Encoding and String methods:
|
472
|
+
# Encoding::UndefinedConversionError:
|
473
|
+
# when a transcoding operation fails
|
474
|
+
# if the String contains characters invalid for the target encoding
|
475
|
+
# e.g. "\x80".encode('UTF-8','ASCII-8BIT')
|
476
|
+
# vs "\x80".encode('UTF-8','ASCII-8BIT', undef: :replace, replace: '<undef>')
|
477
|
+
# # => '<undef>'
|
478
|
+
# Encoding::CompatibilityError
|
479
|
+
# when Encoding.compatible?(str1, str2) is nil
|
480
|
+
# e.g. utf_16le_emoji_string.split("\n")
|
481
|
+
# e.g. valid_unicode_string.encode(utf8_encoding) << ascii_string
|
482
|
+
# Encoding::InvalidByteSequenceError:
|
483
|
+
# when the string being transcoded contains a byte invalid for
|
484
|
+
# either the source or target encoding
|
485
|
+
# e.g. "\x80".encode('UTF-8','US-ASCII')
|
486
|
+
# vs "\x80".encode('UTF-8','US-ASCII', invalid: :replace, replace: '<byte>')
|
487
|
+
# # => '<byte>'
|
488
|
+
# ArgumentError
|
489
|
+
# when operating on a string with invalid bytes
|
490
|
+
# e.g."\x80".split("\n")
|
491
|
+
# TypeError
|
492
|
+
# when a symbol is passed as an encoding
|
493
|
+
# Encoding.find(:"UTF-8")
|
494
|
+
# when calling force_encoding on an object
|
495
|
+
# that doesn't respond to #to_str
|
496
|
+
#
|
497
|
+
# Raised by transcoding methods:
|
498
|
+
# Encoding::ConverterNotFoundError:
|
499
|
+
# when a named encoding does not correspond with a known converter
|
500
|
+
# e.g. 'abc'.force_encoding('UTF-8').encode('foo')
|
501
|
+
# or a converter path cannot be found
|
502
|
+
# e.g. "\x80".force_encoding('ASCII-8BIT').encode('Emacs-Mule')
|
503
|
+
#
|
504
|
+
# Raised by byte <-> char conversions
|
505
|
+
# RangeError: out of char range
|
506
|
+
# e.g. the UTF-16LE emoji: 128169.chr
|
507
|
+
#
|
508
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#93
|
509
|
+
def matching_encoding(string); end
|
510
|
+
|
511
|
+
# http://stackoverflow.com/a/8711118/879854
|
512
|
+
# Loop over chars in a string replacing chars
|
513
|
+
# with invalid encoding, which is a pretty good proxy
|
514
|
+
# for the invalid byte sequence that causes an ArgumentError
|
515
|
+
#
|
516
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#124
|
517
|
+
def remove_invalid_bytes(string); end
|
518
|
+
|
519
|
+
class << self
|
520
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#143
|
521
|
+
def pick_encoding(source_a, source_b); end
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
525
|
+
# Ruby's default replacement string is:
|
526
|
+
# U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else
|
527
|
+
# ? ("\x3F")
|
528
|
+
#
|
529
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#14
|
530
|
+
RSpec::Support::EncodedString::REPLACE = T.let(T.unsafe(nil), String)
|
531
|
+
|
532
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#9
|
533
|
+
RSpec::Support::EncodedString::US_ASCII = T.let(T.unsafe(nil), String)
|
534
|
+
|
535
|
+
# Reduce allocations by storing constants.
|
536
|
+
#
|
537
|
+
# source://rspec-support//lib/rspec/support/encoded_string.rb#8
|
538
|
+
RSpec::Support::EncodedString::UTF_8 = T.let(T.unsafe(nil), String)
|
539
|
+
|
540
|
+
# @private
|
541
|
+
#
|
542
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#9
|
543
|
+
class RSpec::Support::HunkGenerator
|
544
|
+
# @return [HunkGenerator] a new instance of HunkGenerator
|
545
|
+
#
|
546
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#10
|
547
|
+
def initialize(actual, expected); end
|
548
|
+
|
549
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#15
|
550
|
+
def hunks; end
|
551
|
+
|
552
|
+
private
|
553
|
+
|
554
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#32
|
555
|
+
def actual_lines; end
|
556
|
+
|
557
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#36
|
558
|
+
def build_hunk(piece); end
|
559
|
+
|
560
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#44
|
561
|
+
def context_lines; end
|
562
|
+
|
563
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#24
|
564
|
+
def diffs; end
|
565
|
+
|
566
|
+
# source://rspec-support//lib/rspec/support/hunk_generator.rb#28
|
567
|
+
def expected_lines; end
|
568
|
+
end
|
569
|
+
|
570
|
+
# @api private
|
571
|
+
#
|
572
|
+
# source://rspec-support//lib/rspec/support.rb#40
|
573
|
+
RSpec::Support::KERNEL_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
574
|
+
|
575
|
+
# Allows matchers to be used instead of providing keyword arguments. In
|
576
|
+
# practice, when this happens only the arity of the method is verified.
|
577
|
+
#
|
578
|
+
# @private
|
579
|
+
#
|
580
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#395
|
581
|
+
class RSpec::Support::LooseSignatureVerifier < ::RSpec::Support::MethodSignatureVerifier
|
582
|
+
private
|
583
|
+
|
584
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#398
|
585
|
+
def split_args(*args); end
|
586
|
+
end
|
587
|
+
|
588
|
+
# If a matcher is used in a signature in place of keyword arguments, all
|
589
|
+
# keyword argument validation needs to be skipped since the matcher is
|
590
|
+
# opaque.
|
591
|
+
#
|
592
|
+
# Instead, keyword arguments will be validated when the method is called
|
593
|
+
# and they are actually known.
|
594
|
+
#
|
595
|
+
# @private
|
596
|
+
#
|
597
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#415
|
598
|
+
class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
|
599
|
+
# @return [SignatureWithKeywordArgumentsMatcher] a new instance of SignatureWithKeywordArgumentsMatcher
|
600
|
+
#
|
601
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#416
|
602
|
+
def initialize(signature); end
|
603
|
+
|
604
|
+
# @return [Boolean]
|
605
|
+
#
|
606
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#436
|
607
|
+
def has_kw_args_in?(args); end
|
608
|
+
|
609
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#424
|
610
|
+
def invalid_kw_args_from(_kw_args); end
|
611
|
+
|
612
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#420
|
613
|
+
def missing_kw_args_from(_kw_args); end
|
614
|
+
|
615
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#428
|
616
|
+
def non_kw_args_arity_description; end
|
617
|
+
|
618
|
+
# @return [Boolean]
|
619
|
+
#
|
620
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#432
|
621
|
+
def valid_non_kw_args?(*args); end
|
622
|
+
end
|
623
|
+
|
624
|
+
# Extracts info about the number of arguments and allowed/required
|
625
|
+
# keyword args of a given method.
|
626
|
+
#
|
627
|
+
# @private
|
628
|
+
#
|
629
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#13
|
630
|
+
class RSpec::Support::MethodSignature
|
631
|
+
# @return [MethodSignature] a new instance of MethodSignature
|
632
|
+
#
|
633
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#16
|
634
|
+
def initialize(method); end
|
635
|
+
|
636
|
+
# @return [Boolean]
|
637
|
+
#
|
638
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#98
|
639
|
+
def arbitrary_kw_args?; end
|
640
|
+
|
641
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#38
|
642
|
+
def classify_arity(arity = T.unsafe(nil)); end
|
643
|
+
|
644
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#106
|
645
|
+
def classify_parameters; end
|
646
|
+
|
647
|
+
# Without considering what the last arg is, could it
|
648
|
+
# contain keyword arguments?
|
649
|
+
#
|
650
|
+
# @return [Boolean]
|
651
|
+
#
|
652
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#92
|
653
|
+
def could_contain_kw_args?(args); end
|
654
|
+
|
655
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#51
|
656
|
+
def description; end
|
657
|
+
|
658
|
+
# If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments
|
659
|
+
# the rest will be grouped in another Hash and passed as positional argument.
|
660
|
+
#
|
661
|
+
# @return [Boolean]
|
662
|
+
#
|
663
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#84
|
664
|
+
def has_kw_args_in?(args); end
|
665
|
+
|
666
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#77
|
667
|
+
def invalid_kw_args_from(given_kw_args); end
|
668
|
+
|
669
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14
|
670
|
+
def max_non_kw_args; end
|
671
|
+
|
672
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14
|
673
|
+
def min_non_kw_args; end
|
674
|
+
|
675
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#73
|
676
|
+
def missing_kw_args_from(given_kw_args); end
|
677
|
+
|
678
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#23
|
679
|
+
def non_kw_args_arity_description; end
|
680
|
+
|
681
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14
|
682
|
+
def optional_kw_args; end
|
683
|
+
|
684
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14
|
685
|
+
def required_kw_args; end
|
686
|
+
|
687
|
+
# @return [Boolean]
|
688
|
+
#
|
689
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#102
|
690
|
+
def unlimited_args?; end
|
691
|
+
|
692
|
+
# @return [Boolean]
|
693
|
+
#
|
694
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#31
|
695
|
+
def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = T.unsafe(nil)); end
|
696
|
+
end
|
697
|
+
|
698
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#162
|
699
|
+
RSpec::Support::MethodSignature::INFINITY = T.let(T.unsafe(nil), Float)
|
700
|
+
|
701
|
+
# Encapsulates expectations about the number of arguments and
|
702
|
+
# allowed/required keyword args of a given method.
|
703
|
+
#
|
704
|
+
# @api private
|
705
|
+
#
|
706
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#219
|
707
|
+
class RSpec::Support::MethodSignatureExpectation
|
708
|
+
# @api private
|
709
|
+
# @return [MethodSignatureExpectation] a new instance of MethodSignatureExpectation
|
710
|
+
#
|
711
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#220
|
712
|
+
def initialize; end
|
713
|
+
|
714
|
+
# @api private
|
715
|
+
# @return [Boolean]
|
716
|
+
#
|
717
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#247
|
718
|
+
def empty?; end
|
719
|
+
|
720
|
+
# @api private
|
721
|
+
#
|
722
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231
|
723
|
+
def expect_arbitrary_keywords; end
|
724
|
+
|
725
|
+
# @api private
|
726
|
+
#
|
727
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231
|
728
|
+
def expect_arbitrary_keywords=(_arg0); end
|
729
|
+
|
730
|
+
# @api private
|
731
|
+
#
|
732
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231
|
733
|
+
def expect_unlimited_arguments; end
|
734
|
+
|
735
|
+
# @api private
|
736
|
+
#
|
737
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231
|
738
|
+
def expect_unlimited_arguments=(_arg0); end
|
739
|
+
|
740
|
+
# @api private
|
741
|
+
#
|
742
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
|
743
|
+
def keywords; end
|
744
|
+
|
745
|
+
# @api private
|
746
|
+
#
|
747
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#254
|
748
|
+
def keywords=(values); end
|
749
|
+
|
750
|
+
# @api private
|
751
|
+
#
|
752
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
|
753
|
+
def max_count; end
|
754
|
+
|
755
|
+
# @api private
|
756
|
+
# @raise [ArgumentError]
|
757
|
+
#
|
758
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#233
|
759
|
+
def max_count=(number); end
|
760
|
+
|
761
|
+
# @api private
|
762
|
+
#
|
763
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
|
764
|
+
def min_count; end
|
765
|
+
|
766
|
+
# @api private
|
767
|
+
# @raise [ArgumentError]
|
768
|
+
#
|
769
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#240
|
770
|
+
def min_count=(number); end
|
771
|
+
end
|
772
|
+
|
773
|
+
# Abstract base class for signature verifiers.
|
774
|
+
#
|
775
|
+
# @api private
|
776
|
+
#
|
777
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#280
|
778
|
+
class RSpec::Support::MethodSignatureVerifier
|
779
|
+
# @api private
|
780
|
+
# @return [MethodSignatureVerifier] a new instance of MethodSignatureVerifier
|
781
|
+
#
|
782
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#283
|
783
|
+
def initialize(signature, args = T.unsafe(nil)); end
|
784
|
+
|
785
|
+
# @api private
|
786
|
+
#
|
787
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#326
|
788
|
+
def error_message; end
|
789
|
+
|
790
|
+
# @api private
|
791
|
+
#
|
792
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281
|
793
|
+
def kw_args; end
|
794
|
+
|
795
|
+
# @api private
|
796
|
+
#
|
797
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281
|
798
|
+
def max_non_kw_args; end
|
799
|
+
|
800
|
+
# @api private
|
801
|
+
#
|
802
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281
|
803
|
+
def min_non_kw_args; end
|
804
|
+
|
805
|
+
# @api private
|
806
|
+
#
|
807
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281
|
808
|
+
def non_kw_args; end
|
809
|
+
|
810
|
+
# @api private
|
811
|
+
# @return [Boolean]
|
812
|
+
#
|
813
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#318
|
814
|
+
def valid?; end
|
815
|
+
|
816
|
+
# @api private
|
817
|
+
#
|
818
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#290
|
819
|
+
def with_expectation(expectation); end
|
820
|
+
|
821
|
+
private
|
822
|
+
|
823
|
+
# @api private
|
824
|
+
# @return [Boolean]
|
825
|
+
#
|
826
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#357
|
827
|
+
def arbitrary_kw_args?; end
|
828
|
+
|
829
|
+
# @api private
|
830
|
+
#
|
831
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#353
|
832
|
+
def invalid_kw_args; end
|
833
|
+
|
834
|
+
# @api private
|
835
|
+
#
|
836
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#349
|
837
|
+
def missing_kw_args; end
|
838
|
+
|
839
|
+
# @api private
|
840
|
+
#
|
841
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#365
|
842
|
+
def split_args(*args); end
|
843
|
+
|
844
|
+
# @api private
|
845
|
+
# @return [Boolean]
|
846
|
+
#
|
847
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#361
|
848
|
+
def unlimited_args?; end
|
849
|
+
|
850
|
+
# @api private
|
851
|
+
# @return [Boolean]
|
852
|
+
#
|
853
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#345
|
854
|
+
def valid_non_kw_args?; end
|
855
|
+
end
|
856
|
+
|
857
|
+
# On 1.9 and up, this is in core, so we just use the real one
|
858
|
+
#
|
859
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#65
|
860
|
+
class RSpec::Support::Mutex < ::Thread::Mutex
|
861
|
+
class << self
|
862
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#70
|
863
|
+
def new; end
|
864
|
+
end
|
865
|
+
end
|
866
|
+
|
867
|
+
# If you mock Mutex.new you break our usage of Mutex, so
|
868
|
+
# instead we capture the original method to return Mutexes.
|
869
|
+
#
|
870
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#68
|
871
|
+
RSpec::Support::Mutex::NEW_MUTEX_METHOD = T.let(T.unsafe(nil), Method)
|
872
|
+
|
873
|
+
# Provides query methods for different OS or OS features.
|
874
|
+
#
|
875
|
+
# @api private
|
876
|
+
#
|
877
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#11
|
878
|
+
module RSpec::Support::OS
|
879
|
+
private
|
880
|
+
|
881
|
+
# @api private
|
882
|
+
#
|
883
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#14
|
884
|
+
def windows?; end
|
885
|
+
|
886
|
+
# @api private
|
887
|
+
#
|
888
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#18
|
889
|
+
def windows_file_path?; end
|
890
|
+
|
891
|
+
class << self
|
892
|
+
# @api private
|
893
|
+
# @return [Boolean]
|
894
|
+
#
|
895
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#14
|
896
|
+
def windows?; end
|
897
|
+
|
898
|
+
# @api private
|
899
|
+
# @return [Boolean]
|
900
|
+
#
|
901
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#18
|
902
|
+
def windows_file_path?; end
|
903
|
+
end
|
904
|
+
end
|
905
|
+
|
906
|
+
# Provide additional output details beyond what `inspect` provides when
|
907
|
+
# printing Time, DateTime, or BigDecimal
|
908
|
+
#
|
909
|
+
# @api private
|
910
|
+
#
|
911
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#10
|
912
|
+
class RSpec::Support::ObjectFormatter
|
913
|
+
# @api private
|
914
|
+
# @return [ObjectFormatter] a new instance of ObjectFormatter
|
915
|
+
#
|
916
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#29
|
917
|
+
def initialize(max_formatted_output_length = T.unsafe(nil)); end
|
918
|
+
|
919
|
+
# @api private
|
920
|
+
#
|
921
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#34
|
922
|
+
def format(object); end
|
923
|
+
|
924
|
+
# @api private
|
925
|
+
#
|
926
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#13
|
927
|
+
def max_formatted_output_length; end
|
928
|
+
|
929
|
+
# @api private
|
930
|
+
#
|
931
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#13
|
932
|
+
def max_formatted_output_length=(_arg0); end
|
933
|
+
|
934
|
+
# @api private
|
935
|
+
#
|
936
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#70
|
937
|
+
def prepare_array(array); end
|
938
|
+
|
939
|
+
# @api private
|
940
|
+
#
|
941
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#94
|
942
|
+
def prepare_element(element); end
|
943
|
+
|
944
|
+
# Prepares the provided object to be formatted by wrapping it as needed
|
945
|
+
# in something that, when `inspect` is called on it, will produce the
|
946
|
+
# desired output.
|
947
|
+
#
|
948
|
+
# This allows us to apply the desired formatting to hash/array data structures
|
949
|
+
# at any level of nesting, simply by walking that structure and replacing items
|
950
|
+
# with custom items that have `inspect` defined to return the desired output
|
951
|
+
# for that item. Then we can just use `Array#inspect` or `Hash#inspect` to
|
952
|
+
# format the entire thing.
|
953
|
+
#
|
954
|
+
# @api private
|
955
|
+
#
|
956
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#58
|
957
|
+
def prepare_for_inspection(object); end
|
958
|
+
|
959
|
+
# @api private
|
960
|
+
#
|
961
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#76
|
962
|
+
def prepare_hash(input_hash); end
|
963
|
+
|
964
|
+
# @api private
|
965
|
+
# @return [Boolean]
|
966
|
+
#
|
967
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#113
|
968
|
+
def recursive_structure?(object); end
|
969
|
+
|
970
|
+
# @api private
|
971
|
+
#
|
972
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#86
|
973
|
+
def sort_hash_keys(input_hash); end
|
974
|
+
|
975
|
+
# @api private
|
976
|
+
#
|
977
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#106
|
978
|
+
def with_entering_structure(structure); end
|
979
|
+
|
980
|
+
private
|
981
|
+
|
982
|
+
# Returns the substring defined by the start_index and end_index
|
983
|
+
# If the string ends with a partial ANSI code code then that
|
984
|
+
# will be removed as printing partial ANSI
|
985
|
+
# codes to the terminal can lead to corruption
|
986
|
+
#
|
987
|
+
# @api private
|
988
|
+
#
|
989
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#268
|
990
|
+
def truncate_string(str, start_index, end_index); end
|
991
|
+
|
992
|
+
class << self
|
993
|
+
# Methods are deferred to a default instance of the class to maintain the interface
|
994
|
+
# For example, calling ObjectFormatter.format is still possible
|
995
|
+
#
|
996
|
+
# @api private
|
997
|
+
#
|
998
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#17
|
999
|
+
def default_instance; end
|
1000
|
+
|
1001
|
+
# @api private
|
1002
|
+
#
|
1003
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#21
|
1004
|
+
def format(object); end
|
1005
|
+
|
1006
|
+
# @api private
|
1007
|
+
#
|
1008
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#25
|
1009
|
+
def prepare_for_inspection(object); end
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
# @api private
|
1014
|
+
#
|
1015
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#127
|
1016
|
+
class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct
|
1017
|
+
# Returns the value of attribute formatter
|
1018
|
+
#
|
1019
|
+
# @return [Object] the current value of formatter
|
1020
|
+
def formatter; end
|
1021
|
+
|
1022
|
+
# Sets the attribute formatter
|
1023
|
+
#
|
1024
|
+
# @param value [Object] the value to set the attribute formatter to.
|
1025
|
+
# @return [Object] the newly set value
|
1026
|
+
def formatter=(_); end
|
1027
|
+
|
1028
|
+
# @api private
|
1029
|
+
# @raise [NotImplementedError]
|
1030
|
+
#
|
1031
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#132
|
1032
|
+
def inspect; end
|
1033
|
+
|
1034
|
+
# Returns the value of attribute object
|
1035
|
+
#
|
1036
|
+
# @return [Object] the current value of object
|
1037
|
+
def object; end
|
1038
|
+
|
1039
|
+
# Sets the attribute object
|
1040
|
+
#
|
1041
|
+
# @param value [Object] the value to set the attribute object to.
|
1042
|
+
# @return [Object] the newly set value
|
1043
|
+
def object=(_); end
|
1044
|
+
|
1045
|
+
# @api private
|
1046
|
+
#
|
1047
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#136
|
1048
|
+
def pretty_print(pp); end
|
1049
|
+
|
1050
|
+
class << self
|
1051
|
+
def [](*_arg0); end
|
1052
|
+
|
1053
|
+
# @api private
|
1054
|
+
# @raise [NotImplementedError]
|
1055
|
+
# @return [Boolean]
|
1056
|
+
#
|
1057
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#128
|
1058
|
+
def can_inspect?(_object); end
|
1059
|
+
|
1060
|
+
def inspect; end
|
1061
|
+
def keyword_init?; end
|
1062
|
+
def members; end
|
1063
|
+
def new(*_arg0); end
|
1064
|
+
end
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
# @api private
|
1068
|
+
#
|
1069
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#177
|
1070
|
+
class RSpec::Support::ObjectFormatter::BigDecimalInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1071
|
+
# @api private
|
1072
|
+
#
|
1073
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#182
|
1074
|
+
def inspect; end
|
1075
|
+
|
1076
|
+
class << self
|
1077
|
+
# @api private
|
1078
|
+
# @return [Boolean]
|
1079
|
+
#
|
1080
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#178
|
1081
|
+
def can_inspect?(object); end
|
1082
|
+
end
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
# @api private
|
1086
|
+
#
|
1087
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#159
|
1088
|
+
class RSpec::Support::ObjectFormatter::DateTimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1089
|
+
# ActiveSupport sometimes overrides inspect. If `ActiveSupport` is
|
1090
|
+
# defined use a custom format string that includes more time precision.
|
1091
|
+
#
|
1092
|
+
# @api private
|
1093
|
+
#
|
1094
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#168
|
1095
|
+
def inspect; end
|
1096
|
+
|
1097
|
+
class << self
|
1098
|
+
# @api private
|
1099
|
+
# @return [Boolean]
|
1100
|
+
#
|
1101
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#162
|
1102
|
+
def can_inspect?(object); end
|
1103
|
+
end
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
# @api private
|
1107
|
+
#
|
1108
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#160
|
1109
|
+
RSpec::Support::ObjectFormatter::DateTimeInspector::FORMAT = T.let(T.unsafe(nil), String)
|
1110
|
+
|
1111
|
+
# @api private
|
1112
|
+
#
|
1113
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#224
|
1114
|
+
class RSpec::Support::ObjectFormatter::DelegatorInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1115
|
+
# @api private
|
1116
|
+
#
|
1117
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#229
|
1118
|
+
def inspect; end
|
1119
|
+
|
1120
|
+
class << self
|
1121
|
+
# @api private
|
1122
|
+
# @return [Boolean]
|
1123
|
+
#
|
1124
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#225
|
1125
|
+
def can_inspect?(object); end
|
1126
|
+
end
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
# @api private
|
1130
|
+
#
|
1131
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#187
|
1132
|
+
class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1133
|
+
# @api private
|
1134
|
+
#
|
1135
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#192
|
1136
|
+
def inspect; end
|
1137
|
+
|
1138
|
+
class << self
|
1139
|
+
# @api private
|
1140
|
+
# @return [Boolean]
|
1141
|
+
#
|
1142
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#188
|
1143
|
+
def can_inspect?(object); end
|
1144
|
+
end
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
# @api private
|
1148
|
+
#
|
1149
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#11
|
1150
|
+
RSpec::Support::ObjectFormatter::ELLIPSIS = T.let(T.unsafe(nil), String)
|
1151
|
+
|
1152
|
+
# @api private
|
1153
|
+
#
|
1154
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#247
|
1155
|
+
RSpec::Support::ObjectFormatter::INSPECTOR_CLASSES = T.let(T.unsafe(nil), Array)
|
1156
|
+
|
1157
|
+
# @api private
|
1158
|
+
#
|
1159
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#117
|
1160
|
+
class RSpec::Support::ObjectFormatter::InspectableItem < ::Struct
|
1161
|
+
# @api private
|
1162
|
+
#
|
1163
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#118
|
1164
|
+
def inspect; end
|
1165
|
+
|
1166
|
+
# @api private
|
1167
|
+
#
|
1168
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#122
|
1169
|
+
def pretty_print(pp); end
|
1170
|
+
|
1171
|
+
# Returns the value of attribute text
|
1172
|
+
#
|
1173
|
+
# @return [Object] the current value of text
|
1174
|
+
def text; end
|
1175
|
+
|
1176
|
+
# Sets the attribute text
|
1177
|
+
#
|
1178
|
+
# @param value [Object] the value to set the attribute text to.
|
1179
|
+
# @return [Object] the newly set value
|
1180
|
+
def text=(_); end
|
1181
|
+
|
1182
|
+
class << self
|
1183
|
+
def [](*_arg0); end
|
1184
|
+
def inspect; end
|
1185
|
+
def keyword_init?; end
|
1186
|
+
def members; end
|
1187
|
+
def new(*_arg0); end
|
1188
|
+
end
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
# @api private
|
1192
|
+
#
|
1193
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#234
|
1194
|
+
class RSpec::Support::ObjectFormatter::InspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1195
|
+
# @api private
|
1196
|
+
#
|
1197
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#242
|
1198
|
+
def inspect; end
|
1199
|
+
|
1200
|
+
class << self
|
1201
|
+
# @api private
|
1202
|
+
# @return [Boolean]
|
1203
|
+
#
|
1204
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#235
|
1205
|
+
def can_inspect?(object); end
|
1206
|
+
end
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
# @api private
|
1210
|
+
#
|
1211
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#141
|
1212
|
+
class RSpec::Support::ObjectFormatter::TimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1213
|
+
# for 1.8.7
|
1214
|
+
#
|
1215
|
+
# @api private
|
1216
|
+
#
|
1217
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#149
|
1218
|
+
def inspect; end
|
1219
|
+
|
1220
|
+
class << self
|
1221
|
+
# @api private
|
1222
|
+
# @return [Boolean]
|
1223
|
+
#
|
1224
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#144
|
1225
|
+
def can_inspect?(object); end
|
1226
|
+
end
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
# @api private
|
1230
|
+
#
|
1231
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#142
|
1232
|
+
RSpec::Support::ObjectFormatter::TimeInspector::FORMAT = T.let(T.unsafe(nil), String)
|
1233
|
+
|
1234
|
+
# @api private
|
1235
|
+
#
|
1236
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#197
|
1237
|
+
class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
|
1238
|
+
# @api private
|
1239
|
+
#
|
1240
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#207
|
1241
|
+
def inspect; end
|
1242
|
+
|
1243
|
+
# @api private
|
1244
|
+
#
|
1245
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#211
|
1246
|
+
def klass; end
|
1247
|
+
|
1248
|
+
# http://stackoverflow.com/a/2818916
|
1249
|
+
#
|
1250
|
+
# @api private
|
1251
|
+
#
|
1252
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#216
|
1253
|
+
def native_object_id; end
|
1254
|
+
|
1255
|
+
class << self
|
1256
|
+
# @api private
|
1257
|
+
# @return [Boolean]
|
1258
|
+
#
|
1259
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#200
|
1260
|
+
def can_inspect?(object); end
|
1261
|
+
end
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
# @api private
|
1265
|
+
#
|
1266
|
+
# source://rspec-support//lib/rspec/support/object_formatter.rb#198
|
1267
|
+
RSpec::Support::ObjectFormatter::UninspectableObjectInspector::OBJECT_ID_FORMAT = T.let(T.unsafe(nil), String)
|
1268
|
+
|
1269
|
+
# Provides recursive constant lookup methods useful for
|
1270
|
+
# constant stubbing.
|
1271
|
+
#
|
1272
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#7
|
1273
|
+
module RSpec::Support::RecursiveConstMethods
|
1274
|
+
# @return [Boolean]
|
1275
|
+
#
|
1276
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#45
|
1277
|
+
def const_defined_on?(mod, const_name); end
|
1278
|
+
|
1279
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#53
|
1280
|
+
def constants_defined_on(mod); end
|
1281
|
+
|
1282
|
+
# @raise [NameError]
|
1283
|
+
#
|
1284
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#49
|
1285
|
+
def get_const_defined_on(mod, const_name); end
|
1286
|
+
|
1287
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#73
|
1288
|
+
def normalize_const_name(const_name); end
|
1289
|
+
|
1290
|
+
# @return [Boolean]
|
1291
|
+
#
|
1292
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#64
|
1293
|
+
def recursive_const_defined?(const_name); end
|
1294
|
+
|
1295
|
+
# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#58
|
1296
|
+
def recursive_const_get(const_name); end
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
# Allows a thread to lock out other threads from a critical section of code,
|
1300
|
+
# while allowing the thread with the lock to reenter that section.
|
1301
|
+
#
|
1302
|
+
# Based on Monitor as of 2.2 -
|
1303
|
+
# https://github.com/ruby/ruby/blob/eb7ddaa3a47bf48045d26c72eb0f263a53524ebc/lib/monitor.rb#L9
|
1304
|
+
#
|
1305
|
+
# Depends on Mutex, but Mutex is only available as part of core since 1.9.1:
|
1306
|
+
# exists - http://ruby-doc.org/core-1.9.1/Mutex.html
|
1307
|
+
# dne - http://ruby-doc.org/core-1.9.0/Mutex.html
|
1308
|
+
#
|
1309
|
+
# @private
|
1310
|
+
#
|
1311
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#16
|
1312
|
+
class RSpec::Support::ReentrantMutex
|
1313
|
+
# @return [ReentrantMutex] a new instance of ReentrantMutex
|
1314
|
+
#
|
1315
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#17
|
1316
|
+
def initialize; end
|
1317
|
+
|
1318
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#23
|
1319
|
+
def synchronize; end
|
1320
|
+
|
1321
|
+
private
|
1322
|
+
|
1323
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#35
|
1324
|
+
def enter; end
|
1325
|
+
|
1326
|
+
# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#40
|
1327
|
+
def exit; end
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
# Provides query methods for different rubies
|
1331
|
+
#
|
1332
|
+
# @api private
|
1333
|
+
#
|
1334
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#26
|
1335
|
+
module RSpec::Support::Ruby
|
1336
|
+
private
|
1337
|
+
|
1338
|
+
# @api private
|
1339
|
+
#
|
1340
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#29
|
1341
|
+
def jruby?; end
|
1342
|
+
|
1343
|
+
# @api private
|
1344
|
+
#
|
1345
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#37
|
1346
|
+
def jruby_9000?; end
|
1347
|
+
|
1348
|
+
# @api private
|
1349
|
+
#
|
1350
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#33
|
1351
|
+
def jruby_version; end
|
1352
|
+
|
1353
|
+
# @api private
|
1354
|
+
#
|
1355
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#49
|
1356
|
+
def mri?; end
|
1357
|
+
|
1358
|
+
# @api private
|
1359
|
+
#
|
1360
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#45
|
1361
|
+
def non_mri?; end
|
1362
|
+
|
1363
|
+
# @api private
|
1364
|
+
#
|
1365
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#41
|
1366
|
+
def rbx?; end
|
1367
|
+
|
1368
|
+
# @api private
|
1369
|
+
#
|
1370
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#53
|
1371
|
+
def truffleruby?; end
|
1372
|
+
|
1373
|
+
class << self
|
1374
|
+
# @api private
|
1375
|
+
# @return [Boolean]
|
1376
|
+
#
|
1377
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#29
|
1378
|
+
def jruby?; end
|
1379
|
+
|
1380
|
+
# @api private
|
1381
|
+
# @return [Boolean]
|
1382
|
+
#
|
1383
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#37
|
1384
|
+
def jruby_9000?; end
|
1385
|
+
|
1386
|
+
# @api private
|
1387
|
+
#
|
1388
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#33
|
1389
|
+
def jruby_version; end
|
1390
|
+
|
1391
|
+
# @api private
|
1392
|
+
# @return [Boolean]
|
1393
|
+
#
|
1394
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#49
|
1395
|
+
def mri?; end
|
1396
|
+
|
1397
|
+
# @api private
|
1398
|
+
# @return [Boolean]
|
1399
|
+
#
|
1400
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#45
|
1401
|
+
def non_mri?; end
|
1402
|
+
|
1403
|
+
# @api private
|
1404
|
+
# @return [Boolean]
|
1405
|
+
#
|
1406
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#41
|
1407
|
+
def rbx?; end
|
1408
|
+
|
1409
|
+
# @api private
|
1410
|
+
# @return [Boolean]
|
1411
|
+
#
|
1412
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#53
|
1413
|
+
def truffleruby?; end
|
1414
|
+
end
|
1415
|
+
end
|
1416
|
+
|
1417
|
+
# Provides query methods for ruby features that differ among
|
1418
|
+
# implementations.
|
1419
|
+
#
|
1420
|
+
# @api private
|
1421
|
+
#
|
1422
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#62
|
1423
|
+
module RSpec::Support::RubyFeatures
|
1424
|
+
private
|
1425
|
+
|
1426
|
+
# @api private
|
1427
|
+
#
|
1428
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#85
|
1429
|
+
def caller_locations_supported?; end
|
1430
|
+
|
1431
|
+
# @api private
|
1432
|
+
#
|
1433
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#155
|
1434
|
+
def distincts_kw_args_from_positional_hash?; end
|
1435
|
+
|
1436
|
+
# On JRuby 1.7 `--1.8` mode, `Process.respond_to?(:fork)` returns true,
|
1437
|
+
# but when you try to fork, it raises an error:
|
1438
|
+
# NotImplementedError: fork is not available on this platform
|
1439
|
+
#
|
1440
|
+
# When we drop support for JRuby 1.7 and/or Ruby 1.8, we can drop
|
1441
|
+
# this special case.
|
1442
|
+
#
|
1443
|
+
# @api private
|
1444
|
+
# @return [Boolean]
|
1445
|
+
#
|
1446
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#76
|
1447
|
+
def fork_supported?; end
|
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
|
+
|
1457
|
+
# @api private
|
1458
|
+
# @return [Boolean]
|
1459
|
+
#
|
1460
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#160
|
1461
|
+
def kw_args_supported?; end
|
1462
|
+
|
1463
|
+
# @api private
|
1464
|
+
#
|
1465
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#216
|
1466
|
+
def module_prepends_supported?; end
|
1467
|
+
|
1468
|
+
# @api private
|
1469
|
+
#
|
1470
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#212
|
1471
|
+
def module_refinement_supported?; end
|
1472
|
+
|
1473
|
+
# @api private
|
1474
|
+
#
|
1475
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#81
|
1476
|
+
def optional_and_splat_args_supported?; end
|
1477
|
+
|
1478
|
+
# @api private
|
1479
|
+
# @return [Boolean]
|
1480
|
+
#
|
1481
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#164
|
1482
|
+
def required_kw_args_supported?; end
|
1483
|
+
|
1484
|
+
# @api private
|
1485
|
+
# @return [Boolean]
|
1486
|
+
#
|
1487
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#146
|
1488
|
+
def ripper_supported?; end
|
1489
|
+
|
1490
|
+
# @api private
|
1491
|
+
# @return [Boolean]
|
1492
|
+
#
|
1493
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#90
|
1494
|
+
def supports_exception_cause?; end
|
1495
|
+
|
1496
|
+
# @api private
|
1497
|
+
# @return [Boolean]
|
1498
|
+
#
|
1499
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#168
|
1500
|
+
def supports_rebinding_module_methods?; end
|
1501
|
+
|
1502
|
+
# @api private
|
1503
|
+
# @return [Boolean]
|
1504
|
+
#
|
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
|
1512
|
+
def supports_taint?; end
|
1513
|
+
|
1514
|
+
class << self
|
1515
|
+
# @api private
|
1516
|
+
# @return [Boolean]
|
1517
|
+
#
|
1518
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#85
|
1519
|
+
def caller_locations_supported?; end
|
1520
|
+
|
1521
|
+
# @api private
|
1522
|
+
# @return [Boolean]
|
1523
|
+
#
|
1524
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#155
|
1525
|
+
def distincts_kw_args_from_positional_hash?; end
|
1526
|
+
|
1527
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#76
|
1528
|
+
def fork_supported?; end
|
1529
|
+
|
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
|
1534
|
+
def kw_args_supported?; end
|
1535
|
+
|
1536
|
+
# @api private
|
1537
|
+
# @return [Boolean]
|
1538
|
+
#
|
1539
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#216
|
1540
|
+
def module_prepends_supported?; end
|
1541
|
+
|
1542
|
+
# @api private
|
1543
|
+
# @return [Boolean]
|
1544
|
+
#
|
1545
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#212
|
1546
|
+
def module_refinement_supported?; end
|
1547
|
+
|
1548
|
+
# @api private
|
1549
|
+
# @return [Boolean]
|
1550
|
+
#
|
1551
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#81
|
1552
|
+
def optional_and_splat_args_supported?; end
|
1553
|
+
|
1554
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#164
|
1555
|
+
def required_kw_args_supported?; end
|
1556
|
+
|
1557
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#146
|
1558
|
+
def ripper_supported?; end
|
1559
|
+
|
1560
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#90
|
1561
|
+
def supports_exception_cause?; end
|
1562
|
+
|
1563
|
+
# source://rspec-support//lib/rspec/support/ruby_features.rb#168
|
1564
|
+
def supports_rebinding_module_methods?; end
|
1565
|
+
|
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
|
1570
|
+
def supports_taint?; end
|
1571
|
+
end
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
# Figures out whether a given method can accept various arguments.
|
1575
|
+
# Surprisingly non-trivial.
|
1576
|
+
#
|
1577
|
+
# @private
|
1578
|
+
#
|
1579
|
+
# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#389
|
1580
|
+
RSpec::Support::StrictSignatureVerifier = RSpec::Support::MethodSignatureVerifier
|
1581
|
+
|
1582
|
+
# source://rspec-support//lib/rspec/support/version.rb#5
|
1583
|
+
module RSpec::Support::Version; end
|
1584
|
+
|
1585
|
+
# source://rspec-support//lib/rspec/support/version.rb#6
|
1586
|
+
RSpec::Support::Version::STRING = T.let(T.unsafe(nil), String)
|
1587
|
+
|
1588
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#8
|
1589
|
+
module RSpec::Support::Warnings
|
1590
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#9
|
1591
|
+
def deprecate(deprecated, options = T.unsafe(nil)); end
|
1592
|
+
|
1593
|
+
# Used internally to print deprecation warnings
|
1594
|
+
# when rspec-core isn't loaded
|
1595
|
+
#
|
1596
|
+
# @private
|
1597
|
+
#
|
1598
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#17
|
1599
|
+
def warn_deprecation(message, options = T.unsafe(nil)); end
|
1600
|
+
|
1601
|
+
# Used internally to print longer warnings
|
1602
|
+
#
|
1603
|
+
# @private
|
1604
|
+
#
|
1605
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#31
|
1606
|
+
def warn_with(message, options = T.unsafe(nil)); end
|
1607
|
+
|
1608
|
+
# Used internally to print warnings
|
1609
|
+
#
|
1610
|
+
# @private
|
1611
|
+
#
|
1612
|
+
# source://rspec-support//lib/rspec/support/warnings.rb#24
|
1613
|
+
def warning(text, options = T.unsafe(nil)); end
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#7
|
1617
|
+
module RSpec::Support::WithKeywordsWhenNeeded
|
1618
|
+
private
|
1619
|
+
|
1620
|
+
# Remove this in RSpec 4 in favour of explicitly passed in kwargs where
|
1621
|
+
# this is used. Works around a warning in Ruby 2.7
|
1622
|
+
#
|
1623
|
+
# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#17
|
1624
|
+
def class_exec(klass, *args, **_arg2, &block); end
|
1625
|
+
|
1626
|
+
class << self
|
1627
|
+
# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#17
|
1628
|
+
def class_exec(klass, *args, **_arg2, &block); end
|
1629
|
+
end
|
1630
|
+
end
|