ory-client 1.1.32 → 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,861 @@
1
+ /*
2
+
3
+ cparse.c -- Racc Runtime Core
4
+
5
+ Copyright (c) 1999-2006 Minero Aoki
6
+
7
+ This library is free software.
8
+ You can distribute/modify this program under the same terms of ruby.
9
+
10
+ */
11
+
12
+ #include <ruby.h>
13
+
14
+ #ifndef FALSE
15
+ #define FALSE 0
16
+ #endif
17
+ #ifndef TRUE
18
+ #define TRUE 1
19
+ #endif
20
+
21
+ /* -----------------------------------------------------------------------
22
+ Important Constants
23
+ ----------------------------------------------------------------------- */
24
+
25
+ #define RACC_VERSION "1.6.2"
26
+
27
+ #define DEFAULT_TOKEN -1
28
+ #define ERROR_TOKEN 1
29
+ #define FINAL_TOKEN 0
30
+
31
+ #define vDEFAULT_TOKEN INT2FIX(DEFAULT_TOKEN)
32
+ #define vERROR_TOKEN INT2FIX(ERROR_TOKEN)
33
+ #define vFINAL_TOKEN INT2FIX(FINAL_TOKEN)
34
+
35
+ /* -----------------------------------------------------------------------
36
+ File Local Variables
37
+ ----------------------------------------------------------------------- */
38
+
39
+ static VALUE RaccBug;
40
+ static VALUE CparseParams;
41
+
42
+ static ID id_yydebug;
43
+ static ID id_nexttoken;
44
+ static ID id_onerror;
45
+ static ID id_noreduce;
46
+ static ID id_errstatus;
47
+
48
+ static ID id_d_shift;
49
+ static ID id_d_reduce;
50
+ static ID id_d_accept;
51
+ static ID id_d_read_token;
52
+ static ID id_d_next_state;
53
+ static ID id_d_e_pop;
54
+
55
+ /* -----------------------------------------------------------------------
56
+ Utils
57
+ ----------------------------------------------------------------------- */
58
+
59
+ /* For backward compatibility */
60
+ #ifndef ID2SYM
61
+ # define ID2SYM(i) ULONG2NUM(i)
62
+ #endif
63
+ #ifndef SYM2ID
64
+ # define SYM2ID(v) ((ID)NUM2ULONG(v))
65
+ #endif
66
+ #ifndef SYMBOL_P
67
+ # define SYMBOL_P(v) FIXNUM_P(v)
68
+ #endif
69
+ #ifndef LONG2NUM
70
+ # define LONG2NUM(i) INT2NUM(i)
71
+ #endif
72
+
73
+ #ifndef HAVE_RB_ARY_SUBSEQ
74
+ # define rb_ary_subseq(ary, beg, len) rb_ary_new4(len, RARRAY_PTR(ary) + beg)
75
+ #endif
76
+
77
+ static ID value_to_id _((VALUE v));
78
+ static inline long num_to_long _((VALUE n));
79
+
80
+ static ID
81
+ value_to_id(VALUE v)
82
+ {
83
+ if (! SYMBOL_P(v)) {
84
+ rb_raise(rb_eTypeError, "not symbol");
85
+ }
86
+ return SYM2ID(v);
87
+ }
88
+
89
+ static inline long
90
+ num_to_long(VALUE n)
91
+ {
92
+ return NUM2LONG(n);
93
+ }
94
+
95
+ #define AREF(s, idx) \
96
+ ((0 <= idx && idx < RARRAY_LEN(s)) ? rb_ary_entry(s, idx) : Qnil)
97
+
98
+ /* -----------------------------------------------------------------------
99
+ Parser Stack Interfaces
100
+ ----------------------------------------------------------------------- */
101
+
102
+ static VALUE get_stack_tail _((VALUE stack, long len));
103
+ static void cut_stack_tail _((VALUE stack, long len));
104
+
105
+ static VALUE
106
+ get_stack_tail(VALUE stack, long len)
107
+ {
108
+ if (len < 0) return Qnil; /* system error */
109
+ if (len > RARRAY_LEN(stack)) len = RARRAY_LEN(stack);
110
+ return rb_ary_subseq(stack, RARRAY_LEN(stack) - len, len);
111
+ }
112
+
113
+ static void
114
+ cut_stack_tail(VALUE stack, long len)
115
+ {
116
+ while (len > 0) {
117
+ rb_ary_pop(stack);
118
+ len--;
119
+ }
120
+ }
121
+
122
+ #define STACK_INIT_LEN 64
123
+ #define NEW_STACK() rb_ary_new2(STACK_INIT_LEN)
124
+ #define PUSH(s, i) rb_ary_store(s, RARRAY_LEN(s), i)
125
+ #define POP(s) rb_ary_pop(s)
126
+ #define LAST_I(s) \
127
+ ((RARRAY_LEN(s) > 0) ? rb_ary_entry(s, RARRAY_LEN(s) - 1) : Qnil)
128
+ #define GET_TAIL(s, len) get_stack_tail(s, len)
129
+ #define CUT_TAIL(s, len) cut_stack_tail(s, len)
130
+
131
+ /* -----------------------------------------------------------------------
132
+ struct cparse_params
133
+ ----------------------------------------------------------------------- */
134
+
135
+ struct cparse_params {
136
+ VALUE value_v; /* VALUE version of this struct */
137
+
138
+ VALUE parser; /* parser object */
139
+
140
+ int lex_is_iterator;
141
+ VALUE lexer; /* scanner object */
142
+ ID lexmid; /* name of scanner method (must be an iterator) */
143
+
144
+ /* State transition tables (immutable)
145
+ Data structure is from Dragon Book 4.9 */
146
+ /* action table */
147
+ VALUE action_table;
148
+ VALUE action_check;
149
+ VALUE action_default;
150
+ VALUE action_pointer;
151
+ /* goto table */
152
+ VALUE goto_table;
153
+ VALUE goto_check;
154
+ VALUE goto_default;
155
+ VALUE goto_pointer;
156
+
157
+ long nt_base; /* NonTerminal BASE index */
158
+ VALUE reduce_table; /* reduce data table */
159
+ VALUE token_table; /* token conversion table */
160
+
161
+ /* parser stacks and parameters */
162
+ VALUE state;
163
+ long curstate;
164
+ VALUE vstack;
165
+ VALUE tstack;
166
+ VALUE t;
167
+ long shift_n;
168
+ long reduce_n;
169
+ long ruleno;
170
+
171
+ long errstatus; /* nonzero in error recovering mode */
172
+ long nerr; /* number of error */
173
+
174
+ int use_result_var;
175
+
176
+ VALUE retval; /* return value of parser routine */
177
+ long fin; /* parse result status */
178
+ #define CP_FIN_ACCEPT 1
179
+ #define CP_FIN_EOT 2
180
+ #define CP_FIN_CANTPOP 3
181
+
182
+ int debug; /* user level debug */
183
+ int sys_debug; /* system level debug */
184
+
185
+ long i; /* table index */
186
+ };
187
+
188
+ /* -----------------------------------------------------------------------
189
+ Parser Main Routines
190
+ ----------------------------------------------------------------------- */
191
+
192
+ static VALUE racc_cparse _((VALUE parser, VALUE arg, VALUE sysdebug));
193
+ static VALUE racc_yyparse _((VALUE parser, VALUE lexer, VALUE lexmid,
194
+ VALUE arg, VALUE sysdebug));
195
+
196
+ static void call_lexer _((struct cparse_params *v));
197
+ static VALUE lexer_i _((RB_BLOCK_CALL_FUNC_ARGLIST(block_args, data)));
198
+
199
+ static VALUE assert_array _((VALUE a));
200
+ static long assert_integer _((VALUE n));
201
+ static VALUE assert_hash _((VALUE h));
202
+ static VALUE initialize_params _((VALUE vparams, VALUE parser, VALUE arg,
203
+ VALUE lexer, VALUE lexmid));
204
+ static void cparse_params_mark _((void *ptr));
205
+ static size_t cparse_params_memsize _((const void *ptr));
206
+
207
+ static void parse_main _((struct cparse_params *v,
208
+ VALUE tok, VALUE val, int resume));
209
+ static void extract_user_token _((struct cparse_params *v,
210
+ VALUE block_args, VALUE *tok, VALUE *val));
211
+ static void shift _((struct cparse_params* v, long act, VALUE tok, VALUE val));
212
+ static int reduce _((struct cparse_params* v, long act));
213
+ static rb_block_call_func reduce0;
214
+
215
+ #ifdef DEBUG
216
+ # define D_puts(msg) if (v->sys_debug) puts(msg)
217
+ # define D_printf(fmt,arg) if (v->sys_debug) printf(fmt,arg)
218
+ #else
219
+ # define D_puts(msg)
220
+ # define D_printf(fmt,arg)
221
+ #endif
222
+
223
+ #undef RUBY_UNTYPED_DATA_WARNING
224
+ #define RUBY_UNTYPED_DATA_WARNING 1
225
+
226
+ static const rb_data_type_t cparse_params_type = {
227
+ "racc/cparse",
228
+ {
229
+ cparse_params_mark,
230
+ RUBY_TYPED_DEFAULT_FREE,
231
+ cparse_params_memsize,
232
+ },
233
+ #ifdef RUBY_TYPED_FREE_IMMEDIATELY
234
+ 0, 0,
235
+ RUBY_TYPED_FREE_IMMEDIATELY,
236
+ #endif
237
+ };
238
+
239
+ static VALUE
240
+ racc_cparse(VALUE parser, VALUE arg, VALUE sysdebug)
241
+ {
242
+ VALUE vparams;
243
+ struct cparse_params *v;
244
+
245
+ vparams = TypedData_Make_Struct(CparseParams, struct cparse_params,
246
+ &cparse_params_type, v);
247
+ D_puts("starting cparse");
248
+ v->sys_debug = RTEST(sysdebug);
249
+ vparams = initialize_params(vparams, parser, arg, Qnil, Qnil);
250
+ v->lex_is_iterator = FALSE;
251
+ parse_main(v, Qnil, Qnil, 0);
252
+
253
+ RB_GC_GUARD(vparams);
254
+ return v->retval;
255
+ }
256
+
257
+ static VALUE
258
+ racc_yyparse(VALUE parser, VALUE lexer, VALUE lexmid, VALUE arg, VALUE sysdebug)
259
+ {
260
+ VALUE vparams;
261
+ struct cparse_params *v;
262
+
263
+ vparams = TypedData_Make_Struct(CparseParams, struct cparse_params,
264
+ &cparse_params_type, v);
265
+ v->sys_debug = RTEST(sysdebug);
266
+ D_puts("start C yyparse");
267
+ vparams = initialize_params(vparams, parser, arg, lexer, lexmid);
268
+ v->lex_is_iterator = TRUE;
269
+ D_puts("params initialized");
270
+ parse_main(v, Qnil, Qnil, 0);
271
+ call_lexer(v);
272
+ if (!v->fin) {
273
+ rb_raise(rb_eArgError, "%s() is finished before EndOfToken",
274
+ rb_id2name(v->lexmid));
275
+ }
276
+
277
+ RB_GC_GUARD(vparams);
278
+ return v->retval;
279
+ }
280
+
281
+ #ifdef HAVE_RB_BLOCK_CALL
282
+ static void
283
+ call_lexer(struct cparse_params *v)
284
+ {
285
+ rb_block_call(v->lexer, v->lexmid, 0, NULL, lexer_i, v->value_v);
286
+ }
287
+ #else
288
+ static VALUE
289
+ lexer_iter(VALUE data)
290
+ {
291
+ struct cparse_params *v = rb_check_typeddata(data, &cparse_params_type);
292
+
293
+ rb_funcall(v->lexer, v->lexmid, 0);
294
+ return Qnil;
295
+ }
296
+
297
+ static void
298
+ call_lexer(struct cparse_params *v)
299
+ {
300
+ rb_iterate(lexer_iter, v->value_v, lexer_i, v->value_v);
301
+ }
302
+ #endif
303
+
304
+ static VALUE
305
+ lexer_i(RB_BLOCK_CALL_FUNC_ARGLIST(block_args, data))
306
+ {
307
+ struct cparse_params *v = rb_check_typeddata(data, &cparse_params_type);
308
+ VALUE tok, val;
309
+
310
+ if (v->fin)
311
+ rb_raise(rb_eArgError, "extra token after EndOfToken");
312
+ extract_user_token(v, block_args, &tok, &val);
313
+ parse_main(v, tok, val, 1);
314
+ if (v->fin && v->fin != CP_FIN_ACCEPT)
315
+ rb_iter_break();
316
+ return Qnil;
317
+ }
318
+
319
+ static VALUE
320
+ assert_array(VALUE a)
321
+ {
322
+ Check_Type(a, T_ARRAY);
323
+ return a;
324
+ }
325
+
326
+ static VALUE
327
+ assert_hash(VALUE h)
328
+ {
329
+ Check_Type(h, T_HASH);
330
+ return h;
331
+ }
332
+
333
+ static long
334
+ assert_integer(VALUE n)
335
+ {
336
+ return NUM2LONG(n);
337
+ }
338
+
339
+ static VALUE
340
+ initialize_params(VALUE vparams, VALUE parser, VALUE arg, VALUE lexer, VALUE lexmid)
341
+ {
342
+ struct cparse_params *v = rb_check_typeddata(vparams, &cparse_params_type);
343
+
344
+ v->value_v = vparams;
345
+ v->parser = parser;
346
+ v->lexer = lexer;
347
+ if (! NIL_P(lexmid))
348
+ v->lexmid = value_to_id(lexmid);
349
+
350
+ v->debug = RTEST(rb_ivar_get(parser, id_yydebug));
351
+
352
+ Check_Type(arg, T_ARRAY);
353
+ if (!(13 <= RARRAY_LEN(arg) && RARRAY_LEN(arg) <= 14))
354
+ rb_raise(RaccBug, "[Racc Bug] wrong arg.size %ld", RARRAY_LEN(arg));
355
+ v->action_table = assert_array (rb_ary_entry(arg, 0));
356
+ v->action_check = assert_array (rb_ary_entry(arg, 1));
357
+ v->action_default = assert_array (rb_ary_entry(arg, 2));
358
+ v->action_pointer = assert_array (rb_ary_entry(arg, 3));
359
+ v->goto_table = assert_array (rb_ary_entry(arg, 4));
360
+ v->goto_check = assert_array (rb_ary_entry(arg, 5));
361
+ v->goto_default = assert_array (rb_ary_entry(arg, 6));
362
+ v->goto_pointer = assert_array (rb_ary_entry(arg, 7));
363
+ v->nt_base = assert_integer(rb_ary_entry(arg, 8));
364
+ v->reduce_table = assert_array (rb_ary_entry(arg, 9));
365
+ v->token_table = assert_hash (rb_ary_entry(arg, 10));
366
+ v->shift_n = assert_integer(rb_ary_entry(arg, 11));
367
+ v->reduce_n = assert_integer(rb_ary_entry(arg, 12));
368
+ if (RARRAY_LEN(arg) > 13) {
369
+ v->use_result_var = RTEST(rb_ary_entry(arg, 13));
370
+ }
371
+ else {
372
+ v->use_result_var = TRUE;
373
+ }
374
+
375
+ v->tstack = v->debug ? NEW_STACK() : Qnil;
376
+ v->vstack = NEW_STACK();
377
+ v->state = NEW_STACK();
378
+ v->curstate = 0;
379
+ PUSH(v->state, INT2FIX(0));
380
+ v->t = INT2FIX(FINAL_TOKEN + 1); /* must not init to FINAL_TOKEN */
381
+ v->nerr = 0;
382
+ v->errstatus = 0;
383
+ rb_ivar_set(parser, id_errstatus, LONG2NUM(v->errstatus));
384
+
385
+ v->retval = Qnil;
386
+ v->fin = 0;
387
+
388
+ v->lex_is_iterator = FALSE;
389
+
390
+ rb_iv_set(parser, "@vstack", v->vstack);
391
+ if (v->debug) {
392
+ rb_iv_set(parser, "@tstack", v->tstack);
393
+ }
394
+ else {
395
+ rb_iv_set(parser, "@tstack", Qnil);
396
+ }
397
+
398
+ return vparams;
399
+ }
400
+
401
+ static void
402
+ cparse_params_mark(void *ptr)
403
+ {
404
+ struct cparse_params *v = (struct cparse_params*)ptr;
405
+
406
+ rb_gc_mark(v->value_v);
407
+ rb_gc_mark(v->parser);
408
+ rb_gc_mark(v->lexer);
409
+ rb_gc_mark(v->action_table);
410
+ rb_gc_mark(v->action_check);
411
+ rb_gc_mark(v->action_default);
412
+ rb_gc_mark(v->action_pointer);
413
+ rb_gc_mark(v->goto_table);
414
+ rb_gc_mark(v->goto_check);
415
+ rb_gc_mark(v->goto_default);
416
+ rb_gc_mark(v->goto_pointer);
417
+ rb_gc_mark(v->reduce_table);
418
+ rb_gc_mark(v->token_table);
419
+ rb_gc_mark(v->state);
420
+ rb_gc_mark(v->vstack);
421
+ rb_gc_mark(v->tstack);
422
+ rb_gc_mark(v->t);
423
+ rb_gc_mark(v->retval);
424
+ }
425
+
426
+ static size_t
427
+ cparse_params_memsize(const void *ptr)
428
+ {
429
+ return sizeof(struct cparse_params);
430
+ }
431
+
432
+ static void
433
+ extract_user_token(struct cparse_params *v, VALUE block_args,
434
+ VALUE *tok, VALUE *val)
435
+ {
436
+ if (NIL_P(block_args)) {
437
+ /* EOF */
438
+ *tok = Qfalse;
439
+ *val = rb_str_new("$", 1);
440
+ return;
441
+ }
442
+
443
+ if (!RB_TYPE_P(block_args, T_ARRAY)) {
444
+ rb_raise(rb_eTypeError,
445
+ "%s() %s %"PRIsVALUE" (must be Array[2])",
446
+ v->lex_is_iterator ? rb_id2name(v->lexmid) : "next_token",
447
+ v->lex_is_iterator ? "yielded" : "returned",
448
+ rb_obj_class(block_args));
449
+ }
450
+ if (RARRAY_LEN(block_args) != 2) {
451
+ rb_raise(rb_eArgError,
452
+ "%s() %s wrong size of array (%ld for 2)",
453
+ v->lex_is_iterator ? rb_id2name(v->lexmid) : "next_token",
454
+ v->lex_is_iterator ? "yielded" : "returned",
455
+ RARRAY_LEN(block_args));
456
+ }
457
+ *tok = AREF(block_args, 0);
458
+ *val = AREF(block_args, 1);
459
+ }
460
+
461
+ #define SHIFT(v,act,tok,val) shift(v,act,tok,val)
462
+ #define REDUCE(v,act) do {\
463
+ switch (reduce(v,act)) { \
464
+ case 0: /* normal */ \
465
+ break; \
466
+ case 1: /* yyerror */ \
467
+ goto user_yyerror; \
468
+ case 2: /* yyaccept */ \
469
+ D_puts("u accept"); \
470
+ goto accept; \
471
+ default: \
472
+ break; \
473
+ } \
474
+ } while (0)
475
+
476
+ static void
477
+ parse_main(struct cparse_params *v, VALUE tok, VALUE val, int resume)
478
+ {
479
+ long i; /* table index */
480
+ long act; /* action type */
481
+ VALUE act_value; /* action type, VALUE version */
482
+ int read_next = 1; /* true if we need to read next token */
483
+ VALUE tmp;
484
+
485
+ if (resume)
486
+ goto resume;
487
+
488
+ while (1) {
489
+ D_puts("");
490
+ D_puts("---- enter new loop ----");
491
+ D_puts("");
492
+
493
+ D_printf("(act) k1=%ld\n", v->curstate);
494
+ tmp = AREF(v->action_pointer, v->curstate);
495
+ if (NIL_P(tmp)) goto notfound;
496
+ D_puts("(act) pointer[k1] ok");
497
+ i = NUM2LONG(tmp);
498
+
499
+ D_printf("read_next=%d\n", read_next);
500
+ if (read_next && (v->t != vFINAL_TOKEN)) {
501
+ if (v->lex_is_iterator) {
502
+ D_puts("resuming...");
503
+ if (v->fin) rb_raise(rb_eArgError, "token given after EOF");
504
+ v->i = i; /* save i */
505
+ return;
506
+ resume:
507
+ D_puts("resumed");
508
+ i = v->i; /* load i */
509
+ }
510
+ else {
511
+ D_puts("next_token");
512
+ tmp = rb_funcall(v->parser, id_nexttoken, 0);
513
+ extract_user_token(v, tmp, &tok, &val);
514
+ }
515
+ /* convert token */
516
+ v->t = rb_hash_aref(v->token_table, tok);
517
+ if (NIL_P(v->t)) {
518
+ v->t = vERROR_TOKEN;
519
+ }
520
+ D_printf("(act) t(k2)=%ld\n", NUM2LONG(v->t));
521
+ if (v->debug) {
522
+ rb_funcall(v->parser, id_d_read_token,
523
+ 3, v->t, tok, val);
524
+ }
525
+ }
526
+ read_next = 0;
527
+
528
+ i += NUM2LONG(v->t);
529
+ D_printf("(act) i=%ld\n", i);
530
+ if (i < 0) goto notfound;
531
+
532
+ act_value = AREF(v->action_table, i);
533
+ if (NIL_P(act_value)) goto notfound;
534
+ act = NUM2LONG(act_value);
535
+ D_printf("(act) table[i]=%ld\n", act);
536
+
537
+ tmp = AREF(v->action_check, i);
538
+ if (NIL_P(tmp)) goto notfound;
539
+ if (NUM2LONG(tmp) != v->curstate) goto notfound;
540
+ D_printf("(act) check[i]=%ld\n", NUM2LONG(tmp));
541
+
542
+ D_puts("(act) found");
543
+ act_fixed:
544
+ D_printf("act=%ld\n", act);
545
+ goto handle_act;
546
+
547
+ notfound:
548
+ D_puts("(act) not found: use default");
549
+ act_value = AREF(v->action_default, v->curstate);
550
+ act = NUM2LONG(act_value);
551
+ goto act_fixed;
552
+
553
+
554
+ handle_act:
555
+ if (act > 0 && act < v->shift_n) {
556
+ D_puts("shift");
557
+ if (v->errstatus > 0) {
558
+ v->errstatus--;
559
+ rb_ivar_set(v->parser, id_errstatus, LONG2NUM(v->errstatus));
560
+ }
561
+ SHIFT(v, act, v->t, val);
562
+ read_next = 1;
563
+ }
564
+ else if (act < 0 && act > -(v->reduce_n)) {
565
+ D_puts("reduce");
566
+ REDUCE(v, act);
567
+ }
568
+ else if (act == -(v->reduce_n)) {
569
+ goto error;
570
+ error_recovered:
571
+ ; /* goto label requires stmt */
572
+ }
573
+ else if (act == v->shift_n) {
574
+ D_puts("accept");
575
+ goto accept;
576
+ }
577
+ else {
578
+ rb_raise(RaccBug, "[Racc Bug] unknown act value %ld", act);
579
+ }
580
+
581
+ if (v->debug) {
582
+ rb_funcall(v->parser, id_d_next_state,
583
+ 2, LONG2NUM(v->curstate), v->state);
584
+ }
585
+ }
586
+ /* not reach */
587
+
588
+
589
+ accept:
590
+ if (v->debug) rb_funcall(v->parser, id_d_accept, 0);
591
+ v->retval = rb_ary_entry(v->vstack, 0);
592
+ v->fin = CP_FIN_ACCEPT;
593
+ return;
594
+
595
+
596
+ error:
597
+ D_printf("error detected, status=%ld\n", v->errstatus);
598
+ if (v->errstatus == 0) {
599
+ v->nerr++;
600
+ rb_funcall(v->parser, id_onerror,
601
+ 3, v->t, val, v->vstack);
602
+ }
603
+ user_yyerror:
604
+ if (v->errstatus == 3) {
605
+ if (v->t == vFINAL_TOKEN) {
606
+ v->retval = Qnil;
607
+ v->fin = CP_FIN_EOT;
608
+ return;
609
+ }
610
+ read_next = 1;
611
+ }
612
+ v->errstatus = 3;
613
+ rb_ivar_set(v->parser, id_errstatus, LONG2NUM(v->errstatus));
614
+
615
+ /* check if we can shift/reduce error token */
616
+ D_printf("(err) k1=%ld\n", v->curstate);
617
+ D_printf("(err) k2=%d (error)\n", ERROR_TOKEN);
618
+ while (1) {
619
+ tmp = AREF(v->action_pointer, v->curstate);
620
+ if (NIL_P(tmp)) goto error_pop;
621
+ D_puts("(err) pointer[k1] ok");
622
+
623
+ i = NUM2LONG(tmp) + ERROR_TOKEN;
624
+ D_printf("(err) i=%ld\n", i);
625
+ if (i < 0) goto error_pop;
626
+
627
+ act_value = AREF(v->action_table, i);
628
+ if (NIL_P(act_value)) {
629
+ D_puts("(err) table[i] == nil");
630
+ goto error_pop;
631
+ }
632
+ act = NUM2LONG(act_value);
633
+ D_printf("(err) table[i]=%ld\n", act);
634
+
635
+ tmp = AREF(v->action_check, i);
636
+ if (NIL_P(tmp)) {
637
+ D_puts("(err) check[i] == nil");
638
+ goto error_pop;
639
+ }
640
+ if (NUM2LONG(tmp) != v->curstate) {
641
+ D_puts("(err) check[i] != k1");
642
+ goto error_pop;
643
+ }
644
+
645
+ D_puts("(err) found: can handle error token");
646
+ break;
647
+
648
+ error_pop:
649
+ D_puts("(err) act not found: can't handle error token; pop");
650
+
651
+ if (RARRAY_LEN(v->state) <= 1) {
652
+ v->retval = Qnil;
653
+ v->fin = CP_FIN_CANTPOP;
654
+ return;
655
+ }
656
+ POP(v->state);
657
+ POP(v->vstack);
658
+ v->curstate = num_to_long(LAST_I(v->state));
659
+ if (v->debug) {
660
+ POP(v->tstack);
661
+ rb_funcall(v->parser, id_d_e_pop,
662
+ 3, v->state, v->tstack, v->vstack);
663
+ }
664
+ }
665
+
666
+ /* shift/reduce error token */
667
+ if (act > 0 && act < v->shift_n) {
668
+ D_puts("e shift");
669
+ SHIFT(v, act, ERROR_TOKEN, val);
670
+ }
671
+ else if (act < 0 && act > -(v->reduce_n)) {
672
+ D_puts("e reduce");
673
+ REDUCE(v, act);
674
+ }
675
+ else if (act == v->shift_n) {
676
+ D_puts("e accept");
677
+ goto accept;
678
+ }
679
+ else {
680
+ rb_raise(RaccBug, "[Racc Bug] unknown act value %ld", act);
681
+ }
682
+ goto error_recovered;
683
+ }
684
+
685
+ static void
686
+ shift(struct cparse_params *v, long act, VALUE tok, VALUE val)
687
+ {
688
+ PUSH(v->vstack, val);
689
+ if (v->debug) {
690
+ PUSH(v->tstack, tok);
691
+ rb_funcall(v->parser, id_d_shift,
692
+ 3, tok, v->tstack, v->vstack);
693
+ }
694
+ v->curstate = act;
695
+ PUSH(v->state, LONG2NUM(v->curstate));
696
+ }
697
+
698
+ static int
699
+ reduce(struct cparse_params *v, long act)
700
+ {
701
+ VALUE code;
702
+ v->ruleno = -act * 3;
703
+ code = rb_catch("racc_jump", reduce0, v->value_v);
704
+ v->errstatus = num_to_long(rb_ivar_get(v->parser, id_errstatus));
705
+ return NUM2INT(code);
706
+ }
707
+
708
+ static VALUE
709
+ reduce0(RB_BLOCK_CALL_FUNC_ARGLIST(_, data))
710
+ {
711
+ struct cparse_params *v = rb_check_typeddata(data, &cparse_params_type);
712
+ VALUE reduce_to, reduce_len, method_id;
713
+ long len;
714
+ ID mid;
715
+ VALUE tmp, tmp_t = Qundef, tmp_v = Qundef;
716
+ long i, k1, k2;
717
+ VALUE goto_state;
718
+
719
+ reduce_len = rb_ary_entry(v->reduce_table, v->ruleno);
720
+ reduce_to = rb_ary_entry(v->reduce_table, v->ruleno+1);
721
+ method_id = rb_ary_entry(v->reduce_table, v->ruleno+2);
722
+ len = NUM2LONG(reduce_len);
723
+ mid = value_to_id(method_id);
724
+
725
+ /* call action */
726
+ if (len == 0) {
727
+ tmp = Qnil;
728
+ if (mid != id_noreduce)
729
+ tmp_v = rb_ary_new();
730
+ if (v->debug)
731
+ tmp_t = rb_ary_new();
732
+ }
733
+ else {
734
+ if (mid != id_noreduce) {
735
+ tmp_v = GET_TAIL(v->vstack, len);
736
+ tmp = rb_ary_entry(tmp_v, 0);
737
+ }
738
+ else {
739
+ tmp = rb_ary_entry(v->vstack, RARRAY_LEN(v->vstack) - len);
740
+ }
741
+ CUT_TAIL(v->vstack, len);
742
+ if (v->debug) {
743
+ tmp_t = GET_TAIL(v->tstack, len);
744
+ CUT_TAIL(v->tstack, len);
745
+ }
746
+ CUT_TAIL(v->state, len);
747
+ }
748
+ if (mid != id_noreduce) {
749
+ if (v->use_result_var) {
750
+ tmp = rb_funcall(v->parser, mid,
751
+ 3, tmp_v, v->vstack, tmp);
752
+ }
753
+ else {
754
+ tmp = rb_funcall(v->parser, mid,
755
+ 2, tmp_v, v->vstack);
756
+ }
757
+ }
758
+
759
+ /* then push result */
760
+ PUSH(v->vstack, tmp);
761
+ if (v->debug) {
762
+ PUSH(v->tstack, reduce_to);
763
+ rb_funcall(v->parser, id_d_reduce,
764
+ 4, tmp_t, reduce_to, v->tstack, v->vstack);
765
+ }
766
+
767
+ /* calculate transition state */
768
+ if (RARRAY_LEN(v->state) == 0)
769
+ rb_raise(RaccBug, "state stack unexpectedly empty");
770
+ k2 = num_to_long(LAST_I(v->state));
771
+ k1 = num_to_long(reduce_to) - v->nt_base;
772
+ D_printf("(goto) k1=%ld\n", k1);
773
+ D_printf("(goto) k2=%ld\n", k2);
774
+
775
+ tmp = AREF(v->goto_pointer, k1);
776
+ if (NIL_P(tmp)) goto notfound;
777
+
778
+ i = NUM2LONG(tmp) + k2;
779
+ D_printf("(goto) i=%ld\n", i);
780
+ if (i < 0) goto notfound;
781
+
782
+ goto_state = AREF(v->goto_table, i);
783
+ if (NIL_P(goto_state)) {
784
+ D_puts("(goto) table[i] == nil");
785
+ goto notfound;
786
+ }
787
+ D_printf("(goto) table[i]=%ld (goto_state)\n", NUM2LONG(goto_state));
788
+
789
+ tmp = AREF(v->goto_check, i);
790
+ if (NIL_P(tmp)) {
791
+ D_puts("(goto) check[i] == nil");
792
+ goto notfound;
793
+ }
794
+ if (tmp != LONG2NUM(k1)) {
795
+ D_puts("(goto) check[i] != table[i]");
796
+ goto notfound;
797
+ }
798
+ D_printf("(goto) check[i]=%ld\n", NUM2LONG(tmp));
799
+
800
+ D_puts("(goto) found");
801
+ transit:
802
+ PUSH(v->state, goto_state);
803
+ v->curstate = NUM2LONG(goto_state);
804
+ return INT2FIX(0);
805
+
806
+ notfound:
807
+ D_puts("(goto) not found: use default");
808
+ /* overwrite `goto-state' by default value */
809
+ goto_state = AREF(v->goto_default, k1);
810
+ goto transit;
811
+ }
812
+
813
+ /* -----------------------------------------------------------------------
814
+ Ruby Interface
815
+ ----------------------------------------------------------------------- */
816
+
817
+ void
818
+ Init_cparse(void)
819
+ {
820
+ #ifdef HAVE_RB_EXT_RACTOR_SAFE
821
+ rb_ext_ractor_safe(true);
822
+ #endif
823
+
824
+ VALUE Racc, Parser;
825
+ ID id_racc = rb_intern_const("Racc");
826
+
827
+ if (rb_const_defined(rb_cObject, id_racc)) {
828
+ Racc = rb_const_get(rb_cObject, id_racc);
829
+ Parser = rb_const_get_at(Racc, rb_intern_const("Parser"));
830
+ }
831
+ else {
832
+ Racc = rb_define_module("Racc");
833
+ Parser = rb_define_class_under(Racc, "Parser", rb_cObject);
834
+ }
835
+ rb_define_private_method(Parser, "_racc_do_parse_c", racc_cparse, 2);
836
+ rb_define_private_method(Parser, "_racc_yyparse_c", racc_yyparse, 4);
837
+ rb_define_const(Parser, "Racc_Runtime_Core_Version_C",
838
+ rb_str_new2(RACC_VERSION));
839
+ rb_define_const(Parser, "Racc_Runtime_Core_Id_C",
840
+ rb_str_new2("$originalId: cparse.c,v 1.8 2006/07/06 11:39:46 aamine Exp $"));
841
+
842
+ CparseParams = rb_define_class_under(Racc, "CparseParams", rb_cObject);
843
+ rb_undef_alloc_func(CparseParams);
844
+ rb_undef_method(CparseParams, "initialize");
845
+ rb_undef_method(CparseParams, "initialize_copy");
846
+
847
+ RaccBug = rb_eRuntimeError;
848
+
849
+ id_yydebug = rb_intern_const("@yydebug");
850
+ id_nexttoken = rb_intern_const("next_token");
851
+ id_onerror = rb_intern_const("on_error");
852
+ id_noreduce = rb_intern_const("_reduce_none");
853
+ id_errstatus = rb_intern_const("@racc_error_status");
854
+
855
+ id_d_shift = rb_intern_const("racc_shift");
856
+ id_d_reduce = rb_intern_const("racc_reduce");
857
+ id_d_accept = rb_intern_const("racc_accept");
858
+ id_d_read_token = rb_intern_const("racc_read_token");
859
+ id_d_next_state = rb_intern_const("racc_next_state");
860
+ id_d_e_pop = rb_intern_const("racc_e_pop");
861
+ }