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,185 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `diff-lcs` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem diff-lcs`.
|
6
|
-
|
7
|
-
module Diff; end
|
8
|
-
|
9
|
-
module Diff::LCS
|
10
|
-
def diff(other, callbacks = T.unsafe(nil), &block); end
|
11
|
-
def lcs(other, &block); end
|
12
|
-
def patch(patchset); end
|
13
|
-
def patch!(patchset); end
|
14
|
-
def patch_me(patchset); end
|
15
|
-
def sdiff(other, callbacks = T.unsafe(nil), &block); end
|
16
|
-
def traverse_balanced(other, callbacks = T.unsafe(nil), &block); end
|
17
|
-
def traverse_sequences(other, callbacks = T.unsafe(nil), &block); end
|
18
|
-
def unpatch(patchset); end
|
19
|
-
def unpatch!(patchset); end
|
20
|
-
def unpatch_me(patchset); end
|
21
|
-
|
22
|
-
class << self
|
23
|
-
def LCS(seq1, seq2, &block); end
|
24
|
-
def callbacks_for(callbacks); end
|
25
|
-
def diff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
|
26
|
-
def lcs(seq1, seq2, &block); end
|
27
|
-
def patch(src, patchset, direction = T.unsafe(nil)); end
|
28
|
-
def patch!(src, patchset); end
|
29
|
-
def sdiff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
|
30
|
-
def traverse_balanced(seq1, seq2, callbacks = T.unsafe(nil)); end
|
31
|
-
def traverse_sequences(seq1, seq2, callbacks = T.unsafe(nil)); end
|
32
|
-
def unpatch!(src, patchset); end
|
33
|
-
|
34
|
-
private
|
35
|
-
|
36
|
-
def diff_traversal(method, seq1, seq2, callbacks, &block); end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
Diff::LCS::BalancedCallbacks = Diff::LCS::DefaultCallbacks
|
41
|
-
|
42
|
-
class Diff::LCS::Block
|
43
|
-
def initialize(chunk); end
|
44
|
-
|
45
|
-
def changes; end
|
46
|
-
def diff_size; end
|
47
|
-
def insert; end
|
48
|
-
def op; end
|
49
|
-
def remove; end
|
50
|
-
end
|
51
|
-
|
52
|
-
class Diff::LCS::Change
|
53
|
-
include ::Comparable
|
54
|
-
|
55
|
-
def initialize(*args); end
|
56
|
-
|
57
|
-
def <=>(other); end
|
58
|
-
def ==(other); end
|
59
|
-
def action; end
|
60
|
-
def adding?; end
|
61
|
-
def changed?; end
|
62
|
-
def deleting?; end
|
63
|
-
def element; end
|
64
|
-
def finished_a?; end
|
65
|
-
def finished_b?; end
|
66
|
-
def inspect(*_args); end
|
67
|
-
def position; end
|
68
|
-
def to_a; end
|
69
|
-
def to_ary; end
|
70
|
-
def unchanged?; end
|
71
|
-
|
72
|
-
class << self
|
73
|
-
def from_a(arr); end
|
74
|
-
def valid_action?(action); end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
Diff::LCS::Change::IntClass = Integer
|
79
|
-
Diff::LCS::Change::VALID_ACTIONS = T.let(T.unsafe(nil), Array)
|
80
|
-
|
81
|
-
class Diff::LCS::ContextChange < ::Diff::LCS::Change
|
82
|
-
def initialize(*args); end
|
83
|
-
|
84
|
-
def <=>(other); end
|
85
|
-
def ==(other); end
|
86
|
-
def new_element; end
|
87
|
-
def new_position; end
|
88
|
-
def old_element; end
|
89
|
-
def old_position; end
|
90
|
-
def to_a; end
|
91
|
-
def to_ary; end
|
92
|
-
|
93
|
-
class << self
|
94
|
-
def from_a(arr); end
|
95
|
-
def simplify(event); end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
class Diff::LCS::ContextDiffCallbacks < ::Diff::LCS::DiffCallbacks
|
100
|
-
def change(event); end
|
101
|
-
def discard_a(event); end
|
102
|
-
def discard_b(event); end
|
103
|
-
end
|
104
|
-
|
105
|
-
class Diff::LCS::DefaultCallbacks
|
106
|
-
class << self
|
107
|
-
def change(event); end
|
108
|
-
def discard_a(event); end
|
109
|
-
def discard_b(event); end
|
110
|
-
def match(event); end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
class Diff::LCS::DiffCallbacks
|
115
|
-
def initialize; end
|
116
|
-
|
117
|
-
def diffs; end
|
118
|
-
def discard_a(event); end
|
119
|
-
def discard_b(event); end
|
120
|
-
def finish; end
|
121
|
-
def match(_event); end
|
122
|
-
|
123
|
-
private
|
124
|
-
|
125
|
-
def finish_hunk; end
|
126
|
-
end
|
127
|
-
|
128
|
-
class Diff::LCS::Hunk
|
129
|
-
def initialize(data_old, data_new, piece, flag_context, file_length_difference); end
|
130
|
-
|
131
|
-
def blocks; end
|
132
|
-
def diff(format, last = T.unsafe(nil)); end
|
133
|
-
def end_new; end
|
134
|
-
def end_old; end
|
135
|
-
def file_length_difference; end
|
136
|
-
def flag_context; end
|
137
|
-
def flag_context=(context); end
|
138
|
-
def merge(hunk); end
|
139
|
-
def missing_last_newline?(data); end
|
140
|
-
def overlaps?(hunk); end
|
141
|
-
def start_new; end
|
142
|
-
def start_old; end
|
143
|
-
def unshift(hunk); end
|
144
|
-
|
145
|
-
private
|
146
|
-
|
147
|
-
def context_diff(last = T.unsafe(nil)); end
|
148
|
-
def context_range(mode, op, last = T.unsafe(nil)); end
|
149
|
-
def ed_diff(format, _last = T.unsafe(nil)); end
|
150
|
-
def encode(literal, target_encoding = T.unsafe(nil)); end
|
151
|
-
def encode_as(string, *args); end
|
152
|
-
def old_diff(_last = T.unsafe(nil)); end
|
153
|
-
def unified_diff(last = T.unsafe(nil)); end
|
154
|
-
def unified_range(mode, last); end
|
155
|
-
end
|
156
|
-
|
157
|
-
Diff::LCS::Hunk::ED_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash)
|
158
|
-
Diff::LCS::Hunk::OLD_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash)
|
159
|
-
|
160
|
-
module Diff::LCS::Internals
|
161
|
-
class << self
|
162
|
-
def analyze_patchset(patchset, depth = T.unsafe(nil)); end
|
163
|
-
def intuit_diff_direction(src, patchset, limit = T.unsafe(nil)); end
|
164
|
-
def lcs(a, b); end
|
165
|
-
|
166
|
-
private
|
167
|
-
|
168
|
-
def inverse_vector(a, vector); end
|
169
|
-
def position_hash(enum, interval); end
|
170
|
-
def replace_next_larger(enum, value, last_index = T.unsafe(nil)); end
|
171
|
-
end
|
172
|
-
end
|
173
|
-
|
174
|
-
class Diff::LCS::SDiffCallbacks
|
175
|
-
def initialize; end
|
176
|
-
|
177
|
-
def change(event); end
|
178
|
-
def diffs; end
|
179
|
-
def discard_a(event); end
|
180
|
-
def discard_b(event); end
|
181
|
-
def match(event); end
|
182
|
-
end
|
183
|
-
|
184
|
-
Diff::LCS::SequenceCallbacks = Diff::LCS::DefaultCallbacks
|
185
|
-
Diff::LCS::VERSION = T.let(T.unsafe(nil), String)
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `docile` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem docile`.
|
6
|
-
|
7
|
-
module Docile
|
8
|
-
extend ::Docile::Execution
|
9
|
-
|
10
|
-
private
|
11
|
-
|
12
|
-
def dsl_eval(dsl, *args, **_arg2, &block); end
|
13
|
-
def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
|
14
|
-
def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
|
15
|
-
|
16
|
-
class << self
|
17
|
-
def dsl_eval(dsl, *args, **_arg2, &block); end
|
18
|
-
def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
|
19
|
-
def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
module Docile::BacktraceFilter
|
24
|
-
def backtrace; end
|
25
|
-
def backtrace_locations; end
|
26
|
-
end
|
27
|
-
|
28
|
-
Docile::BacktraceFilter::FILTER_PATTERN = T.let(T.unsafe(nil), Regexp)
|
29
|
-
|
30
|
-
class Docile::ChainingFallbackContextProxy < ::Docile::FallbackContextProxy
|
31
|
-
def method_missing(method, *args, **_arg2, &block); end
|
32
|
-
end
|
33
|
-
|
34
|
-
module Docile::Execution
|
35
|
-
private
|
36
|
-
|
37
|
-
def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
|
38
|
-
|
39
|
-
class << self
|
40
|
-
def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
class Docile::FallbackContextProxy
|
45
|
-
def initialize(receiver, fallback); end
|
46
|
-
|
47
|
-
def instance_variables; end
|
48
|
-
def method_missing(method, *args, **_arg2, &block); end
|
49
|
-
end
|
50
|
-
|
51
|
-
Docile::FallbackContextProxy::NON_FALLBACK_METHODS = T.let(T.unsafe(nil), Set)
|
52
|
-
Docile::FallbackContextProxy::NON_PROXIED_INSTANCE_VARIABLES = T.let(T.unsafe(nil), Set)
|
53
|
-
Docile::FallbackContextProxy::NON_PROXIED_METHODS = T.let(T.unsafe(nil), Set)
|
54
|
-
Docile::VERSION = T.let(T.unsafe(nil), String)
|
@@ -1,82 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `hashdiff` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem hashdiff`.
|
6
|
-
|
7
|
-
module Hashdiff
|
8
|
-
class << self
|
9
|
-
def best_diff(obj1, obj2, options = T.unsafe(nil), &block); end
|
10
|
-
def comparable?(obj1, obj2, strict = T.unsafe(nil)); end
|
11
|
-
def compare_values(obj1, obj2, options = T.unsafe(nil)); end
|
12
|
-
def count_diff(diffs); end
|
13
|
-
def count_nodes(obj); end
|
14
|
-
def custom_compare(method, key, obj1, obj2); end
|
15
|
-
def decode_property_path(path, delimiter = T.unsafe(nil)); end
|
16
|
-
def diff(obj1, obj2, options = T.unsafe(nil), &block); end
|
17
|
-
def diff_array_lcs(arraya, arrayb, options = T.unsafe(nil)); end
|
18
|
-
def lcs(arraya, arrayb, options = T.unsafe(nil)); end
|
19
|
-
def node(hash, parts); end
|
20
|
-
def patch!(obj, changes, options = T.unsafe(nil)); end
|
21
|
-
def prefix_append_array_index(prefix, array_index, opts); end
|
22
|
-
def prefix_append_key(prefix, key, opts); end
|
23
|
-
def similar?(obja, objb, options = T.unsafe(nil)); end
|
24
|
-
def unpatch!(obj, changes, options = T.unsafe(nil)); end
|
25
|
-
|
26
|
-
private
|
27
|
-
|
28
|
-
def any_hash_or_array?(obja, objb); end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
class Hashdiff::CompareHashes
|
33
|
-
class << self
|
34
|
-
def call(obj1, obj2, opts = T.unsafe(nil)); end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
class Hashdiff::LcsCompareArrays
|
39
|
-
class << self
|
40
|
-
def call(obj1, obj2, opts = T.unsafe(nil)); end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
class Hashdiff::LinearCompareArray
|
45
|
-
def initialize(old_array, new_array, options); end
|
46
|
-
|
47
|
-
def call; end
|
48
|
-
|
49
|
-
private
|
50
|
-
|
51
|
-
def additions; end
|
52
|
-
def append_addition(item, index); end
|
53
|
-
def append_addititions_before_match(match_index); end
|
54
|
-
def append_deletion(item, index); end
|
55
|
-
def append_deletions_before_match(match_index); end
|
56
|
-
def append_differences(difference); end
|
57
|
-
def changes; end
|
58
|
-
def compare_at_index; end
|
59
|
-
def deletions; end
|
60
|
-
def differences; end
|
61
|
-
def expected_additions; end
|
62
|
-
def expected_additions=(_arg0); end
|
63
|
-
def extra_items_in_new_array?; end
|
64
|
-
def extra_items_in_old_array?; end
|
65
|
-
def index_of_match_after_additions; end
|
66
|
-
def index_of_match_after_deletions; end
|
67
|
-
def item_difference(old_item, new_item, item_index); end
|
68
|
-
def iterated_through_both_arrays?; end
|
69
|
-
def new_array; end
|
70
|
-
def new_index; end
|
71
|
-
def new_index=(_arg0); end
|
72
|
-
def old_array; end
|
73
|
-
def old_index; end
|
74
|
-
def old_index=(_arg0); end
|
75
|
-
def options; end
|
76
|
-
|
77
|
-
class << self
|
78
|
-
def call(old_array, new_array, options = T.unsafe(nil)); end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
Hashdiff::VERSION = T.let(T.unsafe(nil), String)
|
@@ -1,109 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `json` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem json`.
|
6
|
-
|
7
|
-
class Class < ::Module
|
8
|
-
def json_creatable?; end
|
9
|
-
end
|
10
|
-
|
11
|
-
module JSON
|
12
|
-
private
|
13
|
-
|
14
|
-
def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
|
15
|
-
def fast_generate(obj, opts = T.unsafe(nil)); end
|
16
|
-
def fast_unparse(obj, opts = T.unsafe(nil)); end
|
17
|
-
def generate(obj, opts = T.unsafe(nil)); end
|
18
|
-
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
|
19
|
-
def load_file(filespec, opts = T.unsafe(nil)); end
|
20
|
-
def load_file!(filespec, opts = T.unsafe(nil)); end
|
21
|
-
def parse(source, opts = T.unsafe(nil)); end
|
22
|
-
def parse!(source, opts = T.unsafe(nil)); end
|
23
|
-
def pretty_generate(obj, opts = T.unsafe(nil)); end
|
24
|
-
def pretty_unparse(obj, opts = T.unsafe(nil)); end
|
25
|
-
def recurse_proc(result, &proc); end
|
26
|
-
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
|
27
|
-
def unparse(obj, opts = T.unsafe(nil)); end
|
28
|
-
|
29
|
-
class << self
|
30
|
-
def [](object, opts = T.unsafe(nil)); end
|
31
|
-
def create_fast_state; end
|
32
|
-
def create_id; end
|
33
|
-
def create_id=(new_value); end
|
34
|
-
def create_pretty_state; end
|
35
|
-
def deep_const_get(path); end
|
36
|
-
def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
|
37
|
-
def dump_default_options; end
|
38
|
-
def dump_default_options=(_arg0); end
|
39
|
-
def fast_generate(obj, opts = T.unsafe(nil)); end
|
40
|
-
def fast_unparse(obj, opts = T.unsafe(nil)); end
|
41
|
-
def generate(obj, opts = T.unsafe(nil)); end
|
42
|
-
def generator; end
|
43
|
-
def generator=(generator); end
|
44
|
-
def iconv(to, from, string); end
|
45
|
-
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
|
46
|
-
def load_default_options; end
|
47
|
-
def load_default_options=(_arg0); end
|
48
|
-
def load_file(filespec, opts = T.unsafe(nil)); end
|
49
|
-
def load_file!(filespec, opts = T.unsafe(nil)); end
|
50
|
-
def parse(source, opts = T.unsafe(nil)); end
|
51
|
-
def parse!(source, opts = T.unsafe(nil)); end
|
52
|
-
def parser; end
|
53
|
-
def parser=(parser); end
|
54
|
-
def pretty_generate(obj, opts = T.unsafe(nil)); end
|
55
|
-
def pretty_unparse(obj, opts = T.unsafe(nil)); end
|
56
|
-
def recurse_proc(result, &proc); end
|
57
|
-
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
|
58
|
-
def state; end
|
59
|
-
def state=(_arg0); end
|
60
|
-
def unparse(obj, opts = T.unsafe(nil)); end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String)
|
65
|
-
JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String)
|
66
|
-
|
67
|
-
class JSON::GenericObject < ::OpenStruct
|
68
|
-
def as_json(*_arg0); end
|
69
|
-
def to_hash; end
|
70
|
-
def to_json(*a); end
|
71
|
-
def |(other); end
|
72
|
-
|
73
|
-
class << self
|
74
|
-
def dump(obj, *args); end
|
75
|
-
def from_hash(object); end
|
76
|
-
def json_creatable=(_arg0); end
|
77
|
-
def json_creatable?; end
|
78
|
-
def json_create(data); end
|
79
|
-
def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
class JSON::JSONError < ::StandardError
|
84
|
-
class << self
|
85
|
-
def wrap(exception); end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
JSON::Parser = JSON::Ext::Parser
|
90
|
-
JSON::State = JSON::Ext::Generator::State
|
91
|
-
JSON::UnparserError = JSON::GeneratorError
|
92
|
-
|
93
|
-
module Kernel
|
94
|
-
private
|
95
|
-
|
96
|
-
def JSON(object, *args); end
|
97
|
-
def j(*objs); end
|
98
|
-
def jj(*objs); end
|
99
|
-
end
|
100
|
-
|
101
|
-
class Set
|
102
|
-
include ::Enumerable
|
103
|
-
end
|
104
|
-
|
105
|
-
Set::InspectKey = T.let(T.unsafe(nil), Symbol)
|
106
|
-
|
107
|
-
class Symbol
|
108
|
-
include ::Comparable
|
109
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `method_source` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem method_source`.
|
6
|
-
|
7
|
-
# THIS IS AN EMPTY RBI FILE.
|
8
|
-
# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
|
@@ -1,113 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `parallel` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem parallel`.
|
6
|
-
|
7
|
-
module Parallel
|
8
|
-
extend ::Parallel::ProcessorCount
|
9
|
-
|
10
|
-
class << self
|
11
|
-
def all?(*args, &block); end
|
12
|
-
def any?(*args, &block); end
|
13
|
-
def each(array, options = T.unsafe(nil), &block); end
|
14
|
-
def each_with_index(array, options = T.unsafe(nil), &block); end
|
15
|
-
def flat_map(*args, &block); end
|
16
|
-
def in_processes(options = T.unsafe(nil), &block); end
|
17
|
-
def in_threads(options = T.unsafe(nil)); end
|
18
|
-
def map(source, options = T.unsafe(nil), &block); end
|
19
|
-
def map_with_index(array, options = T.unsafe(nil), &block); end
|
20
|
-
def worker_number; end
|
21
|
-
def worker_number=(worker_num); end
|
22
|
-
|
23
|
-
private
|
24
|
-
|
25
|
-
def add_progress_bar!(job_factory, options); end
|
26
|
-
def call_with_index(item, index, options, &block); end
|
27
|
-
def create_workers(job_factory, options, &block); end
|
28
|
-
def extract_count_from_options(options); end
|
29
|
-
def process_incoming_jobs(read, write, job_factory, options, &block); end
|
30
|
-
def replace_worker(job_factory, workers, i, options, blk); end
|
31
|
-
def with_instrumentation(item, index, options); end
|
32
|
-
def work_direct(job_factory, options, &block); end
|
33
|
-
def work_in_processes(job_factory, options, &blk); end
|
34
|
-
def work_in_threads(job_factory, options, &block); end
|
35
|
-
def worker(job_factory, options, &block); end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
class Parallel::Break < ::StandardError
|
40
|
-
def initialize(value = T.unsafe(nil)); end
|
41
|
-
|
42
|
-
def value; end
|
43
|
-
end
|
44
|
-
|
45
|
-
class Parallel::DeadWorker < ::StandardError; end
|
46
|
-
|
47
|
-
class Parallel::ExceptionWrapper
|
48
|
-
def initialize(exception); end
|
49
|
-
|
50
|
-
def exception; end
|
51
|
-
end
|
52
|
-
|
53
|
-
class Parallel::JobFactory
|
54
|
-
def initialize(source, mutex); end
|
55
|
-
|
56
|
-
def next; end
|
57
|
-
def pack(item, index); end
|
58
|
-
def size; end
|
59
|
-
def unpack(data); end
|
60
|
-
|
61
|
-
private
|
62
|
-
|
63
|
-
def producer?; end
|
64
|
-
def queue_wrapper(array); end
|
65
|
-
end
|
66
|
-
|
67
|
-
class Parallel::Kill < ::Parallel::Break; end
|
68
|
-
|
69
|
-
module Parallel::ProcessorCount
|
70
|
-
def physical_processor_count; end
|
71
|
-
def processor_count; end
|
72
|
-
end
|
73
|
-
|
74
|
-
Parallel::Stop = T.let(T.unsafe(nil), Object)
|
75
|
-
|
76
|
-
class Parallel::UndumpableException < ::StandardError
|
77
|
-
def initialize(original); end
|
78
|
-
|
79
|
-
def backtrace; end
|
80
|
-
end
|
81
|
-
|
82
|
-
class Parallel::UserInterruptHandler
|
83
|
-
class << self
|
84
|
-
def kill(thing); end
|
85
|
-
def kill_on_ctrl_c(pids, options); end
|
86
|
-
|
87
|
-
private
|
88
|
-
|
89
|
-
def restore_interrupt(old, signal); end
|
90
|
-
def trap_interrupt(signal); end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
|
95
|
-
Parallel::VERSION = T.let(T.unsafe(nil), String)
|
96
|
-
Parallel::Version = T.let(T.unsafe(nil), String)
|
97
|
-
|
98
|
-
class Parallel::Worker
|
99
|
-
def initialize(read, write, pid); end
|
100
|
-
|
101
|
-
def close_pipes; end
|
102
|
-
def pid; end
|
103
|
-
def read; end
|
104
|
-
def stop; end
|
105
|
-
def thread; end
|
106
|
-
def thread=(_arg0); end
|
107
|
-
def work(data); end
|
108
|
-
def write; end
|
109
|
-
|
110
|
-
private
|
111
|
-
|
112
|
-
def wait; end
|
113
|
-
end
|