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.
Files changed (691) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +11 -10
  4. data/docs/CreateProjectBody.md +2 -2
  5. data/docs/CreateProjectNormalizedPayload.md +23 -5
  6. data/docs/IdentityApi.md +9 -9
  7. data/docs/IdentityCredentials.md +1 -1
  8. data/docs/LoginFlow.md +1 -1
  9. data/docs/MetadataApi.md +0 -134
  10. data/docs/MigrationOptions.md +1 -1
  11. data/docs/NormalizedProject.md +3 -1
  12. data/docs/NormalizedProjectRevision.md +22 -4
  13. data/docs/ProjectMetadata.md +3 -1
  14. data/docs/QuotaUsage.md +1 -1
  15. data/docs/RegistrationFlow.md +1 -1
  16. data/docs/Subscription.md +1 -1
  17. data/docs/SuccessfulNativeLogin.md +2 -0
  18. data/docs/UiNode.md +1 -1
  19. data/docs/UiNodeAnchorAttributes.md +1 -1
  20. data/docs/UiNodeImageAttributes.md +1 -1
  21. data/docs/UiNodeInputAttributes.md +3 -1
  22. data/docs/UiNodeScriptAttributes.md +1 -1
  23. data/docs/UiNodeTextAttributes.md +1 -1
  24. data/docs/UpdateLoginFlowBody.md +3 -0
  25. data/docs/UpdateLoginFlowWithPasskeyMethod.md +22 -0
  26. data/docs/UpdateRegistrationFlowBody.md +3 -0
  27. data/docs/UpdateRegistrationFlowWithPasskeyMethod.md +26 -0
  28. data/docs/UpdateRegistrationFlowWithProfileMethod.md +26 -0
  29. data/docs/UpdateSettingsFlowBody.md +3 -0
  30. data/docs/UpdateSettingsFlowWithPasskeyMethod.md +24 -0
  31. data/lib/ory-client/api/courier_api.rb +2 -2
  32. data/lib/ory-client/api/events_api.rb +2 -2
  33. data/lib/ory-client/api/frontend_api.rb +2 -2
  34. data/lib/ory-client/api/identity_api.rb +12 -12
  35. data/lib/ory-client/api/jwk_api.rb +2 -2
  36. data/lib/ory-client/api/metadata_api.rb +2 -116
  37. data/lib/ory-client/api/o_auth2_api.rb +2 -2
  38. data/lib/ory-client/api/oidc_api.rb +2 -2
  39. data/lib/ory-client/api/permission_api.rb +2 -2
  40. data/lib/ory-client/api/project_api.rb +2 -2
  41. data/lib/ory-client/api/relationship_api.rb +2 -2
  42. data/lib/ory-client/api/wellknown_api.rb +2 -2
  43. data/lib/ory-client/api_client.rb +2 -2
  44. data/lib/ory-client/api_error.rb +2 -2
  45. data/lib/ory-client/configuration.rb +2 -2
  46. data/lib/ory-client/models/accept_o_auth2_consent_request.rb +2 -2
  47. data/lib/ory-client/models/accept_o_auth2_consent_request_session.rb +2 -2
  48. data/lib/ory-client/models/accept_o_auth2_login_request.rb +2 -2
  49. data/lib/ory-client/models/active_project_in_console.rb +2 -2
  50. data/lib/ory-client/models/attribute.rb +2 -2
  51. data/lib/ory-client/models/attribute_filter.rb +2 -2
  52. data/lib/ory-client/models/attributes_count_datapoint.rb +2 -2
  53. data/lib/ory-client/models/authenticator_assurance_level.rb +2 -2
  54. data/lib/ory-client/models/batch_patch_identities_response.rb +2 -2
  55. data/lib/ory-client/models/check_opl_syntax_result.rb +2 -2
  56. data/lib/ory-client/models/check_permission_result.rb +2 -2
  57. data/lib/ory-client/models/cloud_account.rb +2 -2
  58. data/lib/ory-client/models/consistency_request_parameters.rb +2 -2
  59. data/lib/ory-client/models/continue_with.rb +2 -2
  60. data/lib/ory-client/models/continue_with_recovery_ui.rb +2 -2
  61. data/lib/ory-client/models/continue_with_recovery_ui_flow.rb +2 -2
  62. data/lib/ory-client/models/continue_with_set_ory_session_token.rb +2 -2
  63. data/lib/ory-client/models/continue_with_settings_ui.rb +2 -2
  64. data/lib/ory-client/models/continue_with_settings_ui_flow.rb +2 -2
  65. data/lib/ory-client/models/continue_with_verification_ui.rb +2 -2
  66. data/lib/ory-client/models/continue_with_verification_ui_flow.rb +2 -2
  67. data/lib/ory-client/models/courier_message_status.rb +2 -2
  68. data/lib/ory-client/models/courier_message_type.rb +2 -2
  69. data/lib/ory-client/models/create_custom_domain_body.rb +2 -2
  70. data/lib/ory-client/models/create_event_stream_body.rb +2 -2
  71. data/lib/ory-client/models/create_identity_body.rb +2 -2
  72. data/lib/ory-client/models/create_invite_response.rb +2 -2
  73. data/lib/ory-client/models/create_json_web_key_set.rb +2 -2
  74. data/lib/ory-client/models/create_project_api_key_request.rb +2 -2
  75. data/lib/ory-client/models/create_project_body.rb +6 -6
  76. data/lib/ory-client/models/create_project_branding.rb +2 -2
  77. data/lib/ory-client/models/create_project_member_invite_body.rb +2 -2
  78. data/lib/ory-client/models/create_project_normalized_payload.rb +101 -11
  79. data/lib/ory-client/models/create_recovery_code_for_identity_body.rb +2 -2
  80. data/lib/ory-client/models/create_recovery_link_for_identity_body.rb +2 -2
  81. data/lib/ory-client/models/create_relationship_body.rb +2 -2
  82. data/lib/ory-client/models/create_subscription_body.rb +2 -2
  83. data/lib/ory-client/models/create_subscription_common.rb +2 -2
  84. data/lib/ory-client/models/create_verifiable_credential_request_body.rb +2 -2
  85. data/lib/ory-client/models/create_workspace_member_invite_body.rb +2 -2
  86. data/lib/ory-client/models/create_workspace_payload.rb +2 -2
  87. data/lib/ory-client/models/create_workspace_subscription_body.rb +2 -2
  88. data/lib/ory-client/models/credential_supported_draft00.rb +2 -2
  89. data/lib/ory-client/models/custom_domain.rb +2 -2
  90. data/lib/ory-client/models/delete_my_sessions_count.rb +2 -2
  91. data/lib/ory-client/models/email_template_data.rb +2 -2
  92. data/lib/ory-client/models/email_template_data_body.rb +2 -2
  93. data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +2 -2
  94. data/lib/ory-client/models/error_browser_location_change_required.rb +2 -2
  95. data/lib/ory-client/models/error_flow_replaced.rb +2 -2
  96. data/lib/ory-client/models/error_generic.rb +2 -2
  97. data/lib/ory-client/models/error_o_auth2.rb +2 -2
  98. data/lib/ory-client/models/event_stream.rb +2 -2
  99. data/lib/ory-client/models/expanded_permission_tree.rb +2 -2
  100. data/lib/ory-client/models/flow_error.rb +2 -2
  101. data/lib/ory-client/models/generic_error.rb +2 -2
  102. data/lib/ory-client/models/generic_error_content.rb +2 -2
  103. data/lib/ory-client/models/generic_usage.rb +2 -2
  104. data/lib/ory-client/models/get_attributes_count_response.rb +2 -2
  105. data/lib/ory-client/models/get_managed_identity_schema_location.rb +2 -2
  106. data/lib/ory-client/models/get_metrics_event_attributes_response.rb +2 -2
  107. data/lib/ory-client/models/get_metrics_event_types_response.rb +2 -2
  108. data/lib/ory-client/models/get_organization_response.rb +2 -2
  109. data/lib/ory-client/models/get_project_events_body.rb +2 -2
  110. data/lib/ory-client/models/get_project_events_response.rb +2 -2
  111. data/lib/ory-client/models/get_project_metrics_response.rb +2 -2
  112. data/lib/ory-client/models/get_session_activity_response.rb +2 -2
  113. data/lib/ory-client/models/get_version200_response.rb +2 -2
  114. data/lib/ory-client/models/health_not_ready_status.rb +2 -2
  115. data/lib/ory-client/models/health_status.rb +2 -2
  116. data/lib/ory-client/models/identity.rb +2 -2
  117. data/lib/ory-client/models/identity_credentials.rb +5 -5
  118. data/lib/ory-client/models/identity_credentials_code.rb +2 -2
  119. data/lib/ory-client/models/identity_credentials_oidc.rb +2 -2
  120. data/lib/ory-client/models/identity_credentials_oidc_provider.rb +2 -2
  121. data/lib/ory-client/models/identity_credentials_password.rb +2 -2
  122. data/lib/ory-client/models/identity_patch.rb +2 -2
  123. data/lib/ory-client/models/identity_patch_response.rb +2 -2
  124. data/lib/ory-client/models/identity_schema_container.rb +2 -2
  125. data/lib/ory-client/models/identity_schema_preset.rb +2 -2
  126. data/lib/ory-client/models/identity_with_credentials.rb +2 -2
  127. data/lib/ory-client/models/identity_with_credentials_oidc.rb +2 -2
  128. data/lib/ory-client/models/identity_with_credentials_oidc_config.rb +2 -2
  129. data/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb +2 -2
  130. data/lib/ory-client/models/identity_with_credentials_password.rb +2 -2
  131. data/lib/ory-client/models/identity_with_credentials_password_config.rb +2 -2
  132. data/lib/ory-client/models/internal_get_project_branding_body.rb +2 -2
  133. data/lib/ory-client/models/internal_is_ax_welcome_screen_enabled_for_project_body.rb +2 -2
  134. data/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb +2 -2
  135. data/lib/ory-client/models/internal_is_owner_for_project_by_slug_response.rb +2 -2
  136. data/lib/ory-client/models/introspected_o_auth2_token.rb +2 -2
  137. data/lib/ory-client/models/is_owner_for_project_by_slug.rb +2 -2
  138. data/lib/ory-client/models/json_patch.rb +2 -2
  139. data/lib/ory-client/models/json_web_key.rb +2 -2
  140. data/lib/ory-client/models/json_web_key_set.rb +2 -2
  141. data/lib/ory-client/models/keto_namespace.rb +2 -2
  142. data/lib/ory-client/models/list_event_streams.rb +2 -2
  143. data/lib/ory-client/models/list_my_workspaces_response.rb +2 -2
  144. data/lib/ory-client/models/list_organizations_response.rb +2 -2
  145. data/lib/ory-client/models/list_workspace_projects_response.rb +2 -2
  146. data/lib/ory-client/models/login_flow.rb +5 -5
  147. data/lib/ory-client/models/login_flow_state.rb +2 -2
  148. data/lib/ory-client/models/logout_flow.rb +2 -2
  149. data/lib/ory-client/models/managed_identity_schema.rb +2 -2
  150. data/lib/ory-client/models/managed_identity_schema_validation_result.rb +2 -2
  151. data/lib/ory-client/models/member_invite.rb +2 -2
  152. data/lib/ory-client/models/message.rb +2 -2
  153. data/lib/ory-client/models/message_dispatch.rb +2 -2
  154. data/lib/ory-client/models/metrics_datapoint.rb +2 -2
  155. data/lib/ory-client/models/migration_options.rb +5 -5
  156. data/lib/ory-client/models/namespace.rb +2 -2
  157. data/lib/ory-client/models/needs_privileged_session_error.rb +2 -2
  158. data/lib/ory-client/models/normalized_project.rb +15 -6
  159. data/lib/ory-client/models/normalized_project_revision.rb +98 -7
  160. data/lib/ory-client/models/normalized_project_revision_courier_channel.rb +2 -2
  161. data/lib/ory-client/models/normalized_project_revision_hook.rb +2 -2
  162. data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +2 -2
  163. data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +2 -2
  164. data/lib/ory-client/models/normalized_project_revision_tokenizer_template.rb +2 -2
  165. data/lib/ory-client/models/o_auth2_client.rb +2 -2
  166. data/lib/ory-client/models/o_auth2_client_token_lifespans.rb +2 -2
  167. data/lib/ory-client/models/o_auth2_consent_request.rb +2 -2
  168. data/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb +2 -2
  169. data/lib/ory-client/models/o_auth2_consent_session.rb +2 -2
  170. data/lib/ory-client/models/o_auth2_consent_session_expires_at.rb +2 -2
  171. data/lib/ory-client/models/o_auth2_login_request.rb +2 -2
  172. data/lib/ory-client/models/o_auth2_logout_request.rb +2 -2
  173. data/lib/ory-client/models/o_auth2_redirect_to.rb +2 -2
  174. data/lib/ory-client/models/o_auth2_token_exchange.rb +2 -2
  175. data/lib/ory-client/models/oidc_configuration.rb +2 -2
  176. data/lib/ory-client/models/oidc_user_info.rb +2 -2
  177. data/lib/ory-client/models/organization.rb +2 -2
  178. data/lib/ory-client/models/organization_body.rb +2 -2
  179. data/lib/ory-client/models/pagination.rb +2 -2
  180. data/lib/ory-client/models/pagination_headers.rb +2 -2
  181. data/lib/ory-client/models/parse_error.rb +2 -2
  182. data/lib/ory-client/models/patch_identities_body.rb +2 -2
  183. data/lib/ory-client/models/perform_native_logout_body.rb +2 -2
  184. data/lib/ory-client/models/permissions_on_workpace_response.rb +2 -2
  185. data/lib/ory-client/models/plan.rb +2 -2
  186. data/lib/ory-client/models/plan_details.rb +2 -2
  187. data/lib/ory-client/models/post_check_permission_body.rb +2 -2
  188. data/lib/ory-client/models/post_check_permission_or_error_body.rb +2 -2
  189. data/lib/ory-client/models/project.rb +2 -2
  190. data/lib/ory-client/models/project_api_key.rb +2 -2
  191. data/lib/ory-client/models/project_branding.rb +2 -2
  192. data/lib/ory-client/models/project_branding_colors.rb +2 -2
  193. data/lib/ory-client/models/project_branding_theme.rb +2 -2
  194. data/lib/ory-client/models/project_cors.rb +2 -2
  195. data/lib/ory-client/models/project_events_datapoint.rb +2 -2
  196. data/lib/ory-client/models/project_host.rb +2 -2
  197. data/lib/ory-client/models/project_member.rb +2 -2
  198. data/lib/ory-client/models/project_metadata.rb +15 -6
  199. data/lib/ory-client/models/project_service_identity.rb +2 -2
  200. data/lib/ory-client/models/project_service_o_auth2.rb +2 -2
  201. data/lib/ory-client/models/project_service_permission.rb +2 -2
  202. data/lib/ory-client/models/project_services.rb +2 -2
  203. data/lib/ory-client/models/quota_usage.rb +5 -5
  204. data/lib/ory-client/models/recovery_code_for_identity.rb +2 -2
  205. data/lib/ory-client/models/recovery_flow.rb +2 -2
  206. data/lib/ory-client/models/recovery_flow_state.rb +2 -2
  207. data/lib/ory-client/models/recovery_identity_address.rb +2 -2
  208. data/lib/ory-client/models/recovery_link_for_identity.rb +2 -2
  209. data/lib/ory-client/models/registration_flow.rb +5 -5
  210. data/lib/ory-client/models/registration_flow_state.rb +2 -2
  211. data/lib/ory-client/models/reject_o_auth2_request.rb +2 -2
  212. data/lib/ory-client/models/relation_query.rb +2 -2
  213. data/lib/ory-client/models/relationship.rb +2 -2
  214. data/lib/ory-client/models/relationship_namespaces.rb +2 -2
  215. data/lib/ory-client/models/relationship_patch.rb +2 -2
  216. data/lib/ory-client/models/relationships.rb +2 -2
  217. data/lib/ory-client/models/rfc6749_error_json.rb +2 -2
  218. data/lib/ory-client/models/schema_patch.rb +2 -2
  219. data/lib/ory-client/models/self_service_flow_expired_error.rb +2 -2
  220. data/lib/ory-client/models/session.rb +2 -2
  221. data/lib/ory-client/models/session_activity_datapoint.rb +2 -2
  222. data/lib/ory-client/models/session_authentication_method.rb +2 -2
  223. data/lib/ory-client/models/session_device.rb +2 -2
  224. data/lib/ory-client/models/set_active_project_in_console_body.rb +2 -2
  225. data/lib/ory-client/models/set_custom_domain_body.rb +2 -2
  226. data/lib/ory-client/models/set_event_stream_body.rb +2 -2
  227. data/lib/ory-client/models/set_project.rb +2 -2
  228. data/lib/ory-client/models/set_project_branding_theme_body.rb +2 -2
  229. data/lib/ory-client/models/settings_flow.rb +2 -2
  230. data/lib/ory-client/models/settings_flow_state.rb +2 -2
  231. data/lib/ory-client/models/source_position.rb +2 -2
  232. data/lib/ory-client/models/subject_set.rb +2 -2
  233. data/lib/ory-client/models/subscription.rb +3 -3
  234. data/lib/ory-client/models/successful_code_exchange_response.rb +2 -2
  235. data/lib/ory-client/models/successful_native_login.rb +15 -3
  236. data/lib/ory-client/models/successful_native_registration.rb +2 -2
  237. data/lib/ory-client/models/successful_project_update.rb +2 -2
  238. data/lib/ory-client/models/token_pagination.rb +2 -2
  239. data/lib/ory-client/models/token_pagination_headers.rb +2 -2
  240. data/lib/ory-client/models/token_pagination_request_parameters.rb +2 -2
  241. data/lib/ory-client/models/token_pagination_response_headers.rb +2 -2
  242. data/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb +2 -2
  243. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb +2 -2
  244. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +2 -2
  245. data/lib/ory-client/models/ui_container.rb +2 -2
  246. data/lib/ory-client/models/ui_node.rb +5 -5
  247. data/lib/ory-client/models/ui_node_anchor_attributes.rb +37 -3
  248. data/lib/ory-client/models/ui_node_attributes.rb +2 -2
  249. data/lib/ory-client/models/ui_node_image_attributes.rb +37 -3
  250. data/lib/ory-client/models/ui_node_input_attributes.rb +26 -4
  251. data/lib/ory-client/models/ui_node_meta.rb +2 -2
  252. data/lib/ory-client/models/ui_node_script_attributes.rb +37 -3
  253. data/lib/ory-client/models/ui_node_text_attributes.rb +37 -3
  254. data/lib/ory-client/models/ui_text.rb +2 -2
  255. data/lib/ory-client/models/update_identity_body.rb +2 -2
  256. data/lib/ory-client/models/update_login_flow_body.rb +4 -2
  257. data/lib/ory-client/models/update_login_flow_with_code_method.rb +2 -2
  258. data/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb +2 -2
  259. data/lib/ory-client/models/update_login_flow_with_oidc_method.rb +2 -2
  260. data/lib/ory-client/models/{is_ready200_response.rb → update_login_flow_with_passkey_method.rb} +38 -17
  261. data/lib/ory-client/models/update_login_flow_with_password_method.rb +2 -2
  262. data/lib/ory-client/models/update_login_flow_with_totp_method.rb +2 -2
  263. data/lib/ory-client/models/update_login_flow_with_web_authn_method.rb +2 -2
  264. data/lib/ory-client/models/update_recovery_flow_body.rb +2 -2
  265. data/lib/ory-client/models/update_recovery_flow_with_code_method.rb +2 -2
  266. data/lib/ory-client/models/update_recovery_flow_with_link_method.rb +2 -2
  267. data/lib/ory-client/models/update_registration_flow_body.rb +4 -2
  268. data/lib/ory-client/models/update_registration_flow_with_code_method.rb +2 -2
  269. data/lib/ory-client/models/update_registration_flow_with_oidc_method.rb +2 -2
  270. data/lib/ory-client/models/update_registration_flow_with_passkey_method.rb +270 -0
  271. data/lib/ory-client/models/update_registration_flow_with_password_method.rb +2 -2
  272. data/lib/ory-client/models/update_registration_flow_with_profile_method.rb +270 -0
  273. data/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb +2 -2
  274. data/lib/ory-client/models/update_settings_flow_body.rb +4 -2
  275. data/lib/ory-client/models/update_settings_flow_with_lookup_method.rb +2 -2
  276. data/lib/ory-client/models/update_settings_flow_with_oidc_method.rb +2 -2
  277. data/lib/ory-client/models/{is_ready503_response.rb → update_settings_flow_with_passkey_method.rb} +48 -19
  278. data/lib/ory-client/models/update_settings_flow_with_password_method.rb +2 -2
  279. data/lib/ory-client/models/update_settings_flow_with_profile_method.rb +2 -2
  280. data/lib/ory-client/models/update_settings_flow_with_totp_method.rb +2 -2
  281. data/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb +2 -2
  282. data/lib/ory-client/models/update_subscription_body.rb +2 -2
  283. data/lib/ory-client/models/update_verification_flow_body.rb +2 -2
  284. data/lib/ory-client/models/update_verification_flow_with_code_method.rb +2 -2
  285. data/lib/ory-client/models/update_verification_flow_with_link_method.rb +2 -2
  286. data/lib/ory-client/models/update_workspace_payload.rb +2 -2
  287. data/lib/ory-client/models/usage.rb +2 -2
  288. data/lib/ory-client/models/verifiable_credential_priming_response.rb +2 -2
  289. data/lib/ory-client/models/verifiable_credential_proof.rb +2 -2
  290. data/lib/ory-client/models/verifiable_credential_response.rb +2 -2
  291. data/lib/ory-client/models/verifiable_identity_address.rb +2 -2
  292. data/lib/ory-client/models/verification_flow.rb +2 -2
  293. data/lib/ory-client/models/verification_flow_state.rb +2 -2
  294. data/lib/ory-client/models/version.rb +2 -2
  295. data/lib/ory-client/models/warning.rb +2 -2
  296. data/lib/ory-client/models/workspace.rb +2 -2
  297. data/lib/ory-client/models/workspace_meta.rb +2 -2
  298. data/lib/ory-client/version.rb +3 -3
  299. data/lib/ory-client.rb +6 -4
  300. data/ory-client.gemspec +2 -2
  301. data/spec/api/courier_api_spec.rb +2 -2
  302. data/spec/api/events_api_spec.rb +2 -2
  303. data/spec/api/frontend_api_spec.rb +2 -2
  304. data/spec/api/identity_api_spec.rb +5 -5
  305. data/spec/api/jwk_api_spec.rb +2 -2
  306. data/spec/api/metadata_api_spec.rb +2 -24
  307. data/spec/api/o_auth2_api_spec.rb +2 -2
  308. data/spec/api/oidc_api_spec.rb +2 -2
  309. data/spec/api/permission_api_spec.rb +2 -2
  310. data/spec/api/project_api_spec.rb +2 -2
  311. data/spec/api/relationship_api_spec.rb +2 -2
  312. data/spec/api/wellknown_api_spec.rb +2 -2
  313. data/spec/models/accept_o_auth2_consent_request_session_spec.rb +2 -2
  314. data/spec/models/accept_o_auth2_consent_request_spec.rb +2 -2
  315. data/spec/models/accept_o_auth2_login_request_spec.rb +2 -2
  316. data/spec/models/active_project_in_console_spec.rb +2 -2
  317. data/spec/models/attribute_filter_spec.rb +2 -2
  318. data/spec/models/attribute_spec.rb +2 -2
  319. data/spec/models/attributes_count_datapoint_spec.rb +2 -2
  320. data/spec/models/authenticator_assurance_level_spec.rb +2 -2
  321. data/spec/models/batch_patch_identities_response_spec.rb +2 -2
  322. data/spec/models/check_opl_syntax_result_spec.rb +2 -2
  323. data/spec/models/check_permission_result_spec.rb +2 -2
  324. data/spec/models/cloud_account_spec.rb +2 -2
  325. data/spec/models/consistency_request_parameters_spec.rb +2 -2
  326. data/spec/models/continue_with_recovery_ui_flow_spec.rb +2 -2
  327. data/spec/models/continue_with_recovery_ui_spec.rb +2 -2
  328. data/spec/models/continue_with_set_ory_session_token_spec.rb +2 -2
  329. data/spec/models/continue_with_settings_ui_flow_spec.rb +2 -2
  330. data/spec/models/continue_with_settings_ui_spec.rb +2 -2
  331. data/spec/models/continue_with_spec.rb +2 -2
  332. data/spec/models/continue_with_verification_ui_flow_spec.rb +2 -2
  333. data/spec/models/continue_with_verification_ui_spec.rb +2 -2
  334. data/spec/models/courier_message_status_spec.rb +2 -2
  335. data/spec/models/courier_message_type_spec.rb +2 -2
  336. data/spec/models/create_custom_domain_body_spec.rb +2 -2
  337. data/spec/models/create_event_stream_body_spec.rb +2 -2
  338. data/spec/models/create_identity_body_spec.rb +2 -2
  339. data/spec/models/create_invite_response_spec.rb +2 -2
  340. data/spec/models/create_json_web_key_set_spec.rb +2 -2
  341. data/spec/models/create_project_api_key_request_spec.rb +2 -2
  342. data/spec/models/create_project_body_spec.rb +3 -3
  343. data/spec/models/create_project_branding_spec.rb +2 -2
  344. data/spec/models/create_project_member_invite_body_spec.rb +2 -2
  345. data/spec/models/create_project_normalized_payload_spec.rb +57 -3
  346. data/spec/models/create_recovery_code_for_identity_body_spec.rb +2 -2
  347. data/spec/models/create_recovery_link_for_identity_body_spec.rb +2 -2
  348. data/spec/models/create_relationship_body_spec.rb +2 -2
  349. data/spec/models/create_subscription_body_spec.rb +2 -2
  350. data/spec/models/create_subscription_common_spec.rb +2 -2
  351. data/spec/models/create_verifiable_credential_request_body_spec.rb +2 -2
  352. data/spec/models/create_workspace_member_invite_body_spec.rb +2 -2
  353. data/spec/models/create_workspace_payload_spec.rb +2 -2
  354. data/spec/models/create_workspace_subscription_body_spec.rb +2 -2
  355. data/spec/models/credential_supported_draft00_spec.rb +2 -2
  356. data/spec/models/custom_domain_spec.rb +2 -2
  357. data/spec/models/delete_my_sessions_count_spec.rb +2 -2
  358. data/spec/models/email_template_data_body_spec.rb +2 -2
  359. data/spec/models/email_template_data_spec.rb +2 -2
  360. data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +2 -2
  361. data/spec/models/error_browser_location_change_required_spec.rb +2 -2
  362. data/spec/models/error_flow_replaced_spec.rb +2 -2
  363. data/spec/models/error_generic_spec.rb +2 -2
  364. data/spec/models/error_o_auth2_spec.rb +2 -2
  365. data/spec/models/event_stream_spec.rb +2 -2
  366. data/spec/models/expanded_permission_tree_spec.rb +2 -2
  367. data/spec/models/flow_error_spec.rb +2 -2
  368. data/spec/models/generic_error_content_spec.rb +2 -2
  369. data/spec/models/generic_error_spec.rb +2 -2
  370. data/spec/models/generic_usage_spec.rb +2 -2
  371. data/spec/models/get_attributes_count_response_spec.rb +2 -2
  372. data/spec/models/get_managed_identity_schema_location_spec.rb +2 -2
  373. data/spec/models/get_metrics_event_attributes_response_spec.rb +2 -2
  374. data/spec/models/get_metrics_event_types_response_spec.rb +2 -2
  375. data/spec/models/get_organization_response_spec.rb +2 -2
  376. data/spec/models/get_project_events_body_spec.rb +2 -2
  377. data/spec/models/get_project_events_response_spec.rb +2 -2
  378. data/spec/models/get_project_metrics_response_spec.rb +2 -2
  379. data/spec/models/get_session_activity_response_spec.rb +2 -2
  380. data/spec/models/get_version200_response_spec.rb +2 -2
  381. data/spec/models/health_not_ready_status_spec.rb +2 -2
  382. data/spec/models/health_status_spec.rb +2 -2
  383. data/spec/models/identity_credentials_code_spec.rb +2 -2
  384. data/spec/models/identity_credentials_oidc_provider_spec.rb +2 -2
  385. data/spec/models/identity_credentials_oidc_spec.rb +2 -2
  386. data/spec/models/identity_credentials_password_spec.rb +2 -2
  387. data/spec/models/identity_credentials_spec.rb +3 -3
  388. data/spec/models/identity_patch_response_spec.rb +2 -2
  389. data/spec/models/identity_patch_spec.rb +2 -2
  390. data/spec/models/identity_schema_container_spec.rb +2 -2
  391. data/spec/models/identity_schema_preset_spec.rb +2 -2
  392. data/spec/models/identity_spec.rb +2 -2
  393. data/spec/models/identity_with_credentials_oidc_config_provider_spec.rb +2 -2
  394. data/spec/models/identity_with_credentials_oidc_config_spec.rb +2 -2
  395. data/spec/models/identity_with_credentials_oidc_spec.rb +2 -2
  396. data/spec/models/identity_with_credentials_password_config_spec.rb +2 -2
  397. data/spec/models/identity_with_credentials_password_spec.rb +2 -2
  398. data/spec/models/identity_with_credentials_spec.rb +2 -2
  399. data/spec/models/internal_get_project_branding_body_spec.rb +2 -2
  400. data/spec/models/internal_is_ax_welcome_screen_enabled_for_project_body_spec.rb +2 -2
  401. data/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb +2 -2
  402. data/spec/models/internal_is_owner_for_project_by_slug_response_spec.rb +2 -2
  403. data/spec/models/introspected_o_auth2_token_spec.rb +2 -2
  404. data/spec/models/is_owner_for_project_by_slug_spec.rb +2 -2
  405. data/spec/models/json_patch_spec.rb +2 -2
  406. data/spec/models/json_web_key_set_spec.rb +2 -2
  407. data/spec/models/json_web_key_spec.rb +2 -2
  408. data/spec/models/keto_namespace_spec.rb +2 -2
  409. data/spec/models/list_event_streams_spec.rb +2 -2
  410. data/spec/models/list_my_workspaces_response_spec.rb +2 -2
  411. data/spec/models/list_organizations_response_spec.rb +2 -2
  412. data/spec/models/list_workspace_projects_response_spec.rb +2 -2
  413. data/spec/models/login_flow_spec.rb +3 -3
  414. data/spec/models/login_flow_state_spec.rb +2 -2
  415. data/spec/models/logout_flow_spec.rb +2 -2
  416. data/spec/models/managed_identity_schema_spec.rb +2 -2
  417. data/spec/models/managed_identity_schema_validation_result_spec.rb +2 -2
  418. data/spec/models/member_invite_spec.rb +2 -2
  419. data/spec/models/message_dispatch_spec.rb +2 -2
  420. data/spec/models/message_spec.rb +2 -2
  421. data/spec/models/metrics_datapoint_spec.rb +2 -2
  422. data/spec/models/migration_options_spec.rb +3 -3
  423. data/spec/models/namespace_spec.rb +2 -2
  424. data/spec/models/needs_privileged_session_error_spec.rb +2 -2
  425. data/spec/models/normalized_project_revision_courier_channel_spec.rb +2 -2
  426. data/spec/models/normalized_project_revision_hook_spec.rb +2 -2
  427. data/spec/models/normalized_project_revision_identity_schema_spec.rb +2 -2
  428. data/spec/models/normalized_project_revision_spec.rb +56 -2
  429. data/spec/models/normalized_project_revision_third_party_provider_spec.rb +2 -2
  430. data/spec/models/normalized_project_revision_tokenizer_template_spec.rb +2 -2
  431. data/spec/models/normalized_project_spec.rb +9 -3
  432. data/spec/models/o_auth2_client_spec.rb +2 -2
  433. data/spec/models/o_auth2_client_token_lifespans_spec.rb +2 -2
  434. data/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +2 -2
  435. data/spec/models/o_auth2_consent_request_spec.rb +2 -2
  436. data/spec/models/o_auth2_consent_session_expires_at_spec.rb +2 -2
  437. data/spec/models/o_auth2_consent_session_spec.rb +2 -2
  438. data/spec/models/o_auth2_login_request_spec.rb +2 -2
  439. data/spec/models/o_auth2_logout_request_spec.rb +2 -2
  440. data/spec/models/o_auth2_redirect_to_spec.rb +2 -2
  441. data/spec/models/o_auth2_token_exchange_spec.rb +2 -2
  442. data/spec/models/oidc_configuration_spec.rb +2 -2
  443. data/spec/models/oidc_user_info_spec.rb +2 -2
  444. data/spec/models/organization_body_spec.rb +2 -2
  445. data/spec/models/organization_spec.rb +2 -2
  446. data/spec/models/pagination_headers_spec.rb +2 -2
  447. data/spec/models/pagination_spec.rb +2 -2
  448. data/spec/models/parse_error_spec.rb +2 -2
  449. data/spec/models/patch_identities_body_spec.rb +2 -2
  450. data/spec/models/perform_native_logout_body_spec.rb +2 -2
  451. data/spec/models/permissions_on_workpace_response_spec.rb +2 -2
  452. data/spec/models/plan_details_spec.rb +2 -2
  453. data/spec/models/plan_spec.rb +2 -2
  454. data/spec/models/post_check_permission_body_spec.rb +2 -2
  455. data/spec/models/post_check_permission_or_error_body_spec.rb +2 -2
  456. data/spec/models/project_api_key_spec.rb +2 -2
  457. data/spec/models/project_branding_colors_spec.rb +2 -2
  458. data/spec/models/project_branding_spec.rb +2 -2
  459. data/spec/models/project_branding_theme_spec.rb +2 -2
  460. data/spec/models/project_cors_spec.rb +2 -2
  461. data/spec/models/project_events_datapoint_spec.rb +2 -2
  462. data/spec/models/project_host_spec.rb +2 -2
  463. data/spec/models/project_member_spec.rb +2 -2
  464. data/spec/models/project_metadata_spec.rb +9 -3
  465. data/spec/models/project_service_identity_spec.rb +2 -2
  466. data/spec/models/project_service_o_auth2_spec.rb +2 -2
  467. data/spec/models/project_service_permission_spec.rb +2 -2
  468. data/spec/models/project_services_spec.rb +2 -2
  469. data/spec/models/project_spec.rb +2 -2
  470. data/spec/models/quota_usage_spec.rb +3 -3
  471. data/spec/models/recovery_code_for_identity_spec.rb +2 -2
  472. data/spec/models/recovery_flow_spec.rb +2 -2
  473. data/spec/models/recovery_flow_state_spec.rb +2 -2
  474. data/spec/models/recovery_identity_address_spec.rb +2 -2
  475. data/spec/models/recovery_link_for_identity_spec.rb +2 -2
  476. data/spec/models/registration_flow_spec.rb +3 -3
  477. data/spec/models/registration_flow_state_spec.rb +2 -2
  478. data/spec/models/reject_o_auth2_request_spec.rb +2 -2
  479. data/spec/models/relation_query_spec.rb +2 -2
  480. data/spec/models/relationship_namespaces_spec.rb +2 -2
  481. data/spec/models/relationship_patch_spec.rb +2 -2
  482. data/spec/models/relationship_spec.rb +2 -2
  483. data/spec/models/relationships_spec.rb +2 -2
  484. data/spec/models/rfc6749_error_json_spec.rb +2 -2
  485. data/spec/models/schema_patch_spec.rb +2 -2
  486. data/spec/models/self_service_flow_expired_error_spec.rb +2 -2
  487. data/spec/models/session_activity_datapoint_spec.rb +2 -2
  488. data/spec/models/session_authentication_method_spec.rb +2 -2
  489. data/spec/models/session_device_spec.rb +2 -2
  490. data/spec/models/session_spec.rb +2 -2
  491. data/spec/models/set_active_project_in_console_body_spec.rb +2 -2
  492. data/spec/models/set_custom_domain_body_spec.rb +2 -2
  493. data/spec/models/set_event_stream_body_spec.rb +2 -2
  494. data/spec/models/set_project_branding_theme_body_spec.rb +2 -2
  495. data/spec/models/set_project_spec.rb +2 -2
  496. data/spec/models/settings_flow_spec.rb +2 -2
  497. data/spec/models/settings_flow_state_spec.rb +2 -2
  498. data/spec/models/source_position_spec.rb +2 -2
  499. data/spec/models/subject_set_spec.rb +2 -2
  500. data/spec/models/subscription_spec.rb +2 -2
  501. data/spec/models/successful_code_exchange_response_spec.rb +2 -2
  502. data/spec/models/successful_native_login_spec.rb +8 -2
  503. data/spec/models/successful_native_registration_spec.rb +2 -2
  504. data/spec/models/successful_project_update_spec.rb +2 -2
  505. data/spec/models/token_pagination_headers_spec.rb +2 -2
  506. data/spec/models/token_pagination_request_parameters_spec.rb +2 -2
  507. data/spec/models/token_pagination_response_headers_spec.rb +2 -2
  508. data/spec/models/token_pagination_spec.rb +2 -2
  509. data/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +2 -2
  510. data/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +2 -2
  511. data/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +2 -2
  512. data/spec/models/ui_container_spec.rb +2 -2
  513. data/spec/models/ui_node_anchor_attributes_spec.rb +6 -2
  514. data/spec/models/ui_node_attributes_spec.rb +2 -2
  515. data/spec/models/ui_node_image_attributes_spec.rb +6 -2
  516. data/spec/models/ui_node_input_attributes_spec.rb +12 -2
  517. data/spec/models/ui_node_meta_spec.rb +2 -2
  518. data/spec/models/ui_node_script_attributes_spec.rb +6 -2
  519. data/spec/models/ui_node_spec.rb +3 -3
  520. data/spec/models/ui_node_text_attributes_spec.rb +6 -2
  521. data/spec/models/ui_text_spec.rb +2 -2
  522. data/spec/models/update_identity_body_spec.rb +2 -2
  523. data/spec/models/update_login_flow_body_spec.rb +2 -2
  524. data/spec/models/update_login_flow_with_code_method_spec.rb +2 -2
  525. data/spec/models/update_login_flow_with_lookup_secret_method_spec.rb +2 -2
  526. data/spec/models/update_login_flow_with_oidc_method_spec.rb +2 -2
  527. data/spec/models/update_login_flow_with_passkey_method_spec.rb +48 -0
  528. data/spec/models/update_login_flow_with_password_method_spec.rb +2 -2
  529. data/spec/models/update_login_flow_with_totp_method_spec.rb +2 -2
  530. data/spec/models/update_login_flow_with_web_authn_method_spec.rb +2 -2
  531. data/spec/models/update_recovery_flow_body_spec.rb +2 -2
  532. data/spec/models/update_recovery_flow_with_code_method_spec.rb +2 -2
  533. data/spec/models/update_recovery_flow_with_link_method_spec.rb +2 -2
  534. data/spec/models/update_registration_flow_body_spec.rb +2 -2
  535. data/spec/models/update_registration_flow_with_code_method_spec.rb +2 -2
  536. data/spec/models/update_registration_flow_with_oidc_method_spec.rb +2 -2
  537. data/spec/models/update_registration_flow_with_passkey_method_spec.rb +60 -0
  538. data/spec/models/update_registration_flow_with_password_method_spec.rb +2 -2
  539. data/spec/models/update_registration_flow_with_profile_method_spec.rb +60 -0
  540. data/spec/models/update_registration_flow_with_web_authn_method_spec.rb +2 -2
  541. data/spec/models/update_settings_flow_body_spec.rb +2 -2
  542. data/spec/models/update_settings_flow_with_lookup_method_spec.rb +2 -2
  543. data/spec/models/update_settings_flow_with_oidc_method_spec.rb +2 -2
  544. data/spec/models/update_settings_flow_with_passkey_method_spec.rb +54 -0
  545. data/spec/models/update_settings_flow_with_password_method_spec.rb +2 -2
  546. data/spec/models/update_settings_flow_with_profile_method_spec.rb +2 -2
  547. data/spec/models/update_settings_flow_with_totp_method_spec.rb +2 -2
  548. data/spec/models/update_settings_flow_with_web_authn_method_spec.rb +2 -2
  549. data/spec/models/update_subscription_body_spec.rb +2 -2
  550. data/spec/models/update_verification_flow_body_spec.rb +2 -2
  551. data/spec/models/update_verification_flow_with_code_method_spec.rb +2 -2
  552. data/spec/models/update_verification_flow_with_link_method_spec.rb +2 -2
  553. data/spec/models/update_workspace_payload_spec.rb +2 -2
  554. data/spec/models/usage_spec.rb +2 -2
  555. data/spec/models/verifiable_credential_priming_response_spec.rb +2 -2
  556. data/spec/models/verifiable_credential_proof_spec.rb +2 -2
  557. data/spec/models/verifiable_credential_response_spec.rb +2 -2
  558. data/spec/models/verifiable_identity_address_spec.rb +2 -2
  559. data/spec/models/verification_flow_spec.rb +2 -2
  560. data/spec/models/verification_flow_state_spec.rb +2 -2
  561. data/spec/models/version_spec.rb +2 -2
  562. data/spec/models/warning_spec.rb +2 -2
  563. data/spec/models/workspace_meta_spec.rb +2 -2
  564. data/spec/models/workspace_spec.rb +2 -2
  565. data/spec/spec_helper.rb +2 -2
  566. data/vendor/bundle/ruby/2.7.0/cache/method_source-1.1.0.gem +0 -0
  567. data/vendor/bundle/ruby/2.7.0/cache/parser-3.3.1.0.gem +0 -0
  568. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/byebug-11.1.3/gem_make.out +2 -2
  569. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.16.3/gem_make.out +2 -2
  570. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/jaro_winkler-1.5.6/gem_make.out +2 -2
  571. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/psych-4.0.6/gem_make.out +2 -2
  572. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/racc-1.7.3/gem_make.out +2 -2
  573. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/stringio-3.1.0/gem_make.out +2 -2
  574. data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  575. data/vendor/bundle/ruby/2.7.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +2 -2
  576. data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/Makefile +2 -2
  577. data/vendor/bundle/ruby/2.7.0/gems/method_source-1.1.0/CHANGELOG.md +15 -0
  578. data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/Gemfile +4 -0
  579. data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/README.markdown +8 -0
  580. 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
  581. data/vendor/bundle/ruby/2.7.0/gems/method_source-1.1.0/lib/method_source/version.rb +3 -0
  582. data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/lib/method_source.rb +36 -0
  583. data/vendor/bundle/ruby/2.7.0/gems/method_source-1.1.0/method_source.gemspec +19 -0
  584. 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
  585. data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/spec/spec_helper.rb +6 -0
  586. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/gauntlet_parser.rb +1 -1
  587. data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.1.0/lib/parser/all.rb +17 -0
  588. 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
  589. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/current.rb +18 -18
  590. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/macruby.rb +1 -1
  591. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby18.rb +1 -1
  592. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby19.rb +1 -1
  593. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby20.rb +1 -1
  594. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby21.rb +1 -1
  595. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby22.rb +1 -1
  596. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby23.rb +1 -1
  597. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby24.rb +1 -1
  598. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby25.rb +1 -1
  599. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby26.rb +1 -1
  600. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby27.rb +1 -1
  601. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby30.rb +1 -1
  602. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby31.rb +1 -1
  603. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby32.rb +1 -1
  604. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby33.rb +5 -5
  605. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby34.rb +4 -4
  606. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/rubymotion.rb +1 -1
  607. 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
  608. 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
  609. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/runner.rb +19 -19
  610. 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
  611. 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
  612. data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.1.0/lib/parser/static_environment.rb +134 -0
  613. data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.1.0/lib/parser/unknown_encoding_in_magic_comment_error.rb +15 -0
  614. data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/version.rb +1 -1
  615. data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.1.0/lib/parser.rb +91 -0
  616. data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.6/ext/psych/Makefile +2 -2
  617. data/vendor/bundle/ruby/2.7.0/gems/racc-1.7.3/ext/racc/cparse/Makefile +2 -2
  618. data/vendor/bundle/ruby/2.7.0/gems/stringio-3.1.0/ext/stringio/Makefile +2 -2
  619. data/vendor/bundle/ruby/2.7.0/specifications/{method_source-1.0.0.gemspec → method_source-1.1.0.gemspec} +4 -15
  620. data/vendor/bundle/ruby/2.7.0/specifications/{parser-3.3.0.5.gemspec → parser-3.3.1.0.gemspec} +4 -4
  621. metadata +118 -110
  622. data/docs/IsReady200Response.md +0 -18
  623. data/docs/IsReady503Response.md +0 -18
  624. data/spec/models/is_ready200_response_spec.rb +0 -36
  625. data/spec/models/is_ready503_response_spec.rb +0 -36
  626. data/vendor/bundle/ruby/2.7.0/cache/method_source-1.0.0.gem +0 -0
  627. data/vendor/bundle/ruby/2.7.0/cache/parser-3.3.0.5.gem +0 -0
  628. data/vendor/bundle/ruby/2.7.0/gems/method_source-1.0.0/.circleci/config.yml +0 -139
  629. data/vendor/bundle/ruby/2.7.0/gems/method_source-1.0.0/CHANGELOG.md +0 -10
  630. data/vendor/bundle/ruby/2.7.0/gems/method_source-1.0.0/lib/method_source/version.rb +0 -3
  631. data/vendor/bundle/ruby/2.7.0/gems/method_source-1.0.0/method_source.gemspec +0 -33
  632. data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.0.5/lib/parser/all.rb +0 -17
  633. data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.0.5/lib/parser/static_environment.rb +0 -99
  634. data/vendor/bundle/ruby/2.7.0/gems/parser-3.3.0.5/lib/parser.rb +0 -90
  635. /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/.gemtest +0 -0
  636. /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/.yardopts +0 -0
  637. /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/LICENSE +0 -0
  638. /data/vendor/bundle/ruby/2.7.0/gems/{method_source-1.0.0 → method_source-1.1.0}/Rakefile +0 -0
  639. /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
  640. /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
  641. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/LICENSE.txt +0 -0
  642. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/bin/ruby-parse +0 -0
  643. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/bin/ruby-rewrite +0 -0
  644. /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
  645. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/base.rb +0 -0
  646. /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
  647. /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
  648. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/color.rb +0 -0
  649. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/context.rb +0 -0
  650. /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
  651. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/deprecation.rb +0 -0
  652. /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
  653. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/diagnostic.rb +0 -0
  654. /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
  655. /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
  656. /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
  657. /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
  658. /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
  659. /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
  660. /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
  661. /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
  662. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/messages.rb +0 -0
  663. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/meta.rb +0 -0
  664. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/rewriter.rb +0 -0
  665. /data/vendor/bundle/ruby/2.7.0/gems/{parser-3.3.0.5 → parser-3.3.1.0}/lib/parser/ruby28.rb +0 -0
  666. /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
  667. /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
  668. /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
  669. /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
  670. /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
  671. /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
  672. /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
  673. /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
  674. /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
  675. /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
  676. /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
  677. /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
  678. /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
  679. /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
  680. /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
  681. /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
  682. /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
  683. /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
  684. /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
  685. /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
  686. /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
  687. /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
  688. /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
  689. /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
  690. /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
  691. /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
