ory-client 0.0.1.alpha24 → 0.0.1.alpha30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +7 -5
- data/docs/CnameSettings.md +30 -0
- data/docs/UpdateCustomHostnameBody.md +20 -0
- data/lib/ory-client/api/metadata_api.rb +1 -1
- data/lib/ory-client/api/v0alpha0_api.rb +1 -1
- data/lib/ory-client/api/v0alpha2_api.rb +1 -1
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/configuration.rb +1 -1
- data/lib/ory-client/models/active_project.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_body.rb +1 -1
- data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
- data/lib/ory-client/models/admin_update_identity_body.rb +1 -1
- data/lib/ory-client/models/api_token.rb +1 -1
- data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
- data/lib/ory-client/models/cname_settings.rb +275 -0
- data/lib/ory-client/models/create_custom_hostname_body.rb +1 -1
- data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
- data/lib/ory-client/models/generic_error.rb +1 -1
- data/lib/ory-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-client/models/health_status.rb +1 -1
- data/lib/ory-client/models/identity.rb +1 -1
- data/lib/ory-client/models/identity_credentials.rb +1 -1
- data/lib/ory-client/models/identity_credentials_type.rb +1 -1
- data/lib/ory-client/models/identity_preset.rb +1 -1
- data/lib/ory-client/models/identity_schema.rb +1 -1
- data/lib/ory-client/models/identity_schema_location.rb +1 -1
- data/lib/ory-client/models/identity_schema_validation_result.rb +1 -1
- data/lib/ory-client/models/identity_state.rb +1 -1
- data/lib/ory-client/models/inline_response200.rb +1 -1
- data/lib/ory-client/models/inline_response2001.rb +1 -1
- data/lib/ory-client/models/inline_response503.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +1 -1
- data/lib/ory-client/models/json_error.rb +1 -1
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/null_string.rb +1 -1
- data/lib/ory-client/models/null_uuid.rb +1 -1
- data/lib/ory-client/models/project.rb +1 -1
- data/lib/ory-client/models/project_host.rb +1 -1
- data/lib/ory-client/models/project_lookup_secret_config.rb +1 -1
- data/lib/ory-client/models/project_oidc_config.rb +1 -1
- data/lib/ory-client/models/project_password_config.rb +1 -1
- data/lib/ory-client/models/project_patch.rb +1 -1
- data/lib/ory-client/models/project_recovery_config.rb +1 -1
- data/lib/ory-client/models/project_revision.rb +1 -1
- data/lib/ory-client/models/project_slug.rb +1 -1
- data/lib/ory-client/models/project_totp_config.rb +1 -1
- data/lib/ory-client/models/project_verification_config.rb +1 -1
- data/lib/ory-client/models/project_web_authn_config.rb +1 -1
- data/lib/ory-client/models/provision_project_payload.rb +1 -1
- data/lib/ory-client/models/recovery_address.rb +1 -1
- data/lib/ory-client/models/redirection_config.rb +1 -1
- data/lib/ory-client/models/redirection_field.rb +1 -1
- data/lib/ory-client/models/schema_patch.rb +1 -1
- data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +1 -1
- data/lib/ory-client/models/self_service_error.rb +1 -1
- data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
- data/lib/ory-client/models/self_service_login_flow.rb +1 -1
- data/lib/ory-client/models/self_service_logout_url.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_flow.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_link.rb +1 -1
- data/lib/ory-client/models/self_service_registration_flow.rb +1 -1
- data/lib/ory-client/models/self_service_settings_flow.rb +1 -1
- data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-client/models/session.rb +1 -1
- data/lib/ory-client/models/session_authentication_method.rb +1 -1
- data/lib/ory-client/models/session_device.rb +1 -1
- data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-client/models/stripe_customer_response.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/successful_self_service_login_without_browser.rb +1 -1
- data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +1 -1
- data/lib/ory-client/models/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +1 -1
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_meta.rb +1 -1
- data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_custom_hostname_body.rb +229 -0
- data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
- data/lib/ory-client/models/version.rb +1 -1
- data/lib/ory-client/version.rb +2 -2
- data/lib/ory-client.rb +3 -1
- data/ory-client.gemspec +1 -1
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/v0alpha0_api_spec.rb +1 -1
- data/spec/api/v0alpha2_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/active_project_spec.rb +1 -1
- data/spec/models/admin_create_identity_body_spec.rb +1 -1
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
- data/spec/models/admin_update_identity_body_spec.rb +1 -1
- data/spec/models/api_token_spec.rb +1 -1
- data/spec/models/authenticator_assurance_level_spec.rb +1 -1
- data/spec/models/cname_settings_spec.rb +70 -0
- data/spec/models/create_custom_hostname_body_spec.rb +1 -1
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/identity_credentials_spec.rb +1 -1
- data/spec/models/identity_credentials_type_spec.rb +1 -1
- data/spec/models/identity_preset_spec.rb +1 -1
- data/spec/models/identity_schema_location_spec.rb +1 -1
- data/spec/models/identity_schema_spec.rb +1 -1
- data/spec/models/identity_schema_validation_result_spec.rb +1 -1
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/inline_response503_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
- data/spec/models/json_error_spec.rb +1 -1
- data/spec/models/needs_privileged_session_error_spec.rb +1 -1
- data/spec/models/null_string_spec.rb +1 -1
- data/spec/models/null_uuid_spec.rb +1 -1
- data/spec/models/project_host_spec.rb +1 -1
- data/spec/models/project_lookup_secret_config_spec.rb +1 -1
- data/spec/models/project_oidc_config_spec.rb +1 -1
- data/spec/models/project_password_config_spec.rb +1 -1
- data/spec/models/project_patch_spec.rb +1 -1
- data/spec/models/project_recovery_config_spec.rb +1 -1
- data/spec/models/project_revision_spec.rb +1 -1
- data/spec/models/project_slug_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/project_totp_config_spec.rb +1 -1
- data/spec/models/project_verification_config_spec.rb +1 -1
- data/spec/models/project_web_authn_config_spec.rb +1 -1
- data/spec/models/provision_project_payload_spec.rb +1 -1
- data/spec/models/recovery_address_spec.rb +1 -1
- data/spec/models/redirection_config_spec.rb +1 -1
- data/spec/models/redirection_field_spec.rb +1 -1
- data/spec/models/schema_patch_spec.rb +1 -1
- data/spec/models/self_service_browser_location_change_required_error_spec.rb +1 -1
- data/spec/models/self_service_error_spec.rb +1 -1
- data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
- data/spec/models/self_service_login_flow_spec.rb +1 -1
- data/spec/models/self_service_logout_url_spec.rb +1 -1
- data/spec/models/self_service_recovery_flow_spec.rb +1 -1
- data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
- data/spec/models/self_service_recovery_link_spec.rb +1 -1
- data/spec/models/self_service_registration_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
- data/spec/models/session_authentication_method_spec.rb +1 -1
- data/spec/models/session_device_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/settings_profile_form_config_spec.rb +1 -1
- data/spec/models/stripe_customer_response_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
- data/spec/models/ui_container_spec.rb +1 -1
- data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
- data/spec/models/ui_node_attributes_spec.rb +1 -1
- data/spec/models/ui_node_image_attributes_spec.rb +1 -1
- data/spec/models/ui_node_input_attributes_spec.rb +1 -1
- data/spec/models/ui_node_meta_spec.rb +1 -1
- data/spec/models/ui_node_script_attributes_spec.rb +1 -1
- data/spec/models/ui_node_spec.rb +1 -1
- data/spec/models/ui_node_text_attributes_spec.rb +1 -1
- data/spec/models/ui_text_spec.rb +1 -1
- data/spec/models/update_custom_hostname_body_spec.rb +40 -0
- data/spec/models/verifiable_identity_address_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/cache/parser-3.0.3.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/LICENSE.txt +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/bin/ruby-parse +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/bin/ruby-rewrite +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/gauntlet_parser.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/all.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ast/node.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ast/processor.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/base.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/builders/default.rb +71 -10
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/clobbering_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/color.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/context.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/current.rb +3 -3
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/current_arg_stack.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/deprecation.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/diagnostic/engine.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/diagnostic.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/lexer/dedenter.rb +7 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/lexer/explanation.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/lexer/literal.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/lexer/stack_state.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-3.0.3.0/lib/parser/lexer.rb +24709 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/macruby.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/max_numparam_stack.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/messages.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/meta.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/rewriter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby18.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby19.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby20.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby21.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby22.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby23.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby24.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby25.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby26.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby27.rb +45 -41
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby28.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby30.rb +45 -41
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/ruby31.rb +2758 -2701
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/rubymotion.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/runner/ruby_parse.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/runner/ruby_rewrite.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/runner.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/buffer.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/comment/associator.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/comment.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/collection.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/condition.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/constant.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/definition.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/for.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/heredoc.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/index.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/keyword.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/method_definition.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/objc_kwarg.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/operator.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/rescue_body.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/send.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/ternary.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map/variable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/map.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/range.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/rewriter/action.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/rewriter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/tree_rewriter/action.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/source/tree_rewriter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/static_environment.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/syntax_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/tree_rewriter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/variables_stack.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser/version.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/lib/parser.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.0}/parser.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.2/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/{parser-3.0.2.0.gemspec → parser-3.0.3.0.gemspec} +4 -4
- metadata +88 -80
- data/vendor/bundle/ruby/2.5.0/cache/parser-3.0.2.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/lexer.rb +0 -23840
File without changes
|
File without changes
|
@@ -76,9 +76,11 @@ module Parser
|
|
76
76
|
:duplicate_variable_name => 'duplicate variable name %{name}',
|
77
77
|
:duplicate_pattern_key => 'duplicate hash pattern key %{name}',
|
78
78
|
:endless_setter => 'setter method cannot be defined in an endless method definition',
|
79
|
+
:invalid_id_to_get => 'identifier %{identifier} is not valid to get',
|
79
80
|
|
80
81
|
# Parser warnings
|
81
82
|
:useless_else => 'else without rescue is useless',
|
83
|
+
:duplicate_hash_key => 'key is duplicated and overwritten',
|
82
84
|
|
83
85
|
# Parser errors that are not Ruby errors
|
84
86
|
:invalid_encoding => 'literal contains escape sequences incompatible with UTF-8',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -21,6 +21,50 @@ module Parser
|
|
21
21
|
def default_encoding
|
22
22
|
Encoding::UTF_8
|
23
23
|
end
|
24
|
+
|
25
|
+
def try_declare_numparam(node)
|
26
|
+
name = node.children[0]
|
27
|
+
|
28
|
+
if name =~ /\A_[1-9]\z/ && !static_env.declared?(name) && context.in_dynamic_block?
|
29
|
+
# definitely an implicit param
|
30
|
+
location = node.loc.expression
|
31
|
+
|
32
|
+
if max_numparam_stack.has_ordinary_params?
|
33
|
+
diagnostic :error, :ordinary_param_defined, nil, [nil, location]
|
34
|
+
end
|
35
|
+
|
36
|
+
raw_context = context.stack.dup
|
37
|
+
raw_max_numparam_stack = max_numparam_stack.stack.dup
|
38
|
+
|
39
|
+
# ignore current block scope
|
40
|
+
raw_context.pop
|
41
|
+
raw_max_numparam_stack.pop
|
42
|
+
|
43
|
+
raw_context.reverse_each do |outer_scope|
|
44
|
+
if outer_scope == :block || outer_scope == :lambda
|
45
|
+
outer_scope_has_numparams = raw_max_numparam_stack.pop > 0
|
46
|
+
|
47
|
+
if outer_scope_has_numparams
|
48
|
+
diagnostic :error, :numparam_used_in_outer_scope, nil, [nil, location]
|
49
|
+
else
|
50
|
+
# for now it's ok, but an outer scope can also be a block
|
51
|
+
# with numparams, so we need to continue
|
52
|
+
end
|
53
|
+
else
|
54
|
+
# found an outer scope that can't have numparams
|
55
|
+
# like def/class/etc
|
56
|
+
break
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
static_env.declare(name)
|
61
|
+
max_numparam_stack.register(name[1].to_i)
|
62
|
+
|
63
|
+
true
|
64
|
+
else
|
65
|
+
false
|
66
|
+
end
|
67
|
+
end
|
24
68
|
##### State transition tables begin ###
|
25
69
|
|
26
70
|
clist = [
|
@@ -6739,7 +6783,7 @@ def _reduce_522(val, _values, result)
|
|
6739
6783
|
end
|
6740
6784
|
|
6741
6785
|
def _reduce_523(val, _values, result)
|
6742
|
-
result = @builder.match_var(val[0])
|
6786
|
+
result = @builder.assignable(@builder.match_var(val[0]))
|
6743
6787
|
|
6744
6788
|
result
|
6745
6789
|
end
|
@@ -7181,46 +7225,6 @@ def _reduce_596(val, _values, result)
|
|
7181
7225
|
end
|
7182
7226
|
|
7183
7227
|
def _reduce_597(val, _values, result)
|
7184
|
-
if (node = val[0]) && node.type == :ident
|
7185
|
-
name = node.children[0]
|
7186
|
-
|
7187
|
-
if name =~ /\A_[1-9]\z/ && !static_env.declared?(name) && context.in_dynamic_block?
|
7188
|
-
# definitely an implicit param
|
7189
|
-
location = node.loc.expression
|
7190
|
-
|
7191
|
-
if max_numparam_stack.has_ordinary_params?
|
7192
|
-
diagnostic :error, :ordinary_param_defined, nil, [nil, location]
|
7193
|
-
end
|
7194
|
-
|
7195
|
-
raw_context = context.stack.dup
|
7196
|
-
raw_max_numparam_stack = max_numparam_stack.stack.dup
|
7197
|
-
|
7198
|
-
# ignore current block scope
|
7199
|
-
raw_context.pop
|
7200
|
-
raw_max_numparam_stack.pop
|
7201
|
-
|
7202
|
-
raw_context.reverse_each do |outer_scope|
|
7203
|
-
if outer_scope == :block || outer_scope == :lambda
|
7204
|
-
outer_scope_has_numparams = raw_max_numparam_stack.pop > 0
|
7205
|
-
|
7206
|
-
if outer_scope_has_numparams
|
7207
|
-
diagnostic :error, :numparam_used_in_outer_scope, nil, [nil, location]
|
7208
|
-
else
|
7209
|
-
# for now it's ok, but an outer scope can also be a block
|
7210
|
-
# with numparams, so we need to continue
|
7211
|
-
end
|
7212
|
-
else
|
7213
|
-
# found an outer scope that can't have numparams
|
7214
|
-
# like def/class/etc
|
7215
|
-
break
|
7216
|
-
end
|
7217
|
-
end
|
7218
|
-
|
7219
|
-
static_env.declare(name)
|
7220
|
-
max_numparam_stack.register(name[1].to_i)
|
7221
|
-
end
|
7222
|
-
end
|
7223
|
-
|
7224
7228
|
result = @builder.accessible(val[0])
|
7225
7229
|
|
7226
7230
|
result
|
File without changes
|
@@ -27,6 +27,50 @@ module Parser
|
|
27
27
|
diagnostic :error, :endless_setter, nil, name_t
|
28
28
|
end
|
29
29
|
end
|
30
|
+
|
31
|
+
def try_declare_numparam(node)
|
32
|
+
name = node.children[0]
|
33
|
+
|
34
|
+
if name =~ /\A_[1-9]\z/ && !static_env.declared?(name) && context.in_dynamic_block?
|
35
|
+
# definitely an implicit param
|
36
|
+
location = node.loc.expression
|
37
|
+
|
38
|
+
if max_numparam_stack.has_ordinary_params?
|
39
|
+
diagnostic :error, :ordinary_param_defined, nil, [nil, location]
|
40
|
+
end
|
41
|
+
|
42
|
+
raw_context = context.stack.dup
|
43
|
+
raw_max_numparam_stack = max_numparam_stack.stack.dup
|
44
|
+
|
45
|
+
# ignore current block scope
|
46
|
+
raw_context.pop
|
47
|
+
raw_max_numparam_stack.pop
|
48
|
+
|
49
|
+
raw_context.reverse_each do |outer_scope|
|
50
|
+
if outer_scope == :block || outer_scope == :lambda
|
51
|
+
outer_scope_has_numparams = raw_max_numparam_stack.pop > 0
|
52
|
+
|
53
|
+
if outer_scope_has_numparams
|
54
|
+
diagnostic :error, :numparam_used_in_outer_scope, nil, [nil, location]
|
55
|
+
else
|
56
|
+
# for now it's ok, but an outer scope can also be a block
|
57
|
+
# with numparams, so we need to continue
|
58
|
+
end
|
59
|
+
else
|
60
|
+
# found an outer scope that can't have numparams
|
61
|
+
# like def/class/etc
|
62
|
+
break
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
static_env.declare(name)
|
67
|
+
max_numparam_stack.register(name[1].to_i)
|
68
|
+
|
69
|
+
true
|
70
|
+
else
|
71
|
+
false
|
72
|
+
end
|
73
|
+
end
|
30
74
|
##### State transition tables begin ###
|
31
75
|
|
32
76
|
clist = [
|
@@ -6932,7 +6976,7 @@ end
|
|
6932
6976
|
# reduce 533 omitted
|
6933
6977
|
|
6934
6978
|
def _reduce_534(val, _values, result)
|
6935
|
-
result = @builder.match_var(val[0])
|
6979
|
+
result = @builder.assignable(@builder.match_var(val[0]))
|
6936
6980
|
|
6937
6981
|
result
|
6938
6982
|
end
|
@@ -7374,46 +7418,6 @@ def _reduce_607(val, _values, result)
|
|
7374
7418
|
end
|
7375
7419
|
|
7376
7420
|
def _reduce_608(val, _values, result)
|
7377
|
-
if (node = val[0]) && node.type == :ident
|
7378
|
-
name = node.children[0]
|
7379
|
-
|
7380
|
-
if name =~ /\A_[1-9]\z/ && !static_env.declared?(name) && context.in_dynamic_block?
|
7381
|
-
# definitely an implicit param
|
7382
|
-
location = node.loc.expression
|
7383
|
-
|
7384
|
-
if max_numparam_stack.has_ordinary_params?
|
7385
|
-
diagnostic :error, :ordinary_param_defined, nil, [nil, location]
|
7386
|
-
end
|
7387
|
-
|
7388
|
-
raw_context = context.stack.dup
|
7389
|
-
raw_max_numparam_stack = max_numparam_stack.stack.dup
|
7390
|
-
|
7391
|
-
# ignore current block scope
|
7392
|
-
raw_context.pop
|
7393
|
-
raw_max_numparam_stack.pop
|
7394
|
-
|
7395
|
-
raw_context.reverse_each do |outer_scope|
|
7396
|
-
if outer_scope == :block || outer_scope == :lambda
|
7397
|
-
outer_scope_has_numparams = raw_max_numparam_stack.pop > 0
|
7398
|
-
|
7399
|
-
if outer_scope_has_numparams
|
7400
|
-
diagnostic :error, :numparam_used_in_outer_scope, nil, [nil, location]
|
7401
|
-
else
|
7402
|
-
# for now it's ok, but an outer scope can also be a block
|
7403
|
-
# with numparams, so we need to continue
|
7404
|
-
end
|
7405
|
-
else
|
7406
|
-
# found an outer scope that can't have numparams
|
7407
|
-
# like def/class/etc
|
7408
|
-
break
|
7409
|
-
end
|
7410
|
-
end
|
7411
|
-
|
7412
|
-
static_env.declare(name)
|
7413
|
-
max_numparam_stack.register(name[1].to_i)
|
7414
|
-
end
|
7415
|
-
end
|
7416
|
-
|
7417
7421
|
result = @builder.accessible(val[0])
|
7418
7422
|
|
7419
7423
|
result
|