xtj 0.1.0
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/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +10 -0
- data/.travis.yml +11 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +57 -0
- data/LICENSE.txt +21 -0
- data/README.md +54 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/xtj/handlers/xml_handler.rb +47 -0
- data/lib/xtj/tags/xml_tag.rb +29 -0
- data/lib/xtj/version.rb +6 -0
- data/lib/xtj.rb +39 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/rake.rbi +643 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1686 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +387 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +818 -0
- data/sorbet/rbi/gems/rspec-support.rbi +268 -0
- data/sorbet/rbi/gems/rspec.rbi +14 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +2477 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +5274 -0
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8682 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/xtj.gemspec +27 -0
- metadata +115 -0
@@ -0,0 +1,387 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-expectations/all/rspec-expectations.rbi
|
9
|
+
#
|
10
|
+
# rspec-expectations-3.8.4
|
11
|
+
module RSpec
|
12
|
+
end
|
13
|
+
module RSpec::Matchers
|
14
|
+
def a_block_changing(*args, &block); end
|
15
|
+
def a_block_outputting(*args, &block); end
|
16
|
+
def a_block_raising(*args, &block); end
|
17
|
+
def a_block_throwing(*args, &block); end
|
18
|
+
def a_block_yielding_control(*args, &block); end
|
19
|
+
def a_block_yielding_successive_args(*args, &block); end
|
20
|
+
def a_block_yielding_with_args(*args, &block); end
|
21
|
+
def a_block_yielding_with_no_args(*args, &block); end
|
22
|
+
def a_collection_containing_exactly(*args, &block); end
|
23
|
+
def a_collection_ending_with(*args, &block); end
|
24
|
+
def a_collection_including(*args, &block); end
|
25
|
+
def a_collection_starting_with(*args, &block); end
|
26
|
+
def a_falsey_value(*args, &block); end
|
27
|
+
def a_falsy_value(*args, &block); end
|
28
|
+
def a_hash_including(*args, &block); end
|
29
|
+
def a_kind_of(*args, &block); end
|
30
|
+
def a_nil_value(*args, &block); end
|
31
|
+
def a_range_covering(*args, &block); end
|
32
|
+
def a_string_ending_with(*args, &block); end
|
33
|
+
def a_string_including(*args, &block); end
|
34
|
+
def a_string_matching(*args, &block); end
|
35
|
+
def a_string_starting_with(*args, &block); end
|
36
|
+
def a_truthy_value(*args, &block); end
|
37
|
+
def a_value(*args, &block); end
|
38
|
+
def a_value_between(*args, &block); end
|
39
|
+
def a_value_within(*args, &block); end
|
40
|
+
def aggregate_failures(label = nil, metadata = nil, &block); end
|
41
|
+
def all(expected); end
|
42
|
+
def an_instance_of(*args, &block); end
|
43
|
+
def an_object_eq_to(*args, &block); end
|
44
|
+
def an_object_eql_to(*args, &block); end
|
45
|
+
def an_object_equal_to(*args, &block); end
|
46
|
+
def an_object_existing(*args, &block); end
|
47
|
+
def an_object_having_attributes(*args, &block); end
|
48
|
+
def an_object_matching(*args, &block); end
|
49
|
+
def an_object_responding_to(*args, &block); end
|
50
|
+
def an_object_satisfying(*args, &block); end
|
51
|
+
def be(*args); end
|
52
|
+
def be_a(klass); end
|
53
|
+
def be_a_kind_of(expected); end
|
54
|
+
def be_an(klass); end
|
55
|
+
def be_an_instance_of(expected); end
|
56
|
+
def be_between(min, max); end
|
57
|
+
def be_falsey; end
|
58
|
+
def be_falsy(*args, &block); end
|
59
|
+
def be_instance_of(expected); end
|
60
|
+
def be_kind_of(expected); end
|
61
|
+
def be_nil; end
|
62
|
+
def be_truthy; end
|
63
|
+
def be_within(delta); end
|
64
|
+
def change(receiver = nil, message = nil, &block); end
|
65
|
+
def changing(*args, &block); end
|
66
|
+
def contain_exactly(*items); end
|
67
|
+
def containing_exactly(*args, &block); end
|
68
|
+
def cover(*values); end
|
69
|
+
def covering(*args, &block); end
|
70
|
+
def end_with(*expected); end
|
71
|
+
def ending_with(*args, &block); end
|
72
|
+
def eq(expected); end
|
73
|
+
def eq_to(*args, &block); end
|
74
|
+
def eql(expected); end
|
75
|
+
def eql_to(*args, &block); end
|
76
|
+
def equal(expected); end
|
77
|
+
def equal_to(*args, &block); end
|
78
|
+
def exist(*args); end
|
79
|
+
def existing(*args, &block); end
|
80
|
+
def expect(value = nil, &block); end
|
81
|
+
def have_attributes(expected); end
|
82
|
+
def having_attributes(*args, &block); end
|
83
|
+
def include(*expected); end
|
84
|
+
def including(*args, &block); end
|
85
|
+
def match(expected); end
|
86
|
+
def match_array(items); end
|
87
|
+
def match_regex(*args, &block); end
|
88
|
+
def matching(*args, &block); end
|
89
|
+
def method_missing(method, *args, &block); end
|
90
|
+
def output(expected = nil); end
|
91
|
+
def raise_error(error = nil, message = nil, &block); end
|
92
|
+
def raise_exception(error = nil, message = nil, &block); end
|
93
|
+
def raising(*args, &block); end
|
94
|
+
def respond_to(*names); end
|
95
|
+
def respond_to_missing?(method, *arg1); end
|
96
|
+
def responding_to(*args, &block); end
|
97
|
+
def satisfy(description = nil, &block); end
|
98
|
+
def satisfying(*args, &block); end
|
99
|
+
def self.alias_matcher(*args, &block); end
|
100
|
+
def self.clear_generated_description; end
|
101
|
+
def self.configuration; end
|
102
|
+
def self.generated_description; end
|
103
|
+
def self.is_a_describable_matcher?(obj); end
|
104
|
+
def self.is_a_matcher?(obj); end
|
105
|
+
def self.last_description; end
|
106
|
+
def self.last_expectation_handler; end
|
107
|
+
def self.last_expectation_handler=(arg0); end
|
108
|
+
def self.last_matcher; end
|
109
|
+
def self.last_matcher=(arg0); end
|
110
|
+
def start_with(*expected); end
|
111
|
+
def starting_with(*args, &block); end
|
112
|
+
def throw_symbol(expected_symbol = nil, expected_arg = nil); end
|
113
|
+
def throwing(*args, &block); end
|
114
|
+
def within(*args, &block); end
|
115
|
+
def yield_control; end
|
116
|
+
def yield_successive_args(*args); end
|
117
|
+
def yield_with_args(*args); end
|
118
|
+
def yield_with_no_args; end
|
119
|
+
def yielding_control(*args, &block); end
|
120
|
+
def yielding_successive_args(*args, &block); end
|
121
|
+
def yielding_with_args(*args, &block); end
|
122
|
+
def yielding_with_no_args(*args, &block); end
|
123
|
+
extend RSpec::Matchers::DSL
|
124
|
+
end
|
125
|
+
module RSpec::Matchers::EnglishPhrasing
|
126
|
+
def self.list(obj); end
|
127
|
+
def self.split_words(sym); end
|
128
|
+
end
|
129
|
+
module RSpec::Matchers::Composable
|
130
|
+
def &(matcher); end
|
131
|
+
def ===(value); end
|
132
|
+
def and(matcher); end
|
133
|
+
def description_of(object); end
|
134
|
+
def or(matcher); end
|
135
|
+
def self.should_enumerate?(item); end
|
136
|
+
def self.surface_descriptions_in(item); end
|
137
|
+
def self.unreadable_io?(object); end
|
138
|
+
def should_enumerate?(item); end
|
139
|
+
def surface_descriptions_in(item); end
|
140
|
+
def unreadable_io?(object); end
|
141
|
+
def values_match?(expected, actual); end
|
142
|
+
def with_matchers_cloned(object); end
|
143
|
+
def |(matcher); end
|
144
|
+
end
|
145
|
+
class RSpec::Matchers::Composable::DescribableItem < Struct
|
146
|
+
def inspect; end
|
147
|
+
def item; end
|
148
|
+
def item=(_); end
|
149
|
+
def pretty_print(pp); end
|
150
|
+
def self.[](*arg0); end
|
151
|
+
def self.inspect; end
|
152
|
+
def self.members; end
|
153
|
+
def self.new(*arg0); end
|
154
|
+
end
|
155
|
+
module RSpec::Matchers::BuiltIn
|
156
|
+
end
|
157
|
+
class RSpec::Matchers::BuiltIn::BaseMatcher
|
158
|
+
def actual; end
|
159
|
+
def actual_formatted; end
|
160
|
+
def assert_ivars(*expected_ivars); end
|
161
|
+
def description; end
|
162
|
+
def diffable?; end
|
163
|
+
def expected; end
|
164
|
+
def expected_formatted; end
|
165
|
+
def expects_call_stack_jump?; end
|
166
|
+
def initialize(expected = nil); end
|
167
|
+
def match_unless_raises(*exceptions); end
|
168
|
+
def matcher_name; end
|
169
|
+
def matcher_name=(arg0); end
|
170
|
+
def matches?(actual); end
|
171
|
+
def present_ivars; end
|
172
|
+
def rescued_exception; end
|
173
|
+
def self.matcher_name; end
|
174
|
+
def self.underscore(camel_cased_word); end
|
175
|
+
def supports_block_expectations?; end
|
176
|
+
include RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
177
|
+
include RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
|
178
|
+
include RSpec::Matchers::Composable
|
179
|
+
end
|
180
|
+
module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
|
181
|
+
def improve_hash_formatting(inspect_string); end
|
182
|
+
def self.improve_hash_formatting(inspect_string); end
|
183
|
+
end
|
184
|
+
module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
185
|
+
def failure_message; end
|
186
|
+
def failure_message_when_negated; end
|
187
|
+
def self.has_default_failure_messages?(matcher); end
|
188
|
+
end
|
189
|
+
module RSpec::Matchers::DSL
|
190
|
+
def alias_matcher(new_name, old_name, options = nil, &description_override); end
|
191
|
+
def define(name, &declarations); end
|
192
|
+
def define_negated_matcher(negated_name, base_name, &description_override); end
|
193
|
+
def matcher(name, &declarations); end
|
194
|
+
def warn_about_block_args(name, declarations); end
|
195
|
+
end
|
196
|
+
module RSpec::Matchers::DSL::Macros
|
197
|
+
def assign_attributes(attr_names); end
|
198
|
+
def chain(method_name, *attr_names, &definition); end
|
199
|
+
def define_user_override(method_name, user_def, &our_def); end
|
200
|
+
def description(&definition); end
|
201
|
+
def diffable; end
|
202
|
+
def failure_message(&definition); end
|
203
|
+
def failure_message_when_negated(&definition); end
|
204
|
+
def match(options = nil, &match_block); end
|
205
|
+
def match_unless_raises(expected_exception = nil, &match_block); end
|
206
|
+
def match_when_negated(&match_block); end
|
207
|
+
def supports_block_expectations; end
|
208
|
+
end
|
209
|
+
module RSpec::Matchers::DSL::Macros::Deprecated
|
210
|
+
def failure_message_for_should(&definition); end
|
211
|
+
def failure_message_for_should_not(&definition); end
|
212
|
+
def match_for_should(&definition); end
|
213
|
+
def match_for_should_not(&definition); end
|
214
|
+
end
|
215
|
+
module RSpec::Matchers::DSL::DefaultImplementations
|
216
|
+
def chained_method_clause_sentences; end
|
217
|
+
def description; end
|
218
|
+
def diffable?; end
|
219
|
+
def expects_call_stack_jump?; end
|
220
|
+
def supports_block_expectations?; end
|
221
|
+
include RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
|
222
|
+
end
|
223
|
+
class RSpec::Matchers::DSL::Matcher
|
224
|
+
def actual; end
|
225
|
+
def actual_arg_for(block); end
|
226
|
+
def block_arg; end
|
227
|
+
def expected; end
|
228
|
+
def expected_as_array; end
|
229
|
+
def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end
|
230
|
+
def inspect; end
|
231
|
+
def method_missing(method, *args, &block); end
|
232
|
+
def name; end
|
233
|
+
def rescued_exception; end
|
234
|
+
def respond_to_missing?(method, include_private = nil); end
|
235
|
+
extend RSpec::Matchers::DSL::Macros
|
236
|
+
extend RSpec::Matchers::DSL::Macros::Deprecated
|
237
|
+
include RSpec::Matchers
|
238
|
+
include RSpec::Matchers::Composable
|
239
|
+
include RSpec::Matchers::DSL::DefaultImplementations
|
240
|
+
end
|
241
|
+
class RSpec::Matchers::MatcherDelegator
|
242
|
+
def base_matcher; end
|
243
|
+
def initialize(base_matcher); end
|
244
|
+
def initialize_copy(other); end
|
245
|
+
def method_missing(*args, &block); end
|
246
|
+
def respond_to_missing?(name, include_all = nil); end
|
247
|
+
include RSpec::Matchers::Composable
|
248
|
+
end
|
249
|
+
class RSpec::Matchers::AliasedMatcher < RSpec::Matchers::MatcherDelegator
|
250
|
+
def description; end
|
251
|
+
def failure_message; end
|
252
|
+
def failure_message_when_negated; end
|
253
|
+
def initialize(base_matcher, description_block); end
|
254
|
+
def method_missing(*arg0); end
|
255
|
+
end
|
256
|
+
class RSpec::Matchers::AliasedMatcherWithOperatorSupport < RSpec::Matchers::AliasedMatcher
|
257
|
+
end
|
258
|
+
class RSpec::Matchers::AliasedNegatedMatcher < RSpec::Matchers::AliasedMatcher
|
259
|
+
def does_not_match?(*args, &block); end
|
260
|
+
def failure_message; end
|
261
|
+
def failure_message_when_negated; end
|
262
|
+
def matches?(*args, &block); end
|
263
|
+
def optimal_failure_message(same, inverted); end
|
264
|
+
end
|
265
|
+
class RSpec::Matchers::ExpectedsForMultipleDiffs
|
266
|
+
def diffs(differ, actual); end
|
267
|
+
def initialize(expected_list); end
|
268
|
+
def message_with_diff(message, differ, actual); end
|
269
|
+
def self.diff_label_for(matcher); end
|
270
|
+
def self.for_many_matchers(matchers); end
|
271
|
+
def self.from(expected); end
|
272
|
+
def self.truncated(description); end
|
273
|
+
end
|
274
|
+
module RSpec::Support
|
275
|
+
def self.require_rspec_expectations(f); end
|
276
|
+
def self.require_rspec_matchers(f); end
|
277
|
+
end
|
278
|
+
module RSpec::Expectations
|
279
|
+
def self.configuration; end
|
280
|
+
def self.differ; end
|
281
|
+
def self.fail_with(message, expected = nil, actual = nil); end
|
282
|
+
end
|
283
|
+
class RSpec::Expectations::ExpectationTarget
|
284
|
+
def initialize(value); end
|
285
|
+
def self.for(value, block); end
|
286
|
+
def target; end
|
287
|
+
include RSpec::Expectations::ExpectationTarget::InstanceMethods
|
288
|
+
end
|
289
|
+
module RSpec::Expectations::ExpectationTarget::UndefinedValue
|
290
|
+
end
|
291
|
+
module RSpec::Expectations::ExpectationTarget::InstanceMethods
|
292
|
+
def not_to(matcher = nil, message = nil, &block); end
|
293
|
+
def prevent_operator_matchers(verb); end
|
294
|
+
def to(matcher = nil, message = nil, &block); end
|
295
|
+
def to_not(matcher = nil, message = nil, &block); end
|
296
|
+
end
|
297
|
+
class RSpec::Expectations::BlockExpectationTarget < RSpec::Expectations::ExpectationTarget
|
298
|
+
def enforce_block_expectation(matcher); end
|
299
|
+
def not_to(matcher, message = nil, &block); end
|
300
|
+
def supports_block_expectations?(matcher); end
|
301
|
+
def to(matcher, message = nil, &block); end
|
302
|
+
def to_not(matcher, message = nil, &block); end
|
303
|
+
end
|
304
|
+
module RSpec::Expectations::Syntax
|
305
|
+
def default_should_host; end
|
306
|
+
def disable_expect(syntax_host = nil); end
|
307
|
+
def disable_should(syntax_host = nil); end
|
308
|
+
def enable_expect(syntax_host = nil); end
|
309
|
+
def enable_should(syntax_host = nil); end
|
310
|
+
def expect_enabled?(syntax_host = nil); end
|
311
|
+
def self.default_should_host; end
|
312
|
+
def self.disable_expect(syntax_host = nil); end
|
313
|
+
def self.disable_should(syntax_host = nil); end
|
314
|
+
def self.enable_expect(syntax_host = nil); end
|
315
|
+
def self.enable_should(syntax_host = nil); end
|
316
|
+
def self.expect_enabled?(syntax_host = nil); end
|
317
|
+
def self.should_enabled?(syntax_host = nil); end
|
318
|
+
def self.warn_about_should!; end
|
319
|
+
def self.warn_about_should_unless_configured(method_name); end
|
320
|
+
def should_enabled?(syntax_host = nil); end
|
321
|
+
def warn_about_should!; end
|
322
|
+
def warn_about_should_unless_configured(method_name); end
|
323
|
+
end
|
324
|
+
class BasicObject
|
325
|
+
end
|
326
|
+
class RSpec::Expectations::Configuration
|
327
|
+
def add_should_and_should_not_to(*modules); end
|
328
|
+
def backtrace_formatter; end
|
329
|
+
def backtrace_formatter=(arg0); end
|
330
|
+
def color?; end
|
331
|
+
def false_positives_handler; end
|
332
|
+
def include_chain_clauses_in_custom_matcher_descriptions=(arg0); end
|
333
|
+
def include_chain_clauses_in_custom_matcher_descriptions?; end
|
334
|
+
def initialize; end
|
335
|
+
def max_formatted_output_length=(length); end
|
336
|
+
def on_potential_false_positives; end
|
337
|
+
def on_potential_false_positives=(behavior); end
|
338
|
+
def reset_syntaxes_to_default; end
|
339
|
+
def syntax; end
|
340
|
+
def syntax=(values); end
|
341
|
+
def warn_about_potential_false_positives=(boolean); end
|
342
|
+
def warn_about_potential_false_positives?; end
|
343
|
+
end
|
344
|
+
module RSpec::Expectations::Configuration::NullBacktraceFormatter
|
345
|
+
def self.format_backtrace(backtrace); end
|
346
|
+
end
|
347
|
+
class InvalidName___Class_0x00___Differ_1
|
348
|
+
end
|
349
|
+
module RSpec::Expectations::ExpectationHelper
|
350
|
+
def self.check_message(msg); end
|
351
|
+
def self.handle_failure(matcher, message, failure_message_method); end
|
352
|
+
def self.modern_matcher_from(matcher); end
|
353
|
+
def self.with_matcher(handler, matcher, message); end
|
354
|
+
end
|
355
|
+
class RSpec::Expectations::PositiveExpectationHandler
|
356
|
+
def self.handle_matcher(actual, initial_matcher, message = nil, &block); end
|
357
|
+
def self.opposite_should_method; end
|
358
|
+
def self.should_method; end
|
359
|
+
def self.verb; end
|
360
|
+
end
|
361
|
+
class RSpec::Expectations::NegativeExpectationHandler
|
362
|
+
def self.does_not_match?(matcher, actual, &block); end
|
363
|
+
def self.handle_matcher(actual, initial_matcher, message = nil, &block); end
|
364
|
+
def self.opposite_should_method; end
|
365
|
+
def self.should_method; end
|
366
|
+
def self.verb; end
|
367
|
+
end
|
368
|
+
class RSpec::Expectations::LegacyMatcherAdapter < RSpec::Matchers::MatcherDelegator
|
369
|
+
def initialize(matcher); end
|
370
|
+
def self.wrap(matcher); end
|
371
|
+
end
|
372
|
+
class RSpec::Expectations::LegacyMatcherAdapter::RSpec2 < RSpec::Expectations::LegacyMatcherAdapter
|
373
|
+
def failure_message; end
|
374
|
+
def failure_message_when_negated; end
|
375
|
+
def self.interface_matches?(matcher); end
|
376
|
+
end
|
377
|
+
class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < RSpec::Expectations::LegacyMatcherAdapter
|
378
|
+
def failure_message; end
|
379
|
+
def failure_message_when_negated; end
|
380
|
+
def self.interface_matches?(matcher); end
|
381
|
+
end
|
382
|
+
module RSpec::Expectations::Version
|
383
|
+
end
|
384
|
+
class RSpec::Expectations::ExpectationNotMetError < Exception
|
385
|
+
end
|
386
|
+
class RSpec::Expectations::MultipleExpectationsNotMetError < RSpec::Expectations::ExpectationNotMetError
|
387
|
+
end
|