@@ -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
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'gauntlet'
4
- require 'parser/all'
4
+ require_relative 'parser/all'
5
5
  require 'shellwords'
6
6
 
7
7
  class ParserGauntlet < Gauntlet
@@ -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'
@@ -6,7 +6,9 @@ module Parser
6
6
  ##
7
7
  # @api public
8
8
  #
9
- class Processor < ::AST::Processor
9
+ class Processor
10
+ include ::AST::Processor::Mixin
11
+
10
12
  def process_regular_node(node)
11
13
  node.updated(nil, process_all(node))
12
14
  end
@@ -17,7 +17,7 @@ module Parser
17
17
  warn_syntax_deviation 'parser/ruby20', current_version
18
18
  end
19
19
 
20
- require 'parser/ruby20'
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
- require 'parser/ruby21'
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
- require 'parser/ruby22'
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
- require 'parser/ruby23'
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
- require 'parser/ruby24'
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
- require 'parser/ruby25'
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
- require 'parser/ruby26'
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
- require 'parser/ruby27'
83
+ require_relative 'ruby27'
84
84
  CurrentRuby = Ruby27
85
85
 
86
86
  when /^3\.0\./
87
- current_version = '3.0.6'
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
- require 'parser/ruby30'
92
+ require_relative 'ruby30'
93
93
  CurrentRuby = Ruby30
