ory-client 1.1.33 → 1.1.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (615) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -3
  3. data/README.md +8 -5
  4. data/docs/CreateSubscriptionBody.md +2 -0
  5. data/docs/FrontendApi.md +3 -1
  6. data/docs/GetProjectMetricsResponse.md +18 -0
  7. data/docs/IdentityApi.md +2 -2
  8. data/docs/InternalProvisionMockSubscription.md +2 -0
  9. data/docs/MetricsDatapoint.md +20 -0
  10. data/docs/NormalizedProjectRevisionThirdPartyProvider.md +2 -0
  11. data/docs/ProjectApi.md +78 -0
  12. data/docs/QuotaUsage.md +1 -1
  13. data/docs/SessionAuthenticationMethod.md +3 -1
  14. data/docs/Subscription.md +2 -0
  15. data/docs/UpdateLoginFlowWithOidcMethod.md +1 -1
  16. data/docs/UpdateRegistrationFlowWithOidcMethod.md +1 -1
  17. data/docs/UpdateSettingsFlowWithOidcMethod.md +1 -1
  18. data/docs/UpdateVerificationFlowWithLinkMethod.md +1 -1
  19. data/lib/ory-client/api/courier_api.rb +1 -1
  20. data/lib/ory-client/api/frontend_api.rb +4 -1
  21. data/lib/ory-client/api/identity_api.rb +7 -3
  22. data/lib/ory-client/api/jwk_api.rb +1 -1
  23. data/lib/ory-client/api/metadata_api.rb +1 -1
  24. data/lib/ory-client/api/o_auth2_api.rb +1 -1
  25. data/lib/ory-client/api/oidc_api.rb +1 -1
  26. data/lib/ory-client/api/permission_api.rb +1 -1
  27. data/lib/ory-client/api/project_api.rb +95 -1
  28. data/lib/ory-client/api/relationship_api.rb +1 -1
  29. data/lib/ory-client/api/wellknown_api.rb +1 -1
  30. data/lib/ory-client/api_client.rb +1 -1
  31. data/lib/ory-client/api_error.rb +1 -1
  32. data/lib/ory-client/configuration.rb +1 -1
  33. data/lib/ory-client/models/accept_o_auth2_consent_request.rb +1 -1
  34. data/lib/ory-client/models/accept_o_auth2_consent_request_session.rb +1 -1
  35. data/lib/ory-client/models/accept_o_auth2_login_request.rb +1 -1
  36. data/lib/ory-client/models/active_project_in_console.rb +1 -1
  37. data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
  38. data/lib/ory-client/models/batch_patch_identities_response.rb +1 -1
  39. data/lib/ory-client/models/check_opl_syntax_result.rb +1 -1
  40. data/lib/ory-client/models/check_permission_result.rb +1 -1
  41. data/lib/ory-client/models/cloud_account.rb +1 -1
  42. data/lib/ory-client/models/continue_with.rb +1 -1
  43. data/lib/ory-client/models/continue_with_set_ory_session_token.rb +1 -1
  44. data/lib/ory-client/models/continue_with_verification_ui.rb +1 -1
  45. data/lib/ory-client/models/continue_with_verification_ui_flow.rb +1 -1
  46. data/lib/ory-client/models/courier_message_status.rb +1 -1
  47. data/lib/ory-client/models/courier_message_type.rb +1 -1
  48. data/lib/ory-client/models/create_custom_domain_body.rb +1 -1
  49. data/lib/ory-client/models/create_identity_body.rb +1 -1
  50. data/lib/ory-client/models/create_json_web_key_set.rb +1 -1
  51. data/lib/ory-client/models/create_project_api_key_request.rb +1 -1
  52. data/lib/ory-client/models/create_project_body.rb +1 -1
  53. data/lib/ory-client/models/create_project_branding.rb +1 -1
  54. data/lib/ory-client/models/create_project_invite.rb +1 -1
  55. data/lib/ory-client/models/create_project_invites_response.rb +1 -1
  56. data/lib/ory-client/models/create_recovery_code_for_identity_body.rb +1 -1
  57. data/lib/ory-client/models/create_recovery_link_for_identity_body.rb +1 -1
  58. data/lib/ory-client/models/create_relationship_body.rb +1 -1
  59. data/lib/ory-client/models/create_subscription_body.rb +24 -2
  60. data/lib/ory-client/models/custom_domain.rb +1 -1
  61. data/lib/ory-client/models/delete_my_sessions_count.rb +1 -1
  62. data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
  63. data/lib/ory-client/models/error_browser_location_change_required.rb +1 -1
  64. data/lib/ory-client/models/error_flow_replaced.rb +1 -1
  65. data/lib/ory-client/models/error_generic.rb +1 -1
  66. data/lib/ory-client/models/error_o_auth2.rb +1 -1
  67. data/lib/ory-client/models/expanded_permission_tree.rb +1 -1
  68. data/lib/ory-client/models/flow_error.rb +1 -1
  69. data/lib/ory-client/models/generic_error.rb +1 -1
  70. data/lib/ory-client/models/generic_error_content.rb +1 -1
  71. data/lib/ory-client/models/generic_usage.rb +1 -1
  72. data/lib/ory-client/models/get_managed_identity_schema_location.rb +1 -1
  73. data/lib/ory-client/models/get_project_metrics_response.rb +228 -0
  74. data/lib/ory-client/models/get_version200_response.rb +1 -1
  75. data/lib/ory-client/models/health_not_ready_status.rb +1 -1
  76. data/lib/ory-client/models/health_status.rb +1 -1
  77. data/lib/ory-client/models/identity.rb +1 -1
  78. data/lib/ory-client/models/identity_credentials.rb +1 -1
  79. data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
  80. data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
  81. data/lib/ory-client/models/identity_credentials_password.rb +1 -1
  82. data/lib/ory-client/models/identity_credentials_type.rb +1 -1
  83. data/lib/ory-client/models/identity_patch.rb +1 -1
  84. data/lib/ory-client/models/identity_patch_response.rb +1 -1
  85. data/lib/ory-client/models/identity_schema_container.rb +1 -1
  86. data/lib/ory-client/models/identity_schema_preset.rb +1 -1
  87. data/lib/ory-client/models/identity_state.rb +1 -1
  88. data/lib/ory-client/models/identity_with_credentials.rb +1 -1
  89. data/lib/ory-client/models/identity_with_credentials_oidc.rb +1 -1
  90. data/lib/ory-client/models/identity_with_credentials_oidc_config.rb +1 -1
  91. data/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb +1 -1
  92. data/lib/ory-client/models/identity_with_credentials_password.rb +1 -1
  93. data/lib/ory-client/models/identity_with_credentials_password_config.rb +1 -1
  94. data/lib/ory-client/models/internal_get_project_branding_body.rb +1 -1
  95. data/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb +1 -1
  96. data/lib/ory-client/models/internal_is_owner_for_project_by_slug_response.rb +1 -1
  97. data/lib/ory-client/models/internal_provision_mock_subscription.rb +29 -2
  98. data/lib/ory-client/models/introspected_o_auth2_token.rb +1 -1
  99. data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
  100. data/lib/ory-client/models/is_ready200_response.rb +1 -1
  101. data/lib/ory-client/models/is_ready503_response.rb +1 -1
  102. data/lib/ory-client/models/json_patch.rb +1 -1
  103. data/lib/ory-client/models/json_web_key.rb +1 -1
  104. data/lib/ory-client/models/json_web_key_set.rb +1 -1
  105. data/lib/ory-client/models/keto_namespace.rb +1 -1
  106. data/lib/ory-client/models/login_flow.rb +1 -1
  107. data/lib/ory-client/models/logout_flow.rb +1 -1
  108. data/lib/ory-client/models/managed_identity_schema.rb +1 -1
  109. data/lib/ory-client/models/managed_identity_schema_validation_result.rb +1 -1
  110. data/lib/ory-client/models/message.rb +1 -1
  111. data/lib/ory-client/models/message_dispatch.rb +1 -1
  112. data/lib/ory-client/models/metrics_datapoint.rb +241 -0
  113. data/lib/ory-client/models/namespace.rb +1 -1
  114. data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
  115. data/lib/ory-client/models/normalized_project.rb +1 -1
  116. data/lib/ory-client/models/normalized_project_revision.rb +1 -1
  117. data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
  118. data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -1
  119. data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +46 -2
  120. data/lib/ory-client/models/o_auth2_client.rb +1 -1
  121. data/lib/ory-client/models/o_auth2_client_token_lifespans.rb +1 -1
  122. data/lib/ory-client/models/o_auth2_consent_request.rb +1 -1
  123. data/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb +1 -1
  124. data/lib/ory-client/models/o_auth2_consent_session.rb +1 -1
  125. data/lib/ory-client/models/o_auth2_consent_session_expires_at.rb +1 -1
  126. data/lib/ory-client/models/o_auth2_login_request.rb +1 -1
  127. data/lib/ory-client/models/o_auth2_logout_request.rb +1 -1
  128. data/lib/ory-client/models/o_auth2_redirect_to.rb +1 -1
  129. data/lib/ory-client/models/o_auth2_token_exchange.rb +1 -1
  130. data/lib/ory-client/models/oidc_configuration.rb +1 -1
  131. data/lib/ory-client/models/oidc_user_info.rb +1 -1
  132. data/lib/ory-client/models/pagination.rb +1 -1
  133. data/lib/ory-client/models/pagination_headers.rb +1 -1
  134. data/lib/ory-client/models/parse_error.rb +1 -1
  135. data/lib/ory-client/models/patch_identities_body.rb +1 -1
  136. data/lib/ory-client/models/perform_native_logout_body.rb +1 -1
  137. data/lib/ory-client/models/plan.rb +1 -1
  138. data/lib/ory-client/models/plan_details.rb +1 -1
  139. data/lib/ory-client/models/post_check_permission_body.rb +1 -1
  140. data/lib/ory-client/models/post_check_permission_or_error_body.rb +1 -1
  141. data/lib/ory-client/models/project.rb +1 -1
  142. data/lib/ory-client/models/project_api_key.rb +1 -1
  143. data/lib/ory-client/models/project_branding.rb +1 -1
  144. data/lib/ory-client/models/project_branding_colors.rb +1 -1
  145. data/lib/ory-client/models/project_branding_theme.rb +1 -1
  146. data/lib/ory-client/models/project_host.rb +1 -1
  147. data/lib/ory-client/models/project_invite.rb +1 -1
  148. data/lib/ory-client/models/project_metadata.rb +1 -1
  149. data/lib/ory-client/models/project_service_identity.rb +1 -1
  150. data/lib/ory-client/models/project_service_o_auth2.rb +1 -1
  151. data/lib/ory-client/models/project_service_permission.rb +1 -1
  152. data/lib/ory-client/models/project_services.rb +1 -1
  153. data/lib/ory-client/models/quota_usage.rb +4 -4
  154. data/lib/ory-client/models/recovery_code_for_identity.rb +1 -1
  155. data/lib/ory-client/models/recovery_flow.rb +1 -1
  156. data/lib/ory-client/models/recovery_flow_state.rb +1 -1
  157. data/lib/ory-client/models/recovery_identity_address.rb +1 -1
  158. data/lib/ory-client/models/recovery_link_for_identity.rb +1 -1
  159. data/lib/ory-client/models/registration_flow.rb +1 -1
  160. data/lib/ory-client/models/reject_o_auth2_request.rb +1 -1
  161. data/lib/ory-client/models/relation_query.rb +1 -1
  162. data/lib/ory-client/models/relationship.rb +1 -1
  163. data/lib/ory-client/models/relationship_namespaces.rb +1 -1
  164. data/lib/ory-client/models/relationship_patch.rb +1 -1
  165. data/lib/ory-client/models/relationships.rb +1 -1
  166. data/lib/ory-client/models/schema_patch.rb +1 -1
  167. data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
  168. data/lib/ory-client/models/session.rb +1 -1
  169. data/lib/ory-client/models/session_authentication_method.rb +15 -5
  170. data/lib/ory-client/models/session_device.rb +1 -1
  171. data/lib/ory-client/models/set_active_project_in_console_body.rb +1 -1
  172. data/lib/ory-client/models/set_custom_domain_body.rb +1 -1
  173. data/lib/ory-client/models/set_project.rb +1 -1
  174. data/lib/ory-client/models/set_project_branding_theme_body.rb +1 -1
  175. data/lib/ory-client/models/settings_flow.rb +1 -1
  176. data/lib/ory-client/models/settings_flow_state.rb +1 -1
  177. data/lib/ory-client/models/source_position.rb +1 -1
  178. data/lib/ory-client/models/stripe_customer.rb +1 -1
  179. data/lib/ory-client/models/subject_set.rb +1 -1
  180. data/lib/ory-client/models/subscription.rb +29 -2
  181. data/lib/ory-client/models/successful_code_exchange_response.rb +1 -1
  182. data/lib/ory-client/models/successful_native_login.rb +1 -1
  183. data/lib/ory-client/models/successful_native_registration.rb +1 -1
  184. data/lib/ory-client/models/successful_project_update.rb +1 -1
  185. data/lib/ory-client/models/token_pagination.rb +1 -1
  186. data/lib/ory-client/models/token_pagination_headers.rb +1 -1
  187. data/lib/ory-client/models/token_pagination_request_parameters.rb +1 -1
  188. data/lib/ory-client/models/token_pagination_response_headers.rb +1 -1
  189. data/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb +1 -1
  190. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb +1 -1
  191. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +1 -1
  192. data/lib/ory-client/models/ui_container.rb +1 -1
  193. data/lib/ory-client/models/ui_node.rb +1 -1
  194. data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
  195. data/lib/ory-client/models/ui_node_attributes.rb +1 -1
  196. data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
  197. data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
  198. data/lib/ory-client/models/ui_node_meta.rb +1 -1
  199. data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
  200. data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
  201. data/lib/ory-client/models/ui_text.rb +1 -1
  202. data/lib/ory-client/models/update_identity_body.rb +1 -1
  203. data/lib/ory-client/models/update_login_flow_body.rb +1 -1
  204. data/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb +1 -1
  205. data/lib/ory-client/models/update_login_flow_with_oidc_method.rb +2 -2
  206. data/lib/ory-client/models/update_login_flow_with_password_method.rb +1 -1
  207. data/lib/ory-client/models/update_login_flow_with_totp_method.rb +1 -1
  208. data/lib/ory-client/models/update_login_flow_with_web_authn_method.rb +1 -1
  209. data/lib/ory-client/models/update_recovery_flow_body.rb +1 -1
  210. data/lib/ory-client/models/update_recovery_flow_with_code_method.rb +1 -1
  211. data/lib/ory-client/models/update_recovery_flow_with_link_method.rb +1 -1
  212. data/lib/ory-client/models/update_registration_flow_body.rb +1 -1
  213. data/lib/ory-client/models/update_registration_flow_with_oidc_method.rb +2 -2
  214. data/lib/ory-client/models/update_registration_flow_with_password_method.rb +1 -1
  215. data/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb +1 -1
  216. data/lib/ory-client/models/update_settings_flow_body.rb +1 -1
  217. data/lib/ory-client/models/update_settings_flow_with_lookup_method.rb +1 -1
  218. data/lib/ory-client/models/update_settings_flow_with_oidc_method.rb +2 -2
  219. data/lib/ory-client/models/update_settings_flow_with_password_method.rb +1 -1
  220. data/lib/ory-client/models/update_settings_flow_with_profile_method.rb +1 -1
  221. data/lib/ory-client/models/update_settings_flow_with_totp_method.rb +1 -1
  222. data/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb +1 -1
  223. data/lib/ory-client/models/update_subscription_body.rb +1 -1
  224. data/lib/ory-client/models/update_verification_flow_body.rb +1 -1
  225. data/lib/ory-client/models/update_verification_flow_with_code_method.rb +1 -1
  226. data/lib/ory-client/models/update_verification_flow_with_link_method.rb +36 -2
  227. data/lib/ory-client/models/usage.rb +1 -1
  228. data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
  229. data/lib/ory-client/models/verification_flow.rb +1 -1
  230. data/lib/ory-client/models/verification_flow_state.rb +1 -1
  231. data/lib/ory-client/models/version.rb +1 -1
  232. data/lib/ory-client/models/warning.rb +1 -1
  233. data/lib/ory-client/version.rb +2 -2
  234. data/lib/ory-client.rb +3 -1
  235. data/ory-client.gemspec +1 -1
  236. data/spec/api/courier_api_spec.rb +1 -1
  237. data/spec/api/frontend_api_spec.rb +2 -1
  238. data/spec/api/identity_api_spec.rb +2 -2
  239. data/spec/api/jwk_api_spec.rb +1 -1
  240. data/spec/api/metadata_api_spec.rb +1 -1
  241. data/spec/api/o_auth2_api_spec.rb +1 -1
  242. data/spec/api/oidc_api_spec.rb +1 -1
  243. data/spec/api/permission_api_spec.rb +1 -1
  244. data/spec/api/project_api_spec.rb +16 -1
  245. data/spec/api/relationship_api_spec.rb +1 -1
  246. data/spec/api/wellknown_api_spec.rb +1 -1
  247. data/spec/api_client_spec.rb +1 -1
  248. data/spec/configuration_spec.rb +1 -1
  249. data/spec/models/accept_o_auth2_consent_request_session_spec.rb +1 -1
  250. data/spec/models/accept_o_auth2_consent_request_spec.rb +1 -1
  251. data/spec/models/accept_o_auth2_login_request_spec.rb +1 -1
  252. data/spec/models/active_project_in_console_spec.rb +1 -1
  253. data/spec/models/authenticator_assurance_level_spec.rb +1 -1
  254. data/spec/models/batch_patch_identities_response_spec.rb +1 -1
  255. data/spec/models/check_opl_syntax_result_spec.rb +1 -1
  256. data/spec/models/check_permission_result_spec.rb +1 -1
  257. data/spec/models/cloud_account_spec.rb +1 -1
  258. data/spec/models/continue_with_set_ory_session_token_spec.rb +1 -1
  259. data/spec/models/continue_with_spec.rb +1 -1
  260. data/spec/models/continue_with_verification_ui_flow_spec.rb +1 -1
  261. data/spec/models/continue_with_verification_ui_spec.rb +1 -1
  262. data/spec/models/courier_message_status_spec.rb +1 -1
  263. data/spec/models/courier_message_type_spec.rb +1 -1
  264. data/spec/models/create_custom_domain_body_spec.rb +1 -1
  265. data/spec/models/create_identity_body_spec.rb +1 -1
  266. data/spec/models/create_json_web_key_set_spec.rb +1 -1
  267. data/spec/models/create_project_api_key_request_spec.rb +1 -1
  268. data/spec/models/create_project_body_spec.rb +1 -1
  269. data/spec/models/create_project_branding_spec.rb +1 -1
  270. data/spec/models/create_project_invite_spec.rb +1 -1
  271. data/spec/models/create_project_invites_response_spec.rb +1 -1
  272. data/spec/models/create_recovery_code_for_identity_body_spec.rb +1 -1
  273. data/spec/models/create_recovery_link_for_identity_body_spec.rb +1 -1
  274. data/spec/models/create_relationship_body_spec.rb +1 -1
  275. data/spec/models/create_subscription_body_spec.rb +11 -1
  276. data/spec/models/custom_domain_spec.rb +1 -1
  277. data/spec/models/delete_my_sessions_count_spec.rb +1 -1
  278. data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
  279. data/spec/models/error_browser_location_change_required_spec.rb +1 -1
  280. data/spec/models/error_flow_replaced_spec.rb +1 -1
  281. data/spec/models/error_generic_spec.rb +1 -1
  282. data/spec/models/error_o_auth2_spec.rb +1 -1
  283. data/spec/models/expanded_permission_tree_spec.rb +1 -1
  284. data/spec/models/flow_error_spec.rb +1 -1
  285. data/spec/models/generic_error_content_spec.rb +1 -1
  286. data/spec/models/generic_error_spec.rb +1 -1
  287. data/spec/models/generic_usage_spec.rb +1 -1
  288. data/spec/models/get_managed_identity_schema_location_spec.rb +1 -1
  289. data/spec/models/get_project_metrics_response_spec.rb +34 -0
  290. data/spec/models/get_version200_response_spec.rb +1 -1
  291. data/spec/models/health_not_ready_status_spec.rb +1 -1
  292. data/spec/models/health_status_spec.rb +1 -1
  293. data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
  294. data/spec/models/identity_credentials_oidc_spec.rb +1 -1
  295. data/spec/models/identity_credentials_password_spec.rb +1 -1
  296. data/spec/models/identity_credentials_spec.rb +1 -1
  297. data/spec/models/identity_credentials_type_spec.rb +1 -1
  298. data/spec/models/identity_patch_response_spec.rb +1 -1
  299. data/spec/models/identity_patch_spec.rb +1 -1
  300. data/spec/models/identity_schema_container_spec.rb +1 -1
  301. data/spec/models/identity_schema_preset_spec.rb +1 -1
  302. data/spec/models/identity_spec.rb +1 -1
  303. data/spec/models/identity_state_spec.rb +1 -1
  304. data/spec/models/identity_with_credentials_oidc_config_provider_spec.rb +1 -1
  305. data/spec/models/identity_with_credentials_oidc_config_spec.rb +1 -1
  306. data/spec/models/identity_with_credentials_oidc_spec.rb +1 -1
  307. data/spec/models/identity_with_credentials_password_config_spec.rb +1 -1
  308. data/spec/models/identity_with_credentials_password_spec.rb +1 -1
  309. data/spec/models/identity_with_credentials_spec.rb +1 -1
  310. data/spec/models/internal_get_project_branding_body_spec.rb +1 -1
  311. data/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb +1 -1
  312. data/spec/models/internal_is_owner_for_project_by_slug_response_spec.rb +1 -1
  313. data/spec/models/internal_provision_mock_subscription_spec.rb +11 -1
  314. data/spec/models/introspected_o_auth2_token_spec.rb +1 -1
  315. data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
  316. data/spec/models/is_ready200_response_spec.rb +1 -1
  317. data/spec/models/is_ready503_response_spec.rb +1 -1
  318. data/spec/models/json_patch_spec.rb +1 -1
  319. data/spec/models/json_web_key_set_spec.rb +1 -1
  320. data/spec/models/json_web_key_spec.rb +1 -1
  321. data/spec/models/keto_namespace_spec.rb +1 -1
  322. data/spec/models/login_flow_spec.rb +1 -1
  323. data/spec/models/logout_flow_spec.rb +1 -1
  324. data/spec/models/managed_identity_schema_spec.rb +1 -1
  325. data/spec/models/managed_identity_schema_validation_result_spec.rb +1 -1
  326. data/spec/models/message_dispatch_spec.rb +1 -1
  327. data/spec/models/message_spec.rb +1 -1
  328. data/spec/models/metrics_datapoint_spec.rb +40 -0
  329. data/spec/models/namespace_spec.rb +1 -1
  330. data/spec/models/needs_privileged_session_error_spec.rb +1 -1
  331. data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
  332. data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
  333. data/spec/models/normalized_project_revision_spec.rb +1 -1
  334. data/spec/models/normalized_project_revision_third_party_provider_spec.rb +11 -1
  335. data/spec/models/normalized_project_spec.rb +1 -1
  336. data/spec/models/o_auth2_client_spec.rb +1 -1
  337. data/spec/models/o_auth2_client_token_lifespans_spec.rb +1 -1
  338. data/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +1 -1
  339. data/spec/models/o_auth2_consent_request_spec.rb +1 -1
  340. data/spec/models/o_auth2_consent_session_expires_at_spec.rb +1 -1
  341. data/spec/models/o_auth2_consent_session_spec.rb +1 -1
  342. data/spec/models/o_auth2_login_request_spec.rb +1 -1
  343. data/spec/models/o_auth2_logout_request_spec.rb +1 -1
  344. data/spec/models/o_auth2_redirect_to_spec.rb +1 -1
  345. data/spec/models/o_auth2_token_exchange_spec.rb +1 -1
  346. data/spec/models/oidc_configuration_spec.rb +1 -1
  347. data/spec/models/oidc_user_info_spec.rb +1 -1
  348. data/spec/models/pagination_headers_spec.rb +1 -1
  349. data/spec/models/pagination_spec.rb +1 -1
  350. data/spec/models/parse_error_spec.rb +1 -1
  351. data/spec/models/patch_identities_body_spec.rb +1 -1
  352. data/spec/models/perform_native_logout_body_spec.rb +1 -1
  353. data/spec/models/plan_details_spec.rb +1 -1
  354. data/spec/models/plan_spec.rb +1 -1
  355. data/spec/models/post_check_permission_body_spec.rb +1 -1
  356. data/spec/models/post_check_permission_or_error_body_spec.rb +1 -1
  357. data/spec/models/project_api_key_spec.rb +1 -1
  358. data/spec/models/project_branding_colors_spec.rb +1 -1
  359. data/spec/models/project_branding_spec.rb +1 -1
  360. data/spec/models/project_branding_theme_spec.rb +1 -1
  361. data/spec/models/project_host_spec.rb +1 -1
  362. data/spec/models/project_invite_spec.rb +1 -1
  363. data/spec/models/project_metadata_spec.rb +1 -1
  364. data/spec/models/project_service_identity_spec.rb +1 -1
  365. data/spec/models/project_service_o_auth2_spec.rb +1 -1
  366. data/spec/models/project_service_permission_spec.rb +1 -1
  367. data/spec/models/project_services_spec.rb +1 -1
  368. data/spec/models/project_spec.rb +1 -1
  369. data/spec/models/quota_usage_spec.rb +2 -2
  370. data/spec/models/recovery_code_for_identity_spec.rb +1 -1
  371. data/spec/models/recovery_flow_spec.rb +1 -1
  372. data/spec/models/recovery_flow_state_spec.rb +1 -1
  373. data/spec/models/recovery_identity_address_spec.rb +1 -1
  374. data/spec/models/recovery_link_for_identity_spec.rb +1 -1
  375. data/spec/models/registration_flow_spec.rb +1 -1
  376. data/spec/models/reject_o_auth2_request_spec.rb +1 -1
  377. data/spec/models/relation_query_spec.rb +1 -1
  378. data/spec/models/relationship_namespaces_spec.rb +1 -1
  379. data/spec/models/relationship_patch_spec.rb +1 -1
  380. data/spec/models/relationship_spec.rb +1 -1
  381. data/spec/models/relationships_spec.rb +1 -1
  382. data/spec/models/schema_patch_spec.rb +1 -1
  383. data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
  384. data/spec/models/session_authentication_method_spec.rb +7 -1
  385. data/spec/models/session_device_spec.rb +1 -1
  386. data/spec/models/session_spec.rb +1 -1
  387. data/spec/models/set_active_project_in_console_body_spec.rb +1 -1
  388. data/spec/models/set_custom_domain_body_spec.rb +1 -1
  389. data/spec/models/set_project_branding_theme_body_spec.rb +1 -1
  390. data/spec/models/set_project_spec.rb +1 -1
  391. data/spec/models/settings_flow_spec.rb +1 -1
  392. data/spec/models/settings_flow_state_spec.rb +1 -1
  393. data/spec/models/source_position_spec.rb +1 -1
  394. data/spec/models/stripe_customer_spec.rb +1 -1
  395. data/spec/models/subject_set_spec.rb +1 -1
  396. data/spec/models/subscription_spec.rb +11 -1
  397. data/spec/models/successful_code_exchange_response_spec.rb +1 -1
  398. data/spec/models/successful_native_login_spec.rb +1 -1
  399. data/spec/models/successful_native_registration_spec.rb +1 -1
  400. data/spec/models/successful_project_update_spec.rb +1 -1
  401. data/spec/models/token_pagination_headers_spec.rb +1 -1
  402. data/spec/models/token_pagination_request_parameters_spec.rb +1 -1
  403. data/spec/models/token_pagination_response_headers_spec.rb +1 -1
  404. data/spec/models/token_pagination_spec.rb +1 -1
  405. data/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +1 -1
  406. data/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +1 -1
  407. data/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +1 -1
  408. data/spec/models/ui_container_spec.rb +1 -1
  409. data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
  410. data/spec/models/ui_node_attributes_spec.rb +1 -1
  411. data/spec/models/ui_node_image_attributes_spec.rb +1 -1
  412. data/spec/models/ui_node_input_attributes_spec.rb +1 -1
  413. data/spec/models/ui_node_meta_spec.rb +1 -1
  414. data/spec/models/ui_node_script_attributes_spec.rb +1 -1
  415. data/spec/models/ui_node_spec.rb +1 -1
  416. data/spec/models/ui_node_text_attributes_spec.rb +1 -1
  417. data/spec/models/ui_text_spec.rb +1 -1
  418. data/spec/models/update_identity_body_spec.rb +1 -1
  419. data/spec/models/update_login_flow_body_spec.rb +1 -1
  420. data/spec/models/update_login_flow_with_lookup_secret_method_spec.rb +1 -1
  421. data/spec/models/update_login_flow_with_oidc_method_spec.rb +1 -1
  422. data/spec/models/update_login_flow_with_password_method_spec.rb +1 -1
  423. data/spec/models/update_login_flow_with_totp_method_spec.rb +1 -1
  424. data/spec/models/update_login_flow_with_web_authn_method_spec.rb +1 -1
  425. data/spec/models/update_recovery_flow_body_spec.rb +1 -1
  426. data/spec/models/update_recovery_flow_with_code_method_spec.rb +1 -1
  427. data/spec/models/update_recovery_flow_with_link_method_spec.rb +1 -1
  428. data/spec/models/update_registration_flow_body_spec.rb +1 -1
  429. data/spec/models/update_registration_flow_with_oidc_method_spec.rb +1 -1
  430. data/spec/models/update_registration_flow_with_password_method_spec.rb +1 -1
  431. data/spec/models/update_registration_flow_with_web_authn_method_spec.rb +1 -1
  432. data/spec/models/update_settings_flow_body_spec.rb +1 -1
  433. data/spec/models/update_settings_flow_with_lookup_method_spec.rb +1 -1
  434. data/spec/models/update_settings_flow_with_oidc_method_spec.rb +1 -1
  435. data/spec/models/update_settings_flow_with_password_method_spec.rb +1 -1
  436. data/spec/models/update_settings_flow_with_profile_method_spec.rb +1 -1
  437. data/spec/models/update_settings_flow_with_totp_method_spec.rb +1 -1
  438. data/spec/models/update_settings_flow_with_web_authn_method_spec.rb +1 -1
  439. data/spec/models/update_subscription_body_spec.rb +1 -1
  440. data/spec/models/update_verification_flow_body_spec.rb +1 -1
  441. data/spec/models/update_verification_flow_with_code_method_spec.rb +1 -1
  442. data/spec/models/update_verification_flow_with_link_method_spec.rb +5 -1
  443. data/spec/models/usage_spec.rb +1 -1
  444. data/spec/models/verifiable_identity_address_spec.rb +1 -1
  445. data/spec/models/verification_flow_spec.rb +1 -1
  446. data/spec/models/verification_flow_state_spec.rb +1 -1
  447. data/spec/models/version_spec.rb +1 -1
  448. data/spec/models/warning_spec.rb +1 -1
  449. data/spec/spec_helper.rb +1 -1
  450. data/vendor/bundle/ruby/2.5.0/bin/racc +27 -0
  451. data/vendor/bundle/ruby/2.5.0/cache/jaro_winkler-1.5.6.gem +0 -0
  452. data/vendor/bundle/ruby/2.5.0/cache/parser-3.2.2.3.gem +0 -0
  453. data/vendor/bundle/ruby/2.5.0/cache/racc-1.7.0.gem +0 -0
  454. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  455. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
  456. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/gem_make.out +6 -6
  457. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/jaro_winkler/jaro_winkler_ext.so +0 -0
  458. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.6/gem_make.out +2 -2
  459. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/racc-1.7.0/gem_make.out +17 -0
  460. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/racc-1.7.0/mkmf.log +56 -0
  461. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/racc-1.7.0/racc/cparse.so +0 -0
  462. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.6/gem_make.out +2 -2
  463. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.6/mkmf.log +1 -1
  464. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  465. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  466. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/.sitearchdir.-.jaro_winkler.time +0 -0
  467. data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/Makefile +2 -2
  468. data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/adj_matrix.o +0 -0
  469. data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/codepoints.o +0 -0
  470. data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro.o +0 -0
  471. data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro_winkler.c +5 -0
  472. data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro_winkler.o +0 -0
  473. data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro_winkler_ext.so +0 -0
  474. data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  475. data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler/version.rb +1 -1
  476. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/macruby.rb +3 -1
  477. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby18.rb +3 -1
  478. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby19.rb +3 -1
  479. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby20.rb +3 -1
  480. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby21.rb +3 -1
  481. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby22.rb +3 -1
  482. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby23.rb +3 -1
  483. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby24.rb +3 -1
  484. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby25.rb +3 -1
  485. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby26.rb +3 -1
  486. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby27.rb +3 -1
  487. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby30.rb +3 -1
  488. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby31.rb +3 -1
  489. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby32.rb +3 -1
  490. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby33.rb +3 -1
  491. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/rubymotion.rb +3 -1
  492. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/version.rb +1 -1
  493. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/parser.gemspec +1 -1
  494. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/Makefile +2 -2
  495. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/COPYING +22 -0
  496. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ChangeLog +846 -0
  497. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/README.ja.rdoc +94 -0
  498. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/README.rdoc +79 -0
  499. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/TODO +5 -0
  500. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/bin/racc +320 -0
  501. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/en/NEWS.en.rdoc +282 -0
  502. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/en/grammar.en.rdoc +226 -0
  503. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/en/grammar2.en.rdoc +219 -0
  504. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/NEWS.ja.rdoc +307 -0
  505. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/command.ja.html +94 -0
  506. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/debug.ja.rdoc +36 -0
  507. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/grammar.ja.rdoc +348 -0
  508. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/index.ja.html +10 -0
  509. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/parser.ja.rdoc +125 -0
  510. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/usage.ja.html +414 -0
  511. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/MANIFEST +4 -0
  512. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/.sitearchdir.-.racc.time +0 -0
  513. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/Makefile +264 -0
  514. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/cparse.c +861 -0
  515. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/cparse.o +0 -0
  516. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/cparse.so +0 -0
  517. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/extconf.rb +9 -0
  518. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/compat.rb +33 -0
  519. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/cparse.so +0 -0
  520. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/debugflags.rb +60 -0
  521. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/exception.rb +16 -0
  522. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/grammar.rb +1114 -0
  523. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/grammarfileparser.rb +561 -0
  524. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/info.rb +17 -0
  525. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/iset.rb +92 -0
  526. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/logfilegenerator.rb +212 -0
  527. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/parser-text.rb +658 -0
  528. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/parser.rb +632 -0
  529. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/parserfilegenerator.rb +470 -0
  530. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/sourcetext.rb +35 -0
  531. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/state.rb +972 -0
  532. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/statetransitiontable.rb +311 -0
  533. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/static.rb +5 -0
  534. data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc.rb +6 -0
  535. data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.6/ext/stringio/Makefile +2 -2
  536. data/vendor/bundle/ruby/2.5.0/specifications/{jaro_winkler-1.5.5.gemspec → jaro_winkler-1.5.6.gemspec} +4 -4
  537. data/vendor/bundle/ruby/2.5.0/specifications/{parser-3.2.2.1.gemspec → parser-3.2.2.3.gemspec} +7 -7
  538. data/vendor/bundle/ruby/2.5.0/specifications/racc-1.7.0.gemspec +27 -0
  539. metadata +166 -111
  540. data/vendor/bundle/ruby/2.5.0/cache/jaro_winkler-1.5.5.gem +0 -0
  541. data/vendor/bundle/ruby/2.5.0/cache/parser-3.2.2.1.gem +0 -0
  542. /data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/gem.build_complete +0 -0
  543. /data/vendor/bundle/ruby/2.5.0/{gems/jaro_winkler-1.5.5/ext/jaro_winkler/.sitearchdir.-.jaro_winkler.time → extensions/x86_64-linux/2.5.0/racc-1.7.0/gem.build_complete} +0 -0
  544. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/LICENSE.txt +0 -0
  545. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/adj_matrix.c +0 -0
  546. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/adj_matrix.h +0 -0
  547. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/codepoints.c +0 -0
  548. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/codepoints.h +0 -0
  549. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/extconf.rb +0 -0
  550. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro.c +0 -0
  551. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro.h +0 -0
  552. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler/adjusting_table.rb +0 -0
  553. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler/jaro_winkler_pure.rb +0 -0
  554. /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler.rb +0 -0
  555. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/LICENSE.txt +0 -0
  556. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/bin/ruby-parse +0 -0
  557. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/bin/ruby-rewrite +0 -0
  558. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/gauntlet_parser.rb +0 -0
  559. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/all.rb +0 -0
  560. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ast/node.rb +0 -0
  561. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ast/processor.rb +0 -0
  562. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/base.rb +0 -0
  563. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/builders/default.rb +0 -0
  564. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/clobbering_error.rb +0 -0
  565. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/color.rb +0 -0
  566. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/context.rb +0 -0
  567. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/current.rb +0 -0
  568. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/current_arg_stack.rb +0 -0
  569. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/deprecation.rb +0 -0
  570. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/diagnostic/engine.rb +0 -0
  571. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/diagnostic.rb +0 -0
  572. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/dedenter.rb +0 -0
  573. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/explanation.rb +0 -0
  574. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/literal.rb +0 -0
  575. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/stack_state.rb +0 -0
  576. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer-F0.rb +0 -0
  577. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer-F1.rb +0 -0
  578. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer-strings.rb +0 -0
  579. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/max_numparam_stack.rb +0 -0
  580. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/messages.rb +0 -0
  581. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/meta.rb +0 -0
  582. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/rewriter.rb +0 -0
  583. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby28.rb +0 -0
  584. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/runner/ruby_parse.rb +0 -0
  585. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/runner/ruby_rewrite.rb +0 -0
  586. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/runner.rb +0 -0
  587. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/buffer.rb +0 -0
  588. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/comment/associator.rb +0 -0
  589. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/comment.rb +0 -0
  590. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/collection.rb +0 -0
  591. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/condition.rb +0 -0
  592. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/constant.rb +0 -0
  593. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/definition.rb +0 -0
  594. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/for.rb +0 -0
  595. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/heredoc.rb +0 -0
  596. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/index.rb +0 -0
  597. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/keyword.rb +0 -0
  598. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/method_definition.rb +0 -0
  599. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/objc_kwarg.rb +0 -0
  600. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/operator.rb +0 -0
  601. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/rescue_body.rb +0 -0
  602. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/send.rb +0 -0
  603. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/ternary.rb +0 -0
  604. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/variable.rb +0 -0
  605. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map.rb +0 -0
  606. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/range.rb +0 -0
  607. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/rewriter/action.rb +0 -0
  608. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/rewriter.rb +0 -0
  609. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/tree_rewriter/action.rb +0 -0
  610. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/tree_rewriter.rb +0 -0
  611. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/static_environment.rb +0 -0
  612. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/syntax_error.rb +0 -0
  613. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/tree_rewriter.rb +0 -0
  614. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/variables_stack.rb +0 -0
  615. /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser.rb +0 -0
