workos 4.1.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +37 -0
- data/.github/workflows/release.yml +43 -0
- data/.rubocop.yml +8 -1
- data/Gemfile.lock +22 -69
- data/lib/workos/audit_log_export.rb +8 -31
- data/lib/workos/audit_logs.rb +0 -26
- data/lib/workos/authentication_factor_and_challenge.rb +0 -3
- data/lib/workos/authentication_response.rb +3 -6
- data/lib/workos/challenge.rb +9 -28
- data/lib/workos/client.rb +0 -41
- data/lib/workos/configuration.rb +0 -1
- data/lib/workos/connection.rb +11 -35
- data/lib/workos/directory.rb +10 -37
- data/lib/workos/directory_group.rb +9 -36
- data/lib/workos/directory_sync.rb +0 -21
- data/lib/workos/directory_user.rb +17 -51
- data/lib/workos/errors.rb +0 -16
- data/lib/workos/event.rb +5 -26
- data/lib/workos/events.rb +0 -7
- data/lib/workos/factor.rb +9 -28
- data/lib/workos/hash_provider.rb +0 -1
- data/lib/workos/impersonator.rb +0 -3
- data/lib/workos/invitation.rb +12 -37
- data/lib/workos/mfa.rb +0 -42
- data/lib/workos/organization.rb +8 -31
- data/lib/workos/organization_membership.rb +8 -27
- data/lib/workos/organizations.rb +0 -26
- data/lib/workos/passwordless.rb +0 -14
- data/lib/workos/portal.rb +1 -13
- data/lib/workos/profile.rb +12 -39
- data/lib/workos/profile_and_token.rb +1 -4
- data/lib/workos/refresh_authentication_response.rb +2 -5
- data/lib/workos/sso.rb +1 -43
- data/lib/workos/types/intent.rb +16 -0
- data/lib/workos/types/list_struct.rb +8 -5
- data/lib/workos/types/passwordless_session_struct.rb +10 -9
- data/lib/workos/types/provider.rb +15 -0
- data/lib/workos/types.rb +5 -23
- data/lib/workos/user.rb +10 -31
- data/lib/workos/user_and_token.rb +1 -4
- data/lib/workos/user_management.rb +36 -244
- data/lib/workos/user_response.rb +0 -3
- data/lib/workos/verify_challenge.rb +4 -18
- data/lib/workos/version.rb +1 -2
- data/lib/workos/webhook.rb +5 -26
- data/lib/workos/webhooks.rb +1 -38
- data/lib/workos.rb +0 -2
- data/spec/lib/workos/audit_logs_spec.rb +2 -3
- data/spec/lib/workos/configuration_spec.rb +0 -1
- data/spec/lib/workos/directory_sync_spec.rb +0 -1
- data/spec/lib/workos/directory_user_spec.rb +0 -1
- data/spec/lib/workos/event_spec.rb +0 -1
- data/spec/lib/workos/mfa_spec.rb +0 -1
- data/spec/lib/workos/organizations_spec.rb +0 -1
- data/spec/lib/workos/passwordless_spec.rb +0 -1
- data/spec/lib/workos/portal_spec.rb +0 -1
- data/spec/lib/workos/sso_spec.rb +0 -1
- data/spec/lib/workos/user_management_spec.rb +29 -1
- data/spec/lib/workos/webhooks_spec.rb +0 -1
- data/spec/spec_helper.rb +0 -9
- data/spec/support/fixtures/vcr_cassettes/user_management/revoke_session/not_found.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/revoke_session/valid.yml +76 -0
- data/spec/support/shared_examples/client_spec.rb +0 -1
- data/workos.gemspec +1 -6
- metadata +15 -129
- data/.semaphore/rubygems.yml +0 -24
- data/.semaphore/semaphore.yml +0 -51
- data/bin/tapioca +0 -29
- data/codecov.yml +0 -12
- data/devbox.json +0 -18
- data/devbox.lock +0 -11
- data/lib/workos/types/audit_log_export_struct.rb +0 -17
- data/lib/workos/types/challenge_struct.rb +0 -18
- data/lib/workos/types/connection_struct.rb +0 -20
- data/lib/workos/types/directory_group_struct.rb +0 -19
- data/lib/workos/types/directory_struct.rb +0 -19
- data/lib/workos/types/directory_user_struct.rb +0 -26
- data/lib/workos/types/event_struct.rb +0 -15
- data/lib/workos/types/factor_struct.rb +0 -18
- data/lib/workos/types/intent_enum.rb +0 -17
- data/lib/workos/types/invitation_struct.rb +0 -20
- data/lib/workos/types/magic_auth_challenge_struct.rb +0 -12
- data/lib/workos/types/organization_membership_struct.rb +0 -16
- data/lib/workos/types/organization_struct.rb +0 -17
- data/lib/workos/types/profile_struct.rb +0 -21
- data/lib/workos/types/provider_enum.rb +0 -16
- data/lib/workos/types/user_struct.rb +0 -18
- data/lib/workos/types/verify_challenge_struct.rb +0 -13
- data/lib/workos/types/webhook_struct.rb +0 -15
- data/sorbet/config +0 -2
- data/sorbet/rbi/gems/addressable@2.8.0.rbi +0 -290
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
- data/sorbet/rbi/gems/codecov@0.2.12.rbi +0 -55
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -57
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
- data/sorbet/rbi/gems/docile@1.3.5.rbi +0 -54
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -82
- data/sorbet/rbi/gems/json@2.5.1.rbi +0 -109
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
- data/sorbet/rbi/gems/parser@3.0.1.0.rbi +0 -1187
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -8
- data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +0 -146
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
- data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -807
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -2118
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1117
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -709
- data/sorbet/rbi/gems/rspec-core@3.9.3.rbi +0 -2467
- data/sorbet/rbi/gems/rspec-expectations@3.9.4.rbi +0 -1569
- data/sorbet/rbi/gems/rspec-mocks@3.9.1.rbi +0 -1493
- data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +0 -511
- data/sorbet/rbi/gems/rspec@3.9.0.rbi +0 -38
- data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -1881
- data/sorbet/rbi/gems/rubocop@0.93.1.rbi +0 -11497
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +0 -1549
- data/sorbet/rbi/gems/tapioca@0.7.3.rbi +0 -1718
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -844
- data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +0 -22
- data/sorbet/rbi/gems/unparser@0.6.2.rbi +0 -8
- data/sorbet/rbi/gems/vcr@5.0.0.rbi +0 -699
- data/sorbet/rbi/gems/webmock@3.12.2.rbi +0 -662
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +0 -268
- data/sorbet/rbi/gems/yard@0.9.26.rbi +0 -4048
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
@@ -1,709 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `rexml` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem rexml`.
|
6
|
-
|
7
|
-
class REXML::AttlistDecl < ::REXML::Child
|
8
|
-
include ::Enumerable
|
9
|
-
|
10
|
-
def initialize(source); end
|
11
|
-
|
12
|
-
def [](key); end
|
13
|
-
def each(&block); end
|
14
|
-
def element_name; end
|
15
|
-
def include?(key); end
|
16
|
-
def node_type; end
|
17
|
-
def write(out, indent = T.unsafe(nil)); end
|
18
|
-
end
|
19
|
-
|
20
|
-
class REXML::Attribute
|
21
|
-
include ::REXML::Node
|
22
|
-
include ::REXML::XMLTokens
|
23
|
-
include ::REXML::Namespace
|
24
|
-
|
25
|
-
def initialize(first, second = T.unsafe(nil), parent = T.unsafe(nil)); end
|
26
|
-
|
27
|
-
def ==(other); end
|
28
|
-
def clone; end
|
29
|
-
def doctype; end
|
30
|
-
def element; end
|
31
|
-
def element=(element); end
|
32
|
-
def hash; end
|
33
|
-
def inspect; end
|
34
|
-
def namespace(arg = T.unsafe(nil)); end
|
35
|
-
def node_type; end
|
36
|
-
def normalized=(_arg0); end
|
37
|
-
def prefix; end
|
38
|
-
def remove; end
|
39
|
-
def to_s; end
|
40
|
-
def to_string; end
|
41
|
-
def value; end
|
42
|
-
def write(output, indent = T.unsafe(nil)); end
|
43
|
-
def xpath; end
|
44
|
-
end
|
45
|
-
|
46
|
-
class REXML::Attributes < ::Hash
|
47
|
-
def initialize(element); end
|
48
|
-
|
49
|
-
def <<(attribute); end
|
50
|
-
def [](name); end
|
51
|
-
def []=(name, value); end
|
52
|
-
def add(attribute); end
|
53
|
-
def delete(attribute); end
|
54
|
-
def delete_all(name); end
|
55
|
-
def each; end
|
56
|
-
def each_attribute; end
|
57
|
-
def get_attribute(name); end
|
58
|
-
def get_attribute_ns(namespace, name); end
|
59
|
-
def length; end
|
60
|
-
def namespaces; end
|
61
|
-
def prefixes; end
|
62
|
-
def size; end
|
63
|
-
def to_a; end
|
64
|
-
end
|
65
|
-
|
66
|
-
class REXML::CData < ::REXML::Text
|
67
|
-
def initialize(first, whitespace = T.unsafe(nil), parent = T.unsafe(nil)); end
|
68
|
-
|
69
|
-
def clone; end
|
70
|
-
def to_s; end
|
71
|
-
def value; end
|
72
|
-
def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
73
|
-
end
|
74
|
-
|
75
|
-
class REXML::Child
|
76
|
-
include ::REXML::Node
|
77
|
-
|
78
|
-
def initialize(parent = T.unsafe(nil)); end
|
79
|
-
|
80
|
-
def bytes; end
|
81
|
-
def document; end
|
82
|
-
def next_sibling; end
|
83
|
-
def next_sibling=(other); end
|
84
|
-
def parent; end
|
85
|
-
def parent=(other); end
|
86
|
-
def previous_sibling; end
|
87
|
-
def previous_sibling=(other); end
|
88
|
-
def remove; end
|
89
|
-
def replace_with(child); end
|
90
|
-
end
|
91
|
-
|
92
|
-
class REXML::Comment < ::REXML::Child
|
93
|
-
include ::Comparable
|
94
|
-
|
95
|
-
def initialize(first, second = T.unsafe(nil)); end
|
96
|
-
|
97
|
-
def <=>(other); end
|
98
|
-
def ==(other); end
|
99
|
-
def clone; end
|
100
|
-
def node_type; end
|
101
|
-
def string; end
|
102
|
-
def string=(_arg0); end
|
103
|
-
def to_s; end
|
104
|
-
def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
105
|
-
end
|
106
|
-
|
107
|
-
module REXML::DClonable; end
|
108
|
-
|
109
|
-
class REXML::Declaration < ::REXML::Child
|
110
|
-
def initialize(src); end
|
111
|
-
|
112
|
-
def to_s; end
|
113
|
-
def write(output, indent); end
|
114
|
-
end
|
115
|
-
|
116
|
-
class REXML::DocType < ::REXML::Parent
|
117
|
-
include ::REXML::XMLTokens
|
118
|
-
|
119
|
-
def initialize(first, parent = T.unsafe(nil)); end
|
120
|
-
|
121
|
-
def add(child); end
|
122
|
-
def attribute_of(element, attribute); end
|
123
|
-
def attributes_of(element); end
|
124
|
-
def clone; end
|
125
|
-
def context; end
|
126
|
-
def entities; end
|
127
|
-
def entity(name); end
|
128
|
-
def external_id; end
|
129
|
-
def name; end
|
130
|
-
def namespaces; end
|
131
|
-
def node_type; end
|
132
|
-
def notation(name); end
|
133
|
-
def notations; end
|
134
|
-
def public; end
|
135
|
-
def system; end
|
136
|
-
def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
137
|
-
end
|
138
|
-
|
139
|
-
class REXML::Document < ::REXML::Element
|
140
|
-
def initialize(source = T.unsafe(nil), context = T.unsafe(nil)); end
|
141
|
-
|
142
|
-
def <<(child); end
|
143
|
-
def add(child); end
|
144
|
-
def add_element(arg = T.unsafe(nil), arg2 = T.unsafe(nil)); end
|
145
|
-
def clone; end
|
146
|
-
def doctype; end
|
147
|
-
def document; end
|
148
|
-
def encoding; end
|
149
|
-
def entity_expansion_count; end
|
150
|
-
def expanded_name; end
|
151
|
-
def name; end
|
152
|
-
def node_type; end
|
153
|
-
def record_entity_expansion; end
|
154
|
-
def root; end
|
155
|
-
def stand_alone?; end
|
156
|
-
def version; end
|
157
|
-
def write(*arguments); end
|
158
|
-
def xml_decl; end
|
159
|
-
|
160
|
-
private
|
161
|
-
|
162
|
-
def build(source); end
|
163
|
-
|
164
|
-
class << self
|
165
|
-
def entity_expansion_limit; end
|
166
|
-
def entity_expansion_limit=(val); end
|
167
|
-
def entity_expansion_text_limit; end
|
168
|
-
def entity_expansion_text_limit=(val); end
|
169
|
-
def parse_stream(source, listener); end
|
170
|
-
end
|
171
|
-
end
|
172
|
-
|
173
|
-
class REXML::Element < ::REXML::Parent
|
174
|
-
include ::REXML::XMLTokens
|
175
|
-
include ::REXML::Namespace
|
176
|
-
|
177
|
-
def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end
|
178
|
-
|
179
|
-
def [](name_or_index); end
|
180
|
-
def add_attribute(key, value = T.unsafe(nil)); end
|
181
|
-
def add_attributes(hash); end
|
182
|
-
def add_element(element, attrs = T.unsafe(nil)); end
|
183
|
-
def add_namespace(prefix, uri = T.unsafe(nil)); end
|
184
|
-
def add_text(text); end
|
185
|
-
def attribute(name, namespace = T.unsafe(nil)); end
|
186
|
-
def attributes; end
|
187
|
-
def cdatas; end
|
188
|
-
def clone; end
|
189
|
-
def comments; end
|
190
|
-
def context; end
|
191
|
-
def context=(_arg0); end
|
192
|
-
def delete_attribute(key); end
|
193
|
-
def delete_element(element); end
|
194
|
-
def delete_namespace(namespace = T.unsafe(nil)); end
|
195
|
-
def document; end
|
196
|
-
def each_element(xpath = T.unsafe(nil), &block); end
|
197
|
-
def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
198
|
-
def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
199
|
-
def elements; end
|
200
|
-
def get_elements(xpath); end
|
201
|
-
def get_text(path = T.unsafe(nil)); end
|
202
|
-
def has_attributes?; end
|
203
|
-
def has_elements?; end
|
204
|
-
def has_text?; end
|
205
|
-
def ignore_whitespace_nodes; end
|
206
|
-
def inspect; end
|
207
|
-
def instructions; end
|
208
|
-
def namespace(prefix = T.unsafe(nil)); end
|
209
|
-
def namespaces; end
|
210
|
-
def next_element; end
|
211
|
-
def node_type; end
|
212
|
-
def prefixes; end
|
213
|
-
def previous_element; end
|
214
|
-
def raw; end
|
215
|
-
def root; end
|
216
|
-
def root_node; end
|
217
|
-
def text(path = T.unsafe(nil)); end
|
218
|
-
def text=(text); end
|
219
|
-
def texts; end
|
220
|
-
def whitespace; end
|
221
|
-
def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
222
|
-
def xpath; end
|
223
|
-
|
224
|
-
private
|
225
|
-
|
226
|
-
def __to_xpath_helper(node); end
|
227
|
-
def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end
|
228
|
-
end
|
229
|
-
|
230
|
-
class REXML::ElementDecl < ::REXML::Declaration
|
231
|
-
def initialize(src); end
|
232
|
-
end
|
233
|
-
|
234
|
-
class REXML::Elements
|
235
|
-
include ::Enumerable
|
236
|
-
|
237
|
-
def initialize(parent); end
|
238
|
-
|
239
|
-
def <<(element = T.unsafe(nil)); end
|
240
|
-
def [](index, name = T.unsafe(nil)); end
|
241
|
-
def []=(index, element); end
|
242
|
-
def add(element = T.unsafe(nil)); end
|
243
|
-
def collect(xpath = T.unsafe(nil)); end
|
244
|
-
def delete(element); end
|
245
|
-
def delete_all(xpath); end
|
246
|
-
def each(xpath = T.unsafe(nil)); end
|
247
|
-
def empty?; end
|
248
|
-
def index(element); end
|
249
|
-
def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end
|
250
|
-
def parent; end
|
251
|
-
def size; end
|
252
|
-
def to_a(xpath = T.unsafe(nil)); end
|
253
|
-
|
254
|
-
private
|
255
|
-
|
256
|
-
def literalize(name); end
|
257
|
-
end
|
258
|
-
|
259
|
-
module REXML::Encoding
|
260
|
-
def decode(string); end
|
261
|
-
def encode(string); end
|
262
|
-
def encoding; end
|
263
|
-
def encoding=(encoding); end
|
264
|
-
|
265
|
-
private
|
266
|
-
|
267
|
-
def find_encoding(name); end
|
268
|
-
end
|
269
|
-
|
270
|
-
class REXML::Entity < ::REXML::Child
|
271
|
-
include ::REXML::XMLTokens
|
272
|
-
|
273
|
-
def initialize(stream, value = T.unsafe(nil), parent = T.unsafe(nil), reference = T.unsafe(nil)); end
|
274
|
-
|
275
|
-
def external; end
|
276
|
-
def name; end
|
277
|
-
def ndata; end
|
278
|
-
def normalized; end
|
279
|
-
def pubid; end
|
280
|
-
def ref; end
|
281
|
-
def to_s; end
|
282
|
-
def unnormalized; end
|
283
|
-
def value; end
|
284
|
-
def write(out, indent = T.unsafe(nil)); end
|
285
|
-
|
286
|
-
class << self
|
287
|
-
def matches?(string); end
|
288
|
-
end
|
289
|
-
end
|
290
|
-
|
291
|
-
class REXML::ExternalEntity < ::REXML::Child
|
292
|
-
def initialize(src); end
|
293
|
-
|
294
|
-
def to_s; end
|
295
|
-
def write(output, indent); end
|
296
|
-
end
|
297
|
-
|
298
|
-
class REXML::Formatters::Default
|
299
|
-
def initialize(ie_hack = T.unsafe(nil)); end
|
300
|
-
|
301
|
-
def write(node, output); end
|
302
|
-
|
303
|
-
protected
|
304
|
-
|
305
|
-
def write_cdata(node, output); end
|
306
|
-
def write_comment(node, output); end
|
307
|
-
def write_document(node, output); end
|
308
|
-
def write_element(node, output); end
|
309
|
-
def write_instruction(node, output); end
|
310
|
-
def write_text(node, output); end
|
311
|
-
end
|
312
|
-
|
313
|
-
class REXML::Formatters::Pretty < ::REXML::Formatters::Default
|
314
|
-
def initialize(indentation = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
315
|
-
|
316
|
-
def compact; end
|
317
|
-
def compact=(_arg0); end
|
318
|
-
def width; end
|
319
|
-
def width=(_arg0); end
|
320
|
-
|
321
|
-
protected
|
322
|
-
|
323
|
-
def write_cdata(node, output); end
|
324
|
-
def write_comment(node, output); end
|
325
|
-
def write_document(node, output); end
|
326
|
-
def write_element(node, output); end
|
327
|
-
def write_text(node, output); end
|
328
|
-
|
329
|
-
private
|
330
|
-
|
331
|
-
def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
|
332
|
-
def wrap(string, width); end
|
333
|
-
end
|
334
|
-
|
335
|
-
class REXML::IOSource < ::REXML::Source
|
336
|
-
def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end
|
337
|
-
|
338
|
-
def consume(pattern); end
|
339
|
-
def current_line; end
|
340
|
-
def empty?; end
|
341
|
-
def match(pattern, cons = T.unsafe(nil)); end
|
342
|
-
def position; end
|
343
|
-
def read; end
|
344
|
-
def scan(pattern, cons = T.unsafe(nil)); end
|
345
|
-
|
346
|
-
private
|
347
|
-
|
348
|
-
def encoding_updated; end
|
349
|
-
def readline; end
|
350
|
-
end
|
351
|
-
|
352
|
-
class REXML::Instruction < ::REXML::Child
|
353
|
-
def initialize(target, content = T.unsafe(nil)); end
|
354
|
-
|
355
|
-
def ==(other); end
|
356
|
-
def clone; end
|
357
|
-
def content; end
|
358
|
-
def content=(_arg0); end
|
359
|
-
def inspect; end
|
360
|
-
def node_type; end
|
361
|
-
def target; end
|
362
|
-
def target=(_arg0); end
|
363
|
-
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
364
|
-
end
|
365
|
-
|
366
|
-
module REXML::Light; end
|
367
|
-
|
368
|
-
class REXML::Light::Node
|
369
|
-
def initialize(node = T.unsafe(nil)); end
|
370
|
-
|
371
|
-
def <<(element); end
|
372
|
-
def =~(path); end
|
373
|
-
def [](reference, ns = T.unsafe(nil)); end
|
374
|
-
def []=(reference, ns, value = T.unsafe(nil)); end
|
375
|
-
def children; end
|
376
|
-
def each; end
|
377
|
-
def has_name?(name, namespace = T.unsafe(nil)); end
|
378
|
-
def local_name; end
|
379
|
-
def local_name=(name_str); end
|
380
|
-
def name; end
|
381
|
-
def name=(name_str, ns = T.unsafe(nil)); end
|
382
|
-
def namespace(prefix = T.unsafe(nil)); end
|
383
|
-
def namespace=(namespace); end
|
384
|
-
def node_type; end
|
385
|
-
def parent; end
|
386
|
-
def parent=(node); end
|
387
|
-
def prefix(namespace = T.unsafe(nil)); end
|
388
|
-
def root; end
|
389
|
-
def size; end
|
390
|
-
def text=(foo); end
|
391
|
-
def to_s; end
|
392
|
-
|
393
|
-
private
|
394
|
-
|
395
|
-
def namespace_of(node, prefix = T.unsafe(nil)); end
|
396
|
-
def namesplit; end
|
397
|
-
def prefix_of(node, namespace = T.unsafe(nil)); end
|
398
|
-
end
|
399
|
-
|
400
|
-
REXML::Light::Node::NAMESPLIT = T.let(T.unsafe(nil), Regexp)
|
401
|
-
REXML::Light::Node::PARENTS = T.let(T.unsafe(nil), Array)
|
402
|
-
|
403
|
-
class REXML::NotationDecl < ::REXML::Child
|
404
|
-
def initialize(name, middle, pub, sys); end
|
405
|
-
|
406
|
-
def name; end
|
407
|
-
def public; end
|
408
|
-
def public=(_arg0); end
|
409
|
-
def system; end
|
410
|
-
def system=(_arg0); end
|
411
|
-
def to_s; end
|
412
|
-
def write(output, indent = T.unsafe(nil)); end
|
413
|
-
end
|
414
|
-
|
415
|
-
class REXML::Output
|
416
|
-
include ::REXML::Encoding
|
417
|
-
|
418
|
-
def initialize(real_IO, encd = T.unsafe(nil)); end
|
419
|
-
|
420
|
-
def <<(content); end
|
421
|
-
def encoding; end
|
422
|
-
def to_s; end
|
423
|
-
end
|
424
|
-
|
425
|
-
class REXML::Parent < ::REXML::Child
|
426
|
-
include ::Enumerable
|
427
|
-
|
428
|
-
def initialize(parent = T.unsafe(nil)); end
|
429
|
-
|
430
|
-
def <<(object); end
|
431
|
-
def [](index); end
|
432
|
-
def []=(*args); end
|
433
|
-
def add(object); end
|
434
|
-
def children; end
|
435
|
-
def deep_clone; end
|
436
|
-
def delete(object); end
|
437
|
-
def delete_at(index); end
|
438
|
-
def delete_if(&block); end
|
439
|
-
def each(&block); end
|
440
|
-
def each_child(&block); end
|
441
|
-
def each_index(&block); end
|
442
|
-
def index(child); end
|
443
|
-
def insert_after(child1, child2); end
|
444
|
-
def insert_before(child1, child2); end
|
445
|
-
def length; end
|
446
|
-
def parent?; end
|
447
|
-
def push(object); end
|
448
|
-
def replace_child(to_replace, replacement); end
|
449
|
-
def size; end
|
450
|
-
def to_a; end
|
451
|
-
def unshift(object); end
|
452
|
-
end
|
453
|
-
|
454
|
-
class REXML::ParseException < ::RuntimeError
|
455
|
-
def initialize(message, source = T.unsafe(nil), parser = T.unsafe(nil), exception = T.unsafe(nil)); end
|
456
|
-
|
457
|
-
def context; end
|
458
|
-
def continued_exception; end
|
459
|
-
def continued_exception=(_arg0); end
|
460
|
-
def line; end
|
461
|
-
def parser; end
|
462
|
-
def parser=(_arg0); end
|
463
|
-
def position; end
|
464
|
-
def source; end
|
465
|
-
def source=(_arg0); end
|
466
|
-
def to_s; end
|
467
|
-
end
|
468
|
-
|
469
|
-
class REXML::Parsers::BaseParser
|
470
|
-
def initialize(source); end
|
471
|
-
|
472
|
-
def add_listener(listener); end
|
473
|
-
def empty?; end
|
474
|
-
def entity(reference, entities); end
|
475
|
-
def has_next?; end
|
476
|
-
def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
477
|
-
def peek(depth = T.unsafe(nil)); end
|
478
|
-
def position; end
|
479
|
-
def pull; end
|
480
|
-
def source; end
|
481
|
-
def stream=(source); end
|
482
|
-
def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
|
483
|
-
def unshift(token); end
|
484
|
-
|
485
|
-
private
|
486
|
-
|
487
|
-
def need_source_encoding_update?(xml_declaration_encoding); end
|
488
|
-
def parse_attributes(prefixes, curr_ns); end
|
489
|
-
def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
|
490
|
-
def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
|
491
|
-
def parse_name(base_error_message); end
|
492
|
-
def process_instruction; end
|
493
|
-
def pull_event; end
|
494
|
-
end
|
495
|
-
|
496
|
-
REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp)
|
497
|
-
REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp)
|
498
|
-
REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp)
|
499
|
-
REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp)
|
500
|
-
REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String)
|
501
|
-
|
502
|
-
class REXML::Parsers::StreamParser
|
503
|
-
def initialize(source, listener); end
|
504
|
-
|
505
|
-
def add_listener(listener); end
|
506
|
-
def parse; end
|
507
|
-
end
|
508
|
-
|
509
|
-
class REXML::Parsers::TreeParser
|
510
|
-
def initialize(source, build_context = T.unsafe(nil)); end
|
511
|
-
|
512
|
-
def add_listener(listener); end
|
513
|
-
def parse; end
|
514
|
-
end
|
515
|
-
|
516
|
-
class REXML::Parsers::XPathParser
|
517
|
-
include ::REXML::XMLTokens
|
518
|
-
|
519
|
-
def abbreviate(path); end
|
520
|
-
def expand(path); end
|
521
|
-
def namespaces=(namespaces); end
|
522
|
-
def parse(path); end
|
523
|
-
def predicate(path); end
|
524
|
-
def predicate_to_string(path, &block); end
|
525
|
-
|
526
|
-
private
|
527
|
-
|
528
|
-
def AdditiveExpr(path, parsed); end
|
529
|
-
def AndExpr(path, parsed); end
|
530
|
-
def EqualityExpr(path, parsed); end
|
531
|
-
def FilterExpr(path, parsed); end
|
532
|
-
def FunctionCall(rest, parsed); end
|
533
|
-
def LocationPath(path, parsed); end
|
534
|
-
def MultiplicativeExpr(path, parsed); end
|
535
|
-
def NodeTest(path, parsed); end
|
536
|
-
def OrExpr(path, parsed); end
|
537
|
-
def PathExpr(path, parsed); end
|
538
|
-
def Predicate(path, parsed); end
|
539
|
-
def PrimaryExpr(path, parsed); end
|
540
|
-
def RelationalExpr(path, parsed); end
|
541
|
-
def RelativeLocationPath(path, parsed); end
|
542
|
-
def UnaryExpr(path, parsed); end
|
543
|
-
def UnionExpr(path, parsed); end
|
544
|
-
def get_group(string); end
|
545
|
-
def parse_args(string); end
|
546
|
-
end
|
547
|
-
|
548
|
-
REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
549
|
-
REXML::Parsers::XPathParser::PREFIX_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
550
|
-
|
551
|
-
class REXML::ReferenceWriter
|
552
|
-
def initialize(id_type, public_id_literal, system_literal, context = T.unsafe(nil)); end
|
553
|
-
|
554
|
-
def write(output); end
|
555
|
-
end
|
556
|
-
|
557
|
-
class REXML::Source
|
558
|
-
include ::REXML::Encoding
|
559
|
-
|
560
|
-
def initialize(arg, encoding = T.unsafe(nil)); end
|
561
|
-
|
562
|
-
def buffer; end
|
563
|
-
def consume(pattern); end
|
564
|
-
def current_line; end
|
565
|
-
def empty?; end
|
566
|
-
def encoding; end
|
567
|
-
def encoding=(enc); end
|
568
|
-
def line; end
|
569
|
-
def match(pattern, cons = T.unsafe(nil)); end
|
570
|
-
def match_to(char, pattern); end
|
571
|
-
def match_to_consume(char, pattern); end
|
572
|
-
def position; end
|
573
|
-
def read; end
|
574
|
-
def scan(pattern, cons = T.unsafe(nil)); end
|
575
|
-
|
576
|
-
private
|
577
|
-
|
578
|
-
def detect_encoding; end
|
579
|
-
def encoding_updated; end
|
580
|
-
end
|
581
|
-
|
582
|
-
class REXML::Text < ::REXML::Child
|
583
|
-
include ::Comparable
|
584
|
-
|
585
|
-
def initialize(arg, respect_whitespace = T.unsafe(nil), parent = T.unsafe(nil), raw = T.unsafe(nil), entity_filter = T.unsafe(nil), illegal = T.unsafe(nil)); end
|
586
|
-
|
587
|
-
def <<(to_append); end
|
588
|
-
def <=>(other); end
|
589
|
-
def clone; end
|
590
|
-
def doctype; end
|
591
|
-
def empty?; end
|
592
|
-
def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
|
593
|
-
def inspect; end
|
594
|
-
def node_type; end
|
595
|
-
def parent=(parent); end
|
596
|
-
def raw; end
|
597
|
-
def raw=(_arg0); end
|
598
|
-
def to_s; end
|
599
|
-
def value; end
|
600
|
-
def value=(val); end
|
601
|
-
def wrap(string, width, addnewline = T.unsafe(nil)); end
|
602
|
-
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
603
|
-
def write_with_substitution(out, input); end
|
604
|
-
def xpath; end
|
605
|
-
|
606
|
-
private
|
607
|
-
|
608
|
-
def clear_cache; end
|
609
|
-
|
610
|
-
class << self
|
611
|
-
def check(string, pattern, doctype); end
|
612
|
-
def expand(ref, doctype, filter); end
|
613
|
-
def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
614
|
-
def read_with_substitution(input, illegal = T.unsafe(nil)); end
|
615
|
-
def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil)); end
|
616
|
-
end
|
617
|
-
end
|
618
|
-
|
619
|
-
class REXML::UndefinedNamespaceException < ::REXML::ParseException
|
620
|
-
def initialize(prefix, source, parser); end
|
621
|
-
end
|
622
|
-
|
623
|
-
class REXML::Validation::ValidationException < ::RuntimeError
|
624
|
-
def initialize(msg); end
|
625
|
-
end
|
626
|
-
|
627
|
-
class REXML::XMLDecl < ::REXML::Child
|
628
|
-
include ::REXML::Encoding
|
629
|
-
|
630
|
-
def initialize(version = T.unsafe(nil), encoding = T.unsafe(nil), standalone = T.unsafe(nil)); end
|
631
|
-
|
632
|
-
def ==(other); end
|
633
|
-
def clone; end
|
634
|
-
def dowrite; end
|
635
|
-
def encoding=(enc); end
|
636
|
-
def inspect; end
|
637
|
-
def node_type; end
|
638
|
-
def nowrite; end
|
639
|
-
def old_enc=(encoding); end
|
640
|
-
def stand_alone?; end
|
641
|
-
def standalone; end
|
642
|
-
def standalone=(_arg0); end
|
643
|
-
def version; end
|
644
|
-
def version=(_arg0); end
|
645
|
-
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
646
|
-
def writeencoding; end
|
647
|
-
def writethis; end
|
648
|
-
def xmldecl(version, encoding, standalone); end
|
649
|
-
|
650
|
-
private
|
651
|
-
|
652
|
-
def content(enc); end
|
653
|
-
|
654
|
-
class << self
|
655
|
-
def default; end
|
656
|
-
end
|
657
|
-
end
|
658
|
-
|
659
|
-
class REXML::XPathNode
|
660
|
-
def initialize(node, context = T.unsafe(nil)); end
|
661
|
-
|
662
|
-
def context; end
|
663
|
-
def position; end
|
664
|
-
def raw_node; end
|
665
|
-
end
|
666
|
-
|
667
|
-
class REXML::XPathParser
|
668
|
-
include ::REXML::XMLTokens
|
669
|
-
|
670
|
-
def initialize(strict: T.unsafe(nil)); end
|
671
|
-
|
672
|
-
def []=(variable_name, value); end
|
673
|
-
def first(path_stack, node); end
|
674
|
-
def get_first(path, nodeset); end
|
675
|
-
def match(path_stack, nodeset); end
|
676
|
-
def namespaces=(namespaces = T.unsafe(nil)); end
|
677
|
-
def parse(path, nodeset); end
|
678
|
-
def predicate(path, nodeset); end
|
679
|
-
def variables=(vars = T.unsafe(nil)); end
|
680
|
-
|
681
|
-
private
|
682
|
-
|
683
|
-
def child(nodeset); end
|
684
|
-
def compare(a, operator, b); end
|
685
|
-
def descendant(nodeset, include_self); end
|
686
|
-
def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end
|
687
|
-
def each_unnode(nodeset); end
|
688
|
-
def enter(tag, *args); end
|
689
|
-
def equality_relational_compare(set1, op, set2); end
|
690
|
-
def evaluate_predicate(expression, nodesets); end
|
691
|
-
def expr(path_stack, nodeset, context = T.unsafe(nil)); end
|
692
|
-
def filter_nodeset(nodeset); end
|
693
|
-
def following(node); end
|
694
|
-
def following_node_of(node); end
|
695
|
-
def get_namespace(node, prefix); end
|
696
|
-
def leave(tag, *args); end
|
697
|
-
def next_sibling_node(node); end
|
698
|
-
def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end
|
699
|
-
def norm(b); end
|
700
|
-
def normalize_compare_values(a, operator, b); end
|
701
|
-
def preceding(node); end
|
702
|
-
def preceding_node_of(node); end
|
703
|
-
def sort(array_of_nodes, order); end
|
704
|
-
def step(path_stack, any_type: T.unsafe(nil), order: T.unsafe(nil)); end
|
705
|
-
def strict?; end
|
706
|
-
def trace(*args); end
|
707
|
-
def unnode(nodeset); end
|
708
|
-
def value_type(value); end
|
709
|
-
end
|