94
94
 
95
95
  when /^3\.1\./
96
- current_version = '3.1.4'
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
- require 'parser/ruby31'
101
+ require_relative 'ruby31'
102
102
  CurrentRuby = Ruby31
103
103
 
104
104
  when /^3\.2\./
105
- current_version = '3.2.3'
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
- require 'parser/ruby32'
110
+ require_relative 'ruby32'
111
111
  CurrentRuby = Ruby32
112
112
 
113
113
  when /^3\.3\./
114
- current_version = '3.3.0'
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
- require 'parser/ruby33'
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
- require 'parser/ruby34'
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
- require 'parser/ruby33'
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
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class MacRuby < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby18 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby19 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby20 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby21 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby22 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby23 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby24 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby25 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby26 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby27 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby30 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby31 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class Ruby32 < Parser::Base
@@ -8,7 +8,7 @@
8
8
  require 'racc/parser.rb'
9
9
 
10
10
 
11
- require 'parser'
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.declared_anonymous_blockarg? && @static_env.parent_has_anonymous_blockarg?
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.declared_anonymous_restarg? && @static_env.parent_has_anonymous_restarg?
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.declared_anonymous_kwrestarg? && @static_env.parent_has_anonymous_kwrestarg?
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
- require 'parser'
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.declared_anonymous_blockarg? && @static_env.parent_has_anonymous_blockarg?
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.declared_anonymous_restarg? && @static_env.parent_has_anonymous_restarg?
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.declared_anonymous_kwrestarg? && @static_env.parent_has_anonymous_kwrestarg?
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
- require 'parser'
11
+ require_relative '../parser'
12
12
 
