ory-client 1.9.0 → 1.11.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +11 -10
- data/docs/CreateProjectBody.md +2 -2
- data/docs/CreateProjectNormalizedPayload.md +23 -5
- data/docs/IdentityApi.md +9 -9
- data/docs/IdentityCredentials.md +1 -1
- data/docs/LoginFlow.md +1 -1
- data/docs/MetadataApi.md +0 -134
- data/docs/MigrationOptions.md +1 -1
- data/docs/NormalizedProject.md +3 -1
- data/docs/NormalizedProjectRevision.md +22 -4
- data/docs/ProjectMetadata.md +3 -1
- data/docs/QuotaUsage.md +1 -1
- data/docs/RegistrationFlow.md +1 -1
- data/docs/Subscription.md +1 -1
- data/docs/SuccessfulNativeLogin.md +2 -0
- data/docs/UiNode.md +1 -1
- data/docs/UiNodeAnchorAttributes.md +1 -1
- data/docs/UiNodeImageAttributes.md +1 -1
- data/docs/UiNodeInputAttributes.md +3 -1
- data/docs/UiNodeScriptAttributes.md +1 -1
- data/docs/UiNodeTextAttributes.md +1 -1
- data/docs/UpdateLoginFlowBody.md +3 -0
- data/docs/UpdateLoginFlowWithPasskeyMethod.md +22 -0
- data/docs/UpdateRegistrationFlowBody.md +3 -0
- data/docs/UpdateRegistrationFlowWithPasskeyMethod.md +26 -0
- data/docs/UpdateRegistrationFlowWithProfileMethod.md +26 -0
- data/docs/UpdateSettingsFlowBody.md +3 -0
- data/docs/UpdateSettingsFlowWithPasskeyMethod.md +24 -0
- data/lib/ory-client/api/courier_api.rb +2 -2
- data/lib/ory-client/api/events_api.rb +2 -2
- data/lib/ory-client/api/frontend_api.rb +2 -2
- data/lib/ory-client/api/identity_api.rb +12 -12
- data/lib/ory-client/api/jwk_api.rb +2 -2
- data/lib/ory-client/api/metadata_api.rb +2 -116
- data/lib/ory-client/api/o_auth2_api.rb +2 -2
- data/lib/ory-client/api/oidc_api.rb +2 -2
- data/lib/ory-client/api/permission_api.rb +2 -2
- data/lib/ory-client/api/project_api.rb +2 -2
- data/lib/ory-client/api/relationship_api.rb +2 -2
- data/lib/ory-client/api/wellknown_api.rb +2 -2
- data/lib/ory-client/api_client.rb +2 -2
- data/lib/ory-client/api_error.rb +2 -2
- data/lib/ory-client/configuration.rb +2 -2
- data/lib/ory-client/models/accept_o_auth2_consent_request.rb +2 -2
- data/lib/ory-client/models/accept_o_auth2_consent_request_session.rb +2 -2
- data/lib/ory-client/models/accept_o_auth2_login_request.rb +2 -2
- data/lib/ory-client/models/active_project_in_console.rb +2 -2
- data/lib/ory-client/models/attribute.rb +2 -2
- data/lib/ory-client/models/attribute_filter.rb +2 -2
- data/lib/ory-client/models/attributes_count_datapoint.rb +2 -2
- data/lib/ory-client/models/authenticator_assurance_level.rb +2 -2
- data/lib/ory-client/models/batch_patch_identities_response.rb +2 -2
- data/lib/ory-client/models/check_opl_syntax_result.rb +2 -2
- data/lib/ory-client/models/check_permission_result.rb +2 -2
- data/lib/ory-client/models/cloud_account.rb +2 -2
- data/lib/ory-client/models/consistency_request_parameters.rb +2 -2
- data/lib/ory-client/models/continue_with.rb +2 -2
- data/lib/ory-client/models/continue_with_recovery_ui.rb +2 -2
- data/lib/ory-client/models/continue_with_recovery_ui_flow.rb +2 -2
- data/lib/ory-client/models/continue_with_set_ory_session_token.rb +2 -2
- data/lib/ory-client/models/continue_with_settings_ui.rb +2 -2
- data/lib/ory-client/models/continue_with_settings_ui_flow.rb +2 -2
- data/lib/ory-client/models/continue_with_verification_ui.rb +2 -2
- data/lib/ory-client/models/continue_with_verification_ui_flow.rb +2 -2
- data/lib/ory-client/models/courier_message_status.rb +2 -2
- data/lib/ory-client/models/courier_message_type.rb +2 -2
- data/lib/ory-client/models/create_custom_domain_body.rb +2 -2
- data/lib/ory-client/models/create_event_stream_body.rb +2 -2
- data/lib/ory-client/models/create_identity_body.rb +2 -2
- data/lib/ory-client/models/create_invite_response.rb +2 -2
- data/lib/ory-client/models/create_json_web_key_set.rb +2 -2
- data/lib/ory-client/models/create_project_api_key_request.rb +2 -2
- data/lib/ory-client/models/create_project_body.rb +6 -6
- data/lib/ory-client/models/create_project_branding.rb +2 -2
- data/lib/ory-client/models/create_project_member_invite_body.rb +2 -2
- data/lib/ory-client/models/create_project_normalized_payload.rb +101 -11
- data/lib/ory-client/models/create_recovery_code_for_identity_body.rb +2 -2
- data/lib/ory-client/models/create_recovery_link_for_identity_body.rb +2 -2
- data/lib/ory-client/models/create_relationship_body.rb +2 -2
- data/lib/ory-client/models/create_subscription_body.rb +2 -2
- data/lib/ory-client/models/create_subscription_common.rb +2 -2
- data/lib/ory-client/models/create_verifiable_credential_request_body.rb +2 -2
- data/lib/ory-client/models/create_workspace_member_invite_body.rb +2 -2
- data/lib/ory-client/models/create_workspace_payload.rb +2 -2
- data/lib/ory-client/models/create_workspace_subscription_body.rb +2 -2
- data/lib/ory-client/models/credential_supported_draft00.rb +2 -2
- data/lib/ory-client/models/custom_domain.rb +2 -2
- data/lib/ory-client/models/delete_my_sessions_count.rb +2 -2
- data/lib/ory-client/models/email_template_data.rb +2 -2
- data/lib/ory-client/models/email_template_data_body.rb +2 -2
- data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +2 -2
- data/lib/ory-client/models/error_browser_location_change_required.rb +2 -2
- data/lib/ory-client/models/error_flow_replaced.rb +2 -2
- data/lib/ory-client/models/error_generic.rb +2 -2
- data/lib/ory-client/models/error_o_auth2.rb +2 -2
- data/lib/ory-client/models/event_stream.rb +2 -2
- data/lib/ory-client/models/expanded_permission_tree.rb +2 -2
- data/lib/ory-client/models/flow_error.rb +2 -2
- data/lib/ory-client/models/generic_error.rb +2 -2
- data/lib/ory-client/models/generic_error_content.rb +2 -2
- data/lib/ory-client/models/generic_usage.rb +2 -2
- data/lib/ory-client/models/get_attributes_count_response.rb +2 -2
- data/lib/ory-client/models/get_managed_identity_schema_location.rb +2 -2
- data/lib/ory-client/models/get_metrics_event_attributes_response.rb +2 -2
- data/lib/ory-client/models/get_metrics_event_types_response.rb +2 -2
- data/lib/ory-client/models/get_organization_response.rb +2 -2
- data/lib/ory-client/models/get_project_events_body.rb +2 -2
- data/lib/ory-client/models/get_project_events_response.rb +2 -2
- data/lib/ory-client/models/get_project_metrics_response.rb +2 -2
- data/lib/ory-client/models/get_session_activity_response.rb +2 -2
- data/lib/ory-client/models/get_version200_response.rb +2 -2
- data/lib/ory-client/models/health_not_ready_status.rb +2 -2
- data/lib/ory-client/models/health_status.rb +2 -2
- data/lib/ory-client/models/identity.rb +2 -2
- data/lib/ory-client/models/identity_credentials.rb +5 -5
- data/lib/ory-client/models/identity_credentials_code.rb +2 -2
- data/lib/ory-client/models/identity_credentials_oidc.rb +2 -2
- data/lib/ory-client/models/identity_credentials_oidc_provider.rb +2 -2
- data/lib/ory-client/models/identity_credentials_password.rb +2 -2
- data/lib/ory-client/models/identity_patch.rb +2 -2
- data/lib/ory-client/models/identity_patch_response.rb +2 -2
- data/lib/ory-client/models/identity_schema_container.rb +2 -2
- data/lib/ory-client/models/identity_schema_preset.rb +2 -2
- data/lib/ory-client/models/identity_with_credentials.rb +2 -2
- data/lib/ory-client/models/identity_with_credentials_oidc.rb +2 -2
- data/lib/ory-client/models/identity_with_credentials_oidc_config.rb +2 -2
- data/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb +2 -2
- data/lib/ory-client/models/identity_with_credentials_password.rb +2 -2
- data/lib/ory-client/models/identity_with_credentials_password_config.rb +2 -2
- data/lib/ory-client/models/internal_get_project_branding_body.rb +2 -2
- data/lib/ory-client/models/internal_is_ax_welcome_screen_enabled_for_project_body.rb +2 -2
- data/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb +2 -2
- data/lib/ory-client/models/internal_is_owner_for_project_by_slug_response.rb +2 -2
- data/lib/ory-client/models/introspected_o_auth2_token.rb +2 -2
- data/lib/ory-client/models/is_owner_for_project_by_slug.rb +2 -2
- data/lib/ory-client/models/json_patch.rb +2 -2
- data/lib/ory-client/models/json_web_key.rb +2 -2
- data/lib/ory-client/models/json_web_key_set.rb +2 -2
- data/lib/ory-client/models/keto_namespace.rb +2 -2
- data/lib/ory-client/models/list_event_streams.rb +2 -2
- data/lib/ory-client/models/list_my_workspaces_response.rb +2 -2
- data/lib/ory-client/models/list_organizations_response.rb +2 -2
- data/lib/ory-client/models/list_workspace_projects_response.rb +2 -2
- data/lib/ory-client/models/login_flow.rb +5 -5
- data/lib/ory-client/models/login_flow_state.rb +2 -2
- data/lib/ory-client/models/logout_flow.rb +2 -2
- data/lib/ory-client/models/managed_identity_schema.rb +2 -2
- data/lib/ory-client/models/managed_identity_schema_validation_result.rb +2 -2
- data/lib/ory-client/models/member_invite.rb +2 -2
- data/lib/ory-client/models/message.rb +2 -2
- data/lib/ory-client/models/message_dispatch.rb +2 -2
- data/lib/ory-client/models/metrics_datapoint.rb +2 -2
- data/lib/ory-client/models/migration_options.rb +5 -5
- data/lib/ory-client/models/namespace.rb +2 -2
- data/lib/ory-client/models/needs_privileged_session_error.rb +2 -2
- data/lib/ory-client/models/normalized_project.rb +15 -6
- data/lib/ory-client/models/normalized_project_revision.rb +98 -7
- data/lib/ory-client/models/normalized_project_revision_courier_channel.rb +2 -2
- data/lib/ory-client/models/normalized_project_revision_hook.rb +2 -2
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +2 -2
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +2 -2
- data/lib/ory-client/models/normalized_project_revision_tokenizer_template.rb +2 -2
- data/lib/ory-client/models/o_auth2_client.rb +2 -2
- data/lib/ory-client/models/o_auth2_client_token_lifespans.rb +2 -2
- data/lib/ory-client/models/o_auth2_consent_request.rb +2 -2
- data/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb +2 -2
- data/lib/ory-client/models/o_auth2_consent_session.rb +2 -2
- data/lib/ory-client/models/o_auth2_consent_session_expires_at.rb +2 -2
- data/lib/ory-client/models/o_auth2_login_request.rb +2 -2
- data/lib/ory-client/models/o_auth2_logout_request.rb +2 -2
- data/lib/ory-client/models/o_auth2_redirect_to.rb +2 -2
- data/lib/ory-client/models/o_auth2_token_exchange.rb +2 -2
- data/lib/ory-client/models/oidc_configuration.rb +2 -2
- data/lib/ory-client/models/oidc_user_info.rb +2 -2
- data/lib/ory-client/models/organization.rb +2 -2
- data/lib/ory-client/models/organization_body.rb +2 -2
- data/lib/ory-client/models/pagination.rb +2 -2
- data/lib/ory-client/models/pagination_headers.rb +2 -2
- data/lib/ory-client/models/parse_error.rb +2 -2
- data/lib/ory-client/models/patch_identities_body.rb +2 -2
- data/lib/ory-client/models/perform_native_logout_body.rb +2 -2
- data/lib/ory-client/models/permissions_on_workpace_response.rb +2 -2
- data/lib/ory-client/models/plan.rb +2 -2
- data/lib/ory-client/models/plan_details.rb +2 -2
- data/lib/ory-client/models/post_check_permission_body.rb +2 -2
- data/lib/ory-client/models/post_check_permission_or_error_body.rb +2 -2
- data/lib/ory-client/models/project.rb +2 -2
- data/lib/ory-client/models/project_api_key.rb +2 -2
- data/lib/ory-client/models/project_branding.rb +2 -2
- data/lib/ory-client/models/project_branding_colors.rb +2 -2
- data/lib/ory-client/models/project_branding_theme.rb +2 -2
- data/lib/ory-client/models/project_cors.rb +2 -2
- data/lib/ory-client/models/project_events_datapoint.rb +2 -2
- data/lib/ory-client/models/project_host.rb +2 -2
- data/lib/ory-client/models/project_member.rb +2 -2
- data/lib/ory-client/models/project_metadata.rb +15 -6
- data/lib/ory-client/models/project_service_identity.rb +2 -2
- data/lib/ory-client/models/project_service_o_auth2.rb +2 -2
- data/lib/ory-client/models/project_service_permission.rb +2 -2
- data/lib/ory-client/models/project_services.rb +2 -2
- data/lib/ory-client/models/quota_usage.rb +5 -5
- data/lib/ory-client/models/recovery_code_for_identity.rb +2 -2
- data/lib/ory-client/models/recovery_flow.rb +2 -2
- data/lib/ory-client/models/recovery_flow_state.rb +2 -2
- data/lib/ory-client/models/recovery_identity_address.rb +2 -2
- data/lib/ory-client/models/recovery_link_for_identity.rb +2 -2
- data/lib/ory-client/models/registration_flow.rb +5 -5
- data/lib/ory-client/models/registration_flow_state.rb +2 -2
- data/lib/ory-client/models/reject_o_auth2_request.rb +2 -2
- data/lib/ory-client/models/relation_query.rb +2 -2
- data/lib/ory-client/models/relationship.rb +2 -2
- data/lib/ory-client/models/relationship_namespaces.rb +2 -2
- data/lib/ory-client/models/relationship_patch.rb +2 -2
- data/lib/ory-client/models/relationships.rb +2 -2
- data/lib/ory-client/models/rfc6749_error_json.rb +2 -2
- data/lib/ory-client/models/schema_patch.rb +2 -2
- data/lib/ory-client/models/self_service_flow_expired_error.rb +2 -2
- data/lib/ory-client/models/session.rb +2 -2
- data/lib/ory-client/models/session_activity_datapoint.rb +2 -2
- data/lib/ory-client/models/session_authentication_method.rb +2 -2
- data/lib/ory-client/models/session_device.rb +2 -2
- data/lib/ory-client/models/set_active_project_in_console_body.rb +2 -2
- data/lib/ory-client/models/set_custom_domain_body.rb +2 -2
- data/lib/ory-client/models/set_event_stream_body.rb +2 -2
- data/lib/ory-client/models/set_project.rb +2 -2
- data/lib/ory-client/models/set_project_branding_theme_body.rb +2 -2
- data/lib/ory-client/models/settings_flow.rb +2 -2
- data/lib/ory-client/models/settings_flow_state.rb +2 -2
- data/lib/ory-client/models/source_position.rb +2 -2
- data/lib/ory-client/models/subject_set.rb +2 -2
- data/lib/ory-client/models/subscription.rb +3 -3
- data/lib/ory-client/models/successful_code_exchange_response.rb +2 -2
- data/lib/ory-client/models/successful_native_login.rb +15 -3
- data/lib/ory-client/models/successful_native_registration.rb +2 -2
- data/lib/ory-client/models/successful_project_update.rb +2 -2
- data/lib/ory-client/models/token_pagination.rb +2 -2
- data/lib/ory-client/models/token_pagination_headers.rb +2 -2
- data/lib/ory-client/models/token_pagination_request_parameters.rb +2 -2
- data/lib/ory-client/models/token_pagination_response_headers.rb +2 -2
- data/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb +2 -2
- data/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb +2 -2
- data/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +2 -2
- data/lib/ory-client/models/ui_container.rb +2 -2
- data/lib/ory-client/models/ui_node.rb +5 -5
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +37 -3
- data/lib/ory-client/models/ui_node_attributes.rb +2 -2
- data/lib/ory-client/models/ui_node_image_attributes.rb +37 -3
- data/lib/ory-client/models/ui_node_input_attributes.rb +26 -4
- data/lib/ory-client/models/ui_node_meta.rb +2 -2
- data/lib/ory-client/models/ui_node_script_attributes.rb +37 -3
- data/lib/ory-client/models/ui_node_text_attributes.rb +37 -3
- data/lib/ory-client/models/ui_text.rb +2 -2
- data/lib/ory-client/models/update_identity_body.rb +2 -2
- data/lib/ory-client/models/update_login_flow_body.rb +4 -2
- data/lib/ory-client/models/update_login_flow_with_code_method.rb +2 -2
- data/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb +2 -2
- data/lib/ory-client/models/update_login_flow_with_oidc_method.rb +2 -2
- data/lib/ory-client/models/{is_ready200_response.rb → update_login_flow_with_passkey_method.rb} +38 -17
- data/lib/ory-client/models/update_login_flow_with_password_method.rb +2 -2
- data/lib/ory-client/models/update_login_flow_with_totp_method.rb +2 -2
- data/lib/ory-client/models/update_login_flow_with_web_authn_method.rb +2 -2
- data/lib/ory-client/models/update_recovery_flow_body.rb +2 -2
- data/lib/ory-client/models/update_recovery_flow_with_code_method.rb +2 -2
- data/lib/ory-client/models/update_recovery_flow_with_link_method.rb +2 -2
- data/lib/ory-client/models/update_registration_flow_body.rb +4 -2
- data/lib/ory-client/models/update_registration_flow_with_code_method.rb +2 -2
- data/lib/ory-client/models/update_registration_flow_with_oidc_method.rb +2 -2
- data/lib/ory-client/models/update_registration_flow_with_passkey_method.rb +270 -0
- data/lib/ory-client/models/update_registration_flow_with_password_method.rb +2 -2
- data/lib/ory-client/models/update_registration_flow_with_profile_method.rb +270 -0
- data/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb +2 -2
- data/lib/ory-client/models/update_settings_flow_body.rb +4 -2
- data/lib/ory-client/models/update_settings_flow_with_lookup_method.rb +2 -2
- data/lib/ory-client/models/update_settings_flow_with_oidc_method.rb +2 -2
- data/lib/ory-client/models/{is_ready503_response.rb → update_settings_flow_with_passkey_method.rb} +48 -19
- data/lib/ory-client/models/update_settings_flow_with_password_method.rb +2 -2
- data/lib/ory-client/models/update_settings_flow_with_profile_method.rb +2 -2
- data/lib/ory-client/models/update_settings_flow_with_totp_method.rb +2 -2
- data/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb +2 -2
- data/lib/ory-client/models/update_subscription_body.rb +2 -2
- data/lib/ory-client/models/update_verification_flow_body.rb +2 -2
- data/lib/ory-client/models/update_verification_flow_with_code_method.rb +2 -2
- data/lib/ory-client/models/update_verification_flow_with_link_method.rb +2 -2
- data/lib/ory-client/models/update_workspace_payload.rb +2 -2
- data/lib/ory-client/models/usage.rb +2 -2
- data/lib/ory-client/models/verifiable_credential_priming_response.rb +2 -2
- data/lib/ory-client/models/verifiable_credential_proof.rb +2 -2
- data/lib/ory-client/models/verifiable_credential_response.rb +2 -2
- data/lib/ory-client/models/verifiable_identity_address.rb +2 -2
- data/lib/ory-client/models/verification_flow.rb +2 -2
- data/lib/ory-client/models/verification_flow_state.rb +2 -2
- data/lib/ory-client/models/version.rb +2 -2
- data/lib/ory-client/models/warning.rb +2 -2
- data/lib/ory-client/models/workspace.rb +2 -2
- data/lib/ory-client/models/workspace_meta.rb +2 -2
- data/lib/ory-client/version.rb +3 -3
- data/lib/ory-client.rb +6 -4
- data/ory-client.gemspec +2 -2
- data/spec/api/courier_api_spec.rb +2 -2
- data/spec/api/events_api_spec.rb +2 -2
- data/spec/api/frontend_api_spec.rb +2 -2
- data/spec/api/identity_api_spec.rb +5 -5
- data/spec/api/jwk_api_spec.rb +2 -2
- data/spec/api/metadata_api_spec.rb +2 -24
- data/spec/api/o_auth2_api_spec.rb +2 -2
- data/spec/api/oidc_api_spec.rb +2 -2
- data/spec/api/permission_api_spec.rb +2 -2
- data/spec/api/project_api_spec.rb +2 -2
- data/spec/api/relationship_api_spec.rb +2 -2
- data/spec/api/wellknown_api_spec.rb +2 -2
- data/spec/models/accept_o_auth2_consent_request_session_spec.rb +2 -2
- data/spec/models/accept_o_auth2_consent_request_spec.rb +2 -2
- data/spec/models/accept_o_auth2_login_request_spec.rb +2 -2
- data/spec/models/active_project_in_console_spec.rb +2 -2
- data/spec/models/attribute_filter_spec.rb +2 -2
- data/spec/models/attribute_spec.rb +2 -2
- data/spec/models/attributes_count_datapoint_spec.rb +2 -2
- data/spec/models/authenticator_assurance_level_spec.rb +2 -2
- data/spec/models/batch_patch_identities_response_spec.rb +2 -2
- data/spec/models/check_opl_syntax_result_spec.rb +2 -2
- data/spec/models/check_permission_result_spec.rb +2 -2
- data/spec/models/cloud_account_spec.rb +2 -2
- data/spec/models/consistency_request_parameters_spec.rb +2 -2
- data/spec/models/continue_with_recovery_ui_flow_spec.rb +2 -2
- data/spec/models/continue_with_recovery_ui_spec.rb +2 -2
- data/spec/models/continue_with_set_ory_session_token_spec.rb +2 -2
- data/spec/models/continue_with_settings_ui_flow_spec.rb +2 -2
- data/spec/models/continue_with_settings_ui_spec.rb +2 -2
- data/spec/models/continue_with_spec.rb +2 -2
- data/spec/models/continue_with_verification_ui_flow_spec.rb +2 -2
- data/spec/models/continue_with_verification_ui_spec.rb +2 -2
- data/spec/models/courier_message_status_spec.rb +2 -2
- data/spec/models/courier_message_type_spec.rb +2 -2
- data/spec/models/create_custom_domain_body_spec.rb +2 -2
- data/spec/models/create_event_stream_body_spec.rb +2 -2
- data/spec/models/create_identity_body_spec.rb +2 -2
- data/spec/models/create_invite_response_spec.rb +2 -2
- data/spec/models/create_json_web_key_set_spec.rb +2 -2
- data/spec/models/create_project_api_key_request_spec.rb +2 -2
- data/spec/models/create_project_body_spec.rb +3 -3
- data/spec/models/create_project_branding_spec.rb +2 -2
- data/spec/models/create_project_member_invite_body_spec.rb +2 -2
- data/spec/models/create_project_normalized_payload_spec.rb +57 -3
- data/spec/models/create_recovery_code_for_identity_body_spec.rb +2 -2
- data/spec/models/create_recovery_link_for_identity_body_spec.rb +2 -2
- data/spec/models/create_relationship_body_spec.rb +2 -2
- data/spec/models/create_subscription_body_spec.rb +2 -2
- data/spec/models/create_subscription_common_spec.rb +2 -2
- data/spec/models/create_verifiable_credential_request_body_spec.rb +2 -2
- data/spec/models/create_workspace_member_invite_body_spec.rb +2 -2
- data/spec/models/create_workspace_payload_spec.rb +2 -2
- data/spec/models/create_workspace_subscription_body_spec.rb +2 -2
- data/spec/models/credential_supported_draft00_spec.rb +2 -2
- data/spec/models/custom_domain_spec.rb +2 -2
- data/spec/models/delete_my_sessions_count_spec.rb +2 -2
- data/spec/models/email_template_data_body_spec.rb +2 -2
- data/spec/models/email_template_data_spec.rb +2 -2
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +2 -2
- data/spec/models/error_browser_location_change_required_spec.rb +2 -2
- data/spec/models/error_flow_replaced_spec.rb +2 -2
- data/spec/models/error_generic_spec.rb +2 -2
- data/spec/models/error_o_auth2_spec.rb +2 -2
- data/spec/models/event_stream_spec.rb +2 -2
- data/spec/models/expanded_permission_tree_spec.rb +2 -2
- data/spec/models/flow_error_spec.rb +2 -2
- data/spec/models/generic_error_content_spec.rb +2 -2
- data/spec/models/generic_error_spec.rb +2 -2
- data/spec/models/generic_usage_spec.rb +2 -2
- data/spec/models/get_attributes_count_response_spec.rb +2 -2
- data/spec/models/get_managed_identity_schema_location_spec.rb +2 -2
- data/spec/models/get_metrics_event_attributes_response_spec.rb +2 -2
- data/spec/models/get_metrics_event_types_response_spec.rb +2 -2
- data/spec/models/get_organization_response_spec.rb +2 -2
- data/spec/models/get_project_events_body_spec.rb +2 -2
- data/spec/models/get_project_events_response_spec.rb +2 -2
- data/spec/models/get_project_metrics_response_spec.rb +2 -2
- data/spec/models/get_session_activity_response_spec.rb +2 -2
- data/spec/models/get_version200_response_spec.rb +2 -2
- data/spec/models/health_not_ready_status_spec.rb +2 -2
- data/spec/models/health_status_spec.rb +2 -2
- data/spec/models/identity_credentials_code_spec.rb +2 -2
- data/spec/models/identity_credentials_oidc_provider_spec.rb +2 -2
- data/spec/models/identity_credentials_oidc_spec.rb +2 -2
- data/spec/models/identity_credentials_password_spec.rb +2 -2
- data/spec/models/identity_credentials_spec.rb +3 -3
- data/spec/models/identity_patch_response_spec.rb +2 -2
- data/spec/models/identity_patch_spec.rb +2 -2
- data/spec/models/identity_schema_container_spec.rb +2 -2
- data/spec/models/identity_schema_preset_spec.rb +2 -2
- data/spec/models/identity_spec.rb +2 -2
- data/spec/models/identity_with_credentials_oidc_config_provider_spec.rb +2 -2
- data/spec/models/identity_with_credentials_oidc_config_spec.rb +2 -2
- data/spec/models/identity_with_credentials_oidc_spec.rb +2 -2
- data/spec/models/identity_with_credentials_password_config_spec.rb +2 -2
- data/spec/models/identity_with_credentials_password_spec.rb +2 -2
- data/spec/models/identity_with_credentials_spec.rb +2 -2
- data/spec/models/internal_get_project_branding_body_spec.rb +2 -2
- data/spec/models/internal_is_ax_welcome_screen_enabled_for_project_body_spec.rb +2 -2
- data/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb +2 -2
- data/spec/models/internal_is_owner_for_project_by_slug_response_spec.rb +2 -2
- data/spec/models/introspected_o_auth2_token_spec.rb +2 -2
- data/spec/models/is_owner_for_project_by_slug_spec.rb +2 -2
- data/spec/models/json_patch_spec.rb +2 -2
- data/spec/models/json_web_key_set_spec.rb +2 -2
- data/spec/models/json_web_key_spec.rb +2 -2
- data/spec/models/keto_namespace_spec.rb +2 -2
- data/spec/models/list_event_streams_spec.rb +2 -2
- data/spec/models/list_my_workspaces_response_spec.rb +2 -2
- data/spec/models/list_organizations_response_spec.rb +2 -2
- data/spec/models/list_workspace_projects_response_spec.rb +2 -2
- data/spec/models/login_flow_spec.rb +3 -3
- data/spec/models/login_flow_state_spec.rb +2 -2
- data/spec/models/logout_flow_spec.rb +2 -2
- data/spec/models/managed_identity_schema_spec.rb +2 -2
- data/spec/models/managed_identity_schema_validation_result_spec.rb +2 -2
- data/spec/models/member_invite_spec.rb +2 -2
- data/spec/models/message_dispatch_spec.rb +2 -2
- data/spec/models/message_spec.rb +2 -2
- data/spec/models/metrics_datapoint_spec.rb +2 -2
- data/spec/models/migration_options_spec.rb +3 -3
- data/spec/models/namespace_spec.rb +2 -2
- data/spec/models/needs_privileged_session_error_spec.rb +2 -2
- data/spec/models/normalized_project_revision_courier_channel_spec.rb +2 -2
- data/spec/models/normalized_project_revision_hook_spec.rb +2 -2
- data/spec/models/normalized_project_revision_identity_schema_spec.rb +2 -2
- data/spec/models/normalized_project_revision_spec.rb +56 -2
- data/spec/models/normalized_project_revision_third_party_provider_spec.rb +2 -2
- data/spec/models/normalized_project_revision_tokenizer_template_spec.rb +2 -2
- data/spec/models/normalized_project_spec.rb +9 -3
- data/spec/models/o_auth2_client_spec.rb +2 -2
- data/spec/models/o_auth2_client_token_lifespans_spec.rb +2 -2
- data/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +2 -2
- data/spec/models/o_auth2_consent_request_spec.rb +2 -2
- data/spec/models/o_auth2_consent_session_expires_at_spec.rb +2 -2
- data/spec/models/o_auth2_consent_session_spec.rb +2 -2
- data/spec/models/o_auth2_login_request_spec.rb +2 -2
- data/spec/models/o_auth2_logout_request_spec.rb +2 -2
- data/spec/models/o_auth2_redirect_to_spec.rb +2 -2
- data/spec/models/o_auth2_token_exchange_spec.rb +2 -2
- data/spec/models/oidc_configuration_spec.rb +2 -2
- data/spec/models/oidc_user_info_spec.rb +2 -2
- data/spec/models/organization_body_spec.rb +2 -2
- data/spec/models/organization_spec.rb +2 -2
- data/spec/models/pagination_headers_spec.rb +2 -2
- data/spec/models/pagination_spec.rb +2 -2
- data/spec/models/parse_error_spec.rb +2 -2
- data/spec/models/patch_identities_body_spec.rb +2 -2
- data/spec/models/perform_native_logout_body_spec.rb +2 -2
- data/spec/models/permissions_on_workpace_response_spec.rb +2 -2
- data/spec/models/plan_details_spec.rb +2 -2
- data/spec/models/plan_spec.rb +2 -2
- data/spec/models/post_check_permission_body_spec.rb +2 -2
- data/spec/models/post_check_permission_or_error_body_spec.rb +2 -2
- data/spec/models/project_api_key_spec.rb +2 -2
- data/spec/models/project_branding_colors_spec.rb +2 -2
- data/spec/models/project_branding_spec.rb +2 -2
- data/spec/models/project_branding_theme_spec.rb +2 -2
- data/spec/models/project_cors_spec.rb +2 -2
- data/spec/models/project_events_datapoint_spec.rb +2 -2
- data/spec/models/project_host_spec.rb +2 -2
- data/spec/models/project_member_spec.rb +2 -2
- data/spec/models/project_metadata_spec.rb +9 -3
- data/spec/models/project_service_identity_spec.rb +2 -2
- data/spec/models/project_service_o_auth2_spec.rb +2 -2
- data/spec/models/project_service_permission_spec.rb +2 -2
- data/spec/models/project_services_spec.rb +2 -2
- data/spec/models/project_spec.rb +2 -2
- data/spec/models/quota_usage_spec.rb +3 -3
- data/spec/models/recovery_code_for_identity_spec.rb +2 -2
- data/spec/models/recovery_flow_spec.rb +2 -2
- data/spec/models/recovery_flow_state_spec.rb +2 -2
- data/spec/models/recovery_identity_address_spec.rb +2 -2
- data/spec/models/recovery_link_for_identity_spec.rb +2 -2
- data/spec/models/registration_flow_spec.rb +3 -3
- data/spec/models/registration_flow_state_spec.rb +2 -2
- data/spec/models/reject_o_auth2_request_spec.rb +2 -2
- data/spec/models/relation_query_spec.rb +2 -2
- data/spec/models/relationship_namespaces_spec.rb +2 -2
- data/spec/models/relationship_patch_spec.rb +2 -2
- data/spec/models/relationship_spec.rb +2 -2
- data/spec/models/relationships_spec.rb +2 -2
- data/spec/models/rfc6749_error_json_spec.rb +2 -2
- data/spec/models/schema_patch_spec.rb +2 -2
- data/spec/models/self_service_flow_expired_error_spec.rb +2 -2
- data/spec/models/session_activity_datapoint_spec.rb +2 -2
- data/spec/models/session_authentication_method_spec.rb +2 -2
- data/spec/models/session_device_spec.rb +2 -2
- data/spec/models/session_spec.rb +2 -2
- data/spec/models/set_active_project_in_console_body_spec.rb +2 -2
- data/spec/models/set_custom_domain_body_spec.rb +2 -2
- data/spec/models/set_event_stream_body_spec.rb +2 -2
- data/spec/models/set_project_branding_theme_body_spec.rb +2 -2
- data/spec/models/set_project_spec.rb +2 -2
- data/spec/models/settings_flow_spec.rb +2 -2
- data/spec/models/settings_flow_state_spec.rb +2 -2
- data/spec/models/source_position_spec.rb +2 -2
- data/spec/models/subject_set_spec.rb +2 -2
- data/spec/models/subscription_spec.rb +2 -2
- data/spec/models/successful_code_exchange_response_spec.rb +2 -2
- data/spec/models/successful_native_login_spec.rb +8 -2
- data/spec/models/successful_native_registration_spec.rb +2 -2
- data/spec/models/successful_project_update_spec.rb +2 -2
- data/spec/models/token_pagination_headers_spec.rb +2 -2
- data/spec/models/token_pagination_request_parameters_spec.rb +2 -2
- data/spec/models/token_pagination_response_headers_spec.rb +2 -2
- data/spec/models/token_pagination_spec.rb +2 -2
- data/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +2 -2
- data/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +2 -2
- data/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +2 -2
- data/spec/models/ui_container_spec.rb +2 -2
- data/spec/models/ui_node_anchor_attributes_spec.rb +6 -2
- data/spec/models/ui_node_attributes_spec.rb +2 -2
- data/spec/models/ui_node_image_attributes_spec.rb +6 -2
- data/spec/models/ui_node_input_attributes_spec.rb +12 -2
- data/spec/models/ui_node_meta_spec.rb +2 -2
- data/spec/models/ui_node_script_attributes_spec.rb +6 -2
- data/spec/models/ui_node_spec.rb +3 -3
- data/spec/models/ui_node_text_attributes_spec.rb +6 -2
- data/spec/models/ui_text_spec.rb +2 -2
- data/spec/models/update_identity_body_spec.rb +2 -2
- data/spec/models/update_login_flow_body_spec.rb +2 -2
- data/spec/models/update_login_flow_with_code_method_spec.rb +2 -2
- data/spec/models/update_login_flow_with_lookup_secret_method_spec.rb +2 -2
- data/spec/models/update_login_flow_with_oidc_method_spec.rb +2 -2
- data/spec/models/update_login_flow_with_passkey_method_spec.rb +48 -0
- data/spec/models/update_login_flow_with_password_method_spec.rb +2 -2
- data/spec/models/update_login_flow_with_totp_method_spec.rb +2 -2
- data/spec/models/update_login_flow_with_web_authn_method_spec.rb +2 -2
- data/spec/models/update_recovery_flow_body_spec.rb +2 -2
- data/spec/models/update_recovery_flow_with_code_method_spec.rb +2 -2
- data/spec/models/update_recovery_flow_with_link_method_spec.rb +2 -2
- data/spec/models/update_registration_flow_body_spec.rb +2 -2
- data/spec/models/update_registration_flow_with_code_method_spec.rb +2 -2
- data/spec/models/update_registration_flow_with_oidc_method_spec.rb +2 -2
- data/spec/models/update_registration_flow_with_passkey_method_spec.rb +60 -0
- data/spec/models/update_registration_flow_with_password_method_spec.rb +2 -2
- data/spec/models/update_registration_flow_with_profile_method_spec.rb +60 -0
- data/spec/models/update_registration_flow_with_web_authn_method_spec.rb +2 -2
- data/spec/models/update_settings_flow_body_spec.rb +2 -2
- data/spec/models/update_settings_flow_with_lookup_method_spec.rb +2 -2
- data/spec/models/update_settings_flow_with_oidc_method_spec.rb +2 -2
- data/spec/models/update_settings_flow_with_passkey_method_spec.rb +54 -0
- data/spec/models/update_settings_flow_with_password_method_spec.rb +2 -2
- data/spec/models/update_settings_flow_with_profile_method_spec.rb +2 -2
- data/spec/models/update_settings_flow_with_totp_method_spec.rb +2 -2
- data/spec/models/update_settings_flow_with_web_authn_method_spec.rb +2 -2
- data/spec/models/update_subscription_body_spec.rb +2 -2
- data/spec/models/update_verification_flow_body_spec.rb +2 -2
- data/spec/models/update_verification_flow_with_code_method_spec.rb +2 -2
- data/spec/models/update_verification_flow_with_link_method_spec.rb +2 -2
- data/spec/models/update_workspace_payload_spec.rb +2 -2
- data/spec/models/usage_spec.rb +2 -2
- data/spec/models/verifiable_credential_priming_response_spec.rb +2 -2
- data/spec/models/verifiable_credential_proof_spec.rb +2 -2
- data/spec/models/verifiable_credential_response_spec.rb +2 -2
- data/spec/models/verifiable_identity_address_spec.rb +2 -2
- data/spec/models/verification_flow_spec.rb +2 -2
- data/spec/models/verification_flow_state_spec.rb +2 -2
- data/spec/models/version_spec.rb +2 -2
- data/spec/models/warning_spec.rb +2 -2
- data/spec/models/workspace_meta_spec.rb +2 -2
- data/spec/models/workspace_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/cache/method_source-1.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/parser-3.3.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.16.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/jaro_winkler-1.5.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/psych-4.0.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/racc-1.7.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/stringio-3.1.0/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/method_source-1.1.0/CHANGELOG.md +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/Gemfile +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/README.markdown +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/lib/method_source/code_helpers.rb +3 -3
- data/vendor/bundle/ruby/2.7.0/gems/method_source-1.1.0/lib/method_source/version.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/lib/method_source.rb +36 -0
- data/vendor/bundle/ruby/2.7.0/gems/method_source-1.1.0/method_source.gemspec +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/spec/method_source_spec.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/spec/spec_helper.rb +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/gauntlet_parser.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.1.0/lib/parser/all.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ast/processor.rb +3 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/current.rb +18 -18
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/macruby.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby18.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby19.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby20.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby21.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby22.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby23.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby24.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby25.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby26.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby27.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby30.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby31.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby32.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby33.rb +5 -5
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby34.rb +4 -4
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/rubymotion.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/runner/ruby_parse.rb +3 -3
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/runner/ruby_rewrite.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/runner.rb +19 -19
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/buffer.rb +6 -1
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/tree_rewriter/action.rb +5 -4
- data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.1.0/lib/parser/static_environment.rb +134 -0
- data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.1.0/lib/parser/unknown_encoding_in_magic_comment_error.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/version.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.1.0/lib/parser.rb +91 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.6/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/racc-1.7.3/ext/racc/cparse/Makefile +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/stringio-3.1.0/ext/stringio/Makefile +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/{method_source-1.0.0.gemspec → method_source-1.1.0.gemspec} +4 -15
- data/vendor/bundle/ruby/2.7.0/specifications/{parser-3.3.0.5.gemspec → parser-3.3.1.0.gemspec} +4 -4
- metadata +118 -110
- data/docs/IsReady200Response.md +0 -18
- data/docs/IsReady503Response.md +0 -18
- data/spec/models/is_ready200_response_spec.rb +0 -36
- data/spec/models/is_ready503_response_spec.rb +0 -36
- data/vendor/bundle/ruby/2.7.0/cache/method_source-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/parser-3.3.0.5.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/method_source-1.0.0/.circleci/config.yml +0 -139
- data/vendor/bundle/ruby/2.7.0/gems/method_source-1.0.0/CHANGELOG.md +0 -10
- data/vendor/bundle/ruby/2.7.0/gems/method_source-1.0.0/lib/method_source/version.rb +0 -3
- data/vendor/bundle/ruby/2.7.0/gems/method_source-1.0.0/method_source.gemspec +0 -33
- data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.0.5/lib/parser/all.rb +0 -17
- data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.0.5/lib/parser/static_environment.rb +0 -99
- data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.0.5/lib/parser.rb +0 -90
- /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/.gemtest +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/.yardopts +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/Rakefile +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/lib/method_source/source_location.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/spec/method_source/code_helpers_spec.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/bin/ruby-parse +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/bin/ruby-rewrite +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ast/node.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/base.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/builders/default.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/clobbering_error.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/color.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/context.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/current_arg_stack.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/deprecation.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/diagnostic/engine.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/diagnostic.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/lexer/dedenter.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/lexer/explanation.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/lexer/literal.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/lexer/stack_state.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/lexer-F0.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/lexer-F1.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/lexer-strings.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/max_numparam_stack.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/messages.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/meta.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby28.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/comment/associator.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/comment.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/collection.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/condition.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/constant.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/definition.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/for.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/heredoc.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/index.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/keyword.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/method_definition.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/objc_kwarg.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/operator.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/rescue_body.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/send.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/ternary.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map/variable.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/map.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/range.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/syntax_error.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/variables_stack.rb +0 -0
- /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/parser.gemspec +0 -0
@@ -30,6 +30,8 @@ describe MethodSource do
|
|
30
30
|
@hello_source = "def hello; :hello; end\n"
|
31
31
|
@hello_comment = "# A comment for hello\n# It spans two lines and is indented by 2 spaces\n"
|
32
32
|
@lambda_comment = "# This is a comment for MyLambda\n"
|
33
|
+
@module_comment = "# This is a comment for module\n"
|
34
|
+
@class_comment = "# This is a comment for class\n"
|
33
35
|
@lambda_source = "MyLambda = lambda { :lambda }\n"
|
34
36
|
@proc_source = "MyProc = Proc.new { :proc }\n"
|
35
37
|
@hello_instance_evaled_source = " def hello_\#{name}(*args)\n send_mesg(:\#{name}, *args)\n end\n"
|
@@ -109,6 +111,18 @@ describe MethodSource do
|
|
109
111
|
it 'should return comment for lambda' do
|
110
112
|
expect(MyLambda.comment).to eq(@lambda_comment)
|
111
113
|
end
|
114
|
+
|
115
|
+
it 'should return comment for module' do
|
116
|
+
expect(M.instance_method(:hello).module_comment).to eq(@module_comment)
|
117
|
+
end
|
118
|
+
|
119
|
+
it 'should return comment for class' do
|
120
|
+
expect(C.method(:hello).class_comment).to eq(@class_comment)
|
121
|
+
end
|
122
|
+
|
123
|
+
it 'should return comment for class instance' do
|
124
|
+
expect(C.new.method(:hello).class_comment).to eq(@class_comment)
|
125
|
+
end
|
112
126
|
end
|
113
127
|
# end
|
114
128
|
describe "Comment tests" do
|
data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/spec/spec_helper.rb
RENAMED
@@ -10,10 +10,16 @@ def jruby?
|
|
10
10
|
end
|
11
11
|
|
12
12
|
|
13
|
+
# This is a comment for module
|
13
14
|
module M
|
14
15
|
def hello; :hello_module; end
|
15
16
|
end
|
16
17
|
|
18
|
+
# This is a comment for class
|
19
|
+
class C
|
20
|
+
include M
|
21
|
+
end
|
22
|
+
|
17
23
|
$o = Object.new
|
18
24
|
def $o.hello; :hello_singleton; end
|
19
25
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'ruby18'
|
4
|
+
require_relative 'ruby19'
|
5
|
+
require_relative 'ruby20'
|
6
|
+
require_relative 'ruby21'
|
7
|
+
require_relative 'ruby22'
|
8
|
+
require_relative 'ruby23'
|
9
|
+
require_relative 'ruby24'
|
10
|
+
require_relative 'ruby25'
|
11
|
+
require_relative 'ruby26'
|
12
|
+
require_relative 'ruby27'
|
13
|
+
require_relative 'ruby30'
|
14
|
+
require_relative 'ruby31'
|
15
|
+
require_relative 'ruby32'
|
16
|
+
require_relative 'ruby33'
|
17
|
+
require_relative 'ruby34'
|
@@ -17,7 +17,7 @@ module Parser
|
|
17
17
|
warn_syntax_deviation 'parser/ruby20', current_version
|
18
18
|
end
|
19
19
|
|
20
|
-
|
20
|
+
require_relative 'ruby20'
|
21
21
|
CurrentRuby = Ruby20
|
22
22
|
|
23
23
|
when /^2\.1\./
|
@@ -26,7 +26,7 @@ module Parser
|
|
26
26
|
warn_syntax_deviation 'parser/ruby21', current_version
|
27
27
|
end
|
28
28
|
|
29
|
-
|
29
|
+
require_relative 'ruby21'
|
30
30
|
CurrentRuby = Ruby21
|
31
31
|
|
32
32
|
when /^2\.2\./
|
@@ -35,7 +35,7 @@ module Parser
|
|
35
35
|
warn_syntax_deviation 'parser/ruby22', current_version
|
36
36
|
end
|
37
37
|
|
38
|
-
|
38
|
+
require_relative 'ruby22'
|
39
39
|
CurrentRuby = Ruby22
|
40
40
|
|
41
41
|
when /^2\.3\./
|
@@ -44,7 +44,7 @@ module Parser
|
|
44
44
|
warn_syntax_deviation 'parser/ruby23', current_version
|
45
45
|
end
|
46
46
|
|
47
|
-
|
47
|
+
require_relative 'ruby23'
|
48
48
|
CurrentRuby = Ruby23
|
49
49
|
|
50
50
|
when /^2\.4\./
|
@@ -53,7 +53,7 @@ module Parser
|
|
53
53
|
warn_syntax_deviation 'parser/ruby24', current_version
|
54
54
|
end
|
55
55
|
|
56
|
-
|
56
|
+
require_relative 'ruby24'
|
57
57
|
CurrentRuby = Ruby24
|
58
58
|
|
59
59
|
when /^2\.5\./
|
@@ -62,7 +62,7 @@ module Parser
|
|
62
62
|
warn_syntax_deviation 'parser/ruby25', current_version
|
63
63
|
end
|
64
64
|
|
65
|
-
|
65
|
+
require_relative 'ruby25'
|
66
66
|
CurrentRuby = Ruby25
|
67
67
|
|
68
68
|
when /^2\.6\./
|
@@ -71,7 +71,7 @@ module Parser
|
|
71
71
|
warn_syntax_deviation 'parser/ruby26', current_version
|
72
72
|
end
|
73
73
|
|
74
|
-
|
74
|
+
require_relative 'ruby26'
|
75
75
|
CurrentRuby = Ruby26
|
76
76
|
|
77
77
|
when /^2\.7\./
|
@@ -80,43 +80,43 @@ module Parser
|
|
80
80
|
warn_syntax_deviation 'parser/ruby27', current_version
|
81
81
|
end
|
82
82
|
|
83
|
-
|
83
|
+
require_relative 'ruby27'
|
84
84
|
CurrentRuby = Ruby27
|
85
85
|
|
86
86
|
when /^3\.0\./
|
87
|
-
current_version = '3.0.
|
87
|
+
current_version = '3.0.7'
|
88
88
|
if RUBY_VERSION != current_version
|
89
89
|
warn_syntax_deviation 'parser/ruby30', current_version
|
90
90
|
end
|
91
91
|
|
92
|
-
|
92
|
+
require_relative 'ruby30'
|
93
93
|
CurrentRuby = Ruby30
|
94
94
|
|
95
95
|
when /^3\.1\./
|
96
|
-
current_version = '3.1.
|
96
|
+
current_version = '3.1.5'
|
97
97
|
if RUBY_VERSION != current_version
|
98
98
|
warn_syntax_deviation 'parser/ruby31', current_version
|
99
99
|
end
|
100
100
|
|
101
|
-
|
101
|
+
require_relative 'ruby31'
|
102
102
|
CurrentRuby = Ruby31
|
103
103
|
|
104
104
|
when /^3\.2\./
|
105
|
-
current_version = '3.2.
|
105
|
+
current_version = '3.2.4'
|
106
106
|
if RUBY_VERSION != current_version
|
107
107
|
warn_syntax_deviation 'parser/ruby32', current_version
|
108
108
|
end
|
109
109
|
|
110
|
-
|
110
|
+
require_relative 'ruby32'
|
111
111
|
CurrentRuby = Ruby32
|
112
112
|
|
113
113
|
when /^3\.3\./
|
114
|
-
current_version = '3.3.
|
114
|
+
current_version = '3.3.1'
|
115
115
|
if RUBY_VERSION != current_version
|
116
116
|
warn_syntax_deviation 'parser/ruby33', current_version
|
117
117
|
end
|
118
118
|
|
119
|
-
|
119
|
+
require_relative 'ruby33'
|
120
120
|
CurrentRuby = Ruby33
|
121
121
|
|
122
122
|
when /^3\.4\./
|
@@ -125,13 +125,13 @@ module Parser
|
|
125
125
|
warn_syntax_deviation 'parser/ruby34', current_version
|
126
126
|
end
|
127
127
|
|
128
|
-
|
128
|
+
require_relative 'ruby34'
|
129
129
|
CurrentRuby = Ruby34
|
130
130
|
|
131
131
|
else # :nocov:
|
132
132
|
# Keep this in sync with released Ruby.
|
133
133
|
warn_syntax_deviation 'parser/ruby33', '3.3.x'
|
134
|
-
|
134
|
+
require_relative 'ruby33'
|
135
135
|
CurrentRuby = Ruby33
|
136
136
|
end
|
137
137
|
end
|
@@ -8,7 +8,7 @@
|
|
8
8
|
require 'racc/parser.rb'
|
9
9
|
|
10
10
|
|
11
|
-
|
11
|
+
require_relative '../parser'
|
12
12
|
|
13
13
|
module Parser
|
14
14
|
class Ruby33 < Parser::Base
|
@@ -9905,7 +9905,7 @@ def _reduce_291(val, _values, result)
|
|
9905
9905
|
end
|
9906
9906
|
|
9907
9907
|
if @context.in_dynamic_block? && context.in_def &&
|
9908
|
-
@static_env.
|
9908
|
+
@static_env.declared_anonymous_blockarg_in_current_scpe? && @static_env.parent_has_anonymous_blockarg?
|
9909
9909
|
diagnostic :error, :ambiguous_anonymous_blockarg, nil, val[0]
|
9910
9910
|
end
|
9911
9911
|
|
@@ -9958,7 +9958,7 @@ def _reduce_299(val, _values, result)
|
|
9958
9958
|
end
|
9959
9959
|
|
9960
9960
|
if @context.in_dynamic_block? && context.in_def &&
|
9961
|
-
@static_env.
|
9961
|
+
@static_env.declared_anonymous_restarg_in_current_scope? && @static_env.parent_has_anonymous_restarg?
|
9962
9962
|
diagnostic :error, :ambiguous_anonymous_restarg, nil, val[0]
|
9963
9963
|
end
|
9964
9964
|
|
@@ -10977,7 +10977,7 @@ end
|
|
10977
10977
|
|
10978
10978
|
def _reduce_457(val, _values, result)
|
10979
10979
|
result = @context.in_kwarg
|
10980
|
-
|
10980
|
+
|
10981
10981
|
@lexer.state = :expr_beg
|
10982
10982
|
@lexer.command_start = false
|
10983
10983
|
@context.in_kwarg = true
|
@@ -12492,7 +12492,7 @@ def _reduce_715(val, _values, result)
|
|
12492
12492
|
end
|
12493
12493
|
|
12494
12494
|
if @context.in_dynamic_block? && context.in_def &&
|
12495
|
-
@static_env.
|
12495
|
+
@static_env.declared_anonymous_kwrestarg_in_current_scope? && @static_env.parent_has_anonymous_kwrestarg?
|
12496
12496
|
diagnostic :error, :ambiguous_anonymous_kwrestarg, nil, val[0]
|
12497
12497
|
end
|
12498
12498
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
require 'racc/parser.rb'
|
9
9
|
|
10
10
|
|
11
|
-
|
11
|
+
require_relative '../parser'
|
12
12
|
|
13
13
|
module Parser
|
14
14
|
class Ruby34 < Parser::Base
|
@@ -9905,7 +9905,7 @@ def _reduce_291(val, _values, result)
|
|
9905
9905
|
end
|
9906
9906
|
|
9907
9907
|
if @context.in_dynamic_block? && context.in_def &&
|
9908
|
-
@static_env.
|
9908
|
+
@static_env.declared_anonymous_blockarg_in_current_scpe? && @static_env.parent_has_anonymous_blockarg?
|
9909
9909
|
diagnostic :error, :ambiguous_anonymous_blockarg, nil, val[0]
|
9910
9910
|
end
|
9911
9911
|
|
@@ -9958,7 +9958,7 @@ def _reduce_299(val, _values, result)
|
|
9958
9958
|
end
|
9959
9959
|
|
9960
9960
|
if @context.in_dynamic_block? && context.in_def &&
|
9961
|
-
@static_env.
|
9961
|
+
@static_env.declared_anonymous_restarg_in_current_scope? && @static_env.parent_has_anonymous_restarg?
|
9962
9962
|
diagnostic :error, :ambiguous_anonymous_restarg, nil, val[0]
|
9963
9963
|
end
|
9964
9964
|
|
@@ -12492,7 +12492,7 @@ def _reduce_715(val, _values, result)
|
|
12492
12492
|
end
|
12493
12493
|
|
12494
12494
|
if @context.in_dynamic_block? && context.in_def &&
|
12495
|
-
@static_env.
|
12495
|
+
@static_env.declared_anonymous_kwrestarg_in_current_scope? && @static_env.parent_has_anonymous_kwrestarg?
|
12496
12496
|
diagnostic :error, :ambiguous_anonymous_kwrestarg, nil, val[0]
|
12497
12497
|
end
|
12498
12498
|
|
@@ -4,7 +4,7 @@ require 'benchmark'
|
|
4
4
|
require 'find'
|
5
5
|
require 'optparse'
|
6
6
|
|
7
|
-
|
7
|
+
require_relative '../parser'
|
8
8
|
|
9
9
|
module Parser
|
10
10
|
|
@@ -64,87 +64,87 @@ module Parser
|
|
64
64
|
end
|
65
65
|
|
66
66
|
opts.on '--18', 'Parse as Ruby 1.8.7 would' do
|
67
|
-
|
67
|
+
require_relative 'ruby18'
|
68
68
|
@parser_class = Parser::Ruby18
|
69
69
|
end
|
70
70
|
|
71
71
|
opts.on '--19', 'Parse as Ruby 1.9.3 would' do
|
72
|
-
|
72
|
+
require_relative 'ruby19'
|
73
73
|
@parser_class = Parser::Ruby19
|
74
74
|
end
|
75
75
|
|
76
76
|
opts.on '--20', 'Parse as Ruby 2.0 would' do
|
77
|
-
|
77
|
+
require_relative 'ruby20'
|
78
78
|
@parser_class = Parser::Ruby20
|
79
79
|
end
|
80
80
|
|
81
81
|
opts.on '--21', 'Parse as Ruby 2.1 would' do
|
82
|
-
|
82
|
+
require_relative 'ruby21'
|
83
83
|
@parser_class = Parser::Ruby21
|
84
84
|
end
|
85
85
|
|
86
86
|
opts.on '--22', 'Parse as Ruby 2.2 would' do
|
87
|
-
|
87
|
+
require_relative 'ruby22'
|
88
88
|
@parser_class = Parser::Ruby22
|
89
89
|
end
|
90
90
|
|
91
91
|
opts.on '--23', 'Parse as Ruby 2.3 would' do
|
92
|
-
|
92
|
+
require_relative 'ruby23'
|
93
93
|
@parser_class = Parser::Ruby23
|
94
94
|
end
|
95
95
|
|
96
96
|
opts.on '--24', 'Parse as Ruby 2.4 would' do
|
97
|
-
|
97
|
+
require_relative 'ruby24'
|
98
98
|
@parser_class = Parser::Ruby24
|
99
99
|
end
|
100
100
|
|
101
101
|
opts.on '--25', 'Parse as Ruby 2.5 would' do
|
102
|
-
|
102
|
+
require_relative 'ruby25'
|
103
103
|
@parser_class = Parser::Ruby25
|
104
104
|
end
|
105
105
|
|
106
106
|
opts.on '--26', 'Parse as Ruby 2.6 would' do
|
107
|
-
|
107
|
+
require_relative 'ruby26'
|
108
108
|
@parser_class = Parser::Ruby26
|
109
109
|
end
|
110
110
|
|
111
111
|
opts.on '--27', 'Parse as Ruby 2.7 would' do
|
112
|
-
|
112
|
+
require_relative 'ruby27'
|
113
113
|
@parser_class = Parser::Ruby27
|
114
114
|
end
|
115
115
|
|
116
116
|
opts.on '--30', 'Parse as Ruby 3.0 would' do
|
117
|
-
|
117
|
+
require_relative 'ruby30'
|
118
118
|
@parser_class = Parser::Ruby30
|
119
119
|
end
|
120
120
|
|
121
121
|
opts.on '--31', 'Parse as Ruby 3.1 would' do
|
122
|
-
|
122
|
+
require_relative 'ruby31'
|
123
123
|
@parser_class = Parser::Ruby31
|
124
124
|
end
|
125
125
|
|
126
126
|
opts.on '--32', 'Parse as Ruby 3.2 would' do
|
127
|
-
|
127
|
+
require_relative 'ruby32'
|
128
128
|
@parser_class = Parser::Ruby32
|
129
129
|
end
|
130
130
|
|
131
131
|
opts.on '--33', 'Parse as Ruby 3.3 would' do
|
132
|
-
|
132
|
+
require_relative 'ruby33'
|
133
133
|
@parser_class = Parser::Ruby33
|
134
134
|
end
|
135
135
|
|
136
136
|
opts.on '--34', 'Parse as Ruby 3.4 would' do
|
137
|
-
|
137
|
+
require_relative 'ruby34'
|
138
138
|
@parser_class = Parser::Ruby34
|
139
139
|
end
|
140
140
|
|
141
141
|
opts.on '--mac', 'Parse as MacRuby 0.12 would' do
|
142
|
-
|
142
|
+
require_relative 'macruby'
|
143
143
|
@parser_class = Parser::MacRuby
|
144
144
|
end
|
145
145
|
|
146
146
|
opts.on '--ios', 'Parse as mid-2015 RubyMotion would' do
|
147
|
-
|
147
|
+
require_relative 'rubymotion'
|
148
148
|
@parser_class = Parser::RubyMotion
|
149
149
|
end
|
150
150
|
|
@@ -193,7 +193,7 @@ module Parser
|
|
193
193
|
end
|
194
194
|
|
195
195
|
if @parser_class.nil?
|
196
|
-
|
196
|
+
require_relative 'current'
|
197
197
|
@parser_class = Parser::CurrentRuby
|
198
198
|
end
|
199
199
|
end
|
data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/source/buffer.rb
RENAMED
@@ -46,6 +46,7 @@ module Parser
|
|
46
46
|
# magic encoding comment or UTF-8 BOM. `string` can be in any encoding.
|
47
47
|
#
|
48
48
|
# @param [String] string
|
49
|
+
# @raise [Parser::UnknownEncodingInMagicComment] if the encoding is not recognized
|
49
50
|
# @return [String, nil] encoding name, if recognized
|
50
51
|
#
|
51
52
|
def self.recognize_encoding(string)
|
@@ -66,7 +67,11 @@ module Parser
|
|
66
67
|
return nil if encoding_line.nil? || encoding_line[0] != '#'
|
67
68
|
|
68
69
|
if (result = ENCODING_RE.match(encoding_line))
|
69
|
-
|
70
|
+
begin
|
71
|
+
Encoding.find(result[3] || result[4] || result[6])
|
72
|
+
rescue ArgumentError => e
|
73
|
+
raise Parser::UnknownEncodingInMagicComment, e.message
|
74
|
+
end
|
70
75
|
else
|
71
76
|
nil
|
72
77
|
end
|
@@ -6,9 +6,10 @@ module Parser
|
|
6
6
|
# @api private
|
7
7
|
#
|
8
8
|
# Actions are arranged in a tree and get combined so that:
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
9
|
+
#
|
10
|
+
# * Children are strictly contained by their parent
|
11
|
+
# * Siblings are all disjointed from one another and ordered
|
12
|
+
# * Only actions with `replacement == nil` may have children
|
12
13
|
#
|
13
14
|
class TreeRewriter::Action
|
14
15
|
attr_reader :range, :replacement, :insert_before, :insert_after
|
@@ -60,7 +61,7 @@ module Parser
|
|
60
61
|
|
61
62
|
##
|
62
63
|
# A root action has its range set to the whole source range, even
|
63
|
-
# though it typically
|
64
|
+
# though it typically does not act on that range.
|
64
65
|
# This method returns the action as if it was a child action with
|
65
66
|
# its range contracted.
|
66
67
|
# @return [Action]
|