workosv2 2.15.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/.github/CODEOWNERS +5 -0
- data/.github/pull_request_template.md +11 -0
- data/.github/renovate.json +5 -0
- data/.gitignore +49 -0
- data/.rspec +1 -0
- data/.rubocop.yml +24 -0
- data/.ruby-version +1 -0
- data/.semaphore/rubygems.yml +24 -0
- data/.semaphore/semaphore.yml +51 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +126 -0
- data/Gemfile.lock.old +127 -0
- data/LICENSE +21 -0
- data/README.md +53 -0
- data/bin/build +3 -0
- data/bin/console +3 -0
- data/bin/docs +5 -0
- data/bin/publish +3 -0
- data/bin/tapioca +29 -0
- data/codecov.yml +12 -0
- data/docs/WorkOS/APIError.html +160 -0
- data/docs/WorkOS/AuditLog.html +235 -0
- data/docs/WorkOS/AuditTrail.html +235 -0
- data/docs/WorkOS/AuthenticationError.html +160 -0
- data/docs/WorkOS/Base.html +287 -0
- data/docs/WorkOS/Client.html +504 -0
- data/docs/WorkOS/InvalidRequestError.html +160 -0
- data/docs/WorkOS/Profile.html +788 -0
- data/docs/WorkOS/RequestError.html +135 -0
- data/docs/WorkOS/SSO.html +691 -0
- data/docs/WorkOS/Types/ProfileStruct.html +135 -0
- data/docs/WorkOS/Types/Provider.html +135 -0
- data/docs/WorkOS/Types.html +128 -0
- data/docs/WorkOS/WorkOSError.html +447 -0
- data/docs/WorkOS.html +324 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +496 -0
- data/docs/file.README.html +252 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +250 -0
- data/docs/js/app.js +314 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +267 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/workosv2/audit_log_export.rb +55 -0
- data/lib/workosv2/audit_logs.rb +114 -0
- data/lib/workosv2/audit_trail.rb +111 -0
- data/lib/workosv2/challenge.rb +55 -0
- data/lib/workosv2/client.rb +186 -0
- data/lib/workosv2/configuration.rb +17 -0
- data/lib/workosv2/connection.rb +66 -0
- data/lib/workosv2/deprecated_hash_wrapper.rb +76 -0
- data/lib/workosv2/directory.rb +65 -0
- data/lib/workosv2/directory_group.rb +68 -0
- data/lib/workosv2/directory_sync.rb +218 -0
- data/lib/workosv2/directory_user.rb +97 -0
- data/lib/workosv2/errors.rb +81 -0
- data/lib/workosv2/event.rb +51 -0
- data/lib/workosv2/events.rb +52 -0
- data/lib/workosv2/factor.rb +54 -0
- data/lib/workosv2/hash_provider.rb +19 -0
- data/lib/workosv2/mfa.rb +178 -0
- data/lib/workosv2/organization.rb +57 -0
- data/lib/workosv2/organizations.rb +188 -0
- data/lib/workosv2/passwordless.rb +85 -0
- data/lib/workosv2/portal.rb +66 -0
- data/lib/workosv2/profile.rb +76 -0
- data/lib/workosv2/profile_and_token.rb +29 -0
- data/lib/workosv2/sso.rb +297 -0
- data/lib/workosv2/types/audit_log_export_struct.rb +17 -0
- data/lib/workosv2/types/challenge_struct.rb +18 -0
- data/lib/workosv2/types/connection_struct.rb +20 -0
- data/lib/workosv2/types/directory_group_struct.rb +19 -0
- data/lib/workosv2/types/directory_struct.rb +19 -0
- data/lib/workosv2/types/directory_user_struct.rb +26 -0
- data/lib/workosv2/types/event_struct.rb +15 -0
- data/lib/workosv2/types/factor_struct.rb +18 -0
- data/lib/workosv2/types/intent_enum.rb +17 -0
- data/lib/workosv2/types/list_struct.rb +13 -0
- data/lib/workosv2/types/organization_struct.rb +17 -0
- data/lib/workosv2/types/passwordless_session_struct.rb +17 -0
- data/lib/workosv2/types/profile_struct.rb +21 -0
- data/lib/workosv2/types/provider_enum.rb +15 -0
- data/lib/workosv2/types/verify_challenge_struct.rb +13 -0
- data/lib/workosv2/types/webhook_struct.rb +15 -0
- data/lib/workosv2/types.rb +25 -0
- data/lib/workosv2/verify_challenge.rb +39 -0
- data/lib/workosv2/version.rb +6 -0
- data/lib/workosv2/webhook.rb +51 -0
- data/lib/workosv2/webhooks.rb +217 -0
- data/lib/workosv2.rb +79 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
- data/sorbet/rbi/gems/codecov@0.2.12.rbi +55 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
- data/sorbet/rbi/gems/docile@1.3.5.rbi +54 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
- data/sorbet/rbi/gems/json@2.5.1.rbi +109 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
- data/sorbet/rbi/gems/parser@3.0.1.0.rbi +1187 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +8 -0
- data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +146 -0
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +153 -0
- data/sorbet/rbi/gems/rake@13.0.3.rbi +807 -0
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +2118 -0
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1117 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +709 -0
- data/sorbet/rbi/gems/rspec-core@3.9.3.rbi +2467 -0
- data/sorbet/rbi/gems/rspec-expectations@3.9.4.rbi +1569 -0
- data/sorbet/rbi/gems/rspec-mocks@3.9.1.rbi +1493 -0
- data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +511 -0
- data/sorbet/rbi/gems/rspec@3.9.0.rbi +38 -0
- data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +1881 -0
- data/sorbet/rbi/gems/rubocop@0.93.1.rbi +11497 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +1549 -0
- data/sorbet/rbi/gems/tapioca@0.7.3.rbi +1718 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
- data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +22 -0
- data/sorbet/rbi/gems/unparser@0.6.2.rbi +8 -0
- data/sorbet/rbi/gems/vcr@5.0.0.rbi +699 -0
- data/sorbet/rbi/gems/webmock@3.12.2.rbi +662 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +268 -0
- data/sorbet/rbi/gems/yard@0.9.26.rbi +4048 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- data/spec/lib/workos/audit_logs_spec.rb +151 -0
- data/spec/lib/workos/audit_trail_spec.rb +146 -0
- data/spec/lib/workos/configuration_spec.rb +61 -0
- data/spec/lib/workos/directory_sync_spec.rb +492 -0
- data/spec/lib/workos/directory_user_spec.rb +36 -0
- data/spec/lib/workos/event_spec.rb +88 -0
- data/spec/lib/workos/mfa_spec.rb +281 -0
- data/spec/lib/workos/organizations_spec.rb +257 -0
- data/spec/lib/workos/passwordless_spec.rb +77 -0
- data/spec/lib/workos/portal_spec.rb +87 -0
- data/spec/lib/workos/sso_spec.rb +650 -0
- data/spec/lib/workos/webhooks_spec.rb +236 -0
- data/spec/spec_helper.rb +56 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml +59 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event_custom_idempotency_key.yml +60 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event_invalid.yml +59 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_export.yml +76 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_export_with_filters.yml +77 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/get_export.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event.yml +65 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event_custom_idempotency_key.yml +67 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event_invalid.yml +68 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_and_payload.yml +131 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_different_payload.yml +134 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/get_events.yml +61 -0
- data/spec/support/fixtures/vcr_cassettes/base/execute_request_unauthenticated.yml +66 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/delete_directory.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_directory_with_invalid_id.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_directory_with_valid_id.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_group.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_group_with_invalid_id.yml +62 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_user.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_user_with_invalid_id.yml +62 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_after.yml +87 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_before.yml +89 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_domain.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml +85 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_no_options.yml +93 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml +85 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml +90 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml +90 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml +90 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_limit.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_no_options.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml +186 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml +88 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml +194 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml +186 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml +189 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_no_options.yml +74 -0
- data/spec/support/fixtures/vcr_cassettes/events/list_events_with_after.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/events/list_events_with_event.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/events/list_events_with_no_options.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/events/list_events_with_range.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_generic_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_sms_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_totp_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/delete_factor.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_generic_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_sms_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_totp_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/get_factor_invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/get_factor_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_expired.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_invalid.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid_is_false.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create_invalid.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_different_payload.yml +155 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_payload.yml +154 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create_with_idempotency_key.yml +79 -0
- data/spec/support/fixtures/vcr_cassettes/organization/delete.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/organization/delete_invalid.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/organization/get.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/organization/get_invalid.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/organization/list.yml +87 -0
- data/spec/support/fixtures/vcr_cassettes/organization/update.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/passwordless/create_session.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/passwordless/create_session_invalid.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/passwordless/send_session.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/passwordless/send_session_invalid.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_audit_logs.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_invalid.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_sso.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_invalid_id.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_valid_id.yml +70 -0
- data/spec/support/fixtures/vcr_cassettes/sso/get_connection_with_invalid_id.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/sso/get_connection_with_valid_id.yml +86 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml +86 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml +90 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_domain.yml +86 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml +89 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml +86 -0
- data/spec/support/fixtures/vcr_cassettes/sso/profile.yml +74 -0
- data/spec/support/profile.txt +1 -0
- data/spec/support/shared_examples/client_spec.rb +30 -0
- data/spec/support/webhook_payload.txt +1 -0
- data/workosv2.gemspec +38 -0
- metadata +531 -0
@@ -0,0 +1,662 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `webmock` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem webmock`.
|
6
|
+
|
7
|
+
module Net::WebMockHTTPResponse
|
8
|
+
def read_body(dest = T.unsafe(nil), &block); end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Net::WebMockNetBufferedIO < ::Net::BufferedIO
|
12
|
+
def initialize(io, *args, **kwargs); end
|
13
|
+
|
14
|
+
def rbuf_fill; end
|
15
|
+
end
|
16
|
+
|
17
|
+
class PatchedStringIO < ::StringIO
|
18
|
+
def orig_read_nonblock(*_arg0); end
|
19
|
+
def read_nonblock(size, *args, **kwargs); end
|
20
|
+
end
|
21
|
+
|
22
|
+
class StubSocket
|
23
|
+
def initialize(*args); end
|
24
|
+
|
25
|
+
def close; end
|
26
|
+
def closed?; end
|
27
|
+
def continue_timeout; end
|
28
|
+
def continue_timeout=(_arg0); end
|
29
|
+
def io; end
|
30
|
+
def read_timeout; end
|
31
|
+
def read_timeout=(_arg0); end
|
32
|
+
def readuntil(*args); end
|
33
|
+
def write_timeout; end
|
34
|
+
def write_timeout=(_arg0); end
|
35
|
+
end
|
36
|
+
|
37
|
+
class StubSocket::StubIO
|
38
|
+
def setsockopt(*args); end
|
39
|
+
end
|
40
|
+
|
41
|
+
module WebMock
|
42
|
+
include ::WebMock::API
|
43
|
+
extend ::WebMock::API
|
44
|
+
|
45
|
+
def after_request(*args, &block); end
|
46
|
+
def allow_net_connect!(*args, &block); end
|
47
|
+
def disable_net_connect!(*args, &block); end
|
48
|
+
def net_connect_allowed?(*args, &block); end
|
49
|
+
def registered_request?(*args, &block); end
|
50
|
+
def reset_callbacks(*args, &block); end
|
51
|
+
def reset_webmock(*args, &block); end
|
52
|
+
|
53
|
+
class << self
|
54
|
+
def after_request(options = T.unsafe(nil), &block); end
|
55
|
+
def allow_net_connect!(options = T.unsafe(nil)); end
|
56
|
+
def disable!(options = T.unsafe(nil)); end
|
57
|
+
def disable_net_connect!(options = T.unsafe(nil)); end
|
58
|
+
def disallow_net_connect!(options = T.unsafe(nil)); end
|
59
|
+
def enable!(options = T.unsafe(nil)); end
|
60
|
+
def enable_net_connect!(options = T.unsafe(nil)); end
|
61
|
+
def globally_stub_request(order = T.unsafe(nil), &block); end
|
62
|
+
def hide_body_diff!; end
|
63
|
+
def hide_stubbing_instructions!; end
|
64
|
+
def included(clazz); end
|
65
|
+
def net_connect_allowed?(uri = T.unsafe(nil)); end
|
66
|
+
def net_connect_explicit_allowed?(allowed, uri = T.unsafe(nil)); end
|
67
|
+
def print_executed_requests; end
|
68
|
+
def registered_request?(request_signature); end
|
69
|
+
def request(method, uri); end
|
70
|
+
def reset!; end
|
71
|
+
def reset_callbacks; end
|
72
|
+
def reset_webmock; end
|
73
|
+
def show_body_diff!; end
|
74
|
+
def show_body_diff?; end
|
75
|
+
def show_stubbing_instructions!; end
|
76
|
+
def show_stubbing_instructions?; end
|
77
|
+
def version; end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
module WebMock::API
|
82
|
+
extend ::WebMock::API
|
83
|
+
|
84
|
+
def a_request(method, uri); end
|
85
|
+
def assert_not_requested(*args, &block); end
|
86
|
+
def assert_requested(*args, &block); end
|
87
|
+
def hash_excluding(*args); end
|
88
|
+
def hash_including(*args); end
|
89
|
+
def refute_requested(*args, &block); end
|
90
|
+
def remove_request_stub(stub); end
|
91
|
+
def reset_executed_requests!; end
|
92
|
+
def stub_http_request(method, uri); end
|
93
|
+
def stub_request(method, uri); end
|
94
|
+
|
95
|
+
private
|
96
|
+
|
97
|
+
def anythingize_lonely_keys(*args); end
|
98
|
+
def assert_request_not_requested(request, options = T.unsafe(nil)); end
|
99
|
+
def assert_request_requested(request, options = T.unsafe(nil)); end
|
100
|
+
def convert_uri_method_and_options_to_request_and_options(method, uri, options, &block); end
|
101
|
+
|
102
|
+
class << self
|
103
|
+
def request(method, uri); end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class WebMock::AssertionFailure
|
108
|
+
class << self
|
109
|
+
def error_class; end
|
110
|
+
def error_class=(_arg0); end
|
111
|
+
def failure(message); end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
class WebMock::BodyPattern
|
116
|
+
include ::WebMock::RSpecMatcherDetector
|
117
|
+
|
118
|
+
def initialize(pattern); end
|
119
|
+
|
120
|
+
def matches?(body, content_type = T.unsafe(nil)); end
|
121
|
+
def pattern; end
|
122
|
+
def to_s; end
|
123
|
+
|
124
|
+
private
|
125
|
+
|
126
|
+
def assert_non_multipart_body(content_type); end
|
127
|
+
def body_as_hash(body, content_type); end
|
128
|
+
def body_format(content_type); end
|
129
|
+
def empty_string?(string); end
|
130
|
+
def matching_body_hashes?(query_parameters, pattern, content_type); end
|
131
|
+
def normalize_hash(hash); end
|
132
|
+
def url_encoded_body?(content_type); end
|
133
|
+
end
|
134
|
+
|
135
|
+
WebMock::BodyPattern::BODY_FORMATS = T.let(T.unsafe(nil), Hash)
|
136
|
+
|
137
|
+
class WebMock::CallbackRegistry
|
138
|
+
class << self
|
139
|
+
def add_callback(options, block); end
|
140
|
+
def any_callbacks?; end
|
141
|
+
def callbacks; end
|
142
|
+
def invoke_callbacks(options, request_signature, response); end
|
143
|
+
def reset; end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
class WebMock::Config
|
148
|
+
include ::Singleton
|
149
|
+
extend ::Singleton::SingletonClassMethods
|
150
|
+
|
151
|
+
def initialize; end
|
152
|
+
|
153
|
+
def allow; end
|
154
|
+
def allow=(_arg0); end
|
155
|
+
def allow_localhost; end
|
156
|
+
def allow_localhost=(_arg0); end
|
157
|
+
def allow_net_connect; end
|
158
|
+
def allow_net_connect=(_arg0); end
|
159
|
+
def net_http_connect_on_start; end
|
160
|
+
def net_http_connect_on_start=(_arg0); end
|
161
|
+
def query_values_notation; end
|
162
|
+
def query_values_notation=(_arg0); end
|
163
|
+
def show_body_diff; end
|
164
|
+
def show_body_diff=(_arg0); end
|
165
|
+
def show_stubbing_instructions; end
|
166
|
+
def show_stubbing_instructions=(_arg0); end
|
167
|
+
end
|
168
|
+
|
169
|
+
class WebMock::Deprecation
|
170
|
+
class << self
|
171
|
+
def warning(message); end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
class WebMock::DynamicResponse < ::WebMock::Response
|
176
|
+
def initialize(responder); end
|
177
|
+
|
178
|
+
def evaluate(request_signature); end
|
179
|
+
def responder; end
|
180
|
+
def responder=(_arg0); end
|
181
|
+
end
|
182
|
+
|
183
|
+
class WebMock::HashValidator
|
184
|
+
def initialize(hash); end
|
185
|
+
|
186
|
+
def validate_keys(*valid_keys); end
|
187
|
+
end
|
188
|
+
|
189
|
+
class WebMock::HeadersPattern
|
190
|
+
def initialize(pattern); end
|
191
|
+
|
192
|
+
def matches?(headers); end
|
193
|
+
def pp_to_s; end
|
194
|
+
def to_s; end
|
195
|
+
|
196
|
+
private
|
197
|
+
|
198
|
+
def empty_headers?(headers); end
|
199
|
+
end
|
200
|
+
|
201
|
+
class WebMock::HttpLibAdapter
|
202
|
+
class << self
|
203
|
+
def adapter_for(lib); end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
class WebMock::HttpLibAdapterRegistry
|
208
|
+
include ::Singleton
|
209
|
+
extend ::Singleton::SingletonClassMethods
|
210
|
+
|
211
|
+
def initialize; end
|
212
|
+
|
213
|
+
def each_adapter(&block); end
|
214
|
+
def http_lib_adapters; end
|
215
|
+
def http_lib_adapters=(_arg0); end
|
216
|
+
def register(lib, adapter); end
|
217
|
+
end
|
218
|
+
|
219
|
+
module WebMock::HttpLibAdapters; end
|
220
|
+
|
221
|
+
class WebMock::HttpLibAdapters::NetHttpAdapter < ::WebMock::HttpLibAdapter
|
222
|
+
class << self
|
223
|
+
def disable!; end
|
224
|
+
def enable!; end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
WebMock::HttpLibAdapters::NetHttpAdapter::OriginalNetBufferedIO = Net::BufferedIO
|
229
|
+
WebMock::HttpLibAdapters::NetHttpAdapter::OriginalNetHTTP = Net::HTTP
|
230
|
+
module WebMock::Matchers; end
|
231
|
+
|
232
|
+
class WebMock::Matchers::AnyArgMatcher
|
233
|
+
def initialize(ignore); end
|
234
|
+
|
235
|
+
def ==(other); end
|
236
|
+
end
|
237
|
+
|
238
|
+
class WebMock::Matchers::HashArgumentMatcher
|
239
|
+
def initialize(expected); end
|
240
|
+
|
241
|
+
def ==(_actual, &block); end
|
242
|
+
|
243
|
+
class << self
|
244
|
+
def from_rspec_matcher(matcher); end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
class WebMock::Matchers::HashExcludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
|
249
|
+
def ==(actual); end
|
250
|
+
def inspect; end
|
251
|
+
end
|
252
|
+
|
253
|
+
class WebMock::Matchers::HashIncludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
|
254
|
+
def ==(actual); end
|
255
|
+
def inspect; end
|
256
|
+
end
|
257
|
+
|
258
|
+
class WebMock::MethodPattern
|
259
|
+
def initialize(pattern); end
|
260
|
+
|
261
|
+
def matches?(method); end
|
262
|
+
def to_s; end
|
263
|
+
end
|
264
|
+
|
265
|
+
class WebMock::NetConnectNotAllowedError < ::Exception
|
266
|
+
def initialize(request_signature); end
|
267
|
+
end
|
268
|
+
|
269
|
+
module WebMock::NetHTTPUtility
|
270
|
+
class << self
|
271
|
+
def check_right_http_connection; end
|
272
|
+
def get_uri(net_http, path); end
|
273
|
+
def puts_warning_for_right_http_if_needed; end
|
274
|
+
def request_signature_from_request(net_http, request, body = T.unsafe(nil)); end
|
275
|
+
def validate_headers(headers); end
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
module WebMock::RSpecMatcherDetector
|
280
|
+
def rSpecHashExcludingMatcher?(matcher); end
|
281
|
+
def rSpecHashIncludingMatcher?(matcher); end
|
282
|
+
end
|
283
|
+
|
284
|
+
class WebMock::RackResponse < ::WebMock::Response
|
285
|
+
def initialize(app); end
|
286
|
+
|
287
|
+
def body_from_rack_response(response); end
|
288
|
+
def build_rack_env(request); end
|
289
|
+
def evaluate(request); end
|
290
|
+
def session; end
|
291
|
+
def session_options; end
|
292
|
+
end
|
293
|
+
|
294
|
+
class WebMock::RequestBodyDiff
|
295
|
+
def initialize(request_signature, request_stub); end
|
296
|
+
|
297
|
+
def body_diff; end
|
298
|
+
|
299
|
+
private
|
300
|
+
|
301
|
+
def parseable_json?(body_pattern); end
|
302
|
+
def request_signature; end
|
303
|
+
def request_signature_body_hash; end
|
304
|
+
def request_signature_diffable?; end
|
305
|
+
def request_signature_parseable_json?; end
|
306
|
+
def request_stub; end
|
307
|
+
def request_stub_body; end
|
308
|
+
def request_stub_body_hash; end
|
309
|
+
def request_stub_diffable?; end
|
310
|
+
def request_stub_parseable_json?; end
|
311
|
+
end
|
312
|
+
|
313
|
+
class WebMock::RequestExecutionVerifier
|
314
|
+
def initialize(request_pattern = T.unsafe(nil), expected_times_executed = T.unsafe(nil), at_least_times_executed = T.unsafe(nil), at_most_times_executed = T.unsafe(nil)); end
|
315
|
+
|
316
|
+
def at_least_times_executed; end
|
317
|
+
def at_least_times_executed=(_arg0); end
|
318
|
+
def at_most_times_executed; end
|
319
|
+
def at_most_times_executed=(_arg0); end
|
320
|
+
def description; end
|
321
|
+
def does_not_match?; end
|
322
|
+
def expected_times_executed; end
|
323
|
+
def expected_times_executed=(_arg0); end
|
324
|
+
def failure_message; end
|
325
|
+
def failure_message_when_negated; end
|
326
|
+
def matches?; end
|
327
|
+
def request_pattern; end
|
328
|
+
def request_pattern=(_arg0); end
|
329
|
+
def times_executed; end
|
330
|
+
def times_executed=(_arg0); end
|
331
|
+
|
332
|
+
private
|
333
|
+
|
334
|
+
def failure_message_phrase(is_negated = T.unsafe(nil)); end
|
335
|
+
def quantity_phrase(is_negated = T.unsafe(nil)); end
|
336
|
+
def times(times); end
|
337
|
+
|
338
|
+
class << self
|
339
|
+
def executed_requests_message; end
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
class WebMock::RequestPattern
|
344
|
+
def initialize(method, uri, options = T.unsafe(nil)); end
|
345
|
+
|
346
|
+
def body_pattern; end
|
347
|
+
def headers_pattern; end
|
348
|
+
def matches?(request_signature); end
|
349
|
+
def method_pattern; end
|
350
|
+
def to_s; end
|
351
|
+
def uri_pattern; end
|
352
|
+
def with(options = T.unsafe(nil), &block); end
|
353
|
+
|
354
|
+
private
|
355
|
+
|
356
|
+
def assign_options(options); end
|
357
|
+
def create_uri_pattern(uri); end
|
358
|
+
def set_basic_auth_as_headers!(options); end
|
359
|
+
def validate_basic_auth!(basic_auth); end
|
360
|
+
end
|
361
|
+
|
362
|
+
class WebMock::RequestRegistry
|
363
|
+
include ::Singleton
|
364
|
+
extend ::Singleton::SingletonClassMethods
|
365
|
+
|
366
|
+
def initialize; end
|
367
|
+
|
368
|
+
def requested_signatures; end
|
369
|
+
def requested_signatures=(_arg0); end
|
370
|
+
def reset!; end
|
371
|
+
def times_executed(request_pattern); end
|
372
|
+
def to_s; end
|
373
|
+
end
|
374
|
+
|
375
|
+
class WebMock::RequestSignature
|
376
|
+
def initialize(method, uri, options = T.unsafe(nil)); end
|
377
|
+
|
378
|
+
def ==(other); end
|
379
|
+
def body; end
|
380
|
+
def body=(_arg0); end
|
381
|
+
def eql?(other); end
|
382
|
+
def hash; end
|
383
|
+
def headers; end
|
384
|
+
def headers=(headers); end
|
385
|
+
def json_headers?; end
|
386
|
+
def method; end
|
387
|
+
def method=(_arg0); end
|
388
|
+
def to_s; end
|
389
|
+
def uri; end
|
390
|
+
def uri=(_arg0); end
|
391
|
+
def url_encoded?; end
|
392
|
+
|
393
|
+
private
|
394
|
+
|
395
|
+
def assign_options(options); end
|
396
|
+
end
|
397
|
+
|
398
|
+
class WebMock::RequestSignatureSnippet
|
399
|
+
def initialize(request_signature); end
|
400
|
+
|
401
|
+
def request_signature; end
|
402
|
+
def request_stub; end
|
403
|
+
def request_stubs; end
|
404
|
+
def stubbing_instructions; end
|
405
|
+
|
406
|
+
private
|
407
|
+
|
408
|
+
def add_body_diff(stub, text); end
|
409
|
+
def pretty_print_to_string(string_to_print); end
|
410
|
+
def request_params; end
|
411
|
+
def signature_stub_body_diff(stub); end
|
412
|
+
end
|
413
|
+
|
414
|
+
class WebMock::RequestStub
|
415
|
+
def initialize(method, uri); end
|
416
|
+
|
417
|
+
def and_raise(*exceptions); end
|
418
|
+
def and_return(*response_hashes, &block); end
|
419
|
+
def and_timeout; end
|
420
|
+
def has_responses?; end
|
421
|
+
def matches?(request_signature); end
|
422
|
+
def request_pattern; end
|
423
|
+
def request_pattern=(_arg0); end
|
424
|
+
def response; end
|
425
|
+
def then; end
|
426
|
+
def times(number); end
|
427
|
+
def to_rack(app, options = T.unsafe(nil)); end
|
428
|
+
def to_raise(*exceptions); end
|
429
|
+
def to_return(*response_hashes, &block); end
|
430
|
+
def to_s; end
|
431
|
+
def to_timeout; end
|
432
|
+
def with(params = T.unsafe(nil), &block); end
|
433
|
+
|
434
|
+
class << self
|
435
|
+
def from_request_signature(signature); end
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
class WebMock::Response
|
440
|
+
def initialize(options = T.unsafe(nil)); end
|
441
|
+
|
442
|
+
def ==(other); end
|
443
|
+
def body; end
|
444
|
+
def body=(body); end
|
445
|
+
def evaluate(request_signature); end
|
446
|
+
def exception; end
|
447
|
+
def exception=(exception); end
|
448
|
+
def headers; end
|
449
|
+
def headers=(headers); end
|
450
|
+
def options=(options); end
|
451
|
+
def raise_error_if_any; end
|
452
|
+
def should_timeout; end
|
453
|
+
def status; end
|
454
|
+
def status=(status); end
|
455
|
+
|
456
|
+
private
|
457
|
+
|
458
|
+
def assert_valid_body!; end
|
459
|
+
def read_raw_response(raw_response); end
|
460
|
+
def stringify_body!; end
|
461
|
+
end
|
462
|
+
|
463
|
+
class WebMock::Response::InvalidBody < ::StandardError; end
|
464
|
+
|
465
|
+
class WebMock::ResponseFactory
|
466
|
+
class << self
|
467
|
+
def response_for(options); end
|
468
|
+
end
|
469
|
+
end
|
470
|
+
|
471
|
+
class WebMock::ResponsesSequence
|
472
|
+
def initialize(responses); end
|
473
|
+
|
474
|
+
def end?; end
|
475
|
+
def next_response; end
|
476
|
+
def times_to_repeat; end
|
477
|
+
def times_to_repeat=(_arg0); end
|
478
|
+
|
479
|
+
private
|
480
|
+
|
481
|
+
def increase_position; end
|
482
|
+
end
|
483
|
+
|
484
|
+
class WebMock::StubRegistry
|
485
|
+
include ::Singleton
|
486
|
+
extend ::Singleton::SingletonClassMethods
|
487
|
+
|
488
|
+
def initialize; end
|
489
|
+
|
490
|
+
def global_stubs; end
|
491
|
+
def register_global_stub(order = T.unsafe(nil), &block); end
|
492
|
+
def register_request_stub(stub); end
|
493
|
+
def registered_request?(request_signature); end
|
494
|
+
def remove_request_stub(stub); end
|
495
|
+
def request_stubs; end
|
496
|
+
def request_stubs=(_arg0); end
|
497
|
+
def reset!; end
|
498
|
+
def response_for_request(request_signature); end
|
499
|
+
|
500
|
+
private
|
501
|
+
|
502
|
+
def evaluate_response_for_request(response, request_signature); end
|
503
|
+
def request_stub_for(request_signature); end
|
504
|
+
end
|
505
|
+
|
506
|
+
class WebMock::StubRequestSnippet
|
507
|
+
def initialize(request_stub); end
|
508
|
+
|
509
|
+
def body_pattern; end
|
510
|
+
def to_s(with_response = T.unsafe(nil)); end
|
511
|
+
end
|
512
|
+
|
513
|
+
class WebMock::URIAddressablePattern < ::WebMock::URIPattern
|
514
|
+
def add_query_params(query_params); end
|
515
|
+
|
516
|
+
private
|
517
|
+
|
518
|
+
def matches_with_variations?(uri); end
|
519
|
+
def pattern_inspect; end
|
520
|
+
def pattern_matches?(uri); end
|
521
|
+
def template_matches_uri?(template, uri); end
|
522
|
+
end
|
523
|
+
|
524
|
+
class WebMock::URICallablePattern < ::WebMock::URIPattern
|
525
|
+
private
|
526
|
+
|
527
|
+
def pattern_matches?(uri); end
|
528
|
+
end
|
529
|
+
|
530
|
+
class WebMock::URIPattern
|
531
|
+
include ::WebMock::RSpecMatcherDetector
|
532
|
+
|
533
|
+
def initialize(pattern); end
|
534
|
+
|
535
|
+
def add_query_params(query_params); end
|
536
|
+
def matches?(uri); end
|
537
|
+
def to_s; end
|
538
|
+
|
539
|
+
private
|
540
|
+
|
541
|
+
def pattern_inspect; end
|
542
|
+
def query_params_matches?(uri); end
|
543
|
+
end
|
544
|
+
|
545
|
+
class WebMock::URIRegexpPattern < ::WebMock::URIPattern
|
546
|
+
private
|
547
|
+
|
548
|
+
def pattern_matches?(uri); end
|
549
|
+
end
|
550
|
+
|
551
|
+
class WebMock::URIStringPattern < ::WebMock::URIPattern
|
552
|
+
def add_query_params(query_params); end
|
553
|
+
|
554
|
+
private
|
555
|
+
|
556
|
+
def pattern_inspect; end
|
557
|
+
def pattern_matches?(uri); end
|
558
|
+
end
|
559
|
+
|
560
|
+
module WebMock::Util; end
|
561
|
+
|
562
|
+
class WebMock::Util::HashCounter
|
563
|
+
def initialize; end
|
564
|
+
|
565
|
+
def each(&block); end
|
566
|
+
def get(key); end
|
567
|
+
def hash; end
|
568
|
+
def hash=(_arg0); end
|
569
|
+
def put(key, num = T.unsafe(nil)); end
|
570
|
+
def select(&block); end
|
571
|
+
end
|
572
|
+
|
573
|
+
class WebMock::Util::HashKeysStringifier
|
574
|
+
class << self
|
575
|
+
def stringify_keys!(arg, options = T.unsafe(nil)); end
|
576
|
+
end
|
577
|
+
end
|
578
|
+
|
579
|
+
class WebMock::Util::Headers
|
580
|
+
class << self
|
581
|
+
def basic_auth_header(*credentials); end
|
582
|
+
def decode_userinfo_from_header(header); end
|
583
|
+
def normalize_headers(headers); end
|
584
|
+
def pp_headers_string(headers); end
|
585
|
+
def sorted_headers_string(headers); end
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
class WebMock::Util::JSON
|
590
|
+
class << self
|
591
|
+
def convert_json_to_yaml(json); end
|
592
|
+
def parse(json); end
|
593
|
+
def unescape(str); end
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
597
|
+
class WebMock::Util::JSON::ParseError < ::StandardError; end
|
598
|
+
|
599
|
+
class WebMock::Util::QueryMapper
|
600
|
+
class << self
|
601
|
+
def collect_query_hash(query_array, empty_accumulator, options); end
|
602
|
+
def collect_query_parts(query); end
|
603
|
+
def dehash(hash); end
|
604
|
+
def fill_accumulator_for_dot(accumulator, key, value); end
|
605
|
+
def fill_accumulator_for_flat(accumulator, key, value); end
|
606
|
+
def fill_accumulator_for_flat_array(accumulator, key, value); end
|
607
|
+
def fill_accumulator_for_subscript(accumulator, key, value); end
|
608
|
+
def normalize_query_hash(query_hash, empty_accumulator, options); end
|
609
|
+
def query_to_values(query, options = T.unsafe(nil)); end
|
610
|
+
def to_query(parent, value, options = T.unsafe(nil)); end
|
611
|
+
def values_to_query(new_query_values, options = T.unsafe(nil)); end
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
class WebMock::Util::URI
|
616
|
+
class << self
|
617
|
+
def encode_unsafe_chars_in_userinfo(userinfo); end
|
618
|
+
def heuristic_parse(uri); end
|
619
|
+
def is_uri_localhost?(uri); end
|
620
|
+
def normalize_uri(uri); end
|
621
|
+
def sort_query_values(query_values); end
|
622
|
+
def strip_default_port_from_uri_string(uri_string); end
|
623
|
+
def uris_encoded_and_unencoded(uris); end
|
624
|
+
def uris_with_inferred_port_and_without(uris); end
|
625
|
+
def uris_with_scheme_and_without(uris); end
|
626
|
+
def uris_with_trailing_slash_and_without(uris); end
|
627
|
+
def variations_of_uri_as_strings(uri_object, only_with_scheme: T.unsafe(nil)); end
|
628
|
+
end
|
629
|
+
end
|
630
|
+
|
631
|
+
WebMock::Util::URI::ADDRESSABLE_URIS = T.let(T.unsafe(nil), Hash)
|
632
|
+
module WebMock::Util::URI::CharacterClasses; end
|
633
|
+
WebMock::Util::URI::CharacterClasses::USERINFO = T.let(T.unsafe(nil), String)
|
634
|
+
WebMock::Util::URI::NORMALIZED_URIS = T.let(T.unsafe(nil), Hash)
|
635
|
+
|
636
|
+
class WebMock::Util::ValuesStringifier
|
637
|
+
class << self
|
638
|
+
def stringify_values(value); end
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
642
|
+
WebMock::VERSION = T.let(T.unsafe(nil), String)
|
643
|
+
|
644
|
+
class WebMock::VersionChecker
|
645
|
+
def initialize(library_name, library_version, min_patch_level, max_minor_version = T.unsafe(nil), unsupported_versions = T.unsafe(nil)); end
|
646
|
+
|
647
|
+
def check_version!; end
|
648
|
+
|
649
|
+
private
|
650
|
+
|
651
|
+
def colorize(text, color_code); end
|
652
|
+
def compare_version; end
|
653
|
+
def parse_version(version); end
|
654
|
+
def too_high?; end
|
655
|
+
def too_low?; end
|
656
|
+
def unsupported_version?; end
|
657
|
+
def version_requirement; end
|
658
|
+
def warn_about_too_high; end
|
659
|
+
def warn_about_too_low; end
|
660
|
+
def warn_about_unsupported_version; end
|
661
|
+
def warn_in_red(text); end
|
662
|
+
end
|