13
13
  module Parser
14
14
  class RubyMotion < Parser::Base
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'parser/runner'
4
- require 'parser/color'
5
- require 'parser/lexer/explanation'
3
+ require_relative '../runner'
4
+ require_relative '../color'
5
+ require_relative '../lexer/explanation'
6
6
  require 'json'
7
7
 
8
8
  module Parser
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'parser/runner'
3
+ require_relative '../runner'
4
4
  require 'tempfile'
5
5
 
6
6
  module Parser
@@ -4,7 +4,7 @@ require 'benchmark'
4
4
  require 'find'
5
5
  require 'optparse'
6
6
 
7
- require 'parser'
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
- require 'parser/ruby18'
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
- require 'parser/ruby19'
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
- require 'parser/ruby20'
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
- require 'parser/ruby21'
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
- require 'parser/ruby22'
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
- require 'parser/ruby23'
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
- require 'parser/ruby24'
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
- require 'parser/ruby25'
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
- require 'parser/ruby26'
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
- require 'parser/ruby27'
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
- require 'parser/ruby30'
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
- require 'parser/ruby31'
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
- require 'parser/ruby32'
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
- require 'parser/ruby33'
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
- require 'parser/ruby34'
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
- require 'parser/macruby'
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
- require 'parser/rubymotion'
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
- require 'parser/current'
196
+ require_relative 'current'
197
197
  @parser_class = Parser::CurrentRuby
198
198
  end
199
199
  end
@@ -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
- Encoding.find(result[3] || result[4] || result[6])
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
- # children are strictly contained by their parent
10
- # sibblings all disjoint from one another and ordered
11
- # only actions with replacement==nil may have children
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 do not act on that range.
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]