@@ -0,0 +1,632 @@
1
+ # frozen_string_literal: false
2
+ #--
3
+ # Copyright (c) 1999-2006 Minero Aoki
4
+ #
5
+ # This program is free software.
6
+ # You can distribute/modify this program under the same terms of ruby.
7
+ #
8
+ # As a special exception, when this code is copied by Racc
9
+ # into a Racc output file, you may use that output file
10
+ # without restriction.
11
+ #++
12
+
13
+ require 'racc/info'
14
+
15
+ unless defined?(NotImplementedError)
16
+ NotImplementedError = NotImplementError # :nodoc:
17
+ end
18
+
19
+ module Racc
20
+ class ParseError < StandardError; end
21
+ end
22
+ unless defined?(::ParseError)
23
+ ParseError = Racc::ParseError # :nodoc:
24
+ end
25
+
26
+ # Racc is a LALR(1) parser generator.
27
+ # It is written in Ruby itself, and generates Ruby programs.
28
+ #
29
+ # == Command-line Reference
30
+ #
31
+ # racc [-o<var>filename</var>] [--output-file=<var>filename</var>]
32
+ # [-e<var>rubypath</var>] [--executable=<var>rubypath</var>]
33
+ # [-v] [--verbose]
34
+ # [-O<var>filename</var>] [--log-file=<var>filename</var>]
35
+ # [-g] [--debug]
36
+ # [-E] [--embedded]
37
+ # [-l] [--no-line-convert]
38
+ # [-c] [--line-convert-all]
39
+ # [-a] [--no-omit-actions]
40
+ # [-C] [--check-only]
41
+ # [-S] [--output-status]
42
+ # [--version] [--copyright] [--help] <var>grammarfile</var>
43
+ #
44
+ # [+grammarfile+]
45
+ # Racc grammar file. Any extension is permitted.
46
+ # [-o+outfile+, --output-file=+outfile+]
47
+ # A filename for output. default is <+filename+>.tab.rb
48
+ # [-O+filename+, --log-file=+filename+]
49
+ # Place logging output in file +filename+.
50
+ # Default log file name is <+filename+>.output.
51
+ # [-e+rubypath+, --executable=+rubypath+]
52
+ # output executable file(mode 755). where +path+ is the Ruby interpreter.
53
+ # [-v, --verbose]
54
+ # verbose mode. create +filename+.output file, like yacc's y.output file.
55
+ # [-g, --debug]
56
+ # add debug code to parser class. To display debuggin information,
57
+ # use this '-g' option and set @yydebug true in parser class.
58
+ # [-E, --embedded]
59
+ # Output parser which doesn't need runtime files (racc/parser.rb).
60
+ # [-C, --check-only]
61
+ # Check syntax of racc grammar file and quit.
62
+ # [-S, --output-status]
63
+ # Print messages time to time while compiling.
64
+ # [-l, --no-line-convert]
65
+ # turns off line number converting.
66
+ # [-c, --line-convert-all]
67
+ # Convert line number of actions, inner, header and footer.
68
+ # [-a, --no-omit-actions]
69
+ # Call all actions, even if an action is empty.
70
+ # [--version]
71
+ # print Racc version and quit.
72
+ # [--copyright]
73
+ # Print copyright and quit.
74
+ # [--help]
75
+ # Print usage and quit.
76
+ #
77
+ # == Generating Parser Using Racc
78
+ #
79
+ # To compile Racc grammar file, simply type:
80
+ #
81
+ # $ racc parse.y
82
+ #
83
+ # This creates Ruby script file "parse.tab.y". The -o option can change the output filename.
84
+ #
85
+ # == Writing A Racc Grammar File
86
+ #
87
+ # If you want your own parser, you have to write a grammar file.
88
+ # A grammar file contains the name of your parser class, grammar for the parser,
89
+ # user code, and anything else.
90
+ # When writing a grammar file, yacc's knowledge is helpful.
91
+ # If you have not used yacc before, Racc is not too difficult.
92
+ #
93
+ # Here's an example Racc grammar file.
94
+ #
95
+ # class Calcparser
96
+ # rule
97
+ # target: exp { print val[0] }
98
+ #
99
+ # exp: exp '+' exp
100
+ # | exp '*' exp
101
+ # | '(' exp ')'
102
+ # | NUMBER
103
+ # end
104
+ #
105
+ # Racc grammar files resemble yacc files.
106
+ # But (of course), this is Ruby code.
107
+ # yacc's $$ is the 'result', $0, $1... is
108
+ # an array called 'val', and $-1, $-2... is an array called '_values'.
109
+ #
110
+ # See the {Grammar File Reference}[rdoc-ref:lib/racc/rdoc/grammar.en.rdoc] for
111
+ # more information on grammar files.
112
+ #
113
+ # == Parser
114
+ #
115
+ # Then you must prepare the parse entry method. There are two types of
116
+ # parse methods in Racc, Racc::Parser#do_parse and Racc::Parser#yyparse
117
+ #
118
+ # Racc::Parser#do_parse is simple.
119
+ #
120
+ # It's yyparse() of yacc, and Racc::Parser#next_token is yylex().
121
+ # This method must returns an array like [TOKENSYMBOL, ITS_VALUE].
122
+ # EOF is [false, false].
123
+ # (TOKENSYMBOL is a Ruby symbol (taken from String#intern) by default.
124
+ # If you want to change this, see the grammar reference.
125
+ #
126
+ # Racc::Parser#yyparse is little complicated, but useful.
127
+ # It does not use Racc::Parser#next_token, instead it gets tokens from any iterator.
128
+ #
129
+ # For example, <code>yyparse(obj, :scan)</code> causes
130
+ # calling +obj#scan+, and you can return tokens by yielding them from +obj#scan+.
131
+ #
132
+ # == Debugging
133
+ #
134
+ # When debugging, "-v" or/and the "-g" option is helpful.
135
+ #
136
+ # "-v" creates verbose log file (.output).
137
+ # "-g" creates a "Verbose Parser".
138
+ # Verbose Parser prints the internal status when parsing.
139
+ # But it's _not_ automatic.
140
+ # You must use -g option and set +@yydebug+ to +true+ in order to get output.
141
+ # -g option only creates the verbose parser.
142
+ #
143
+ # === Racc reported syntax error.
144
+ #
145
+ # Isn't there too many "end"?
146
+ # grammar of racc file is changed in v0.10.
147
+ #
148
+ # Racc does not use '%' mark, while yacc uses huge number of '%' marks..
149
+ #
150
+ # === Racc reported "XXXX conflicts".
151
+ #
152
+ # Try "racc -v xxxx.y".
153
+ # It causes producing racc's internal log file, xxxx.output.
154
+ #
155
+ # === Generated parsers does not work correctly
156
+ #
157
+ # Try "racc -g xxxx.y".
158
+ # This command let racc generate "debugging parser".
159
+ # Then set @yydebug=true in your parser.
160
+ # It produces a working log of your parser.
161
+ #
162
+ # == Re-distributing Racc runtime
163
+ #
164
+ # A parser, which is created by Racc, requires the Racc runtime module;
165
+ # racc/parser.rb.
166
+ #
167
+ # Ruby 1.8.x comes with Racc runtime module,
168
+ # you need NOT distribute Racc runtime files.
169
+ #
170
+ # If you want to include the Racc runtime module with your parser.
171
+ # This can be done by using '-E' option:
172
+ #
173
+ # $ racc -E -omyparser.rb myparser.y
174
+ #
175
+ # This command creates myparser.rb which `includes' Racc runtime.
176
+ # Only you must do is to distribute your parser file (myparser.rb).
177
+ #
178
+ # Note: parser.rb is ruby license, but your parser is not.
179
+ # Your own parser is completely yours.
180
+ module Racc
181
+
182
+ unless defined?(Racc_No_Extensions)
183
+ Racc_No_Extensions = false # :nodoc:
184
+ end
185
+
186
+ class Parser
187
+
188
+ Racc_Runtime_Version = ::Racc::VERSION
189
+ Racc_Runtime_Core_Version_R = ::Racc::VERSION
190
+
191
+ begin
192
+ if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
193
+ require 'jruby'
194
+ require 'racc/cparse-jruby.jar'
195
+ com.headius.racc.Cparse.new.load(JRuby.runtime, false)
196
+ else
197
+ require 'racc/cparse'
198
+ end
199
+
200
+ unless new.respond_to?(:_racc_do_parse_c, true)
201
+ raise LoadError, 'old cparse.so'
202
+ end
203
+ if Racc_No_Extensions
204
+ raise LoadError, 'selecting ruby version of racc runtime core'
205
+ end
206
+
207
+ Racc_Main_Parsing_Routine = :_racc_do_parse_c # :nodoc:
208
+ Racc_YY_Parse_Method = :_racc_yyparse_c # :nodoc:
209
+ Racc_Runtime_Core_Version = Racc_Runtime_Core_Version_C # :nodoc:
210
+ Racc_Runtime_Type = 'c' # :nodoc:
211
+ rescue LoadError
212
+ Racc_Main_Parsing_Routine = :_racc_do_parse_rb
213
+ Racc_YY_Parse_Method = :_racc_yyparse_rb
214
+ Racc_Runtime_Core_Version = Racc_Runtime_Core_Version_R
215
+ Racc_Runtime_Type = 'ruby'
216
+ end
217
+
218
+ def Parser.racc_runtime_type # :nodoc:
219
+ Racc_Runtime_Type
220
+ end
221
+
222
+ def _racc_setup
223
+ @yydebug = false unless self.class::Racc_debug_parser
224
+ @yydebug = false unless defined?(@yydebug)
225
+ if @yydebug
226
+ @racc_debug_out = $stderr unless defined?(@racc_debug_out)
227
+ @racc_debug_out ||= $stderr
228
+ end
229
+ arg = self.class::Racc_arg
230
+ arg[13] = true if arg.size < 14
231
+ arg
232
+ end
233
+
234
+ def _racc_init_sysvars
235
+ @racc_state = [0]
236
+ @racc_tstack = []
237
+ @racc_vstack = []
238
+
239
+ @racc_t = nil
240
+ @racc_val = nil
241
+
242
+ @racc_read_next = true
243
+
244
+ @racc_user_yyerror = false
245
+ @racc_error_status = 0
246
+ end
247
+
248
+ # The entry point of the parser. This method is used with #next_token.
249
+ # If Racc wants to get token (and its value), calls next_token.
250
+ #
251
+ # Example:
252
+ # def parse
253
+ # @q = [[1,1],
254
+ # [2,2],
255
+ # [3,3],
256
+ # [false, '$']]
257
+ # do_parse
258
+ # end
259
+ #
260
+ # def next_token
261
+ # @q.shift
262
+ # end
263
+ class_eval <<~RUBY, __FILE__, __LINE__ + 1
264
+ def do_parse
265
+ #{Racc_Main_Parsing_Routine}(_racc_setup(), false)
266
+ end
267
+ RUBY
268
+
269
+ # The method to fetch next token.
270
+ # If you use #do_parse method, you must implement #next_token.
271
+ #
272
+ # The format of return value is [TOKEN_SYMBOL, VALUE].
273
+ # +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT
274
+ # for 'IDENT'. ";" (String) for ';'.
275
+ #
276
+ # The final symbol (End of file) must be false.
277
+ def next_token
278
+ raise NotImplementedError, "#{self.class}\#next_token is not defined"
279
+ end
280
+
281
+ def _racc_do_parse_rb(arg, in_debug)
282
+ action_table, action_check, action_default, action_pointer,
283
+ _, _, _, _,
284
+ _, _, token_table, * = arg
285
+
286
+ _racc_init_sysvars
287
+ tok = act = i = nil
288
+
289
+ catch(:racc_end_parse) {
290
+ while true
291
+ if i = action_pointer[@racc_state[-1]]
292
+ if @racc_read_next
293
+ if @racc_t != 0 # not EOF
294
+ tok, @racc_val = next_token()
295
+ unless tok # EOF
296
+ @racc_t = 0
297
+ else
298
+ @racc_t = (token_table[tok] or 1) # error token
299
+ end
300
+ racc_read_token(@racc_t, tok, @racc_val) if @yydebug
301
+ @racc_read_next = false
302
+ end
303
+ end
304
+ i += @racc_t
305
+ unless i >= 0 and
306
+ act = action_table[i] and
307
+ action_check[i] == @racc_state[-1]
308
+ act = action_default[@racc_state[-1]]
309
+ end
310
+ else
311
+ act = action_default[@racc_state[-1]]
312
+ end
313
+ while act = _racc_evalact(act, arg)
314
+ ;
315
+ end
316
+ end
317
+ }
318
+ end
319
+
320
+ # Another entry point for the parser.
321
+ # If you use this method, you must implement RECEIVER#METHOD_ID method.
322
+ #
323
+ # RECEIVER#METHOD_ID is a method to get next token.
324
+ # It must 'yield' the token, which format is [TOKEN-SYMBOL, VALUE].
325
+ class_eval <<~RUBY, __FILE__, __LINE__ + 1
326
+ def yyparse(recv, mid)
327
+ #{Racc_YY_Parse_Method}(recv, mid, _racc_setup(), false)
328
+ end
329
+ RUBY
330
+
331
+ def _racc_yyparse_rb(recv, mid, arg, c_debug)
332
+ action_table, action_check, action_default, action_pointer,
333
+ _, _, _, _,
334
+ _, _, token_table, * = arg
335
+
336
+ _racc_init_sysvars
337
+
338
+ catch(:racc_end_parse) {
339
+ until i = action_pointer[@racc_state[-1]]
340
+ while act = _racc_evalact(action_default[@racc_state[-1]], arg)
341
+ ;
342
+ end
343
+ end
344
+ recv.__send__(mid) do |tok, val|
345
+ unless tok
346
+ @racc_t = 0
347
+ else
348
+ @racc_t = (token_table[tok] or 1) # error token
349
+ end
350
+ @racc_val = val
351
+ @racc_read_next = false
352
+
353
+ i += @racc_t
354
+ unless i >= 0 and
355
+ act = action_table[i] and
356
+ action_check[i] == @racc_state[-1]
357
+ act = action_default[@racc_state[-1]]
358
+ end
359
+ while act = _racc_evalact(act, arg)
360
+ ;
361
+ end
362
+
363
+ while !(i = action_pointer[@racc_state[-1]]) ||
364
+ ! @racc_read_next ||
365
+ @racc_t == 0 # $
366
+ unless i and i += @racc_t and
367
+ i >= 0 and
368
+ act = action_table[i] and
369
+ action_check[i] == @racc_state[-1]
370
+ act = action_default[@racc_state[-1]]
371
+ end
372
+ while act = _racc_evalact(act, arg)
373
+ ;
374
+ end
375
+ end
376
+ end
377
+ }
378
+ end
379
+
380
+ ###
381
+ ### common
382
+ ###
383
+
384
+ def _racc_evalact(act, arg)
385
+ action_table, action_check, _, action_pointer,
386
+ _, _, _, _,
387
+ _, _, _, shift_n,
388
+ reduce_n, * = arg
389
+ nerr = 0 # tmp
390
+
391
+ if act > 0 and act < shift_n
392
+ #
393
+ # shift
394
+ #
395
+ if @racc_error_status > 0
396
+ @racc_error_status -= 1 unless @racc_t <= 1 # error token or EOF
397
+ end
398
+ @racc_vstack.push @racc_val
399
+ @racc_state.push act
400
+ @racc_read_next = true
401
+ if @yydebug
402
+ @racc_tstack.push @racc_t
403
+ racc_shift @racc_t, @racc_tstack, @racc_vstack
404
+ end
405
+
406
+ elsif act < 0 and act > -reduce_n
407
+ #
408
+ # reduce
409
+ #
410
+ code = catch(:racc_jump) {
411
+ @racc_state.push _racc_do_reduce(arg, act)
412
+ false
413
+ }
414
+ if code
415
+ case code
416
+ when 1 # yyerror
417
+ @racc_user_yyerror = true # user_yyerror
418
+ return -reduce_n
419
+ when 2 # yyaccept
420
+ return shift_n
421
+ else
422
+ raise '[Racc Bug] unknown jump code'
423
+ end
424
+ end
425
+
426
+ elsif act == shift_n
427
+ #
428
+ # accept
429
+ #
430
+ racc_accept if @yydebug
431
+ throw :racc_end_parse, @racc_vstack[0]
432
+
433
+ elsif act == -reduce_n
434
+ #
435
+ # error
436
+ #
437
+ case @racc_error_status
438
+ when 0
439
+ unless arg[21] # user_yyerror
440
+ nerr += 1
441
+ on_error @racc_t, @racc_val, @racc_vstack
442
+ end
443
+ when 3
444
+ if @racc_t == 0 # is $
445
+ # We're at EOF, and another error occurred immediately after
446
+ # attempting auto-recovery
447
+ throw :racc_end_parse, nil
448
+ end
449
+ @racc_read_next = true
450
+ end
451
+ @racc_user_yyerror = false
452
+ @racc_error_status = 3
453
+ while true
454
+ if i = action_pointer[@racc_state[-1]]
455
+ i += 1 # error token
456
+ if i >= 0 and
457
+ (act = action_table[i]) and
458
+ action_check[i] == @racc_state[-1]
459
+ break
460
+ end
461
+ end
462
+ throw :racc_end_parse, nil if @racc_state.size <= 1
463
+ @racc_state.pop
464
+ @racc_vstack.pop
465
+ if @yydebug
466
+ @racc_tstack.pop
467
+ racc_e_pop @racc_state, @racc_tstack, @racc_vstack
468
+ end
469
+ end
470
+ return act
471
+
472
+ else
473
+ raise "[Racc Bug] unknown action #{act.inspect}"
474
+ end
475
+
476
+ racc_next_state(@racc_state[-1], @racc_state) if @yydebug
477
+
478
+ nil
479
+ end
480
+
481
+ def _racc_do_reduce(arg, act)
482
+ _, _, _, _,
483
+ goto_table, goto_check, goto_default, goto_pointer,
484
+ nt_base, reduce_table, _, _,
485
+ _, use_result, * = arg
486
+
487
+ state = @racc_state
488
+ vstack = @racc_vstack
489
+ tstack = @racc_tstack
490
+
491
+ i = act * -3
492
+ len = reduce_table[i]
493
+ reduce_to = reduce_table[i+1]
494
+ method_id = reduce_table[i+2]
495
+ void_array = []
496
+
497
+ tmp_t = tstack[-len, len] if @yydebug
498
+ tmp_v = vstack[-len, len]
499
+ tstack[-len, len] = void_array if @yydebug
500
+ vstack[-len, len] = void_array
501
+ state[-len, len] = void_array
502
+
503
+ # tstack must be updated AFTER method call
504
+ if use_result
505
+ vstack.push __send__(method_id, tmp_v, vstack, tmp_v[0])
506
+ else
507
+ vstack.push __send__(method_id, tmp_v, vstack)
508
+ end
509
+ tstack.push reduce_to
510
+
511
+ racc_reduce(tmp_t, reduce_to, tstack, vstack) if @yydebug
512
+
513
+ k1 = reduce_to - nt_base
514
+ if i = goto_pointer[k1]
515
+ i += state[-1]
516
+ if i >= 0 and (curstate = goto_table[i]) and goto_check[i] == k1
517
+ return curstate
518
+ end
519
+ end
520
+ goto_default[k1]
521
+ end
522
+
523
+ # This method is called when a parse error is found.
524
+ #
525
+ # ERROR_TOKEN_ID is an internal ID of token which caused error.
526
+ # You can get string representation of this ID by calling
527
+ # #token_to_str.
528
+ #
529
+ # ERROR_VALUE is a value of error token.
530
+ #
531
+ # value_stack is a stack of symbol values.
532
+ # DO NOT MODIFY this object.
533
+ #
534
+ # This method raises ParseError by default.
535
+ #
536
+ # If this method returns, parsers enter "error recovering mode".
537
+ def on_error(t, val, vstack)
538
+ raise ParseError, sprintf("\nparse error on value %s (%s)",
539
+ val.inspect, token_to_str(t) || '?')
540
+ end
541
+
542
+ # Enter error recovering mode.
543
+ # This method does not call #on_error.
544
+ def yyerror
545
+ throw :racc_jump, 1
546
+ end
547
+
548
+ # Exit parser.
549
+ # Return value is +Symbol_Value_Stack[0]+.
550
+ def yyaccept
551
+ throw :racc_jump, 2
552
+ end
553
+
554
+ # Leave error recovering mode.
555
+ def yyerrok
556
+ @racc_error_status = 0
557
+ end
558
+
559
+ # For debugging output
560
+ def racc_read_token(t, tok, val)
561
+ @racc_debug_out.print 'read '
562
+ @racc_debug_out.print tok.inspect, '(', racc_token2str(t), ') '
563
+ @racc_debug_out.puts val.inspect
564
+ @racc_debug_out.puts
565
+ end
566
+
567
+ def racc_shift(tok, tstack, vstack)
568
+ @racc_debug_out.puts "shift #{racc_token2str tok}"
569
+ racc_print_stacks tstack, vstack
570
+ @racc_debug_out.puts
571
+ end
572
+
573
+ def racc_reduce(toks, sim, tstack, vstack)
574
+ out = @racc_debug_out
575
+ out.print 'reduce '
576
+ if toks.empty?
577
+ out.print ' <none>'
578
+ else
579
+ toks.each {|t| out.print ' ', racc_token2str(t) }
580
+ end
581
+ out.puts " --> #{racc_token2str(sim)}"
582
+ racc_print_stacks tstack, vstack
583
+ @racc_debug_out.puts
584
+ end
585
+
586
+ def racc_accept
587
+ @racc_debug_out.puts 'accept'
588
+ @racc_debug_out.puts
589
+ end
590
+
591
+ def racc_e_pop(state, tstack, vstack)
592
+ @racc_debug_out.puts 'error recovering mode: pop token'
593
+ racc_print_states state
594
+ racc_print_stacks tstack, vstack
595
+ @racc_debug_out.puts
596
+ end
597
+
598
+ def racc_next_state(curstate, state)
599
+ @racc_debug_out.puts "goto #{curstate}"
600
+ racc_print_states state
601
+ @racc_debug_out.puts
602
+ end
603
+
604
+ def racc_print_stacks(t, v)
605
+ out = @racc_debug_out
606
+ out.print ' ['
607
+ t.each_index do |i|
608
+ out.print ' (', racc_token2str(t[i]), ' ', v[i].inspect, ')'
609
+ end
610
+ out.puts ' ]'
611
+ end
612
+
613
+ def racc_print_states(s)
614
+ out = @racc_debug_out
615
+ out.print ' ['
616
+ s.each {|st| out.print ' ', st }
617
+ out.puts ' ]'
618
+ end
619
+
620
+ def racc_token2str(tok)
621
+ self.class::Racc_token_to_s_table[tok] or
622
+ raise "[Racc Bug] can't convert token #{tok} to string"
623
+ end
624
+
625
+ # Convert internal ID of token symbol to the string.
626
+ def token_to_str(t)
627
+ self.class::Racc_token_to_s_table[t]
628
+ end
629
+
630
+ end
631
+
632
+ end