ory-client 0.2.0.alpha48 → 1.0.0.alpha0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1435) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +15 -15
  3. data/README.md +245 -210
  4. data/docs/AcceptOAuth2ConsentRequest.md +28 -0
  5. data/docs/AcceptOAuth2ConsentRequestSession.md +20 -0
  6. data/docs/AcceptOAuth2LoginRequest.md +30 -0
  7. data/docs/ActiveProjectInConsole.md +18 -0
  8. data/docs/CheckOplSyntaxResult.md +18 -0
  9. data/docs/CheckPermissionResult.md +18 -0
  10. data/docs/CourierApi.md +85 -0
  11. data/docs/CourierMessageStatus.md +15 -0
  12. data/docs/CourierMessageType.md +15 -0
  13. data/docs/CreateCustomDomainBody.md +24 -0
  14. data/docs/CreateIdentityBody.md +32 -0
  15. data/docs/CreateJsonWebKeySet.md +22 -0
  16. data/docs/CreateProjectInvite.md +18 -0
  17. data/docs/CreateRecoveryCodeForIdentityBody.md +20 -0
  18. data/docs/CreateRecoveryLinkForIdentityBody.md +20 -0
  19. data/docs/CreateRelationshipBody.md +26 -0
  20. data/docs/CreateSubscriptionBody.md +22 -0
  21. data/docs/CustomDomain.md +34 -0
  22. data/docs/CustomDomainQuota.md +22 -0
  23. data/docs/DeleteMySessionsCount.md +18 -0
  24. data/docs/ErrorBrowserLocationChangeRequired.md +34 -0
  25. data/docs/ErrorFlowReplaced.md +34 -0
  26. data/docs/ErrorGeneric.md +18 -0
  27. data/docs/ErrorOAuth2.md +26 -0
  28. data/docs/ExpandedPermissionTree.md +22 -0
  29. data/docs/FlowError.md +24 -0
  30. data/docs/FrontendApi.md +1995 -0
  31. data/docs/Identity.md +2 -2
  32. data/docs/IdentityApi.md +1160 -0
  33. data/docs/IdentityWithCredentials.md +20 -0
  34. data/docs/IdentityWithCredentialsOidc.md +18 -0
  35. data/docs/IdentityWithCredentialsOidcConfig.md +20 -0
  36. data/docs/IdentityWithCredentialsOidcConfigProvider.md +20 -0
  37. data/docs/IdentityWithCredentialsPassword.md +18 -0
  38. data/docs/IdentityWithCredentialsPasswordConfig.md +20 -0
  39. data/docs/InternalIsOwnerForProjectBySlugBody.md +22 -0
  40. data/docs/InternalProvisionMockSubscription.md +20 -0
  41. data/docs/IntrospectedOAuth2Token.md +44 -0
  42. data/docs/InviteQuota.md +22 -0
  43. data/docs/JsonWebKey.md +50 -0
  44. data/docs/JsonWebKeySet.md +18 -0
  45. data/docs/JwkApi.md +511 -0
  46. data/docs/LoginFlow.md +44 -0
  47. data/docs/LogoutFlow.md +20 -0
  48. data/docs/ManagedIdentitySchema.md +1 -1
  49. data/docs/Message.md +36 -0
  50. data/docs/Namespace.md +18 -0
  51. data/docs/NormalizedProject.md +2 -4
  52. data/docs/NormalizedProjectRevision.md +74 -36
  53. data/docs/NormalizedProjectRevisionHook.md +2 -2
  54. data/docs/NormalizedProjectRevisionIdentitySchema.md +2 -2
  55. data/docs/NormalizedProjectRevisionThirdPartyProvider.md +1 -1
  56. data/docs/OAuth2Api.md +2026 -0
  57. data/docs/OAuth2Client.md +47 -27
  58. data/docs/OAuth2ClientTokenLifespans.md +36 -0
  59. data/docs/OAuth2ConsentRequest.md +42 -0
  60. data/docs/OAuth2ConsentRequestOpenIDConnectContext.md +26 -0
  61. data/docs/OAuth2ConsentSession.md +32 -0
  62. data/docs/OAuth2ConsentSessionExpiresAt.md +26 -0
  63. data/docs/OAuth2LoginRequest.md +34 -0
  64. data/docs/OAuth2LogoutRequest.md +28 -0
  65. data/docs/OAuth2RedirectTo.md +18 -0
  66. data/docs/OAuth2TokenExchange.md +28 -0
  67. data/docs/OidcApi.md +473 -0
  68. data/docs/OidcConfiguration.md +74 -0
  69. data/docs/OidcUserInfo.md +54 -0
  70. data/docs/Pagination.md +4 -0
  71. data/docs/PaginationHeaders.md +20 -0
  72. data/docs/ParseError.md +22 -0
  73. data/docs/PerformNativeLogoutBody.md +18 -0
  74. data/docs/PermissionApi.md +405 -0
  75. data/docs/PostCheckPermissionBody.md +26 -0
  76. data/docs/PostCheckPermissionOrErrorBody.md +26 -0
  77. data/docs/Project.md +3 -3
  78. data/docs/ProjectApi.md +927 -0
  79. data/docs/ProjectApiKey.md +3 -3
  80. data/docs/ProjectHost.md +2 -2
  81. data/docs/ProjectInvite.md +3 -3
  82. data/docs/ProjectMetadata.md +2 -2
  83. data/docs/RecoveryCodeForIdentity.md +22 -0
  84. data/docs/RecoveryFlow.md +34 -0
  85. data/docs/RecoveryFlowState.md +15 -0
  86. data/docs/RecoveryIdentityAddress.md +26 -0
  87. data/docs/RecoveryLinkForIdentity.md +20 -0
  88. data/docs/RegistrationFlow.md +36 -0
  89. data/docs/RejectOAuth2Request.md +26 -0
  90. data/docs/Relationship.md +26 -0
  91. data/docs/RelationshipApi.md +460 -0
  92. data/docs/RelationshipNamespaces.md +18 -0
  93. data/docs/RelationshipPatch.md +20 -0
  94. data/docs/Relationships.md +20 -0
  95. data/docs/SelfServiceFlowExpiredError.md +3 -1
  96. data/docs/Session.md +3 -1
  97. data/docs/SessionDevice.md +7 -1
  98. data/docs/SetActiveProjectInConsoleBody.md +18 -0
  99. data/docs/SetCustomDomainBody.md +24 -0
  100. data/docs/SetProject.md +20 -0
  101. data/docs/SettingsFlow.md +36 -0
  102. data/docs/SettingsFlowState.md +15 -0
  103. data/docs/SourcePosition.md +20 -0
  104. data/docs/StripeCustomer.md +18 -0
  105. data/docs/Subscription.md +2 -2
  106. data/docs/SuccessfulNativeLogin.md +20 -0
  107. data/docs/SuccessfulNativeRegistration.md +22 -0
  108. data/docs/SuccessfulProjectUpdate.md +1 -1
  109. data/docs/TokenPaginationRequestParameters.md +20 -0
  110. data/docs/TokenPaginationResponseHeaders.md +20 -0
  111. data/docs/TrustOAuth2JwtGrantIssuer.md +28 -0
  112. data/docs/TrustedOAuth2JwtGrantIssuer.md +32 -0
  113. data/docs/TrustedOAuth2JwtGrantJsonWebKey.md +20 -0
  114. data/docs/UiNode.md +2 -2
  115. data/docs/UiNodeInputAttributes.md +2 -2
  116. data/docs/UiText.md +1 -1
  117. data/docs/UpdateIdentityBody.md +28 -0
  118. data/docs/UpdateLoginFlowBody.md +87 -0
  119. data/docs/UpdateLoginFlowWithLookupSecretMethod.md +22 -0
  120. data/docs/UpdateLoginFlowWithOidcMethod.md +24 -0
  121. data/docs/UpdateLoginFlowWithPasswordMethod.md +26 -0
  122. data/docs/UpdateLoginFlowWithTotpMethod.md +22 -0
  123. data/docs/UpdateLoginFlowWithWebAuthnMethod.md +24 -0
  124. data/docs/UpdateRecoveryFlowBody.md +78 -0
  125. data/docs/UpdateRecoveryFlowWithCodeMethod.md +24 -0
  126. data/docs/UpdateRecoveryFlowWithLinkMethod.md +22 -0
  127. data/docs/UpdateRegistrationFlowBody.md +81 -0
  128. data/docs/UpdateRegistrationFlowWithOidcMethod.md +24 -0
  129. data/docs/UpdateRegistrationFlowWithPasswordMethod.md +24 -0
  130. data/docs/UpdateRegistrationFlowWithWebAuthnMethod.md +26 -0
  131. data/docs/UpdateSettingsFlowBody.md +90 -0
  132. data/docs/UpdateSettingsFlowWithLookupMethod.md +28 -0
  133. data/docs/UpdateSettingsFlowWithOidcMethod.md +26 -0
  134. data/docs/UpdateSettingsFlowWithPasswordMethod.md +22 -0
  135. data/docs/UpdateSettingsFlowWithProfileMethod.md +22 -0
  136. data/docs/UpdateSettingsFlowWithTotpMethod.md +24 -0
  137. data/docs/UpdateSettingsFlowWithWebAuthnMethod.md +26 -0
  138. data/docs/UpdateSubscriptionBody.md +20 -0
  139. data/docs/UpdateVerificationFlowBody.md +75 -0
  140. data/docs/UpdateVerificationFlowWithCodeMethodBody.md +26 -0
  141. data/docs/UpdateVerificationFlowWithLinkMethod.md +22 -0
  142. data/docs/VerifiableIdentityAddress.md +1 -1
  143. data/docs/VerificationFlow.md +34 -0
  144. data/docs/VerificationFlowState.md +15 -0
  145. data/docs/WellknownApi.md +69 -0
  146. data/lib/ory-client/api/courier_api.rb +103 -0
  147. data/lib/ory-client/api/frontend_api.rb +1965 -0
  148. data/lib/ory-client/api/identity_api.rb +1120 -0
  149. data/lib/ory-client/api/jwk_api.rb +506 -0
  150. data/lib/ory-client/api/metadata_api.rb +1 -1
  151. data/lib/ory-client/api/o_auth2_api.rb +1926 -0
  152. data/lib/ory-client/api/oidc_api.rb +459 -0
  153. data/lib/ory-client/api/permission_api.rb +399 -0
  154. data/lib/ory-client/api/project_api.rb +864 -0
  155. data/lib/ory-client/api/relationship_api.rb +433 -0
  156. data/lib/ory-client/api/wellknown_api.rb +79 -0
  157. data/lib/ory-client/api_client.rb +1 -1
  158. data/lib/ory-client/api_error.rb +1 -1
  159. data/lib/ory-client/configuration.rb +8 -1
  160. data/lib/ory-client/models/accept_o_auth2_consent_request.rb +270 -0
  161. data/lib/ory-client/models/accept_o_auth2_consent_request_session.rb +232 -0
  162. data/lib/ory-client/models/accept_o_auth2_login_request.rb +285 -0
  163. data/lib/ory-client/models/active_project_in_console.rb +221 -0
  164. data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
  165. data/lib/ory-client/models/check_opl_syntax_result.rb +222 -0
  166. data/lib/ory-client/models/check_permission_result.rb +226 -0
  167. data/lib/ory-client/models/cloud_account.rb +1 -1
  168. data/lib/ory-client/models/courier_message_status.rb +39 -0
  169. data/lib/ory-client/models/courier_message_type.rb +37 -0
  170. data/lib/ory-client/models/create_custom_domain_body.rb +253 -0
  171. data/lib/ory-client/models/create_identity_body.rb +305 -0
  172. data/lib/ory-client/models/create_json_web_key_set.rb +256 -0
  173. data/lib/ory-client/models/create_project_api_key_request.rb +1 -1
  174. data/lib/ory-client/models/create_project_body.rb +2 -1
  175. data/lib/ory-client/models/create_project_invite.rb +220 -0
  176. data/lib/ory-client/models/create_recovery_code_for_identity_body.rb +253 -0
  177. data/lib/ory-client/models/create_recovery_link_for_identity_body.rb +253 -0
  178. data/lib/ory-client/models/create_relationship_body.rb +260 -0
  179. data/lib/ory-client/models/create_subscription_body.rb +248 -0
  180. data/lib/ory-client/models/custom_domain.rb +297 -0
  181. data/lib/ory-client/models/custom_domain_quota.rb +238 -0
  182. data/lib/ory-client/models/delete_my_sessions_count.rb +221 -0
  183. data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
  184. data/lib/ory-client/models/error_browser_location_change_required.rb +307 -0
  185. data/lib/ory-client/models/error_flow_replaced.rb +308 -0
  186. data/lib/ory-client/models/error_generic.rb +225 -0
  187. data/lib/ory-client/models/error_o_auth2.rb +261 -0
  188. data/lib/ory-client/models/expanded_permission_tree.rb +280 -0
  189. data/lib/ory-client/models/flow_error.rb +254 -0
  190. data/lib/ory-client/models/generic_error.rb +1 -1
  191. data/lib/ory-client/models/generic_error_content.rb +1 -1
  192. data/lib/ory-client/models/get_managed_identity_schema_location.rb +2 -1
  193. data/lib/ory-client/models/get_version200_response.rb +1 -1
  194. data/lib/ory-client/models/health_not_ready_status.rb +1 -1
  195. data/lib/ory-client/models/health_status.rb +1 -1
  196. data/lib/ory-client/models/identity.rb +6 -3
  197. data/lib/ory-client/models/identity_credentials.rb +1 -1
  198. data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
  199. data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
  200. data/lib/ory-client/models/identity_credentials_password.rb +1 -1
  201. data/lib/ory-client/models/identity_credentials_type.rb +1 -1
  202. data/lib/ory-client/models/identity_schema_container.rb +2 -1
  203. data/lib/ory-client/models/identity_schema_preset.rb +1 -1
  204. data/lib/ory-client/models/identity_state.rb +1 -1
  205. data/lib/ory-client/models/identity_with_credentials.rb +229 -0
  206. data/lib/ory-client/models/identity_with_credentials_oidc.rb +220 -0
  207. data/lib/ory-client/models/identity_with_credentials_oidc_config.rb +231 -0
  208. data/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb +241 -0
  209. data/lib/ory-client/models/identity_with_credentials_password.rb +220 -0
  210. data/lib/ory-client/models/identity_with_credentials_password_config.rb +231 -0
  211. data/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb +251 -0
  212. data/lib/ory-client/models/internal_provision_mock_subscription.rb +240 -0
  213. data/lib/ory-client/models/introspected_o_auth2_token.rb +360 -0
  214. data/lib/ory-client/models/invite_quota.rb +238 -0
  215. data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
  216. data/lib/ory-client/models/is_ready200_response.rb +1 -1
  217. data/lib/ory-client/models/is_ready503_response.rb +1 -1
  218. data/lib/ory-client/models/json_patch.rb +1 -2
  219. data/lib/ory-client/models/json_web_key.rb +4 -5
  220. data/lib/ory-client/models/json_web_key_set.rb +7 -7
  221. data/lib/ory-client/models/keto_namespace.rb +1 -1
  222. data/lib/ory-client/models/login_flow.rb +377 -0
  223. data/lib/ory-client/models/logout_flow.rb +241 -0
  224. data/lib/ory-client/models/managed_identity_schema.rb +1 -2
  225. data/lib/ory-client/models/managed_identity_schema_validation_result.rb +2 -1
  226. data/lib/ory-client/models/message.rb +336 -0
  227. data/lib/ory-client/models/namespace.rb +220 -0
  228. data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
  229. data/lib/ory-client/models/normalized_project.rb +3 -20
  230. data/lib/ory-client/models/normalized_project_revision.rb +275 -49
  231. data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -3
  232. data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -3
  233. data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +1 -2
  234. data/lib/ory-client/models/null_plan.rb +1 -1
  235. data/lib/ory-client/models/o_auth2_client.rb +293 -37
  236. data/lib/ory-client/models/o_auth2_client_token_lifespans.rb +481 -0
  237. data/lib/ory-client/models/o_auth2_consent_request.rb +345 -0
  238. data/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb +266 -0
  239. data/lib/ory-client/models/o_auth2_consent_session.rb +289 -0
  240. data/lib/ory-client/models/o_auth2_consent_session_expires_at.rb +255 -0
  241. data/lib/ory-client/models/o_auth2_login_request.rb +335 -0
  242. data/lib/ory-client/models/o_auth2_logout_request.rb +269 -0
  243. data/lib/ory-client/models/o_auth2_redirect_to.rb +226 -0
  244. data/lib/ory-client/models/o_auth2_token_exchange.rb +271 -0
  245. data/lib/ory-client/models/oidc_configuration.rb +572 -0
  246. data/lib/ory-client/models/oidc_user_info.rb +401 -0
  247. data/lib/ory-client/models/pagination.rb +56 -2
  248. data/lib/ory-client/models/pagination_headers.rb +230 -0
  249. data/lib/ory-client/models/parse_error.rb +237 -0
  250. data/lib/ory-client/models/perform_native_logout_body.rb +226 -0
  251. data/lib/ory-client/models/post_check_permission_body.rb +260 -0
  252. data/lib/ory-client/models/post_check_permission_or_error_body.rb +260 -0
  253. data/lib/ory-client/models/project.rb +2 -4
  254. data/lib/ory-client/models/project_api_key.rb +1 -4
  255. data/lib/ory-client/models/project_host.rb +1 -3
  256. data/lib/ory-client/models/project_invite.rb +35 -4
  257. data/lib/ory-client/models/project_metadata.rb +2 -3
  258. data/lib/ory-client/models/project_service_identity.rb +1 -1
  259. data/lib/ory-client/models/project_service_o_auth2.rb +1 -1
  260. data/lib/ory-client/models/project_service_permission.rb +1 -1
  261. data/lib/ory-client/models/project_services.rb +1 -1
  262. data/lib/ory-client/models/recovery_code_for_identity.rb +251 -0
  263. data/lib/ory-client/models/recovery_flow.rb +334 -0
  264. data/lib/ory-client/models/recovery_flow_state.rb +38 -0
  265. data/lib/ory-client/models/recovery_identity_address.rb +272 -0
  266. data/lib/ory-client/models/recovery_link_for_identity.rb +236 -0
  267. data/lib/ory-client/models/registration_flow.rb +337 -0
  268. data/lib/ory-client/models/reject_o_auth2_request.rb +260 -0
  269. data/lib/ory-client/models/relation_query.rb +2 -1
  270. data/lib/ory-client/models/relationship.rb +275 -0
  271. data/lib/ory-client/models/relationship_namespaces.rb +222 -0
  272. data/lib/ory-client/models/relationship_patch.rb +263 -0
  273. data/lib/ory-client/models/relationships.rb +232 -0
  274. data/lib/ory-client/models/schema_patch.rb +1 -1
  275. data/lib/ory-client/models/self_service_flow_expired_error.rb +13 -2
  276. data/lib/ory-client/models/session.rb +15 -2
  277. data/lib/ory-client/models/session_authentication_method.rb +3 -3
  278. data/lib/ory-client/models/session_device.rb +39 -3
  279. data/lib/ory-client/models/set_active_project_in_console_body.rb +226 -0
  280. data/lib/ory-client/models/set_custom_domain_body.rb +253 -0
  281. data/lib/ory-client/models/set_project.rb +239 -0
  282. data/lib/ory-client/models/settings_flow.rb +348 -0
  283. data/lib/ory-client/models/settings_flow_state.rb +37 -0
  284. data/lib/ory-client/models/source_position.rb +228 -0
  285. data/lib/ory-client/models/stripe_customer.rb +219 -0
  286. data/lib/ory-client/models/subject_set.rb +1 -1
  287. data/lib/ory-client/models/subscription.rb +2 -3
  288. data/lib/ory-client/models/successful_native_login.rb +235 -0
  289. data/lib/ory-client/models/successful_native_registration.rb +244 -0
  290. data/lib/ory-client/models/successful_project_update.rb +2 -2
  291. data/lib/ory-client/models/token_pagination.rb +1 -1
  292. data/lib/ory-client/models/token_pagination_headers.rb +1 -1
  293. data/lib/ory-client/models/token_pagination_request_parameters.rb +265 -0
  294. data/lib/ory-client/models/token_pagination_response_headers.rb +231 -0
  295. data/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb +292 -0
  296. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb +291 -0
  297. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +231 -0
  298. data/lib/ory-client/models/ui_container.rb +1 -1
  299. data/lib/ory-client/models/ui_node.rb +5 -5
  300. data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
  301. data/lib/ory-client/models/ui_node_attributes.rb +1 -1
  302. data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
  303. data/lib/ory-client/models/ui_node_input_attributes.rb +3 -3
  304. data/lib/ory-client/models/ui_node_meta.rb +1 -1
  305. data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
  306. data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
  307. data/lib/ory-client/models/ui_text.rb +36 -1
  308. data/lib/ory-client/models/update_identity_body.rb +286 -0
  309. data/lib/ory-client/models/update_login_flow_body.rb +61 -0
  310. data/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb +251 -0
  311. data/lib/ory-client/models/update_login_flow_with_oidc_method.rb +261 -0
  312. data/lib/ory-client/models/update_login_flow_with_password_method.rb +276 -0
  313. data/lib/ory-client/models/update_login_flow_with_totp_method.rb +251 -0
  314. data/lib/ory-client/models/update_login_flow_with_web_authn_method.rb +261 -0
  315. data/lib/ory-client/models/update_recovery_flow_body.rb +56 -0
  316. data/lib/ory-client/models/update_recovery_flow_with_code_method.rb +256 -0
  317. data/lib/ory-client/models/update_recovery_flow_with_link_method.rb +251 -0
  318. data/lib/ory-client/models/update_registration_flow_body.rb +58 -0
  319. data/lib/ory-client/models/update_registration_flow_with_oidc_method.rb +261 -0
  320. data/lib/ory-client/models/update_registration_flow_with_password_method.rb +266 -0
  321. data/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb +271 -0
  322. data/lib/ory-client/models/update_settings_flow_body.rb +64 -0
  323. data/lib/ory-client/models/update_settings_flow_with_lookup_method.rb +276 -0
  324. data/lib/ory-client/models/update_settings_flow_with_oidc_method.rb +266 -0
  325. data/lib/ory-client/models/update_settings_flow_with_password_method.rb +251 -0
  326. data/lib/ory-client/models/update_settings_flow_with_profile_method.rb +251 -0
  327. data/lib/ory-client/models/update_settings_flow_with_totp_method.rb +256 -0
  328. data/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb +266 -0
  329. data/lib/ory-client/models/update_subscription_body.rb +234 -0
  330. data/lib/ory-client/models/update_verification_flow_body.rb +54 -0
  331. data/lib/ory-client/models/update_verification_flow_with_code_method_body.rb +260 -0
  332. data/lib/ory-client/models/update_verification_flow_with_link_method.rb +251 -0
  333. data/lib/ory-client/models/verifiable_identity_address.rb +2 -1
  334. data/lib/ory-client/models/verification_flow.rb +319 -0
  335. data/lib/ory-client/models/verification_flow_state.rb +38 -0
  336. data/lib/ory-client/models/version.rb +1 -1
  337. data/lib/ory-client/models/warning.rb +1 -1
  338. data/lib/ory-client/version.rb +2 -2
  339. data/lib/ory-client.rb +119 -100
  340. data/ory-client.gemspec +1 -1
  341. data/spec/api/courier_api_spec.rb +50 -0
  342. data/spec/api/frontend_api_spec.rb +415 -0
  343. data/spec/api/identity_api_spec.rb +239 -0
  344. data/spec/api/jwk_api_spec.rb +125 -0
  345. data/spec/api/metadata_api_spec.rb +1 -1
  346. data/spec/api/o_auth2_api_spec.rb +391 -0
  347. data/spec/api/oidc_api_spec.rb +117 -0
  348. data/spec/api/permission_api_spec.rb +114 -0
  349. data/spec/api/project_api_spec.rb +194 -0
  350. data/spec/api/relationship_api_spec.rb +120 -0
  351. data/spec/api/wellknown_api_spec.rb +46 -0
  352. data/spec/api_client_spec.rb +1 -1
  353. data/spec/configuration_spec.rb +1 -1
  354. data/spec/models/accept_o_auth2_consent_request_session_spec.rb +40 -0
  355. data/spec/models/accept_o_auth2_consent_request_spec.rb +64 -0
  356. data/spec/models/accept_o_auth2_login_request_spec.rb +70 -0
  357. data/spec/models/active_project_in_console_spec.rb +34 -0
  358. data/spec/models/authenticator_assurance_level_spec.rb +1 -1
  359. data/spec/models/check_opl_syntax_result_spec.rb +34 -0
  360. data/spec/models/check_permission_result_spec.rb +34 -0
  361. data/spec/models/cloud_account_spec.rb +1 -1
  362. data/spec/models/courier_message_status_spec.rb +28 -0
  363. data/spec/models/courier_message_type_spec.rb +28 -0
  364. data/spec/models/create_custom_domain_body_spec.rb +52 -0
  365. data/spec/models/create_identity_body_spec.rb +76 -0
  366. data/spec/models/create_json_web_key_set_spec.rb +46 -0
  367. data/spec/models/create_project_api_key_request_spec.rb +1 -1
  368. data/spec/models/create_project_body_spec.rb +1 -1
  369. data/spec/models/create_project_invite_spec.rb +34 -0
  370. data/spec/models/create_recovery_code_for_identity_body_spec.rb +40 -0
  371. data/spec/models/create_recovery_link_for_identity_body_spec.rb +40 -0
  372. data/spec/models/create_relationship_body_spec.rb +58 -0
  373. data/spec/models/create_subscription_body_spec.rb +46 -0
  374. data/spec/models/custom_domain_quota_spec.rb +46 -0
  375. data/spec/models/custom_domain_spec.rb +82 -0
  376. data/spec/models/delete_my_sessions_count_spec.rb +34 -0
  377. data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
  378. data/spec/models/error_browser_location_change_required_spec.rb +82 -0
  379. data/spec/models/error_flow_replaced_spec.rb +82 -0
  380. data/spec/models/error_generic_spec.rb +34 -0
  381. data/spec/models/error_o_auth2_spec.rb +58 -0
  382. data/spec/models/expanded_permission_tree_spec.rb +50 -0
  383. data/spec/models/flow_error_spec.rb +52 -0
  384. data/spec/models/generic_error_content_spec.rb +1 -1
  385. data/spec/models/generic_error_spec.rb +1 -1
  386. data/spec/models/get_managed_identity_schema_location_spec.rb +1 -1
  387. data/spec/models/get_version200_response_spec.rb +1 -1
  388. data/spec/models/health_not_ready_status_spec.rb +1 -1
  389. data/spec/models/health_status_spec.rb +1 -1
  390. data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
  391. data/spec/models/identity_credentials_oidc_spec.rb +1 -1
  392. data/spec/models/identity_credentials_password_spec.rb +1 -1
  393. data/spec/models/identity_credentials_spec.rb +1 -1
  394. data/spec/models/identity_credentials_type_spec.rb +1 -1
  395. data/spec/models/identity_schema_container_spec.rb +1 -1
  396. data/spec/models/identity_schema_preset_spec.rb +1 -1
  397. data/spec/models/identity_spec.rb +1 -1
  398. data/spec/models/identity_state_spec.rb +1 -1
  399. data/spec/models/identity_with_credentials_oidc_config_provider_spec.rb +40 -0
  400. data/spec/models/identity_with_credentials_oidc_config_spec.rb +40 -0
  401. data/spec/models/identity_with_credentials_oidc_spec.rb +34 -0
  402. data/spec/models/identity_with_credentials_password_config_spec.rb +40 -0
  403. data/spec/models/identity_with_credentials_password_spec.rb +34 -0
  404. data/spec/models/identity_with_credentials_spec.rb +40 -0
  405. data/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb +46 -0
  406. data/spec/models/internal_provision_mock_subscription_spec.rb +40 -0
  407. data/spec/models/introspected_o_auth2_token_spec.rb +112 -0
  408. data/spec/models/invite_quota_spec.rb +46 -0
  409. data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
  410. data/spec/models/is_ready200_response_spec.rb +1 -1
  411. data/spec/models/is_ready503_response_spec.rb +1 -1
  412. data/spec/models/json_patch_spec.rb +1 -1
  413. data/spec/models/json_web_key_set_spec.rb +7 -7
  414. data/spec/models/json_web_key_spec.rb +7 -7
  415. data/spec/models/keto_namespace_spec.rb +1 -1
  416. data/spec/models/login_flow_spec.rb +112 -0
  417. data/spec/models/logout_flow_spec.rb +40 -0
  418. data/spec/models/managed_identity_schema_spec.rb +1 -1
  419. data/spec/models/managed_identity_schema_validation_result_spec.rb +1 -1
  420. data/spec/models/message_spec.rb +92 -0
  421. data/spec/models/namespace_spec.rb +34 -0
  422. data/spec/models/needs_privileged_session_error_spec.rb +1 -1
  423. data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
  424. data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
  425. data/spec/models/normalized_project_revision_spec.rb +123 -1
  426. data/spec/models/normalized_project_revision_third_party_provider_spec.rb +1 -1
  427. data/spec/models/normalized_project_spec.rb +1 -7
  428. data/spec/models/null_plan_spec.rb +1 -1
  429. data/spec/models/o_auth2_client_spec.rb +61 -1
  430. data/spec/models/o_auth2_client_token_lifespans_spec.rb +88 -0
  431. data/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +58 -0
  432. data/spec/models/o_auth2_consent_request_spec.rb +106 -0
  433. data/spec/models/o_auth2_consent_session_expires_at_spec.rb +58 -0
  434. data/spec/models/o_auth2_consent_session_spec.rb +76 -0
  435. data/spec/models/o_auth2_login_request_spec.rb +82 -0
  436. data/spec/models/o_auth2_logout_request_spec.rb +64 -0
  437. data/spec/models/o_auth2_redirect_to_spec.rb +34 -0
  438. data/spec/models/o_auth2_token_exchange_spec.rb +64 -0
  439. data/spec/models/oidc_configuration_spec.rb +202 -0
  440. data/spec/models/oidc_user_info_spec.rb +142 -0
  441. data/spec/models/pagination_headers_spec.rb +40 -0
  442. data/spec/models/pagination_spec.rb +13 -1
  443. data/spec/models/parse_error_spec.rb +46 -0
  444. data/spec/models/perform_native_logout_body_spec.rb +34 -0
  445. data/spec/models/post_check_permission_body_spec.rb +58 -0
  446. data/spec/models/post_check_permission_or_error_body_spec.rb +58 -0
  447. data/spec/models/project_api_key_spec.rb +1 -1
  448. data/spec/models/project_host_spec.rb +1 -1
  449. data/spec/models/project_invite_spec.rb +5 -1
  450. data/spec/models/project_metadata_spec.rb +1 -1
  451. data/spec/models/project_service_identity_spec.rb +1 -1
  452. data/spec/models/project_service_o_auth2_spec.rb +1 -1
  453. data/spec/models/project_service_permission_spec.rb +1 -1
  454. data/spec/models/project_services_spec.rb +1 -1
  455. data/spec/models/project_spec.rb +1 -1
  456. data/spec/models/recovery_code_for_identity_spec.rb +46 -0
  457. data/spec/models/recovery_flow_spec.rb +82 -0
  458. data/spec/models/recovery_flow_state_spec.rb +28 -0
  459. data/spec/models/recovery_identity_address_spec.rb +58 -0
  460. data/spec/models/recovery_link_for_identity_spec.rb +40 -0
  461. data/spec/models/registration_flow_spec.rb +88 -0
  462. data/spec/models/reject_o_auth2_request_spec.rb +58 -0
  463. data/spec/models/relation_query_spec.rb +1 -1
  464. data/spec/models/relationship_namespaces_spec.rb +34 -0
  465. data/spec/models/relationship_patch_spec.rb +44 -0
  466. data/spec/models/relationship_spec.rb +58 -0
  467. data/spec/models/relationships_spec.rb +40 -0
  468. data/spec/models/schema_patch_spec.rb +1 -1
  469. data/spec/models/self_service_flow_expired_error_spec.rb +7 -1
  470. data/spec/models/session_authentication_method_spec.rb +2 -2
  471. data/spec/models/session_device_spec.rb +19 -1
  472. data/spec/models/session_spec.rb +7 -1
  473. data/spec/models/set_active_project_in_console_body_spec.rb +34 -0
  474. data/spec/models/set_custom_domain_body_spec.rb +52 -0
  475. data/spec/models/set_project_spec.rb +40 -0
  476. data/spec/models/settings_flow_spec.rb +88 -0
  477. data/spec/models/settings_flow_state_spec.rb +28 -0
  478. data/spec/models/source_position_spec.rb +40 -0
  479. data/spec/models/stripe_customer_spec.rb +34 -0
  480. data/spec/models/subject_set_spec.rb +1 -1
  481. data/spec/models/subscription_spec.rb +1 -1
  482. data/spec/models/successful_native_login_spec.rb +40 -0
  483. data/spec/models/successful_native_registration_spec.rb +46 -0
  484. data/spec/models/successful_project_update_spec.rb +1 -1
  485. data/spec/models/token_pagination_headers_spec.rb +1 -1
  486. data/spec/models/token_pagination_request_parameters_spec.rb +40 -0
  487. data/spec/models/token_pagination_response_headers_spec.rb +40 -0
  488. data/spec/models/token_pagination_spec.rb +1 -1
  489. data/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +64 -0
  490. data/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +76 -0
  491. data/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +40 -0
  492. data/spec/models/ui_container_spec.rb +1 -1
  493. data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
  494. data/spec/models/ui_node_attributes_spec.rb +1 -1
  495. data/spec/models/ui_node_image_attributes_spec.rb +1 -1
  496. data/spec/models/ui_node_input_attributes_spec.rb +1 -1
  497. data/spec/models/ui_node_meta_spec.rb +1 -1
  498. data/spec/models/ui_node_script_attributes_spec.rb +1 -1
  499. data/spec/models/ui_node_spec.rb +2 -2
  500. data/spec/models/ui_node_text_attributes_spec.rb +1 -1
  501. data/spec/models/ui_text_spec.rb +5 -1
  502. data/spec/models/update_identity_body_spec.rb +64 -0
  503. data/spec/models/update_login_flow_body_spec.rb +43 -0
  504. data/spec/models/update_login_flow_with_lookup_secret_method_spec.rb +46 -0
  505. data/spec/models/update_login_flow_with_oidc_method_spec.rb +52 -0
  506. data/spec/models/update_login_flow_with_password_method_spec.rb +58 -0
  507. data/spec/models/update_login_flow_with_totp_method_spec.rb +46 -0
  508. data/spec/models/update_login_flow_with_web_authn_method_spec.rb +52 -0
  509. data/spec/models/update_recovery_flow_body_spec.rb +43 -0
  510. data/spec/models/update_recovery_flow_with_code_method_spec.rb +52 -0
  511. data/spec/models/update_recovery_flow_with_link_method_spec.rb +46 -0
  512. data/spec/models/update_registration_flow_body_spec.rb +43 -0
  513. data/spec/models/update_registration_flow_with_oidc_method_spec.rb +52 -0
  514. data/spec/models/update_registration_flow_with_password_method_spec.rb +52 -0
  515. data/spec/models/update_registration_flow_with_web_authn_method_spec.rb +58 -0
  516. data/spec/models/update_settings_flow_body_spec.rb +43 -0
  517. data/spec/models/update_settings_flow_with_lookup_method_spec.rb +64 -0
  518. data/spec/models/update_settings_flow_with_oidc_method_spec.rb +58 -0
  519. data/spec/models/update_settings_flow_with_password_method_spec.rb +46 -0
  520. data/spec/models/update_settings_flow_with_profile_method_spec.rb +46 -0
  521. data/spec/models/update_settings_flow_with_totp_method_spec.rb +52 -0
  522. data/spec/models/update_settings_flow_with_web_authn_method_spec.rb +58 -0
  523. data/spec/models/update_subscription_body_spec.rb +40 -0
  524. data/spec/models/update_verification_flow_body_spec.rb +43 -0
  525. data/spec/models/update_verification_flow_with_code_method_body_spec.rb +58 -0
  526. data/spec/models/update_verification_flow_with_link_method_spec.rb +46 -0
  527. data/spec/models/verifiable_identity_address_spec.rb +1 -1
  528. data/spec/models/verification_flow_spec.rb +82 -0
  529. data/spec/models/verification_flow_state_spec.rb +28 -0
  530. data/spec/models/version_spec.rb +1 -1
  531. data/spec/models/warning_spec.rb +1 -1
  532. data/spec/spec_helper.rb +1 -1
  533. data/vendor/bundle/ruby/2.5.0/cache/ethon-0.16.0.gem +0 -0
  534. data/vendor/bundle/ruby/2.5.0/cache/parser-3.1.3.0.gem +0 -0
  535. data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.6.gem +0 -0
  536. data/vendor/bundle/ruby/2.5.0/cache/rspec-3.12.0.gem +0 -0
  537. data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.12.0.gem +0 -0
  538. data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.12.0.gem +0 -0
  539. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.12.0.gem +0 -0
  540. data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.12.0.gem +0 -0
  541. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  542. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
  543. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  544. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/gem.build_complete +0 -0
  545. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.6/gem_make.out +41 -0
  546. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/mkmf.log +0 -0
  547. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.6/psych.so +0 -0
  548. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/gem_make.out +2 -2
  549. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/mkmf.log +1 -1
  550. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  551. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/.github/workflows/ruby.yml +41 -0
  552. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/.gitignore +0 -0
  553. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/.rspec +0 -0
  554. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/CHANGELOG.md +375 -0
  555. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Gemfile +0 -0
  556. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Guardfile +0 -0
  557. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/LICENSE +0 -0
  558. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/README.md +118 -0
  559. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Rakefile +0 -0
  560. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/ethon.gemspec +0 -0
  561. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curl.rb +0 -0
  562. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/curls/classes.rb +65 -0
  563. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/codes.rb +0 -0
  564. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/constants.rb +0 -0
  565. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/form_options.rb +0 -0
  566. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/functions.rb +0 -0
  567. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/infos.rb +0 -0
  568. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/messages.rb +0 -0
  569. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/curls/options.rb +503 -0
  570. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/settings.rb +0 -0
  571. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/easy/callbacks.rb +149 -0
  572. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/debug_info.rb +0 -0
  573. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/features.rb +0 -0
  574. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/form.rb +0 -0
  575. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/header.rb +0 -0
  576. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/actionable.rb +0 -0
  577. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/custom.rb +0 -0
  578. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/delete.rb +0 -0
  579. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/get.rb +0 -0
  580. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/head.rb +0 -0
  581. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/options.rb +0 -0
  582. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/patch.rb +0 -0
  583. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/post.rb +0 -0
  584. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/postable.rb +0 -0
  585. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/put.rb +0 -0
  586. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/putable.rb +0 -0
  587. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http.rb +0 -0
  588. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/easy/informations.rb +116 -0
  589. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/mirror.rb +0 -0
  590. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/operations.rb +0 -0
  591. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/options.rb +0 -0
  592. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/params.rb +0 -0
  593. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/queryable.rb +0 -0
  594. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/easy/response_callbacks.rb +136 -0
  595. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/util.rb +0 -0
  596. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy.rb +0 -0
  597. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/ethon_error.rb +0 -0
  598. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/global_init.rb +0 -0
  599. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/invalid_option.rb +0 -0
  600. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/invalid_value.rb +0 -0
  601. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_add.rb +0 -0
  602. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_fdset.rb +0 -0
  603. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_remove.rb +0 -0
  604. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_timeout.rb +0 -0
  605. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/select.rb +0 -0
  606. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors.rb +0 -0
  607. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/libc.rb +0 -0
  608. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/loggable.rb +0 -0
  609. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/operations.rb +0 -0
  610. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/options.rb +0 -0
  611. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/stack.rb +0 -0
  612. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi.rb +0 -0
  613. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/version.rb +6 -0
  614. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon.rb +0 -0
  615. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/benchmarks.rb +0 -0
  616. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/memory_leaks.rb +0 -0
  617. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/perf_spec_helper.rb +0 -0
  618. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/memory_test_helpers.rb +0 -0
  619. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/os_memory_leak_tracker.rb +0 -0
  620. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/ruby_object_leak_tracker.rb +0 -0
  621. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/curl_spec.rb +0 -0
  622. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/spec/ethon/easy/callbacks_spec.rb +81 -0
  623. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/debug_info_spec.rb +0 -0
  624. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/features_spec.rb +0 -0
  625. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/form_spec.rb +0 -0
  626. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/header_spec.rb +0 -0
  627. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/custom_spec.rb +0 -0
  628. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/delete_spec.rb +0 -0
  629. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/get_spec.rb +0 -0
  630. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/head_spec.rb +0 -0
  631. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/options_spec.rb +0 -0
  632. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/patch_spec.rb +0 -0
  633. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/post_spec.rb +0 -0
  634. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/put_spec.rb +0 -0
  635. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http_spec.rb +0 -0
  636. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/spec/ethon/easy/informations_spec.rb +126 -0
  637. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/spec/ethon/easy/mirror_spec.rb +47 -0
  638. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/spec/ethon/easy/operations_spec.rb +271 -0
  639. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/options_spec.rb +0 -0
  640. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/queryable_spec.rb +0 -0
  641. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/response_callbacks_spec.rb +0 -0
  642. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/util_spec.rb +0 -0
  643. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy_spec.rb +0 -0
  644. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/libc_spec.rb +0 -0
  645. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/loggable_spec.rb +0 -0
  646. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/operations_spec.rb +0 -0
  647. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/options_spec.rb +0 -0
  648. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/stack_spec.rb +0 -0
  649. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi_spec.rb +0 -0
  650. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/spec_helper.rb +0 -0
  651. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/support/localhost_server.rb +0 -0
  652. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/support/server.rb +0 -0
  653. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  654. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  655. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/LICENSE.txt +0 -0
  656. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/bin/ruby-parse +0 -0
  657. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/bin/ruby-rewrite +0 -0
  658. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/gauntlet_parser.rb +0 -0
  659. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/all.rb +0 -0
  660. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/ast/node.rb +0 -0
  661. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ast/processor.rb +291 -0
  662. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/base.rb +0 -0
  663. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/builders/default.rb +2317 -0
  664. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/clobbering_error.rb +0 -0
  665. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/color.rb +0 -0
  666. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/context.rb +0 -0
  667. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/current.rb +119 -0
  668. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/current_arg_stack.rb +0 -0
  669. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/deprecation.rb +0 -0
  670. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/diagnostic/engine.rb +0 -0
  671. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/diagnostic.rb +0 -0
  672. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/lexer/dedenter.rb +0 -0
  673. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/lexer/explanation.rb +0 -0
  674. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/lexer/literal.rb +0 -0
  675. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/lexer/stack_state.rb +0 -0
  676. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/lexer.rb +25045 -0
  677. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/macruby.rb +9632 -0
  678. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/max_numparam_stack.rb +0 -0
  679. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/messages.rb +120 -0
  680. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/meta.rb +40 -0
  681. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/rewriter.rb +0 -0
  682. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby18.rb +9270 -0
  683. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby19.rb +9556 -0
  684. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby20.rb +10227 -0
  685. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby21.rb +10201 -0
  686. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby22.rb +10300 -0
  687. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby23.rb +10320 -0
  688. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby24.rb +10452 -0
  689. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby25.rb +10372 -0
  690. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby26.rb +10350 -0
  691. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby27.rb +11945 -0
  692. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/ruby28.rb +0 -0
  693. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby30.rb +12241 -0
  694. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby31.rb +12714 -0
  695. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby32.rb +12691 -0
  696. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/rubymotion.rb +9513 -0
  697. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/runner/ruby_parse.rb +0 -0
  698. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/runner/ruby_rewrite.rb +0 -0
  699. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/runner.rb +0 -0
  700. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/buffer.rb +0 -0
  701. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/comment/associator.rb +0 -0
  702. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/comment.rb +0 -0
  703. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/collection.rb +0 -0
  704. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/condition.rb +0 -0
  705. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/constant.rb +0 -0
  706. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/definition.rb +0 -0
  707. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/for.rb +0 -0
  708. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/heredoc.rb +0 -0
  709. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/index.rb +0 -0
  710. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/keyword.rb +0 -0
  711. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/method_definition.rb +0 -0
  712. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/objc_kwarg.rb +0 -0
  713. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/operator.rb +0 -0
  714. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/rescue_body.rb +0 -0
  715. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/send.rb +0 -0
  716. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/ternary.rb +0 -0
  717. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/variable.rb +0 -0
  718. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map.rb +0 -0
  719. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/range.rb +0 -0
  720. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/rewriter/action.rb +0 -0
  721. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/rewriter.rb +0 -0
  722. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/tree_rewriter/action.rb +0 -0
  723. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/tree_rewriter.rb +0 -0
  724. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/static_environment.rb +87 -0
  725. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/syntax_error.rb +0 -0
  726. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/tree_rewriter.rb +0 -0
  727. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/variables_stack.rb +0 -0
  728. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/version.rb +5 -0
  729. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser.rb +0 -0
  730. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/parser.gemspec +43 -0
  731. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/.gitignore +0 -0
  732. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Gemfile +0 -0
  733. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/LICENSE +0 -0
  734. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Mavenfile +0 -0
  735. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/README.md +0 -0
  736. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Rakefile +0 -0
  737. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/bin/console +0 -0
  738. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/bin/setup +0 -0
  739. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/.sitearchdir.time +0 -0
  740. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/Makefile +271 -0
  741. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/api.o +0 -0
  742. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/depend +0 -0
  743. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/dumper.o +0 -0
  744. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/emitter.o +0 -0
  745. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/extconf.rb +0 -0
  746. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/loader.o +0 -0
  747. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/parser.o +0 -0
  748. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.c +0 -0
  749. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.h +0 -0
  750. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych.o +0 -0
  751. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych.so +0 -0
  752. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.c +0 -0
  753. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.h +0 -0
  754. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych_emitter.o +0 -0
  755. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.c +0 -0
  756. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.h +0 -0
  757. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych_parser.o +0 -0
  758. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.c +0 -0
  759. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.h +0 -0
  760. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych_to_ruby.o +0 -0
  761. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.c +0 -0
  762. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.h +0 -0
  763. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych_yaml_tree.o +0 -0
  764. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/reader.o +0 -0
  765. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/scanner.o +0 -0
  766. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/writer.o +0 -0
  767. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/LICENSE +0 -0
  768. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/api.c +0 -0
  769. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/config.h +0 -0
  770. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/dumper.c +0 -0
  771. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/emitter.c +0 -0
  772. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/loader.c +0 -0
  773. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/parser.c +0 -0
  774. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/reader.c +0 -0
  775. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/scanner.c +0 -0
  776. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/writer.c +0 -0
  777. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/yaml.h +0 -0
  778. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/yaml_private.h +0 -0
  779. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/class_loader.rb +0 -0
  780. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/coder.rb +0 -0
  781. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/core_ext.rb +0 -0
  782. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/exception.rb +0 -0
  783. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handler.rb +0 -0
  784. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handlers/document_stream.rb +0 -0
  785. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handlers/recorder.rb +0 -0
  786. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/ruby_events.rb +0 -0
  787. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/stream.rb +0 -0
  788. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/tree_builder.rb +0 -0
  789. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/yaml_events.rb +0 -0
  790. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/alias.rb +0 -0
  791. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/document.rb +0 -0
  792. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/mapping.rb +0 -0
  793. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/node.rb +0 -0
  794. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/scalar.rb +0 -0
  795. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/sequence.rb +0 -0
  796. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/stream.rb +0 -0
  797. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes.rb +0 -0
  798. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/omap.rb +0 -0
  799. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/parser.rb +0 -0
  800. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/scalar_scanner.rb +0 -0
  801. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/set.rb +0 -0
  802. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/stream.rb +0 -0
  803. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/streaming.rb +0 -0
  804. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/syntax_error.rb +0 -0
  805. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/tree_builder.rb +0 -0
  806. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/lib/psych/versions.rb +10 -0
  807. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/depth_first.rb +0 -0
  808. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/emitter.rb +0 -0
  809. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/json_tree.rb +0 -0
  810. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/to_ruby.rb +0 -0
  811. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/visitor.rb +0 -0
  812. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/yaml_tree.rb +0 -0
  813. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors.rb +0 -0
  814. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/y.rb +0 -0
  815. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych.rb +0 -0
  816. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/lib/psych.so +0 -0
  817. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/psych.gemspec +0 -0
  818. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.11.0 → rspec-3.12.0}/LICENSE.md +0 -0
  819. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.11.0 → rspec-3.12.0}/README.md +0 -0
  820. data/vendor/bundle/ruby/2.5.0/gems/rspec-3.12.0/lib/rspec/version.rb +5 -0
  821. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.11.0 → rspec-3.12.0}/lib/rspec.rb +0 -0
  822. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/.document +0 -0
  823. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/.yardopts +0 -0
  824. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/Changelog.md +2360 -0
  825. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/LICENSE.md +0 -0
  826. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/README.md +0 -0
  827. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/exe/rspec +0 -0
  828. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/autorun.rb +0 -0
  829. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/backtrace_formatter.rb +0 -0
  830. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/coordinator.rb +0 -0
  831. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
  832. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/fork_runner.rb +0 -0
  833. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/server.rb +0 -0
  834. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/shell_command.rb +0 -0
  835. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/shell_runner.rb +0 -0
  836. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/utilities.rb +0 -0
  837. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/configuration.rb +2385 -0
  838. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/configuration_options.rb +0 -0
  839. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/did_you_mean.rb +0 -0
  840. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/drb.rb +0 -0
  841. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/dsl.rb +0 -0
  842. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/example.rb +0 -0
  843. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/example_group.rb +0 -0
  844. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/example_status_persister.rb +0 -0
  845. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/filter_manager.rb +0 -0
  846. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/flat_map.rb +0 -0
  847. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -0
  848. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/base_formatter.rb +0 -0
  849. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
  850. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -0
  851. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
  852. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/console_codes.rb +0 -0
  853. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/deprecation_formatter.rb +0 -0
  854. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
  855. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/exception_presenter.rb +525 -0
  856. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/failure_list_formatter.rb +0 -0
  857. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
  858. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/helpers.rb +0 -0
  859. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/html_formatter.rb +0 -0
  860. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/html_printer.rb +412 -0
  861. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -0
  862. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/json_formatter.rb +0 -0
  863. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
  864. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
  865. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/protocol.rb +0 -0
  866. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
  867. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
  868. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters.rb +0 -0
  869. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/hooks.rb +0 -0
  870. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/invocations.rb +0 -0
  871. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/memoized_helpers.rb +0 -0
  872. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/metadata.rb +0 -0
  873. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/metadata_filter.rb +0 -0
  874. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
  875. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
  876. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
  877. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/null.rb +0 -0
  878. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
  879. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
  880. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/notifications.rb +0 -0
  881. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/option_parser.rb +323 -0
  882. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/ordering.rb +0 -0
  883. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/output_wrapper.rb +0 -0
  884. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/pending.rb +0 -0
  885. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/profiler.rb +0 -0
  886. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/project_initializer/.rspec +0 -0
  887. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -0
  888. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/project_initializer.rb +0 -0
  889. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/rake_task.rb +0 -0
  890. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/reporter.rb +0 -0
  891. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/ruby_project.rb +0 -0
  892. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/runner.rb +0 -0
  893. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/sandbox.rb +0 -0
  894. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/set.rb +0 -0
  895. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/shared_context.rb +0 -0
  896. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/shared_example_group.rb +0 -0
  897. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/shell_escape.rb +0 -0
  898. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
  899. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/version.rb +9 -0
  900. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/warnings.rb +0 -0
  901. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/world.rb +0 -0
  902. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core.rb +0 -0
  903. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/.document +0 -0
  904. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/.yardopts +0 -0
  905. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.12.0/Changelog.md +1285 -0
  906. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/LICENSE.md +0 -0
  907. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/README.md +0 -0
  908. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
  909. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/configuration.rb +0 -0
  910. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/expectation_target.rb +0 -0
  911. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/fail_with.rb +0 -0
  912. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/failure_aggregator.rb +0 -0
  913. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/handler.rb +0 -0
  914. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/minitest_integration.rb +0 -0
  915. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/syntax.rb +0 -0
  916. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.12.0/lib/rspec/expectations/version.rb +8 -0
  917. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations.rb +0 -0
  918. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/aliased_matcher.rb +0 -0
  919. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/all.rb +0 -0
  920. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
  921. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be.rb +0 -0
  922. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_between.rb +0 -0
  923. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
  924. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
  925. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_within.rb +0 -0
  926. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/change.rb +0 -0
  927. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/compound.rb +0 -0
  928. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/contain_exactly.rb +0 -0
  929. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/count_expectation.rb +0 -0
  930. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/cover.rb +0 -0
  931. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/eq.rb +0 -0
  932. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/eql.rb +0 -0
  933. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/equal.rb +0 -0
  934. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/exist.rb +0 -0
  935. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/has.rb +0 -0
  936. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
  937. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/include.rb +0 -0
  938. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/match.rb +0 -0
  939. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/operators.rb +0 -0
  940. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/output.rb +0 -0
  941. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/raise_error.rb +0 -0
  942. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
  943. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
  944. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
  945. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/throw_symbol.rb +0 -0
  946. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/yield.rb +0 -0
  947. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in.rb +0 -0
  948. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/composable.rb +0 -0
  949. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/dsl.rb +0 -0
  950. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/english_phrasing.rb +0 -0
  951. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
  952. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/fail_matchers.rb +0 -0
  953. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/generated_descriptions.rb +0 -0
  954. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/matcher_delegator.rb +0 -0
  955. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/matcher_protocol.rb +0 -0
  956. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.12.0/lib/rspec/matchers.rb +1044 -0
  957. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/.document +0 -0
  958. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/.yardopts +0 -0
  959. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/Changelog.md +1212 -0
  960. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/LICENSE.md +0 -0
  961. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/README.md +0 -0
  962. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  963. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  964. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  965. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  966. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
  967. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
  968. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
  969. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  970. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  971. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance.rb +0 -0
  972. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/argument_list_matcher.rb +0 -0
  973. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/argument_matchers.rb +0 -0
  974. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/configuration.rb +0 -0
  975. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/error_generator.rb +380 -0
  976. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/example_methods.rb +0 -0
  977. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  978. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/marshal_extension.rb +0 -0
  979. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  980. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/have_received.rb +0 -0
  981. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/receive.rb +0 -0
  982. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
  983. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
  984. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/message_chain.rb +0 -0
  985. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/message_expectation.rb +820 -0
  986. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/method_double.rb +0 -0
  987. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/method_reference.rb +214 -0
  988. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/minitest_integration.rb +0 -0
  989. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/mutate_const.rb +0 -0
  990. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/object_reference.rb +0 -0
  991. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/order_group.rb +0 -0
  992. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/proxy.rb +0 -0
  993. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/space.rb +0 -0
  994. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/standalone.rb +0 -0
  995. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/syntax.rb +0 -0
  996. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/targets.rb +0 -0
  997. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/test_double.rb +0 -0
  998. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/verifying_double.rb +0 -0
  999. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/verifying_message_expectation.rb +55 -0
  1000. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/verifying_proxy.rb +0 -0
  1001. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/version.rb +9 -0
  1002. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks.rb +0 -0
  1003. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.12.0/Changelog.md +364 -0
  1004. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/LICENSE.md +0 -0
  1005. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/README.md +0 -0
  1006. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/caller_filter.rb +0 -0
  1007. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/comparable_version.rb +0 -0
  1008. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/differ.rb +0 -0
  1009. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/directory_maker.rb +0 -0
  1010. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/encoded_string.rb +0 -0
  1011. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  1012. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/hunk_generator.rb +0 -0
  1013. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/matcher_definition.rb +0 -0
  1014. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/method_signature_verifier.rb +0 -0
  1015. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/mutex.rb +0 -0
  1016. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/object_formatter.rb +0 -0
  1017. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/recursive_const_methods.rb +0 -0
  1018. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/reentrant_mutex.rb +0 -0
  1019. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.12.0/lib/rspec/support/ruby_features.rb +198 -0
  1020. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/source/location.rb +0 -0
  1021. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/source/node.rb +0 -0
  1022. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/source/token.rb +0 -0
  1023. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/source.rb +0 -0
  1024. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  1025. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  1026. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/formatting_support.rb +0 -0
  1027. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/in_sub_process.rb +0 -0
  1028. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  1029. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/shell_out.rb +0 -0
  1030. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
  1031. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/string_matcher.rb +0 -0
  1032. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  1033. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  1034. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec.rb +0 -0
  1035. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.12.0/lib/rspec/support/version.rb +7 -0
  1036. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/warnings.rb +0 -0
  1037. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
  1038. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support.rb +0 -0
  1039. data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
  1040. data/vendor/bundle/ruby/2.5.0/specifications/ethon-0.16.0.gemspec +32 -0
  1041. data/vendor/bundle/ruby/2.5.0/specifications/parser-3.1.3.0.gemspec +63 -0
  1042. data/vendor/bundle/ruby/2.5.0/specifications/psych-4.0.6.gemspec +38 -0
  1043. data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.12.0.gemspec +43 -0
  1044. data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.12.0.gemspec +63 -0
  1045. data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.12.0.gemspec +51 -0
  1046. data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.12.0.gemspec +51 -0
  1047. data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.12.0.gemspec +39 -0
  1048. metadata +979 -903
  1049. data/docs/AcceptConsentRequest.md +0 -28
  1050. data/docs/AcceptLoginRequest.md +0 -30
  1051. data/docs/ActiveProject.md +0 -18
  1052. data/docs/AdminApi.md +0 -2154
  1053. data/docs/AdminCreateIdentityBody.md +0 -32
  1054. data/docs/AdminCreateIdentityImportCredentialsOidc.md +0 -18
  1055. data/docs/AdminCreateIdentityImportCredentialsOidcConfig.md +0 -20
  1056. data/docs/AdminCreateIdentityImportCredentialsOidcProvider.md +0 -20
  1057. data/docs/AdminCreateIdentityImportCredentialsPassword.md +0 -18
  1058. data/docs/AdminCreateIdentityImportCredentialsPasswordConfig.md +0 -20
  1059. data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +0 -20
  1060. data/docs/AdminIdentityImportCredentials.md +0 -20
  1061. data/docs/AdminUpdateIdentityBody.md +0 -28
  1062. data/docs/CnameSettings.md +0 -34
  1063. data/docs/CompletedRequest.md +0 -18
  1064. data/docs/ConsentRequest.md +0 -42
  1065. data/docs/ConsentRequestSession.md +0 -20
  1066. data/docs/CreateCustomHostnameBody.md +0 -24
  1067. data/docs/CreateSubscriptionPayload.md +0 -22
  1068. data/docs/ExpandTree.md +0 -22
  1069. data/docs/FlushInactiveOAuth2TokensRequest.md +0 -18
  1070. data/docs/FlushLoginConsentRequest.md +0 -18
  1071. data/docs/GetCheckResponse.md +0 -18
  1072. data/docs/GetRelationTuplesResponse.md +0 -20
  1073. data/docs/InvitePayload.md +0 -18
  1074. data/docs/IsOwnerForProjectBySlugPayload.md +0 -22
  1075. data/docs/JSONWebKey.md +0 -50
  1076. data/docs/JSONWebKeySet.md +0 -18
  1077. data/docs/JsonError.md +0 -24
  1078. data/docs/JsonWebKeySetGeneratorRequest.md +0 -22
  1079. data/docs/LoginRequest.md +0 -34
  1080. data/docs/LogoutRequest.md +0 -28
  1081. data/docs/OAuth2TokenIntrospection.md +0 -44
  1082. data/docs/Oauth2TokenResponse.md +0 -28
  1083. data/docs/OauthTokenResponse.md +0 -28
  1084. data/docs/OpenIDConnectContext.md +0 -26
  1085. data/docs/PatchDelta.md +0 -20
  1086. data/docs/PatchDocument.md +0 -24
  1087. data/docs/PreviousConsentSession.md +0 -30
  1088. data/docs/ProvisionMockSubscriptionPayload.md +0 -20
  1089. data/docs/PublicApi.md +0 -738
  1090. data/docs/QuotaCustomDomains.md +0 -22
  1091. data/docs/QuotaProjectMemberSeats.md +0 -22
  1092. data/docs/ReadApi.md +0 -467
  1093. data/docs/RecoveryAddress.md +0 -26
  1094. data/docs/RefreshTokenHookRequest.md +0 -24
  1095. data/docs/RefreshTokenHookResponse.md +0 -18
  1096. data/docs/RejectRequest.md +0 -26
  1097. data/docs/RelationTuple.md +0 -26
  1098. data/docs/RequestWasHandledResponse.md +0 -18
  1099. data/docs/RevokedSessions.md +0 -18
  1100. data/docs/SelfServiceBrowserLocationChangeRequiredError.md +0 -34
  1101. data/docs/SelfServiceError.md +0 -24
  1102. data/docs/SelfServiceLoginFlow.md +0 -40
  1103. data/docs/SelfServiceLogoutUrl.md +0 -20
  1104. data/docs/SelfServiceRecoveryFlow.md +0 -34
  1105. data/docs/SelfServiceRecoveryFlowState.md +0 -15
  1106. data/docs/SelfServiceRecoveryLink.md +0 -20
  1107. data/docs/SelfServiceRegistrationFlow.md +0 -32
  1108. data/docs/SelfServiceSettingsFlow.md +0 -36
  1109. data/docs/SelfServiceSettingsFlowState.md +0 -15
  1110. data/docs/SelfServiceVerificationFlow.md +0 -34
  1111. data/docs/SelfServiceVerificationFlowState.md +0 -15
  1112. data/docs/SettingsProfileFormConfig.md +0 -24
  1113. data/docs/StripeCustomerResponse.md +0 -18
  1114. data/docs/SubmitSelfServiceFlowWithWebAuthnRegistrationMethod.md +0 -20
  1115. data/docs/SubmitSelfServiceLoginFlowBody.md +0 -87
  1116. data/docs/SubmitSelfServiceLoginFlowWithLookupSecretMethodBody.md +0 -22
  1117. data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +0 -24
  1118. data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +0 -26
  1119. data/docs/SubmitSelfServiceLoginFlowWithTotpMethodBody.md +0 -22
  1120. data/docs/SubmitSelfServiceLoginFlowWithWebAuthnMethodBody.md +0 -24
  1121. data/docs/SubmitSelfServiceLogoutFlowWithoutBrowserBody.md +0 -18
  1122. data/docs/SubmitSelfServiceRecoveryFlowBody.md +0 -75
  1123. data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethodBody.md +0 -22
  1124. data/docs/SubmitSelfServiceRegistrationFlowBody.md +0 -81
  1125. data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +0 -24
  1126. data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.md +0 -24
  1127. data/docs/SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody.md +0 -26
  1128. data/docs/SubmitSelfServiceSettingsFlowBody.md +0 -90
  1129. data/docs/SubmitSelfServiceSettingsFlowWithLookupMethodBody.md +0 -28
  1130. data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +0 -26
  1131. data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +0 -22
  1132. data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +0 -22
  1133. data/docs/SubmitSelfServiceSettingsFlowWithTotpMethodBody.md +0 -24
  1134. data/docs/SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody.md +0 -26
  1135. data/docs/SubmitSelfServiceVerificationFlowBody.md +0 -75
  1136. data/docs/SubmitSelfServiceVerificationFlowWithLinkMethodBody.md +0 -22
  1137. data/docs/SuccessfulSelfServiceLoginWithoutBrowser.md +0 -20
  1138. data/docs/SuccessfulSelfServiceRegistrationWithoutBrowser.md +0 -22
  1139. data/docs/TrustJwtGrantIssuerBody.md +0 -28
  1140. data/docs/TrustedJsonWebKey.md +0 -20
  1141. data/docs/TrustedJwtGrantIssuer.md +0 -32
  1142. data/docs/UpdateCustomHostnameBody.md +0 -24
  1143. data/docs/UpdateProject.md +0 -20
  1144. data/docs/UpdateSubscriptionPayload.md +0 -20
  1145. data/docs/UserinfoResponse.md +0 -54
  1146. data/docs/V0alpha2Api.md +0 -3623
  1147. data/docs/WellKnown.md +0 -70
  1148. data/docs/WriteApi.md +0 -233
  1149. data/lib/ory-client/api/admin_api.rb +0 -2184
  1150. data/lib/ory-client/api/public_api.rb +0 -723
  1151. data/lib/ory-client/api/read_api.rb +0 -449
  1152. data/lib/ory-client/api/v0alpha2_api.rb +0 -3484
  1153. data/lib/ory-client/api/write_api.rb +0 -228
  1154. data/lib/ory-client/models/accept_consent_request.rb +0 -270
  1155. data/lib/ory-client/models/accept_login_request.rb +0 -285
  1156. data/lib/ory-client/models/active_project.rb +0 -221
  1157. data/lib/ory-client/models/admin_create_identity_body.rb +0 -304
  1158. data/lib/ory-client/models/admin_create_identity_import_credentials_oidc.rb +0 -219
  1159. data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_config.rb +0 -231
  1160. data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_provider.rb +0 -240
  1161. data/lib/ory-client/models/admin_create_identity_import_credentials_password.rb +0 -219
  1162. data/lib/ory-client/models/admin_create_identity_import_credentials_password_config.rb +0 -230
  1163. data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +0 -251
  1164. data/lib/ory-client/models/admin_identity_import_credentials.rb +0 -228
  1165. data/lib/ory-client/models/admin_update_identity_body.rb +0 -285
  1166. data/lib/ory-client/models/cname_settings.rb +0 -296
  1167. data/lib/ory-client/models/completed_request.rb +0 -225
  1168. data/lib/ory-client/models/consent_request.rb +0 -345
  1169. data/lib/ory-client/models/consent_request_session.rb +0 -232
  1170. data/lib/ory-client/models/create_custom_hostname_body.rb +0 -252
  1171. data/lib/ory-client/models/create_subscription_payload.rb +0 -247
  1172. data/lib/ory-client/models/expand_tree.rb +0 -280
  1173. data/lib/ory-client/models/flush_inactive_o_auth2_tokens_request.rb +0 -220
  1174. data/lib/ory-client/models/flush_login_consent_request.rb +0 -220
  1175. data/lib/ory-client/models/get_check_response.rb +0 -226
  1176. data/lib/ory-client/models/get_relation_tuples_response.rb +0 -231
  1177. data/lib/ory-client/models/invite_payload.rb +0 -219
  1178. data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +0 -250
  1179. data/lib/ory-client/models/json_error.rb +0 -255
  1180. data/lib/ory-client/models/json_web_key_set_generator_request.rb +0 -255
  1181. data/lib/ory-client/models/login_request.rb +0 -335
  1182. data/lib/ory-client/models/logout_request.rb +0 -269
  1183. data/lib/ory-client/models/o_auth2_token_introspection.rb +0 -360
  1184. data/lib/ory-client/models/oauth2_token_response.rb +0 -265
  1185. data/lib/ory-client/models/oauth_token_response.rb +0 -271
  1186. data/lib/ory-client/models/open_id_connect_context.rb +0 -266
  1187. data/lib/ory-client/models/patch_delta.rb +0 -262
  1188. data/lib/ory-client/models/patch_document.rb +0 -261
  1189. data/lib/ory-client/models/previous_consent_session.rb +0 -280
  1190. data/lib/ory-client/models/provision_mock_subscription_payload.rb +0 -238
  1191. data/lib/ory-client/models/quota_custom_domains.rb +0 -237
  1192. data/lib/ory-client/models/quota_project_member_seats.rb +0 -237
  1193. data/lib/ory-client/models/recovery_address.rb +0 -272
  1194. data/lib/ory-client/models/refresh_token_hook_request.rb +0 -254
  1195. data/lib/ory-client/models/refresh_token_hook_response.rb +0 -219
  1196. data/lib/ory-client/models/reject_request.rb +0 -260
  1197. data/lib/ory-client/models/relation_tuple.rb +0 -274
  1198. data/lib/ory-client/models/request_was_handled_response.rb +0 -225
  1199. data/lib/ory-client/models/revoked_sessions.rb +0 -220
  1200. data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +0 -307
  1201. data/lib/ory-client/models/self_service_error.rb +0 -253
  1202. data/lib/ory-client/models/self_service_login_flow.rb +0 -357
  1203. data/lib/ory-client/models/self_service_logout_url.rb +0 -240
  1204. data/lib/ory-client/models/self_service_recovery_flow.rb +0 -333
  1205. data/lib/ory-client/models/self_service_recovery_flow_state.rb +0 -38
  1206. data/lib/ory-client/models/self_service_recovery_link.rb +0 -235
  1207. data/lib/ory-client/models/self_service_registration_flow.rb +0 -317
  1208. data/lib/ory-client/models/self_service_settings_flow.rb +0 -347
  1209. data/lib/ory-client/models/self_service_settings_flow_state.rb +0 -37
  1210. data/lib/ory-client/models/self_service_verification_flow.rb +0 -318
  1211. data/lib/ory-client/models/self_service_verification_flow_state.rb +0 -38
  1212. data/lib/ory-client/models/settings_profile_form_config.rb +0 -267
  1213. data/lib/ory-client/models/stripe_customer_response.rb +0 -219
  1214. data/lib/ory-client/models/submit_self_service_flow_with_web_authn_registration_method.rb +0 -230
  1215. data/lib/ory-client/models/submit_self_service_login_flow_body.rb +0 -61
  1216. data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +0 -250
  1217. data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +0 -261
  1218. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +0 -275
  1219. data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +0 -250
  1220. data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +0 -260
  1221. data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +0 -226
  1222. data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +0 -53
  1223. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +0 -250
  1224. data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +0 -57
  1225. data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +0 -261
  1226. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +0 -266
  1227. data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb +0 -270
  1228. data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +0 -63
  1229. data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +0 -275
  1230. data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +0 -266
  1231. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +0 -250
  1232. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +0 -251
  1233. data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +0 -255
  1234. data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +0 -265
  1235. data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +0 -54
  1236. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +0 -250
  1237. data/lib/ory-client/models/successful_self_service_login_without_browser.rb +0 -235
  1238. data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +0 -244
  1239. data/lib/ory-client/models/trust_jwt_grant_issuer_body.rb +0 -291
  1240. data/lib/ory-client/models/trusted_json_web_key.rb +0 -230
  1241. data/lib/ory-client/models/trusted_jwt_grant_issuer.rb +0 -290
  1242. data/lib/ory-client/models/update_custom_hostname_body.rb +0 -252
  1243. data/lib/ory-client/models/update_project.rb +0 -239
  1244. data/lib/ory-client/models/update_subscription_payload.rb +0 -233
  1245. data/lib/ory-client/models/userinfo_response.rb +0 -401
  1246. data/lib/ory-client/models/well_known.rb +0 -538
  1247. data/spec/api/admin_api_spec.rb +0 -442
  1248. data/spec/api/public_api_spec.rb +0 -167
  1249. data/spec/api/read_api_spec.rb +0 -124
  1250. data/spec/api/v0alpha2_api_spec.rb +0 -695
  1251. data/spec/api/write_api_spec.rb +0 -77
  1252. data/spec/models/accept_consent_request_spec.rb +0 -64
  1253. data/spec/models/accept_login_request_spec.rb +0 -70
  1254. data/spec/models/active_project_spec.rb +0 -34
  1255. data/spec/models/admin_create_identity_body_spec.rb +0 -76
  1256. data/spec/models/admin_create_identity_import_credentials_oidc_config_spec.rb +0 -40
  1257. data/spec/models/admin_create_identity_import_credentials_oidc_provider_spec.rb +0 -40
  1258. data/spec/models/admin_create_identity_import_credentials_oidc_spec.rb +0 -34
  1259. data/spec/models/admin_create_identity_import_credentials_password_config_spec.rb +0 -40
  1260. data/spec/models/admin_create_identity_import_credentials_password_spec.rb +0 -34
  1261. data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +0 -40
  1262. data/spec/models/admin_identity_import_credentials_spec.rb +0 -40
  1263. data/spec/models/admin_update_identity_body_spec.rb +0 -64
  1264. data/spec/models/cname_settings_spec.rb +0 -82
  1265. data/spec/models/completed_request_spec.rb +0 -34
  1266. data/spec/models/consent_request_session_spec.rb +0 -40
  1267. data/spec/models/consent_request_spec.rb +0 -106
  1268. data/spec/models/create_custom_hostname_body_spec.rb +0 -52
  1269. data/spec/models/create_subscription_payload_spec.rb +0 -46
  1270. data/spec/models/expand_tree_spec.rb +0 -50
  1271. data/spec/models/flush_inactive_o_auth2_tokens_request_spec.rb +0 -34
  1272. data/spec/models/flush_login_consent_request_spec.rb +0 -34
  1273. data/spec/models/get_check_response_spec.rb +0 -34
  1274. data/spec/models/get_relation_tuples_response_spec.rb +0 -40
  1275. data/spec/models/invite_payload_spec.rb +0 -34
  1276. data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +0 -46
  1277. data/spec/models/json_error_spec.rb +0 -52
  1278. data/spec/models/json_web_key_set_generator_request_spec.rb +0 -46
  1279. data/spec/models/login_request_spec.rb +0 -82
  1280. data/spec/models/logout_request_spec.rb +0 -64
  1281. data/spec/models/o_auth2_token_introspection_spec.rb +0 -112
  1282. data/spec/models/oauth2_token_response_spec.rb +0 -64
  1283. data/spec/models/oauth_token_response_spec.rb +0 -64
  1284. data/spec/models/open_id_connect_context_spec.rb +0 -58
  1285. data/spec/models/patch_delta_spec.rb +0 -44
  1286. data/spec/models/patch_document_spec.rb +0 -52
  1287. data/spec/models/previous_consent_session_spec.rb +0 -70
  1288. data/spec/models/provision_mock_subscription_payload_spec.rb +0 -40
  1289. data/spec/models/quota_custom_domains_spec.rb +0 -46
  1290. data/spec/models/quota_project_member_seats_spec.rb +0 -46
  1291. data/spec/models/recovery_address_spec.rb +0 -58
  1292. data/spec/models/refresh_token_hook_request_spec.rb +0 -52
  1293. data/spec/models/refresh_token_hook_response_spec.rb +0 -34
  1294. data/spec/models/reject_request_spec.rb +0 -58
  1295. data/spec/models/relation_tuple_spec.rb +0 -58
  1296. data/spec/models/request_was_handled_response_spec.rb +0 -34
  1297. data/spec/models/revoked_sessions_spec.rb +0 -34
  1298. data/spec/models/self_service_browser_location_change_required_error_spec.rb +0 -82
  1299. data/spec/models/self_service_error_spec.rb +0 -52
  1300. data/spec/models/self_service_login_flow_spec.rb +0 -100
  1301. data/spec/models/self_service_logout_url_spec.rb +0 -40
  1302. data/spec/models/self_service_recovery_flow_spec.rb +0 -82
  1303. data/spec/models/self_service_recovery_flow_state_spec.rb +0 -28
  1304. data/spec/models/self_service_recovery_link_spec.rb +0 -40
  1305. data/spec/models/self_service_registration_flow_spec.rb +0 -76
  1306. data/spec/models/self_service_settings_flow_spec.rb +0 -88
  1307. data/spec/models/self_service_settings_flow_state_spec.rb +0 -28
  1308. data/spec/models/self_service_verification_flow_spec.rb +0 -82
  1309. data/spec/models/self_service_verification_flow_state_spec.rb +0 -28
  1310. data/spec/models/settings_profile_form_config_spec.rb +0 -52
  1311. data/spec/models/stripe_customer_response_spec.rb +0 -34
  1312. data/spec/models/submit_self_service_flow_with_web_authn_registration_method_spec.rb +0 -40
  1313. data/spec/models/submit_self_service_login_flow_body_spec.rb +0 -43
  1314. data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +0 -46
  1315. data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +0 -52
  1316. data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +0 -58
  1317. data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +0 -46
  1318. data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +0 -52
  1319. data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +0 -34
  1320. data/spec/models/submit_self_service_recovery_flow_body_spec.rb +0 -43
  1321. data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +0 -46
  1322. data/spec/models/submit_self_service_registration_flow_body_spec.rb +0 -43
  1323. data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +0 -52
  1324. data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +0 -52
  1325. data/spec/models/submit_self_service_registration_flow_with_web_authn_method_body_spec.rb +0 -58
  1326. data/spec/models/submit_self_service_settings_flow_body_spec.rb +0 -43
  1327. data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +0 -64
  1328. data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +0 -58
  1329. data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +0 -46
  1330. data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +0 -46
  1331. data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +0 -52
  1332. data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +0 -58
  1333. data/spec/models/submit_self_service_verification_flow_body_spec.rb +0 -43
  1334. data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +0 -46
  1335. data/spec/models/successful_self_service_login_without_browser_spec.rb +0 -40
  1336. data/spec/models/successful_self_service_registration_without_browser_spec.rb +0 -46
  1337. data/spec/models/trust_jwt_grant_issuer_body_spec.rb +0 -64
  1338. data/spec/models/trusted_json_web_key_spec.rb +0 -40
  1339. data/spec/models/trusted_jwt_grant_issuer_spec.rb +0 -76
  1340. data/spec/models/update_custom_hostname_body_spec.rb +0 -52
  1341. data/spec/models/update_project_spec.rb +0 -40
  1342. data/spec/models/update_subscription_payload_spec.rb +0 -40
  1343. data/spec/models/userinfo_response_spec.rb +0 -142
  1344. data/spec/models/well_known_spec.rb +0 -190
  1345. data/vendor/bundle/ruby/2.5.0/cache/ethon-0.15.0.gem +0 -0
  1346. data/vendor/bundle/ruby/2.5.0/cache/parser-3.1.2.1.gem +0 -0
  1347. data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.5.gem +0 -0
  1348. data/vendor/bundle/ruby/2.5.0/cache/rspec-3.11.0.gem +0 -0
  1349. data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.11.0.gem +0 -0
  1350. data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.11.1.gem +0 -0
  1351. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.11.1.gem +0 -0
  1352. data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.11.1.gem +0 -0
  1353. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.5/gem_make.out +0 -41
  1354. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.5/psych.so +0 -0
  1355. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/.github/workflows/ruby.yml +0 -41
  1356. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/CHANGELOG.md +0 -372
  1357. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/README.md +0 -95
  1358. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb +0 -55
  1359. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/curls/options.rb +0 -502
  1360. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/easy/callbacks.rb +0 -148
  1361. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/easy/informations.rb +0 -113
  1362. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/easy/response_callbacks.rb +0 -131
  1363. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/version.rb +0 -6
  1364. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/easy/callbacks_spec.rb +0 -59
  1365. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/easy/informations_spec.rb +0 -120
  1366. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/easy/mirror_spec.rb +0 -47
  1367. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/easy/operations_spec.rb +0 -268
  1368. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ast/processor.rb +0 -288
  1369. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/builders/default.rb +0 -2309
  1370. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/current.rb +0 -119
  1371. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/lexer.rb +0 -25015
  1372. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/macruby.rb +0 -6177
  1373. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/messages.rb +0 -118
  1374. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/meta.rb +0 -39
  1375. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby18.rb +0 -5708
  1376. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby19.rb +0 -6126
  1377. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby20.rb +0 -6563
  1378. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby21.rb +0 -6611
  1379. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby22.rb +0 -6655
  1380. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby23.rb +0 -6669
  1381. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby24.rb +0 -6736
  1382. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby25.rb +0 -6694
  1383. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby26.rb +0 -6721
  1384. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby27.rb +0 -7914
  1385. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby30.rb +0 -8096
  1386. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby31.rb +0 -8358
  1387. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby32.rb +0 -8338
  1388. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/rubymotion.rb +0 -6125
  1389. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/static_environment.rb +0 -69
  1390. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/version.rb +0 -5
  1391. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/parser.gemspec +0 -43
  1392. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/Makefile +0 -271
  1393. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/api.o +0 -0
  1394. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/dumper.o +0 -0
  1395. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/emitter.o +0 -0
  1396. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/loader.o +0 -0
  1397. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/parser.o +0 -0
  1398. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych.o +0 -0
  1399. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych.so +0 -0
  1400. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych_emitter.o +0 -0
  1401. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych_parser.o +0 -0
  1402. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych_to_ruby.o +0 -0
  1403. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych_yaml_tree.o +0 -0
  1404. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/reader.o +0 -0
  1405. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/scanner.o +0 -0
  1406. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/writer.o +0 -0
  1407. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/lib/psych/versions.rb +0 -10
  1408. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/lib/psych.so +0 -0
  1409. data/vendor/bundle/ruby/2.5.0/gems/rspec-3.11.0/lib/rspec/version.rb +0 -5
  1410. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/Changelog.md +0 -2355
  1411. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/configuration.rb +0 -2383
  1412. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb +0 -521
  1413. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb +0 -414
  1414. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/option_parser.rb +0 -325
  1415. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/version.rb +0 -9
  1416. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.11.1/Changelog.md +0 -1277
  1417. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.11.1/lib/rspec/expectations/version.rb +0 -8
  1418. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.11.1/lib/rspec/matchers.rb +0 -1041
  1419. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/Changelog.md +0 -1193
  1420. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb +0 -369
  1421. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb +0 -822
  1422. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb +0 -202
  1423. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/verifying_message_expectation.rb +0 -54
  1424. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/version.rb +0 -9
  1425. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.11.1/Changelog.md +0 -357
  1426. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.11.1/lib/rspec/support/ruby_features.rb +0 -194
  1427. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.11.1/lib/rspec/support/version.rb +0 -7
  1428. data/vendor/bundle/ruby/2.5.0/specifications/ethon-0.15.0.gemspec +0 -32
  1429. data/vendor/bundle/ruby/2.5.0/specifications/parser-3.1.2.1.gemspec +0 -63
  1430. data/vendor/bundle/ruby/2.5.0/specifications/psych-4.0.5.gemspec +0 -38
  1431. data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.11.0.gemspec +0 -43
  1432. data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.11.0.gemspec +0 -63
  1433. data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.11.1.gemspec +0 -51
  1434. data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.11.1.gemspec +0 -51
  1435. data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.11.1.gemspec +0 -39
@@ -0,0 +1,2385 @@
1
+ RSpec::Support.require_rspec_core "backtrace_formatter"
2
+ RSpec::Support.require_rspec_core "ruby_project"
3
+ RSpec::Support.require_rspec_core "formatters/deprecation_formatter"
4
+ RSpec::Support.require_rspec_core "output_wrapper"
5
+
6
+ module RSpec
7
+ module Core
8
+ # rubocop:disable Metrics/ClassLength
9
+
10
+ # Stores runtime configuration information.
11
+ #
12
+ # Configuration options are loaded from multiple files and joined together
13
+ # with command-line switches and the `SPEC_OPTS` environment variable.
14
+ #
15
+ # Precedence order (where later entries overwrite earlier entries on
16
+ # conflicts):
17
+ #
18
+ # * Global (`$XDG_CONFIG_HOME/rspec/options`, or `~/.rspec` if it does
19
+ # not exist)
20
+ # * Project-specific (`./.rspec`)
21
+ # * Local (`./.rspec-local`)
22
+ # * Command-line options
23
+ # * `SPEC_OPTS`
24
+ #
25
+ # For example, an option set in the local file will override an option set
26
+ # in your global file.
27
+ #
28
+ # The global, project-specific and local files can all be overridden with a
29
+ # separate custom file using the --options command-line parameter.
30
+ #
31
+ # @example Standard settings
32
+ # RSpec.configure do |c|
33
+ # c.drb = true
34
+ # c.drb_port = 1234
35
+ # c.default_path = 'behavior'
36
+ # end
37
+ #
38
+ # @example Hooks
39
+ # RSpec.configure do |c|
40
+ # c.before(:suite) { establish_connection }
41
+ # c.before(:example) { log_in_as :authorized }
42
+ # c.around(:example) { |ex| Database.transaction(&ex) }
43
+ # end
44
+ #
45
+ # @see RSpec.configure
46
+ # @see Hooks
47
+ class Configuration
48
+ include RSpec::Core::Hooks
49
+
50
+ # Module that holds `attr_reader` declarations. It's in a separate
51
+ # module to allow us to override those methods and use `super`.
52
+ # @private
53
+ Readers = Module.new
54
+ include Readers
55
+
56
+ # @private
57
+ class MustBeConfiguredBeforeExampleGroupsError < StandardError; end
58
+
59
+ # @private
60
+ def self.define_reader(name)
61
+ Readers.class_eval do
62
+ remove_method name if method_defined?(name)
63
+ attr_reader name
64
+ end
65
+
66
+ define_method(name) { value_for(name) { super() } }
67
+ end
68
+
69
+ # @private
70
+ def self.define_alias(name, alias_name)
71
+ alias_method alias_name, name
72
+ alias_method "#{alias_name}=", "#{name}="
73
+ define_predicate alias_name
74
+ end
75
+
76
+ # @private
77
+ def self.define_predicate(name)
78
+ define_method "#{name}?" do
79
+ !!send(name)
80
+ end
81
+ end
82
+
83
+ # @private
84
+ #
85
+ # Invoked by the `add_setting` instance method. Use that method on a
86
+ # `Configuration` instance rather than this class method.
87
+ def self.add_setting(name, opts={})
88
+ raise "Use the instance add_setting method if you want to set a default" if opts.key?(:default)
89
+ attr_writer name
90
+ add_read_only_setting name
91
+
92
+ Array(opts[:alias_with]).each do |alias_name|
93
+ define_alias(name, alias_name)
94
+ end
95
+ end
96
+
97
+ # @private
98
+ #
99
+ # As `add_setting` but only add the reader.
100
+ def self.add_read_only_setting(name, opts={})
101
+ raise "Use the instance add_setting method if you want to set a default" if opts.key?(:default)
102
+ define_reader name
103
+ define_predicate name
104
+ end
105
+
106
+ # @macro [attach] add_setting
107
+ # @!attribute [rw] $1
108
+ #
109
+ # @macro [attach] define_reader
110
+ # @!attribute [r] $1
111
+
112
+ # @macro add_setting
113
+ # Path to use if no path is provided to the `rspec` command (default:
114
+ # `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to
115
+ # run all the examples in the `spec` directory.
116
+ #
117
+ # @note Other scripts invoking `rspec` indirectly will ignore this
118
+ # setting.
119
+ # @return [String]
120
+ add_read_only_setting :default_path
121
+ def default_path=(path)
122
+ project_source_dirs << path
123
+ @default_path = path
124
+ end
125
+
126
+ # @macro add_setting
127
+ # Run examples over DRb (default: `false`). RSpec doesn't supply the DRb
128
+ # server, but you can use tools like spork.
129
+ # @return [Boolean]
130
+ add_setting :drb
131
+
132
+ # @macro add_setting
133
+ # The drb_port (default: nil).
134
+ add_setting :drb_port
135
+
136
+ # @macro add_setting
137
+ # Default: `$stderr`.
138
+ add_setting :error_stream
139
+
140
+ # Indicates if the DSL has been exposed off of modules and `main`.
141
+ # Default: true
142
+ # @return [Boolean]
143
+ def expose_dsl_globally?
144
+ Core::DSL.exposed_globally?
145
+ end
146
+
147
+ # Use this to expose the core RSpec DSL via `Module` and the `main`
148
+ # object. It will be set automatically but you can override it to
149
+ # remove the DSL.
150
+ # Default: true
151
+ def expose_dsl_globally=(value)
152
+ if value
153
+ Core::DSL.expose_globally!
154
+ Core::SharedExampleGroup::TopLevelDSL.expose_globally!
155
+ else
156
+ Core::DSL.remove_globally!
157
+ Core::SharedExampleGroup::TopLevelDSL.remove_globally!
158
+ end
159
+ end
160
+
161
+ # Determines where deprecation warnings are printed.
162
+ # Defaults to `$stderr`.
163
+ # @return [IO, String] IO or filename to write to
164
+ define_reader :deprecation_stream
165
+
166
+ # Determines where deprecation warnings are printed.
167
+ # @param value [IO, String] IO to write to or filename to write to
168
+ def deprecation_stream=(value)
169
+ if @reporter && !value.equal?(@deprecation_stream)
170
+ warn "RSpec's reporter has already been initialized with " \
171
+ "#{deprecation_stream.inspect} as the deprecation stream, so your change to "\
172
+ "`deprecation_stream` will be ignored. You should configure it earlier for " \
173
+ "it to take effect, or use the `--deprecation-out` CLI option. " \
174
+ "(Called from #{CallerFilter.first_non_rspec_line})"
175
+ else
176
+ @deprecation_stream = value
177
+ end
178
+ end
179
+
180
+ # @macro define_reader
181
+ # The file path to use for persisting example statuses. Necessary for the
182
+ # `--only-failures` and `--next-failure` CLI options.
183
+ #
184
+ # @overload example_status_persistence_file_path
185
+ # @return [String] the file path
186
+ # @overload example_status_persistence_file_path=(value)
187
+ # @param value [String] the file path
188
+ define_reader :example_status_persistence_file_path
189
+
190
+ # Sets the file path to use for persisting example statuses. Necessary for the
191
+ # `--only-failures` and `--next-failure` CLI options.
192
+ def example_status_persistence_file_path=(value)
193
+ @example_status_persistence_file_path = value
194
+ clear_values_derived_from_example_status_persistence_file_path
195
+ end
196
+
197
+ # @macro define_reader
198
+ # Indicates if the `--only-failures` (or `--next-failure`) flag is being used.
199
+ define_reader :only_failures
200
+ alias_method :only_failures?, :only_failures
201
+
202
+ # @private
203
+ def only_failures_but_not_configured?
204
+ only_failures? && !example_status_persistence_file_path
205
+ end
206
+
207
+ # @macro define_reader
208
+ # If specified, indicates the number of failures required before cleaning
209
+ # up and exit (default: `nil`). Can also be `true` to fail and exit on first
210
+ # failure
211
+ define_reader :fail_fast
212
+
213
+ # @see fail_fast
214
+ def fail_fast=(value)
215
+ case value
216
+ when true, 'true'
217
+ @fail_fast = true
218
+ when false, 'false', 0
219
+ @fail_fast = false
220
+ when nil
221
+ @fail_fast = nil
222
+ else
223
+ @fail_fast = value.to_i
224
+
225
+ if value.to_i == 0
226
+ # TODO: in RSpec 4, consider raising an error here.
227
+ RSpec.warning "Cannot set `RSpec.configuration.fail_fast`" \
228
+ " to `#{value.inspect}`. Only `true`, `false`, `nil` and integers" \
229
+ " are valid values."
230
+ @fail_fast = true
231
+ end
232
+ end
233
+ end
234
+
235
+ # @macro add_setting
236
+ # Prints the formatter output of your suite without running any
237
+ # examples or hooks.
238
+ add_setting :dry_run
239
+
240
+ # @macro add_setting
241
+ # The exit code to return if there are any failures (default: 1).
242
+ # @return [Integer]
243
+ add_setting :failure_exit_code
244
+
245
+ # @macro add_setting
246
+ # The exit code to return if there are any errors outside examples (default: failure_exit_code)
247
+ # @return [Integer]
248
+ add_setting :error_exit_code
249
+
250
+ # @macro add_setting
251
+ # Whether or not to fail when there are no RSpec examples (default: false).
252
+ # @return [Boolean]
253
+ add_setting :fail_if_no_examples
254
+
255
+ # @macro define_reader
256
+ # Indicates files configured to be required.
257
+ # @return [Array<String>]
258
+ define_reader :requires
259
+
260
+ # @macro define_reader
261
+ # Returns dirs that have been prepended to the load path by the `-I`
262
+ # command line option.
263
+ # @return [Array<String>]
264
+ define_reader :libs
265
+
266
+ # @macro add_setting
267
+ # Determines where RSpec will send its output.
268
+ # Default: `$stdout`.
269
+ # @return [IO, String]
270
+ define_reader :output_stream
271
+
272
+ # Set the output stream for reporter.
273
+ # @attr value [IO, String] IO to write to or filename to write to, defaults to $stdout
274
+ def output_stream=(value)
275
+ if @reporter && !value.equal?(@output_stream)
276
+ warn "RSpec's reporter has already been initialized with " \
277
+ "#{output_stream.inspect} as the output stream, so your change to "\
278
+ "`output_stream` will be ignored. You should configure it earlier for " \
279
+ "it to take effect. (Called from #{CallerFilter.first_non_rspec_line})"
280
+ else
281
+ @output_stream = value
282
+ output_wrapper.output = @output_stream
283
+ end
284
+ end
285
+
286
+ # @macro define_reader
287
+ # Load files matching this pattern (default: `'**{,/*/**}/*_spec.rb'`).
288
+ # @return [String]
289
+ define_reader :pattern
290
+
291
+ # Set pattern to match files to load.
292
+ # @attr value [String] the filename pattern to filter spec files by
293
+ def pattern=(value)
294
+ update_pattern_attr :pattern, value
295
+ end
296
+
297
+ # @macro define_reader
298
+ # Exclude files matching this pattern.
299
+ # @return [String]
300
+ define_reader :exclude_pattern
301
+
302
+ # Set pattern to match files to exclude.
303
+ # @attr value [String] the filename pattern to exclude spec files by
304
+ def exclude_pattern=(value)
305
+ update_pattern_attr :exclude_pattern, value
306
+ end
307
+
308
+ # @macro add_setting
309
+ # Specifies which directories contain the source code for your project.
310
+ # When a failure occurs, RSpec looks through the backtrace to find a
311
+ # a line of source to print. It first looks for a line coming from
312
+ # one of the project source directories so that, for example, it prints
313
+ # the expectation or assertion call rather than the source code from
314
+ # the expectation or assertion framework.
315
+ # @return [Array<String>]
316
+ add_setting :project_source_dirs
317
+
318
+ # @macro add_setting
319
+ # Report the times for the slowest examples (default: `false`).
320
+ # Use this to specify the number of examples to include in the profile.
321
+ # @return [Boolean]
322
+ attr_writer :profile_examples
323
+ define_predicate :profile_examples
324
+
325
+ # @macro add_setting
326
+ # Run all examples if none match the configured filters
327
+ # (default: `false`).
328
+ # @deprecated Use {#filter_run_when_matching} instead for the specific
329
+ # filters that you want to be ignored if none match.
330
+ add_setting :run_all_when_everything_filtered
331
+
332
+ # @macro add_setting
333
+ # Color to use to indicate success. Defaults to `:green` but can be set
334
+ # to one of the following: `[:black, :white, :red, :green, :yellow,
335
+ # :blue, :magenta, :cyan]`
336
+ # @return [Symbol]
337
+ add_setting :success_color
338
+
339
+ # @macro add_setting
340
+ # Color to use to print pending examples. Defaults to `:yellow` but can
341
+ # be set to one of the following: `[:black, :white, :red, :green,
342
+ # :yellow, :blue, :magenta, :cyan]`
343
+ # @return [Symbol]
344
+ add_setting :pending_color
345
+
346
+ # @macro add_setting
347
+ # Color to use to indicate failure. Defaults to `:red` but can be set to
348
+ # one of the following: `[:black, :white, :red, :green, :yellow, :blue,
349
+ # :magenta, :cyan]`
350
+ # @return [Symbol]
351
+ add_setting :failure_color
352
+
353
+ # @macro add_setting
354
+ # The default output color. Defaults to `:white` but can be set to one of
355
+ # the following: `[:black, :white, :red, :green, :yellow, :blue,
356
+ # :magenta, :cyan]`
357
+ # @return [Symbol]
358
+ add_setting :default_color
359
+
360
+ # @macro add_setting
361
+ # Color used when a pending example is fixed. Defaults to `:blue` but can
362
+ # be set to one of the following: `[:black, :white, :red, :green,
363
+ # :yellow, :blue, :magenta, :cyan]`
364
+ # @return [Symbol]
365
+ add_setting :fixed_color
366
+
367
+ # @macro add_setting
368
+ # Color used to print details. Defaults to `:cyan` but can be set to one
369
+ # of the following: `[:black, :white, :red, :green, :yellow, :blue,
370
+ # :magenta, :cyan]`
371
+ # @return [Symbol]
372
+ add_setting :detail_color
373
+
374
+ # @macro add_setting
375
+ # Don't print filter info i.e. "Run options: include {:focus=>true}"
376
+ # (default `false`).
377
+ # return [Boolean]
378
+ add_setting :silence_filter_announcements
379
+
380
+ # @deprecated This config option was added in RSpec 2 to pave the way
381
+ # for this being the default behavior in RSpec 3. Now this option is
382
+ # a no-op.
383
+ def treat_symbols_as_metadata_keys_with_true_values=(_value)
384
+ RSpec.deprecate(
385
+ "RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values=",
386
+ :message => "RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values= " \
387
+ "is deprecated, it is now set to true as default and " \
388
+ "setting it to false has no effect."
389
+ )
390
+ end
391
+
392
+ # @macro define_reader
393
+ # Configures how RSpec treats metadata passed as part of a shared example
394
+ # group definition. For example, given this shared example group definition:
395
+ #
396
+ # RSpec.shared_context "uses DB", :db => true do
397
+ # around(:example) do |ex|
398
+ # MyORM.transaction(:rollback => true, &ex)
399
+ # end
400
+ # end
401
+ #
402
+ # ...there are two ways RSpec can treat the `:db => true` metadata, each
403
+ # of which has a corresponding config option:
404
+ #
405
+ # 1. `:trigger_inclusion`: this shared context will be implicitly included
406
+ # in any groups (or examples) that have `:db => true` metadata.
407
+ # 2. `:apply_to_host_groups`: the metadata will be inherited by the metadata
408
+ # hash of all host groups and examples.
409
+ #
410
+ # `:trigger_inclusion` is the legacy behavior from before RSpec 3.5 but should
411
+ # be considered deprecated. Instead, you can explicitly include a group with
412
+ # `include_context`:
413
+ #
414
+ # RSpec.describe "My model" do
415
+ # include_context "uses DB"
416
+ # end
417
+ #
418
+ # ...or you can configure RSpec to include the context based on matching metadata
419
+ # using an API that mirrors configured module inclusion:
420
+ #
421
+ # RSpec.configure do |rspec|
422
+ # rspec.include_context "uses DB", :db => true
423
+ # end
424
+ #
425
+ # `:apply_to_host_groups` is a new feature of RSpec 3.5 and will be the only
426
+ # supported behavior in RSpec 4.
427
+ #
428
+ # @overload shared_context_metadata_behavior
429
+ # @return [:trigger_inclusion, :apply_to_host_groups] the configured behavior
430
+ # @overload shared_context_metadata_behavior=(value)
431
+ # @param value [:trigger_inclusion, :apply_to_host_groups] sets the configured behavior
432
+ define_reader :shared_context_metadata_behavior
433
+ # @see shared_context_metadata_behavior
434
+ def shared_context_metadata_behavior=(value)
435
+ case value
436
+ when :trigger_inclusion, :apply_to_host_groups
437
+ @shared_context_metadata_behavior = value
438
+ else
439
+ raise ArgumentError, "Cannot set `RSpec.configuration." \
440
+ "shared_context_metadata_behavior` to `#{value.inspect}`. Only " \
441
+ "`:trigger_inclusion` and `:apply_to_host_groups` are valid values."
442
+ end
443
+ end
444
+
445
+ # Record the start time of the spec suite to measure load time.
446
+ # return [Time]
447
+ add_setting :start_time
448
+
449
+ # @macro add_setting
450
+ # Use threadsafe options where available.
451
+ # Currently this will place a mutex around memoized values such as let blocks.
452
+ # return [Boolean]
453
+ add_setting :threadsafe
454
+
455
+ # @macro add_setting
456
+ # Maximum count of failed source lines to display in the failure reports.
457
+ # (default `10`).
458
+ # return [Integer]
459
+ add_setting :max_displayed_failure_line_count
460
+
461
+ # Determines which bisect runner implementation gets used to run subsets
462
+ # of the suite during a bisection. Your choices are:
463
+ #
464
+ # - `:shell`: Performs a spec run by shelling out, booting RSpec and your
465
+ # application environment each time. This runner is the most widely
466
+ # compatible runner, but is not as fast. On platforms that do not
467
+ # support forking, this is the default.
468
+ # - `:fork`: Pre-boots RSpec and your application environment in a parent
469
+ # process, and then forks a child process for each spec run. This runner
470
+ # tends to be significantly faster than the `:shell` runner but cannot
471
+ # be used in some situations. On platforms that support forking, this
472
+ # is the default. If you use this runner, you should ensure that all
473
+ # of your one-time setup logic goes in a `before(:suite)` hook instead
474
+ # of getting run at the top-level of a file loaded by `--require`.
475
+ #
476
+ # @note This option will only be used by `--bisect` if you set it in a file
477
+ # loaded via `--require`.
478
+ #
479
+ # @return [Symbol]
480
+ attr_reader :bisect_runner
481
+ def bisect_runner=(value)
482
+ if @bisect_runner_class && value != @bisect_runner
483
+ raise "`config.bisect_runner = #{value.inspect}` can no longer take " \
484
+ "effect as the #{@bisect_runner.inspect} bisect runnner is already " \
485
+ "in use. This config setting must be set in a file loaded by a " \
486
+ "`--require` option (passed at the CLI or in a `.rspec` file) for " \
487
+ "it to have any effect."
488
+ end
489
+
490
+ @bisect_runner = value
491
+ end
492
+
493
+ # @private
494
+ # @deprecated Use {#color_mode} = :on, instead of {#color} with {#tty}
495
+ add_setting :tty
496
+ # @private
497
+ attr_writer :files_to_run
498
+ # @private
499
+ attr_accessor :filter_manager, :world
500
+ # @private
501
+ attr_accessor :static_config_filter_manager
502
+ # @private
503
+ attr_reader :backtrace_formatter, :ordering_manager, :loaded_spec_files
504
+
505
+ # rubocop:disable Metrics/AbcSize
506
+ # rubocop:disable Metrics/MethodLength
507
+
508
+ # Build an object to store runtime configuration options and set defaults
509
+ def initialize
510
+ # rubocop:disable Style/GlobalVars
511
+ @start_time = $_rspec_core_load_started_at || ::RSpec::Core::Time.now
512
+ # rubocop:enable Style/GlobalVars
513
+ @expectation_frameworks = []
514
+ @include_modules = FilterableItemRepository::QueryOptimized.new(:any?)
515
+ @extend_modules = FilterableItemRepository::QueryOptimized.new(:any?)
516
+ @prepend_modules = FilterableItemRepository::QueryOptimized.new(:any?)
517
+
518
+ @bisect_runner = RSpec::Support::RubyFeatures.fork_supported? ? :fork : :shell
519
+ @bisect_runner_class = nil
520
+
521
+ @before_suite_hooks = []
522
+ @after_suite_hooks = []
523
+
524
+ @mock_framework = nil
525
+ @files_or_directories_to_run = []
526
+ @loaded_spec_files = Set.new
527
+ @color = false
528
+ @color_mode = :automatic
529
+ @pattern = '**{,/*/**}/*_spec.rb'
530
+ @exclude_pattern = ''
531
+ @failure_exit_code = 1
532
+ @error_exit_code = nil # so it can be overridden by failure exit code
533
+ @fail_if_no_examples = false
534
+ @spec_files_loaded = false
535
+
536
+ @backtrace_formatter = BacktraceFormatter.new
537
+
538
+ @default_path = 'spec'
539
+ @project_source_dirs = %w[ spec lib app ]
540
+ @deprecation_stream = $stderr
541
+ @output_stream = $stdout
542
+ @reporter = nil
543
+ @reporter_buffer = nil
544
+ @filter_manager = FilterManager.new
545
+ @static_config_filter_manager = FilterManager.new
546
+ @ordering_manager = Ordering::ConfigurationManager.new
547
+ @preferred_options = {}
548
+ @failure_color = :red
549
+ @success_color = :green
550
+ @pending_color = :yellow
551
+ @default_color = :white
552
+ @fixed_color = :blue
553
+ @detail_color = :cyan
554
+ @profile_examples = false
555
+ @requires = []
556
+ @libs = []
557
+ @derived_metadata_blocks = FilterableItemRepository::QueryOptimized.new(:any?)
558
+ @threadsafe = true
559
+ @max_displayed_failure_line_count = 10
560
+ @world = World::Null
561
+ @shared_context_metadata_behavior = :trigger_inclusion
562
+
563
+ define_built_in_hooks
564
+ end
565
+ # rubocop:enable Metrics/AbcSize
566
+ # rubocop:enable Metrics/MethodLength
567
+
568
+ # @private
569
+ #
570
+ # Used to set higher priority option values from the command line.
571
+ def force(hash)
572
+ ordering_manager.force(hash)
573
+ @preferred_options.merge!(hash)
574
+
575
+ return unless hash.key?(:example_status_persistence_file_path)
576
+ clear_values_derived_from_example_status_persistence_file_path
577
+ end
578
+
579
+ # @private
580
+ def reset
581
+ @spec_files_loaded = false
582
+ reset_reporter
583
+ end
584
+
585
+ # @private
586
+ def reset_reporter
587
+ @reporter = nil
588
+ @formatter_loader = nil
589
+ @output_wrapper = nil
590
+ end
591
+
592
+ # @private
593
+ def reset_filters
594
+ self.filter_manager = FilterManager.new
595
+ filter_manager.include_only(
596
+ Metadata.deep_hash_dup(static_config_filter_manager.inclusions.rules)
597
+ )
598
+ filter_manager.exclude_only(
599
+ Metadata.deep_hash_dup(static_config_filter_manager.exclusions.rules)
600
+ )
601
+ end
602
+
603
+ # @overload add_setting(name)
604
+ # @overload add_setting(name, opts)
605
+ # @option opts [Symbol] :default
606
+ #
607
+ # Set a default value for the generated getter and predicate methods:
608
+ #
609
+ # add_setting(:foo, :default => "default value")
610
+ #
611
+ # @option opts [Symbol] :alias_with
612
+ #
613
+ # Use `:alias_with` to alias the setter, getter, and predicate to
614
+ # another name, or names:
615
+ #
616
+ # add_setting(:foo, :alias_with => :bar)
617
+ # add_setting(:foo, :alias_with => [:bar, :baz])
618
+ #
619
+ # Adds a custom setting to the RSpec.configuration object.
620
+ #
621
+ # RSpec.configuration.add_setting :foo
622
+ #
623
+ # Used internally and by extension frameworks like rspec-rails, so they
624
+ # can add config settings that are domain specific. For example:
625
+ #
626
+ # RSpec.configure do |c|
627
+ # c.add_setting :use_transactional_fixtures,
628
+ # :default => true,
629
+ # :alias_with => :use_transactional_examples
630
+ # end
631
+ #
632
+ # `add_setting` creates three methods on the configuration object, a
633
+ # setter, a getter, and a predicate:
634
+ #
635
+ # RSpec.configuration.foo=(value)
636
+ # RSpec.configuration.foo
637
+ # RSpec.configuration.foo? # Returns true if foo returns anything but nil or false.
638
+ def add_setting(name, opts={})
639
+ default = opts.delete(:default)
640
+ (class << self; self; end).class_exec do
641
+ add_setting(name, opts)
642
+ end
643
+ __send__("#{name}=", default) if default
644
+ end
645
+
646
+ # Returns the configured mock framework adapter module.
647
+ # @return [Symbol]
648
+ def mock_framework
649
+ if @mock_framework.nil?
650
+ begin
651
+ mock_with :rspec
652
+ rescue LoadError
653
+ mock_with :nothing
654
+ end
655
+ end
656
+ @mock_framework
657
+ end
658
+
659
+ # Delegates to mock_framework=(framework).
660
+ def mock_framework=(framework)
661
+ mock_with framework
662
+ end
663
+
664
+ # Regexps used to exclude lines from backtraces.
665
+ #
666
+ # Excludes lines from ruby (and jruby) source, installed gems, anything
667
+ # in any "bin" directory, and any of the RSpec libs (outside gem
668
+ # installs) by default.
669
+ #
670
+ # You can modify the list via the getter, or replace it with the setter.
671
+ #
672
+ # To override this behaviour and display a full backtrace, use
673
+ # `--backtrace` on the command line, in a `.rspec` file, or in the
674
+ # `rspec_options` attribute of RSpec's rake task.
675
+ # @return [Array<Regexp>]
676
+ def backtrace_exclusion_patterns
677
+ @backtrace_formatter.exclusion_patterns
678
+ end
679
+
680
+ # Set regular expressions used to exclude lines in backtrace.
681
+ # @param patterns [Array<Regexp>] set backtrace_formatter exlusion_patterns
682
+ def backtrace_exclusion_patterns=(patterns)
683
+ @backtrace_formatter.exclusion_patterns = patterns
684
+ end
685
+
686
+ # Regexps used to include lines in backtraces.
687
+ #
688
+ # Defaults to [Regexp.new Dir.getwd].
689
+ #
690
+ # Lines that match an exclusion _and_ an inclusion pattern
691
+ # will be included.
692
+ #
693
+ # You can modify the list via the getter, or replace it with the setter.
694
+ # @return [Array<Regexp>]
695
+ def backtrace_inclusion_patterns
696
+ @backtrace_formatter.inclusion_patterns
697
+ end
698
+
699
+ # Set regular expressions used to include lines in backtrace.
700
+ # @attr patterns [Array<Regexp>] set backtrace_formatter inclusion_patterns
701
+ def backtrace_inclusion_patterns=(patterns)
702
+ @backtrace_formatter.inclusion_patterns = patterns
703
+ end
704
+
705
+ # Adds {#backtrace_exclusion_patterns} that will filter lines from
706
+ # the named gems from backtraces.
707
+ #
708
+ # @param gem_names [Array<String>] Names of the gems to filter
709
+ #
710
+ # @example
711
+ # RSpec.configure do |config|
712
+ # config.filter_gems_from_backtrace "rack", "rake"
713
+ # end
714
+ #
715
+ # @note The patterns this adds will match the named gems in their common
716
+ # locations (e.g. system gems, vendored with bundler, installed as a
717
+ # :git dependency with bundler, etc) but is not guaranteed to work for
718
+ # all possible gem locations. For example, if you have the gem source
719
+ # in a directory with a completely unrelated name, and use bundler's
720
+ # :path option, this will not filter it.
721
+ def filter_gems_from_backtrace(*gem_names)
722
+ gem_names.each do |name|
723
+ @backtrace_formatter.filter_gem(name)
724
+ end
725
+ end
726
+
727
+ # @private
728
+ MOCKING_ADAPTERS = {
729
+ :rspec => :RSpec,
730
+ :flexmock => :Flexmock,
731
+ :rr => :RR,
732
+ :mocha => :Mocha,
733
+ :nothing => :Null
734
+ }
735
+
736
+ # Sets the mock framework adapter module.
737
+ #
738
+ # `framework` can be a Symbol or a Module.
739
+ #
740
+ # Given any of `:rspec`, `:mocha`, `:flexmock`, or `:rr`, configures the
741
+ # named framework.
742
+ #
743
+ # Given `:nothing`, configures no framework. Use this if you don't use
744
+ # any mocking framework to save a little bit of overhead.
745
+ #
746
+ # Given a Module, includes that module in every example group. The module
747
+ # should adhere to RSpec's mock framework adapter API:
748
+ #
749
+ # setup_mocks_for_rspec
750
+ # - called before each example
751
+ #
752
+ # verify_mocks_for_rspec
753
+ # - called after each example if the example hasn't yet failed.
754
+ # Framework should raise an exception when expectations fail
755
+ #
756
+ # teardown_mocks_for_rspec
757
+ # - called after verify_mocks_for_rspec (even if there are errors)
758
+ #
759
+ # If the module responds to `configuration` and `mock_with` receives a
760
+ # block, it will yield the configuration object to the block e.g.
761
+ #
762
+ # config.mock_with OtherMockFrameworkAdapter do |mod_config|
763
+ # mod_config.custom_setting = true
764
+ # end
765
+ def mock_with(framework)
766
+ framework_module =
767
+ if framework.is_a?(Module)
768
+ framework
769
+ else
770
+ const_name = MOCKING_ADAPTERS.fetch(framework) do
771
+ raise ArgumentError,
772
+ "Unknown mocking framework: #{framework.inspect}. " \
773
+ "Pass a module or one of #{MOCKING_ADAPTERS.keys.inspect}"
774
+ end
775
+
776
+ RSpec::Support.require_rspec_core "mocking_adapters/#{const_name.to_s.downcase}"
777
+ RSpec::Core::MockingAdapters.const_get(const_name)
778
+ end
779
+
780
+ new_name, old_name = [framework_module, @mock_framework].map do |mod|
781
+ mod.respond_to?(:framework_name) ? mod.framework_name : :unnamed
782
+ end
783
+
784
+ unless new_name == old_name
785
+ assert_no_example_groups_defined(:mock_framework)
786
+ end
787
+
788
+ if block_given?
789
+ raise "#{framework_module} must respond to `configuration` so that " \
790
+ "mock_with can yield it." unless framework_module.respond_to?(:configuration)
791
+ yield framework_module.configuration
792
+ end
793
+
794
+ @mock_framework = framework_module
795
+ end
796
+
797
+ # Returns the configured expectation framework adapter module(s)
798
+ def expectation_frameworks
799
+ if @expectation_frameworks.empty?
800
+ begin
801
+ expect_with :rspec
802
+ rescue LoadError
803
+ expect_with Module.new
804
+ end
805
+ end
806
+ @expectation_frameworks
807
+ end
808
+
809
+ # Delegates to expect_with(framework).
810
+ def expectation_framework=(framework)
811
+ expect_with(framework)
812
+ end
813
+
814
+ # Sets the expectation framework module(s) to be included in each example
815
+ # group.
816
+ #
817
+ # `frameworks` can be `:rspec`, `:test_unit`, `:minitest`, a custom
818
+ # module, or any combination thereof:
819
+ #
820
+ # config.expect_with :rspec
821
+ # config.expect_with :test_unit
822
+ # config.expect_with :minitest
823
+ # config.expect_with :rspec, :minitest
824
+ # config.expect_with OtherExpectationFramework
825
+ #
826
+ # RSpec will translate `:rspec`, `:minitest`, and `:test_unit` into the
827
+ # appropriate modules.
828
+ #
829
+ # ## Configuration
830
+ #
831
+ # If the module responds to `configuration`, `expect_with` will
832
+ # yield the `configuration` object if given a block:
833
+ #
834
+ # config.expect_with OtherExpectationFramework do |custom_config|
835
+ # custom_config.custom_setting = true
836
+ # end
837
+ def expect_with(*frameworks)
838
+ modules = frameworks.map do |framework|
839
+ case framework
840
+ when Module
841
+ framework
842
+ when :rspec
843
+ require 'rspec/expectations'
844
+
845
+ # Tag this exception class so our exception formatting logic knows
846
+ # that it satisfies the `MultipleExceptionError` interface.
847
+ ::RSpec::Expectations::MultipleExpectationsNotMetError.__send__(
848
+ :include, MultipleExceptionError::InterfaceTag
849
+ )
850
+
851
+ ::RSpec::Matchers
852
+ when :test_unit
853
+ require 'rspec/core/test_unit_assertions_adapter'
854
+ ::RSpec::Core::TestUnitAssertionsAdapter
855
+ when :minitest
856
+ require 'rspec/core/minitest_assertions_adapter'
857
+ ::RSpec::Core::MinitestAssertionsAdapter
858
+ else
859
+ raise ArgumentError, "#{framework.inspect} is not supported"
860
+ end
861
+ end
862
+
863
+ if (modules - @expectation_frameworks).any?
864
+ assert_no_example_groups_defined(:expect_with)
865
+ end
866
+
867
+ if block_given?
868
+ raise "expect_with only accepts a block with a single argument. " \
869
+ "Call expect_with #{modules.length} times, " \
870
+ "once with each argument, instead." if modules.length > 1
871
+ raise "#{modules.first} must respond to `configuration` so that " \
872
+ "expect_with can yield it." unless modules.first.respond_to?(:configuration)
873
+ yield modules.first.configuration
874
+ end
875
+
876
+ @expectation_frameworks.push(*modules)
877
+ end
878
+
879
+ # Check if full backtrace is enabled.
880
+ # @return [Boolean] is full backtrace enabled
881
+ def full_backtrace?
882
+ @backtrace_formatter.full_backtrace?
883
+ end
884
+
885
+ # Toggle full backtrace.
886
+ # @attr true_or_false [Boolean] toggle full backtrace display
887
+ def full_backtrace=(true_or_false)
888
+ @backtrace_formatter.full_backtrace = true_or_false
889
+ end
890
+
891
+ # Enables color output if the output is a TTY. As of RSpec 3.6, this is
892
+ # the default behavior and this option is retained only for backwards
893
+ # compatibility.
894
+ #
895
+ # @deprecated No longer recommended because of complex behavior. Instead,
896
+ # rely on the fact that TTYs will display color by default, or set
897
+ # {#color_mode} to :on to display color on a non-TTY output.
898
+ # @see color_mode
899
+ # @see color_enabled?
900
+ # @return [Boolean]
901
+ def color
902
+ value_for(:color) { @color }
903
+ end
904
+
905
+ # The mode for determining whether to display output in color. One of:
906
+ #
907
+ # - :automatic - the output will be in color if the output is a TTY (the
908
+ # default)
909
+ # - :on - the output will be in color, whether or not the output is a TTY
910
+ # - :off - the output will not be in color
911
+ #
912
+ # @see color_enabled?
913
+ # @return [Boolean]
914
+ def color_mode
915
+ value_for(:color_mode) { @color_mode }
916
+ end
917
+
918
+ # Check if color is enabled for a particular output.
919
+ # @param output [IO] an output stream to use, defaults to the current
920
+ # `output_stream`
921
+ # @return [Boolean]
922
+ def color_enabled?(output=output_stream)
923
+ case color_mode
924
+ when :on then true
925
+ when :off then false
926
+ else # automatic
927
+ output_to_tty?(output) || (color && tty?)
928
+ end
929
+ end
930
+
931
+ # Set the color mode.
932
+ attr_writer :color_mode
933
+
934
+ # Toggle output color.
935
+ #
936
+ # @deprecated No longer recommended because of complex behavior. Instead,
937
+ # rely on the fact that TTYs will display color by default, or set
938
+ # {:color_mode} to :on to display color on a non-TTY output.
939
+ attr_writer :color
940
+
941
+ # @private
942
+ def libs=(libs)
943
+ libs.map do |lib|
944
+ @libs.unshift lib
945
+ $LOAD_PATH.unshift lib
946
+ end
947
+ end
948
+
949
+ # Run examples matching on `description` in all files to run.
950
+ # @param description [String, Regexp] the pattern to filter on
951
+ def full_description=(description)
952
+ filter_run :full_description => Regexp.union(*Array(description).map { |d| Regexp.new(d) })
953
+ end
954
+
955
+ # @return [Array] full description filter
956
+ def full_description
957
+ filter.fetch :full_description, nil
958
+ end
959
+
960
+ # @overload add_formatter(formatter)
961
+ # @overload add_formatter(formatter, output)
962
+ #
963
+ # @param formatter [Class, String, Object] formatter to use. Can be any of the
964
+ # string values supported from the CLI (`p`/`progress`,
965
+ # `d`/`doc`/`documentation`, `h`/`html`, or `j`/`json`), any
966
+ # class that implements the formatter protocol and has registered
967
+ # itself with RSpec as a formatter, or a formatter instance.
968
+ # @param output [String, IO] where the formatter will write its output.
969
+ # Can be an IO object or a string path to a file. If not provided,
970
+ # the configured `output_stream` (`$stdout`, by default) will be used.
971
+ #
972
+ # Adds a formatter to the set RSpec will use for this run.
973
+ #
974
+ # @see RSpec::Core::Formatters::Protocol
975
+ def add_formatter(formatter, output=output_wrapper)
976
+ formatter_loader.add(formatter, output)
977
+ end
978
+ alias_method :formatter=, :add_formatter
979
+
980
+ # The formatter that will be used if no formatter has been set.
981
+ # Defaults to 'progress'.
982
+ def default_formatter
983
+ formatter_loader.default_formatter
984
+ end
985
+
986
+ # Sets a fallback formatter to use if none other has been set.
987
+ #
988
+ # @example
989
+ #
990
+ # RSpec.configure do |rspec|
991
+ # rspec.default_formatter = 'doc'
992
+ # end
993
+ def default_formatter=(value)
994
+ formatter_loader.default_formatter = value
995
+ end
996
+
997
+ # Returns a duplicate of the formatters currently loaded in
998
+ # the `FormatterLoader` for introspection.
999
+ #
1000
+ # Note as this is a duplicate, any mutations will be disregarded.
1001
+ #
1002
+ # @return [Array] the formatters currently loaded
1003
+ def formatters
1004
+ formatter_loader.formatters.dup
1005
+ end
1006
+
1007
+ # @private
1008
+ def formatter_loader
1009
+ @formatter_loader ||= Formatters::Loader.new(Reporter.new(self))
1010
+ end
1011
+
1012
+ # @private
1013
+ #
1014
+ # This buffer is used to capture all messages sent to the reporter during
1015
+ # reporter initialization. It can then replay those messages after the
1016
+ # formatter is correctly initialized. Otherwise, deprecation warnings
1017
+ # during formatter initialization can cause an infinite loop.
1018
+ class DeprecationReporterBuffer
1019
+ def initialize
1020
+ @calls = []
1021
+ end
1022
+
1023
+ def deprecation(*args)
1024
+ @calls << args
1025
+ end
1026
+
1027
+ def play_onto(reporter)
1028
+ @calls.each do |args|
1029
+ reporter.deprecation(*args)
1030
+ end
1031
+ end
1032
+ end
1033
+
1034
+ # @return [RSpec::Core::Reporter] the currently configured reporter
1035
+ def reporter
1036
+ # @reporter_buffer should only ever be set in this method to cover
1037
+ # initialization of @reporter.
1038
+ @reporter_buffer || @reporter ||=
1039
+ begin
1040
+ @reporter_buffer = DeprecationReporterBuffer.new
1041
+ formatter_loader.prepare_default output_wrapper, deprecation_stream
1042
+ @reporter_buffer.play_onto(formatter_loader.reporter)
1043
+ @reporter_buffer = nil
1044
+ formatter_loader.reporter
1045
+ end
1046
+ end
1047
+
1048
+ # @api private
1049
+ #
1050
+ # Defaults `profile_examples` to 10 examples when `@profile_examples` is
1051
+ # `true`.
1052
+ def profile_examples
1053
+ profile = value_for(:profile_examples) { @profile_examples }
1054
+ if profile && !profile.is_a?(Integer)
1055
+ 10
1056
+ else
1057
+ profile
1058
+ end
1059
+ end
1060
+
1061
+ # @private
1062
+ def files_or_directories_to_run=(*files)
1063
+ files = files.flatten
1064
+
1065
+ if (command == 'rspec' || Runner.running_in_drb?) && default_path && files.empty?
1066
+ files << default_path
1067
+ end
1068
+
1069
+ @files_or_directories_to_run = files
1070
+ @files_to_run = nil
1071
+ end
1072
+
1073
+ # The spec files RSpec will run.
1074
+ # @return [Array] specified files about to run
1075
+ def files_to_run
1076
+ @files_to_run ||= get_files_to_run(@files_or_directories_to_run)
1077
+ end
1078
+
1079
+ # @private
1080
+ def last_run_statuses
1081
+ @last_run_statuses ||= Hash.new(UNKNOWN_STATUS).tap do |statuses|
1082
+ if (path = example_status_persistence_file_path)
1083
+ begin
1084
+ ExampleStatusPersister.load_from(path).inject(statuses) do |hash, example|
1085
+ status = example[:status]
1086
+ status = UNKNOWN_STATUS unless VALID_STATUSES.include?(status)
1087
+ hash[example.fetch(:example_id)] = status
1088
+ hash
1089
+ end
1090
+ rescue SystemCallError => e
1091
+ RSpec.warning "Could not read from #{path.inspect} (configured as " \
1092
+ "`config.example_status_persistence_file_path`) due " \
1093
+ "to a system error: #{e.inspect}. Please check that " \
1094
+ "the config option is set to an accessible, valid " \
1095
+ "file path", :call_site => nil
1096
+ end
1097
+ end
1098
+ end
1099
+ end
1100
+
1101
+ # @private
1102
+ UNKNOWN_STATUS = "unknown".freeze
1103
+
1104
+ # @private
1105
+ FAILED_STATUS = "failed".freeze
1106
+
1107
+ # @private
1108
+ PASSED_STATUS = "passed".freeze
1109
+
1110
+ # @private
1111
+ PENDING_STATUS = "pending".freeze
1112
+
1113
+ # @private
1114
+ VALID_STATUSES = [UNKNOWN_STATUS, FAILED_STATUS, PASSED_STATUS, PENDING_STATUS]
1115
+
1116
+ # @private
1117
+ def spec_files_with_failures
1118
+ @spec_files_with_failures ||= last_run_statuses.inject(Set.new) do |files, (id, status)|
1119
+ files << Example.parse_id(id).first if status == FAILED_STATUS
1120
+ files
1121
+ end.to_a
1122
+ end
1123
+
1124
+ # Creates a method that delegates to `example` including the submitted
1125
+ # `args`. Used internally to add variants of `example` like `pending`:
1126
+ # @param name [String] example name alias
1127
+ # @param args [Array<Symbol>, Hash] metadata for the generated example
1128
+ #
1129
+ # @note The specific example alias below (`pending`) is already
1130
+ # defined for you.
1131
+ # @note Use with caution. This extends the language used in your
1132
+ # specs, but does not add any additional documentation. We use this
1133
+ # in RSpec to define methods like `focus` and `xit`, but we also add
1134
+ # docs for those methods.
1135
+ #
1136
+ # @example
1137
+ # RSpec.configure do |config|
1138
+ # config.alias_example_to :pending, :pending => true
1139
+ # end
1140
+ #
1141
+ # # This lets you do this:
1142
+ #
1143
+ # RSpec.describe Thing do
1144
+ # pending "does something" do
1145
+ # thing = Thing.new
1146
+ # end
1147
+ # end
1148
+ #
1149
+ # # ... which is the equivalent of
1150
+ #
1151
+ # RSpec.describe Thing do
1152
+ # it "does something", :pending => true do
1153
+ # thing = Thing.new
1154
+ # end
1155
+ # end
1156
+ def alias_example_to(name, *args)
1157
+ extra_options = Metadata.build_hash_from(args)
1158
+ RSpec::Core::ExampleGroup.define_example_method(name, extra_options)
1159
+ end
1160
+
1161
+ # Creates a method that defines an example group with the provided
1162
+ # metadata. Can be used to define example group/metadata shortcuts.
1163
+ #
1164
+ # @example
1165
+ # RSpec.configure do |config|
1166
+ # config.alias_example_group_to :describe_model, :type => :model
1167
+ # end
1168
+ #
1169
+ # shared_context_for "model tests", :type => :model do
1170
+ # # define common model test helper methods, `let` declarations, etc
1171
+ # end
1172
+ #
1173
+ # # This lets you do this:
1174
+ #
1175
+ # RSpec.describe_model User do
1176
+ # end
1177
+ #
1178
+ # # ... which is the equivalent of
1179
+ #
1180
+ # RSpec.describe User, :type => :model do
1181
+ # end
1182
+ #
1183
+ # @note The defined aliased will also be added to the top level
1184
+ # (e.g. `main` and from within modules) if
1185
+ # `expose_dsl_globally` is set to true.
1186
+ # @see #alias_example_to
1187
+ # @see #expose_dsl_globally=
1188
+ def alias_example_group_to(new_name, *args)
1189
+ extra_options = Metadata.build_hash_from(args)
1190
+ RSpec::Core::ExampleGroup.define_example_group_method(new_name, extra_options)
1191
+ end
1192
+
1193
+ # Define an alias for it_should_behave_like that allows different
1194
+ # language (like "it_has_behavior" or "it_behaves_like") to be
1195
+ # employed when including shared examples.
1196
+ #
1197
+ # @example
1198
+ # RSpec.configure do |config|
1199
+ # config.alias_it_behaves_like_to(:it_has_behavior, 'has behavior:')
1200
+ # end
1201
+ #
1202
+ # # allows the user to include a shared example group like:
1203
+ #
1204
+ # RSpec.describe Entity do
1205
+ # it_has_behavior 'sortability' do
1206
+ # let(:sortable) { Entity.new }
1207
+ # end
1208
+ # end
1209
+ #
1210
+ # # which is reported in the output as:
1211
+ # # Entity
1212
+ # # has behavior: sortability
1213
+ # # ...sortability examples here
1214
+ #
1215
+ # @note Use with caution. This extends the language used in your
1216
+ # specs, but does not add any additional documentation. We use this
1217
+ # in RSpec to define `it_should_behave_like` (for backward
1218
+ # compatibility), but we also add docs for that method.
1219
+ def alias_it_behaves_like_to(new_name, report_label='')
1220
+ RSpec::Core::ExampleGroup.define_nested_shared_group_method(new_name, report_label)
1221
+ end
1222
+ alias_method :alias_it_should_behave_like_to, :alias_it_behaves_like_to
1223
+
1224
+ # Adds key/value pairs to the `inclusion_filter`. If `args`
1225
+ # includes any symbols that are not part of the hash, each symbol
1226
+ # is treated as a key in the hash with the value `true`.
1227
+ #
1228
+ # ### Note
1229
+ #
1230
+ # Filters set using this method can be overridden from the command line
1231
+ # or config files (e.g. `.rspec`).
1232
+ #
1233
+ # @example
1234
+ # # Given this declaration.
1235
+ # describe "something", :foo => 'bar' do
1236
+ # # ...
1237
+ # end
1238
+ #
1239
+ # # Any of the following will include that group.
1240
+ # config.filter_run_including :foo => 'bar'
1241
+ # config.filter_run_including :foo => /^ba/
1242
+ # config.filter_run_including :foo => lambda {|v| v == 'bar'}
1243
+ # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
1244
+ #
1245
+ # # Given a proc with an arity of 1, the lambda is passed the value
1246
+ # # related to the key, e.g.
1247
+ # config.filter_run_including :foo => lambda {|v| v == 'bar'}
1248
+ #
1249
+ # # Given a proc with an arity of 2, the lambda is passed the value
1250
+ # # related to the key, and the metadata itself e.g.
1251
+ # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
1252
+ #
1253
+ # filter_run_including :foo # same as filter_run_including :foo => true
1254
+ def filter_run_including(*args)
1255
+ meta = Metadata.build_hash_from(args, :warn_about_example_group_filtering)
1256
+ filter_manager.include_with_low_priority meta
1257
+ static_config_filter_manager.include_with_low_priority Metadata.deep_hash_dup(meta)
1258
+ end
1259
+ alias_method :filter_run, :filter_run_including
1260
+
1261
+ # Applies the provided filter only if any of examples match, in constrast
1262
+ # to {#filter_run}, which always applies even if no examples match, in
1263
+ # which case no examples will be run. This allows you to leave configured
1264
+ # filters in place that are intended only for temporary use. The most common
1265
+ # example is focus filtering: `config.filter_run_when_matching :focus`.
1266
+ # With that configured, you can temporarily focus an example or group
1267
+ # by tagging it with `:focus` metadata, or prefixing it with an `f`
1268
+ # (as in `fdescribe`, `fcontext` and `fit`) since those are aliases for
1269
+ # `describe`/`context`/`it` with `:focus` metadata.
1270
+ def filter_run_when_matching(*args)
1271
+ when_first_matching_example_defined(*args) do
1272
+ filter_run(*args)
1273
+ end
1274
+ end
1275
+
1276
+ # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't
1277
+ # want any inclusion filter at all.
1278
+ #
1279
+ # ### Warning
1280
+ #
1281
+ # This overrides any inclusion filters/tags set on the command line or in
1282
+ # configuration files.
1283
+ def inclusion_filter=(filter)
1284
+ meta = Metadata.build_hash_from([filter], :warn_about_example_group_filtering)
1285
+ filter_manager.include_only meta
1286
+ end
1287
+
1288
+ alias_method :filter=, :inclusion_filter=
1289
+
1290
+ # Returns the `inclusion_filter`. If none has been set, returns an empty
1291
+ # hash.
1292
+ def inclusion_filter
1293
+ filter_manager.inclusions
1294
+ end
1295
+
1296
+ alias_method :filter, :inclusion_filter
1297
+
1298
+ # Adds key/value pairs to the `exclusion_filter`. If `args`
1299
+ # includes any symbols that are not part of the hash, each symbol
1300
+ # is treated as a key in the hash with the value `true`.
1301
+ #
1302
+ # ### Note
1303
+ #
1304
+ # Filters set using this method can be overridden from the command line
1305
+ # or config files (e.g. `.rspec`).
1306
+ #
1307
+ # @example
1308
+ # # Given this declaration.
1309
+ # describe "something", :foo => 'bar' do
1310
+ # # ...
1311
+ # end
1312
+ #
1313
+ # # Any of the following will exclude that group.
1314
+ # config.filter_run_excluding :foo => 'bar'
1315
+ # config.filter_run_excluding :foo => /^ba/
1316
+ # config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
1317
+ # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
1318
+ #
1319
+ # # Given a proc with an arity of 1, the lambda is passed the value
1320
+ # # related to the key, e.g.
1321
+ # config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
1322
+ #
1323
+ # # Given a proc with an arity of 2, the lambda is passed the value
1324
+ # # related to the key, and the metadata itself e.g.
1325
+ # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
1326
+ #
1327
+ # filter_run_excluding :foo # same as filter_run_excluding :foo => true
1328
+ def filter_run_excluding(*args)
1329
+ meta = Metadata.build_hash_from(args, :warn_about_example_group_filtering)
1330
+ filter_manager.exclude_with_low_priority meta
1331
+ static_config_filter_manager.exclude_with_low_priority Metadata.deep_hash_dup(meta)
1332
+ end
1333
+
1334
+ # Clears and reassigns the `exclusion_filter`. Set to `nil` if you don't
1335
+ # want any exclusion filter at all.
1336
+ #
1337
+ # ### Warning
1338
+ #
1339
+ # This overrides any exclusion filters/tags set on the command line or in
1340
+ # configuration files.
1341
+ def exclusion_filter=(filter)
1342
+ meta = Metadata.build_hash_from([filter], :warn_about_example_group_filtering)
1343
+ filter_manager.exclude_only meta
1344
+ end
1345
+
1346
+ # Returns the `exclusion_filter`. If none has been set, returns an empty
1347
+ # hash.
1348
+ def exclusion_filter
1349
+ filter_manager.exclusions
1350
+ end
1351
+
1352
+ # Tells RSpec to include `mod` in example groups. Methods defined in
1353
+ # `mod` are exposed to examples (not example groups). Use `filters` to
1354
+ # constrain the groups or examples in which to include the module.
1355
+ #
1356
+ # @example
1357
+ #
1358
+ # module AuthenticationHelpers
1359
+ # def login_as(user)
1360
+ # # ...
1361
+ # end
1362
+ # end
1363
+ #
1364
+ # module PreferencesHelpers
1365
+ # def preferences(user, preferences = {})
1366
+ # # ...
1367
+ # end
1368
+ # end
1369
+ #
1370
+ # module UserHelpers
1371
+ # def users(username)
1372
+ # # ...
1373
+ # end
1374
+ # end
1375
+ #
1376
+ # RSpec.configure do |config|
1377
+ # config.include(UserHelpers) # included in all groups
1378
+ #
1379
+ # # included in examples with `:preferences` metadata
1380
+ # config.include(PreferenceHelpers, :preferences)
1381
+ #
1382
+ # # included in examples with `:type => :request` metadata
1383
+ # config.include(AuthenticationHelpers, :type => :request)
1384
+ # end
1385
+ #
1386
+ # describe "edit profile", :preferences, :type => :request do
1387
+ # it "can be viewed by owning user" do
1388
+ # login_as preferences(users(:jdoe), :lang => 'es')
1389
+ # get "/profiles/jdoe"
1390
+ # assert_select ".username", :text => 'jdoe'
1391
+ # end
1392
+ # end
1393
+ #
1394
+ # @note Filtered module inclusions can also be applied to
1395
+ # individual examples that have matching metadata. Just like
1396
+ # Ruby's object model is that every object has a singleton class
1397
+ # which has only a single instance, RSpec's model is that every
1398
+ # example has a singleton example group containing just the one
1399
+ # example.
1400
+ #
1401
+ # @see #include_context
1402
+ # @see #extend
1403
+ # @see #prepend
1404
+ def include(mod, *filters)
1405
+ define_mixed_in_module(mod, filters, @include_modules, :include) do |group|
1406
+ safe_include(mod, group)
1407
+ end
1408
+ end
1409
+
1410
+ # Tells RSpec to include the named shared example group in example groups.
1411
+ # Use `filters` to constrain the groups or examples in which to include
1412
+ # the example group.
1413
+ #
1414
+ # @example
1415
+ #
1416
+ # RSpec.shared_context "example admin user" do
1417
+ # let(:admin_user) { create_user(:admin) }
1418
+ # end
1419
+ #
1420
+ # RSpec.shared_context "example guest user" do
1421
+ # let(:guest_user) { create_user(:guest) }
1422
+ # end
1423
+ #
1424
+ # RSpec.configure do |config|
1425
+ # config.include_context "example guest user", :type => :request
1426
+ # config.include_context "example admin user", :admin, :type => :request
1427
+ # end
1428
+ #
1429
+ # RSpec.describe "The admin page", :type => :request do
1430
+ # it "can be viewed by admins", :admin do
1431
+ # login_with admin_user
1432
+ # get "/admin"
1433
+ # expect(response).to be_ok
1434
+ # end
1435
+ #
1436
+ # it "cannot be viewed by guests" do
1437
+ # login_with guest_user
1438
+ # get "/admin"
1439
+ # expect(response).to be_forbidden
1440
+ # end
1441
+ # end
1442
+ #
1443
+ # @note Filtered context inclusions can also be applied to
1444
+ # individual examples that have matching metadata. Just like
1445
+ # Ruby's object model is that every object has a singleton class
1446
+ # which has only a single instance, RSpec's model is that every
1447
+ # example has a singleton example group containing just the one
1448
+ # example.
1449
+ #
1450
+ # @see #include
1451
+ def include_context(shared_group_name, *filters)
1452
+ shared_module = world.shared_example_group_registry.find([:main], shared_group_name)
1453
+ include shared_module, *filters
1454
+ end
1455
+
1456
+ # Tells RSpec to extend example groups with `mod`. Methods defined in
1457
+ # `mod` are exposed to example groups (not examples). Use `filters` to
1458
+ # constrain the groups to extend.
1459
+ #
1460
+ # Similar to `include`, but behavior is added to example groups, which
1461
+ # are classes, rather than the examples, which are instances of those
1462
+ # classes.
1463
+ #
1464
+ # @example
1465
+ #
1466
+ # module UiHelpers
1467
+ # def run_in_browser
1468
+ # # ...
1469
+ # end
1470
+ # end
1471
+ #
1472
+ # module PermissionHelpers
1473
+ # def define_permissions
1474
+ # # ...
1475
+ # end
1476
+ # end
1477
+ #
1478
+ # RSpec.configure do |config|
1479
+ # config.extend(UiHelpers, :type => :request)
1480
+ # config.extend(PermissionHelpers, :with_permissions, :type => :request)
1481
+ # end
1482
+ #
1483
+ # describe "edit profile", :with_permissions, :type => :request do
1484
+ # run_in_browser
1485
+ # define_permissions
1486
+ #
1487
+ # it "does stuff in the client" do
1488
+ # # ...
1489
+ # end
1490
+ # end
1491
+ #
1492
+ # @see #include
1493
+ # @see #prepend
1494
+ def extend(mod, *filters)
1495
+ define_mixed_in_module(mod, filters, @extend_modules, :extend) do |group|
1496
+ safe_extend(mod, group)
1497
+ end
1498
+ end
1499
+
1500
+ if RSpec::Support::RubyFeatures.module_prepends_supported?
1501
+ # Tells RSpec to prepend example groups with `mod`. Methods defined in
1502
+ # `mod` are exposed to examples (not example groups). Use `filters` to
1503
+ # constrain the groups in which to prepend the module.
1504
+ #
1505
+ # Similar to `include`, but module is included before the example group's class
1506
+ # in the ancestor chain.
1507
+ #
1508
+ # @example
1509
+ #
1510
+ # module OverrideMod
1511
+ # def override_me
1512
+ # "overridden"
1513
+ # end
1514
+ # end
1515
+ #
1516
+ # RSpec.configure do |config|
1517
+ # config.prepend(OverrideMod, :method => :prepend)
1518
+ # end
1519
+ #
1520
+ # describe "overriding example's class", :method => :prepend do
1521
+ # it "finds the user" do
1522
+ # self.class.class_eval do
1523
+ # def override_me
1524
+ # end
1525
+ # end
1526
+ # override_me # => "overridden"
1527
+ # # ...
1528
+ # end
1529
+ # end
1530
+ #
1531
+ # @see #include
1532
+ # @see #extend
1533
+ def prepend(mod, *filters)
1534
+ define_mixed_in_module(mod, filters, @prepend_modules, :prepend) do |group|
1535
+ safe_prepend(mod, group)
1536
+ end
1537
+ end
1538
+ end
1539
+
1540
+ # @private
1541
+ #
1542
+ # Used internally to extend a group with modules using `include`, `prepend` and/or
1543
+ # `extend`.
1544
+ def configure_group(group)
1545
+ group.hooks.register_globals(group, hooks)
1546
+
1547
+ configure_group_with group, @include_modules, :safe_include
1548
+ configure_group_with group, @extend_modules, :safe_extend
1549
+ configure_group_with group, @prepend_modules, :safe_prepend
1550
+ end
1551
+
1552
+ # @private
1553
+ #
1554
+ # Used internally to extend the singleton class of a single example's
1555
+ # example group instance with modules using `include` and/or `extend`.
1556
+ def configure_example(example, example_hooks)
1557
+ example_hooks.register_global_singleton_context_hooks(example, hooks)
1558
+ singleton_group = example.example_group_instance.singleton_class
1559
+
1560
+ # We replace the metadata so that SharedExampleGroupModule#included
1561
+ # has access to the example's metadata[:location].
1562
+ singleton_group.with_replaced_metadata(example.metadata) do
1563
+ modules = @include_modules.items_for(example.metadata)
1564
+ modules.each do |mod|
1565
+ safe_include(mod, example.example_group_instance.singleton_class)
1566
+ end
1567
+
1568
+ MemoizedHelpers.define_helpers_on(singleton_group) unless modules.empty?
1569
+ end
1570
+ end
1571
+
1572
+ # @private
1573
+ def requires=(paths)
1574
+ directories = ['lib', default_path].select { |p| File.directory? p }
1575
+ RSpec::Core::RubyProject.add_to_load_path(*directories)
1576
+ paths.each { |path| load_file_handling_errors(:require, path) }
1577
+ @requires += paths
1578
+ end
1579
+
1580
+ # @private
1581
+ def in_project_source_dir_regex
1582
+ regexes = project_source_dirs.map do |dir|
1583
+ /\A#{Regexp.escape(File.expand_path(dir))}\//
1584
+ end
1585
+
1586
+ Regexp.union(regexes)
1587
+ end
1588
+
1589
+ # @private
1590
+ def configure_mock_framework
1591
+ RSpec::Core::ExampleGroup.__send__(:include, mock_framework)
1592
+ conditionally_disable_mocks_monkey_patching
1593
+ end
1594
+
1595
+ # @private
1596
+ def configure_expectation_framework
1597
+ expectation_frameworks.each do |framework|
1598
+ RSpec::Core::ExampleGroup.__send__(:include, framework)
1599
+ end
1600
+ conditionally_disable_expectations_monkey_patching
1601
+ end
1602
+
1603
+ # @private
1604
+ def load_spec_files
1605
+ # Note which spec files world is already aware of.
1606
+ # This is generally only needed for when the user runs
1607
+ # `ruby path/to/spec.rb` (and loads `rspec/autorun`) --
1608
+ # in that case, the spec file was loaded by `ruby` and
1609
+ # isn't loaded by us here so we only know about it because
1610
+ # of an example group being registered in it.
1611
+ world.registered_example_group_files.each do |f|
1612
+ loaded_spec_files << f # the registered files are already expended absolute paths
1613
+ end
1614
+
1615
+ files_to_run.uniq.each do |f|
1616
+ file = File.expand_path(f)
1617
+ load_file_handling_errors(:load, file)
1618
+ loaded_spec_files << file
1619
+ end
1620
+
1621
+ @spec_files_loaded = true
1622
+ end
1623
+
1624
+ # @private
1625
+ DEFAULT_FORMATTER = lambda { |string| string }
1626
+
1627
+ # Formats the docstring output using the block provided.
1628
+ #
1629
+ # @example
1630
+ # # This will strip the descriptions of both examples and example
1631
+ # # groups.
1632
+ # RSpec.configure do |config|
1633
+ # config.format_docstrings { |s| s.strip }
1634
+ # end
1635
+ def format_docstrings(&block)
1636
+ @format_docstrings_block = block_given? ? block : DEFAULT_FORMATTER
1637
+ end
1638
+
1639
+ # @private
1640
+ def format_docstrings_block
1641
+ @format_docstrings_block ||= DEFAULT_FORMATTER
1642
+ end
1643
+
1644
+ # @private
1645
+ def self.delegate_to_ordering_manager(*methods)
1646
+ methods.each do |method|
1647
+ define_method method do |*args, &block|
1648
+ ordering_manager.__send__(method, *args, &block)
1649
+ end
1650
+ end
1651
+ end
1652
+
1653
+ # @!method seed=(value)
1654
+ #
1655
+ # Sets the seed value and sets the default global ordering to random.
1656
+ delegate_to_ordering_manager :seed=
1657
+
1658
+ # @!method seed
1659
+ # Seed for random ordering (default: generated randomly each run).
1660
+ #
1661
+ # When you run specs with `--order random`, RSpec generates a random seed
1662
+ # for the randomization and prints it to the `output_stream` (assuming
1663
+ # you're using RSpec's built-in formatters). If you discover an ordering
1664
+ # dependency (i.e. examples fail intermittently depending on order), set
1665
+ # this (on Configuration or on the command line with `--seed`) to run
1666
+ # using the same seed while you debug the issue.
1667
+ #
1668
+ # We recommend, actually, that you use the command line approach so you
1669
+ # don't accidentally leave the seed encoded.
1670
+ delegate_to_ordering_manager :seed
1671
+
1672
+ # @!method order=(value)
1673
+ #
1674
+ # Sets the default global ordering strategy. By default this can be one
1675
+ # of `:defined`, `:random`, but is customizable through the
1676
+ # `register_ordering` API. If order is set to `'rand:<seed>'`,
1677
+ # the seed will also be set.
1678
+ #
1679
+ # @see #register_ordering
1680
+ delegate_to_ordering_manager :order=
1681
+
1682
+ # @!method register_ordering(name)
1683
+ #
1684
+ # Registers a named ordering strategy that can later be
1685
+ # used to order an example group's subgroups by adding
1686
+ # `:order => <name>` metadata to the example group.
1687
+ #
1688
+ # @param name [Symbol] The name of the ordering.
1689
+ # @yield Block that will order the given examples or example groups
1690
+ # @yieldparam list [Array<RSpec::Core::Example>,
1691
+ # Array<RSpec::Core::ExampleGroup>] The examples or groups to order
1692
+ # @yieldreturn [Array<RSpec::Core::Example>,
1693
+ # Array<RSpec::Core::ExampleGroup>] The re-ordered examples or groups
1694
+ #
1695
+ # @example
1696
+ # RSpec.configure do |rspec|
1697
+ # rspec.register_ordering :reverse do |list|
1698
+ # list.reverse
1699
+ # end
1700
+ # end
1701
+ #
1702
+ # RSpec.describe 'MyClass', :order => :reverse do
1703
+ # # ...
1704
+ # end
1705
+ #
1706
+ # @note Pass the symbol `:global` to set the ordering strategy that
1707
+ # will be used to order the top-level example groups and any example
1708
+ # groups that do not have declared `:order` metadata.
1709
+ #
1710
+ # @example
1711
+ # RSpec.configure do |rspec|
1712
+ # rspec.register_ordering :global do |examples|
1713
+ # acceptance, other = examples.partition do |example|
1714
+ # example.metadata[:type] == :acceptance
1715
+ # end
1716
+ # other + acceptance
1717
+ # end
1718
+ # end
1719
+ #
1720
+ # RSpec.describe 'MyClass', :type => :acceptance do
1721
+ # # will run last
1722
+ # end
1723
+ #
1724
+ # RSpec.describe 'MyClass' do
1725
+ # # will run first
1726
+ # end
1727
+ #
1728
+ delegate_to_ordering_manager :register_ordering
1729
+
1730
+ # @private
1731
+ delegate_to_ordering_manager :seed_used?, :ordering_registry
1732
+
1733
+ # Set Ruby warnings on or off.
1734
+ def warnings=(value)
1735
+ $VERBOSE = !!value
1736
+ end
1737
+
1738
+ # @return [Boolean] Whether or not ruby warnings are enabled.
1739
+ def warnings?
1740
+ $VERBOSE
1741
+ end
1742
+
1743
+ # @private
1744
+ RAISE_ERROR_WARNING_NOTIFIER = lambda { |message| raise message }
1745
+
1746
+ # Turns warnings into errors. This can be useful when
1747
+ # you want RSpec to run in a 'strict' no warning situation.
1748
+ #
1749
+ # @example
1750
+ #
1751
+ # RSpec.configure do |rspec|
1752
+ # rspec.raise_on_warning = true
1753
+ # end
1754
+ def raise_on_warning=(value)
1755
+ if value
1756
+ RSpec::Support.warning_notifier = RAISE_ERROR_WARNING_NOTIFIER
1757
+ else
1758
+ RSpec::Support.warning_notifier = RSpec::Support::DEFAULT_WARNING_NOTIFIER
1759
+ end
1760
+ end
1761
+
1762
+ # Exposes the current running example via the named
1763
+ # helper method. RSpec 2.x exposed this via `example`,
1764
+ # but in RSpec 3.0, the example is instead exposed via
1765
+ # an arg yielded to `it`, `before`, `let`, etc. However,
1766
+ # some extension gems (such as Capybara) depend on the
1767
+ # RSpec 2.x's `example` method, so this config option
1768
+ # can be used to maintain compatibility.
1769
+ #
1770
+ # @param method_name [Symbol] the name of the helper method
1771
+ #
1772
+ # @example
1773
+ #
1774
+ # RSpec.configure do |rspec|
1775
+ # rspec.expose_current_running_example_as :example
1776
+ # end
1777
+ #
1778
+ # RSpec.describe MyClass do
1779
+ # before do
1780
+ # # `example` can be used here because of the above config.
1781
+ # do_something if example.metadata[:type] == "foo"
1782
+ # end
1783
+ # end
1784
+ def expose_current_running_example_as(method_name)
1785
+ ExposeCurrentExample.module_exec do
1786
+ extend RSpec::SharedContext
1787
+ let(method_name) { |ex| ex }
1788
+ end
1789
+
1790
+ include ExposeCurrentExample
1791
+ end
1792
+
1793
+ # @private
1794
+ module ExposeCurrentExample; end
1795
+
1796
+ # Turns deprecation warnings into errors, in order to surface
1797
+ # the full backtrace of the call site. This can be useful when
1798
+ # you need more context to address a deprecation than the
1799
+ # single-line call site normally provided.
1800
+ #
1801
+ # @example
1802
+ #
1803
+ # RSpec.configure do |rspec|
1804
+ # rspec.raise_errors_for_deprecations!
1805
+ # end
1806
+ def raise_errors_for_deprecations!
1807
+ self.deprecation_stream = Formatters::DeprecationFormatter::RaiseErrorStream.new
1808
+ end
1809
+
1810
+ # Enables zero monkey patching mode for RSpec. It removes monkey
1811
+ # patching of the top-level DSL methods (`describe`,
1812
+ # `shared_examples_for`, etc) onto `main` and `Module`, instead
1813
+ # requiring you to prefix these methods with `RSpec.`. It enables
1814
+ # expect-only syntax for rspec-mocks and rspec-expectations. It
1815
+ # simply disables monkey patching on whatever pieces of RSpec
1816
+ # the user is using.
1817
+ #
1818
+ # @note It configures rspec-mocks and rspec-expectations only
1819
+ # if the user is using those (either explicitly or implicitly
1820
+ # by not setting `mock_with` or `expect_with` to anything else).
1821
+ #
1822
+ # @note If the user uses this options with `mock_with :mocha`
1823
+ # (or similiar) they will still have monkey patching active
1824
+ # in their test environment from mocha.
1825
+ #
1826
+ # @example
1827
+ #
1828
+ # # It disables all monkey patching.
1829
+ # RSpec.configure do |config|
1830
+ # config.disable_monkey_patching!
1831
+ # end
1832
+ #
1833
+ # # Is an equivalent to
1834
+ # RSpec.configure do |config|
1835
+ # config.expose_dsl_globally = false
1836
+ #
1837
+ # config.mock_with :rspec do |mocks|
1838
+ # mocks.syntax = :expect
1839
+ # mocks.patch_marshal_to_support_partial_doubles = false
1840
+ # end
1841
+ #
1842
+ # config.expect_with :rspec do |expectations|
1843
+ # expectations.syntax = :expect
1844
+ # end
1845
+ # end
1846
+ def disable_monkey_patching!
1847
+ self.expose_dsl_globally = false
1848
+ self.disable_monkey_patching = true
1849
+ conditionally_disable_mocks_monkey_patching
1850
+ conditionally_disable_expectations_monkey_patching
1851
+ end
1852
+
1853
+ # @private
1854
+ attr_accessor :disable_monkey_patching
1855
+
1856
+ # Defines a callback that can assign derived metadata values.
1857
+ #
1858
+ # @param filters [Array<Symbol>, Hash] metadata filters that determine
1859
+ # which example or group metadata hashes the callback will be triggered
1860
+ # for. If none are given, the callback will be run against the metadata
1861
+ # hashes of all groups and examples.
1862
+ # @yieldparam metadata [Hash] original metadata hash from an example or
1863
+ # group. Mutate this in your block as needed.
1864
+ #
1865
+ # @example
1866
+ # RSpec.configure do |config|
1867
+ # # Tag all groups and examples in the spec/unit directory with
1868
+ # # :type => :unit
1869
+ # config.define_derived_metadata(:file_path => %r{/spec/unit/}) do |metadata|
1870
+ # metadata[:type] = :unit
1871
+ # end
1872
+ # end
1873
+ def define_derived_metadata(*filters, &block)
1874
+ meta = Metadata.build_hash_from(filters, :warn_about_example_group_filtering)
1875
+ @derived_metadata_blocks.append(block, meta)
1876
+ end
1877
+
1878
+ # Defines a callback that runs after the first example with matching
1879
+ # metadata is defined. If no examples are defined with matching metadata,
1880
+ # it will not get called at all.
1881
+ #
1882
+ # This can be used to ensure some setup is performed (such as bootstrapping
1883
+ # a DB or loading a specific file that adds significantly to the boot time)
1884
+ # if needed (as indicated by the presence of an example with matching metadata)
1885
+ # but avoided otherwise.
1886
+ #
1887
+ # @example
1888
+ # RSpec.configure do |config|
1889
+ # config.when_first_matching_example_defined(:db) do
1890
+ # # Load a support file that does some heavyweight setup,
1891
+ # # including bootstrapping the DB, but only if we have loaded
1892
+ # # any examples tagged with `:db`.
1893
+ # require 'support/db'
1894
+ # end
1895
+ # end
1896
+ def when_first_matching_example_defined(*filters)
1897
+ specified_meta = Metadata.build_hash_from(filters, :warn_about_example_group_filtering)
1898
+
1899
+ callback = lambda do |example_or_group_meta|
1900
+ # Example groups do not have `:example_group` metadata
1901
+ # (instead they have `:parent_example_group` metadata).
1902
+ return unless example_or_group_meta.key?(:example_group)
1903
+
1904
+ # Ensure the callback only fires once.
1905
+ @derived_metadata_blocks.delete(callback, specified_meta)
1906
+
1907
+ yield
1908
+ end
1909
+
1910
+ @derived_metadata_blocks.append(callback, specified_meta)
1911
+ end
1912
+
1913
+ # @private
1914
+ def apply_derived_metadata_to(metadata)
1915
+ already_run_blocks = Set.new
1916
+
1917
+ # We loop and attempt to re-apply metadata blocks to support cascades
1918
+ # (e.g. where a derived bit of metadata triggers the application of
1919
+ # another piece of derived metadata, etc)
1920
+ #
1921
+ # We limit our looping to 200 times as a way to detect infinitely recursing derived metadata blocks.
1922
+ # It's hard to imagine a valid use case for a derived metadata cascade greater than 200 iterations.
1923
+ 200.times do
1924
+ return if @derived_metadata_blocks.items_for(metadata).all? do |block|
1925
+ already_run_blocks.include?(block).tap do |skip_block|
1926
+ block.call(metadata) unless skip_block
1927
+ already_run_blocks << block
1928
+ end
1929
+ end
1930
+ end
1931
+
1932
+ # If we got here, then `@derived_metadata_blocks.items_for(metadata).all?` never returned
1933
+ # `true` above and we treat this as an attempt to recurse infinitely. It's better to fail
1934
+ # with a clear # error than hang indefinitely, which is what would happen if we didn't limit
1935
+ # the looping above.
1936
+ raise SystemStackError, "Attempted to recursively derive metadata indefinitely."
1937
+ end
1938
+
1939
+ # Defines a `before` hook. See {Hooks#before} for full docs.
1940
+ #
1941
+ # This method differs from {Hooks#before} in only one way: it supports
1942
+ # the `:suite` scope. Hooks with the `:suite` scope will be run once before
1943
+ # the first example of the entire suite is executed. Conditions passed along
1944
+ # with `:suite` are effectively ignored.
1945
+ #
1946
+ # @see #prepend_before
1947
+ # @see #after
1948
+ # @see #append_after
1949
+ def before(scope=nil, *meta, &block)
1950
+ handle_suite_hook(scope, meta) do
1951
+ @before_suite_hooks << Hooks::BeforeHook.new(block, {})
1952
+ end || begin
1953
+ # defeat Ruby 2.5 lazy proc allocation to ensure
1954
+ # the methods below are passed the same proc instances
1955
+ # so `Hook` equality is preserved. For more info, see:
1956
+ # https://bugs.ruby-lang.org/issues/14045#note-5
1957
+ block.__id__
1958
+
1959
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.before(scope, *meta, &block) }
1960
+ super(scope, *meta, &block)
1961
+ end
1962
+ end
1963
+ alias_method :append_before, :before
1964
+
1965
+ # Adds `block` to the start of the list of `before` blocks in the same
1966
+ # scope (`:example`, `:context`, or `:suite`), in contrast to {#before},
1967
+ # which adds the hook to the end of the list.
1968
+ #
1969
+ # See {Hooks#before} for full `before` hook docs.
1970
+ #
1971
+ # This method differs from {Hooks#prepend_before} in only one way: it supports
1972
+ # the `:suite` scope. Hooks with the `:suite` scope will be run once before
1973
+ # the first example of the entire suite is executed. Conditions passed along
1974
+ # with `:suite` are effectively ignored.
1975
+ #
1976
+ # @see #before
1977
+ # @see #after
1978
+ # @see #append_after
1979
+ def prepend_before(scope=nil, *meta, &block)
1980
+ handle_suite_hook(scope, meta) do
1981
+ @before_suite_hooks.unshift Hooks::BeforeHook.new(block, {})
1982
+ end || begin
1983
+ # defeat Ruby 2.5 lazy proc allocation to ensure
1984
+ # the methods below are passed the same proc instances
1985
+ # so `Hook` equality is preserved. For more info, see:
1986
+ # https://bugs.ruby-lang.org/issues/14045#note-5
1987
+ block.__id__
1988
+
1989
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.prepend_before(scope, *meta, &block) }
1990
+ super(scope, *meta, &block)
1991
+ end
1992
+ end
1993
+
1994
+ # Defines a `after` hook. See {Hooks#after} for full docs.
1995
+ #
1996
+ # This method differs from {Hooks#after} in only one way: it supports
1997
+ # the `:suite` scope. Hooks with the `:suite` scope will be run once after
1998
+ # the last example of the entire suite is executed. Conditions passed along
1999
+ # with `:suite` are effectively ignored.
2000
+ #
2001
+ # @see #append_after
2002
+ # @see #before
2003
+ # @see #prepend_before
2004
+ def after(scope=nil, *meta, &block)
2005
+ handle_suite_hook(scope, meta) do
2006
+ @after_suite_hooks.unshift Hooks::AfterHook.new(block, {})
2007
+ end || begin
2008
+ # defeat Ruby 2.5 lazy proc allocation to ensure
2009
+ # the methods below are passed the same proc instances
2010
+ # so `Hook` equality is preserved. For more info, see:
2011
+ # https://bugs.ruby-lang.org/issues/14045#note-5
2012
+ block.__id__
2013
+
2014
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.after(scope, *meta, &block) }
2015
+ super(scope, *meta, &block)
2016
+ end
2017
+ end
2018
+ alias_method :prepend_after, :after
2019
+
2020
+ # Adds `block` to the end of the list of `after` blocks in the same
2021
+ # scope (`:example`, `:context`, or `:suite`), in contrast to {#after},
2022
+ # which adds the hook to the start of the list.
2023
+ #
2024
+ # See {Hooks#after} for full `after` hook docs.
2025
+ #
2026
+ # This method differs from {Hooks#append_after} in only one way: it supports
2027
+ # the `:suite` scope. Hooks with the `:suite` scope will be run once after
2028
+ # the last example of the entire suite is executed. Conditions passed along
2029
+ # with `:suite` are effectively ignored.
2030
+ #
2031
+ # @see #append_after
2032
+ # @see #before
2033
+ # @see #prepend_before
2034
+ def append_after(scope=nil, *meta, &block)
2035
+ handle_suite_hook(scope, meta) do
2036
+ @after_suite_hooks << Hooks::AfterHook.new(block, {})
2037
+ end || begin
2038
+ # defeat Ruby 2.5 lazy proc allocation to ensure
2039
+ # the methods below are passed the same proc instances
2040
+ # so `Hook` equality is preserved. For more info, see:
2041
+ # https://bugs.ruby-lang.org/issues/14045#note-5
2042
+ block.__id__
2043
+
2044
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.append_after(scope, *meta, &block) }
2045
+ super(scope, *meta, &block)
2046
+ end
2047
+ end
2048
+
2049
+ # Registers `block` as an `around` hook.
2050
+ #
2051
+ # See {Hooks#around} for full `around` hook docs.
2052
+ def around(scope=nil, *meta, &block)
2053
+ # defeat Ruby 2.5 lazy proc allocation to ensure
2054
+ # the methods below are passed the same proc instances
2055
+ # so `Hook` equality is preserved. For more info, see:
2056
+ # https://bugs.ruby-lang.org/issues/14045#note-5
2057
+ block.__id__
2058
+
2059
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.around(scope, *meta, &block) }
2060
+ super(scope, *meta, &block)
2061
+ end
2062
+
2063
+ # @private
2064
+ def with_suite_hooks
2065
+ return yield if dry_run?
2066
+
2067
+ begin
2068
+ RSpec.current_scope = :before_suite_hook
2069
+ run_suite_hooks("a `before(:suite)` hook", @before_suite_hooks)
2070
+ yield
2071
+ ensure
2072
+ RSpec.current_scope = :after_suite_hook
2073
+ run_suite_hooks("an `after(:suite)` hook", @after_suite_hooks)
2074
+ RSpec.current_scope = :suite
2075
+ end
2076
+ end
2077
+
2078
+ # @private
2079
+ # Holds the various registered hooks. Here we use a FilterableItemRepository
2080
+ # implementation that is specifically optimized for the read/write patterns
2081
+ # of the config object.
2082
+ def hooks
2083
+ @hooks ||= HookCollections.new(self, FilterableItemRepository::QueryOptimized)
2084
+ end
2085
+
2086
+ # Invokes block before defining an example group
2087
+ def on_example_group_definition(&block)
2088
+ on_example_group_definition_callbacks << block
2089
+ end
2090
+
2091
+ # @api private
2092
+ # Returns an array of blocks to call before defining an example group
2093
+ def on_example_group_definition_callbacks
2094
+ @on_example_group_definition_callbacks ||= []
2095
+ end
2096
+
2097
+ # @private
2098
+ def bisect_runner_class
2099
+ @bisect_runner_class ||= begin
2100
+ case bisect_runner
2101
+ when :fork
2102
+ RSpec::Support.require_rspec_core 'bisect/fork_runner'
2103
+ Bisect::ForkRunner
2104
+ when :shell
2105
+ RSpec::Support.require_rspec_core 'bisect/shell_runner'
2106
+ Bisect::ShellRunner
2107
+ else
2108
+ raise "Unsupported value for `bisect_runner` (#{bisect_runner.inspect}). " \
2109
+ "Only `:fork` and `:shell` are supported."
2110
+ end
2111
+ end
2112
+ end
2113
+
2114
+ private
2115
+
2116
+ def load_file_handling_errors(method, file)
2117
+ __send__(method, file)
2118
+ rescue LoadError => ex
2119
+ relative_file = Metadata.relative_path(file)
2120
+ suggestions = DidYouMean.new(relative_file).call
2121
+ reporter.notify_non_example_exception(ex, "An error occurred while loading #{relative_file}.#{suggestions}")
2122
+ RSpec.world.wants_to_quit = true
2123
+ rescue Support::AllExceptionsExceptOnesWeMustNotRescue => ex
2124
+ relative_file = Metadata.relative_path(file)
2125
+ reporter.notify_non_example_exception(ex, "An error occurred while loading #{relative_file}.")
2126
+ RSpec.world.wants_to_quit = true
2127
+ rescue SystemExit => ex
2128
+ relative_file = Metadata.relative_path(file)
2129
+ reporter.notify_non_example_exception(
2130
+ ex,
2131
+ "While loading #{relative_file} an `exit` / `raise SystemExit` occurred, RSpec will now quit."
2132
+ )
2133
+ RSpec.world.rspec_is_quitting = true
2134
+ raise ex
2135
+ end
2136
+
2137
+ def handle_suite_hook(scope, meta)
2138
+ return nil unless scope == :suite
2139
+
2140
+ unless meta.empty?
2141
+ # TODO: in RSpec 4, consider raising an error here.
2142
+ # We warn only for backwards compatibility.
2143
+ RSpec.warn_with "WARNING: `:suite` hooks do not support metadata since " \
2144
+ "they apply to the suite as a whole rather than " \
2145
+ "any individual example or example group that has metadata. " \
2146
+ "The metadata you have provided (#{meta.inspect}) will be ignored."
2147
+ end
2148
+
2149
+ yield
2150
+ end
2151
+
2152
+ def run_suite_hooks(hook_description, hooks)
2153
+ context = SuiteHookContext.new(hook_description, reporter)
2154
+
2155
+ hooks.each do |hook|
2156
+ begin
2157
+ hook.run(context)
2158
+ rescue Support::AllExceptionsExceptOnesWeMustNotRescue => ex
2159
+ context.set_exception(ex)
2160
+
2161
+ # Do not run subsequent `before` hooks if one fails.
2162
+ # But for `after` hooks, we run them all so that all
2163
+ # cleanup bits get a chance to complete, minimizing the
2164
+ # chance that resources get left behind.
2165
+ break if hooks.equal?(@before_suite_hooks)
2166
+ end
2167
+ end
2168
+ end
2169
+
2170
+ def get_files_to_run(paths)
2171
+ files = FlatMap.flat_map(paths_to_check(paths)) do |path|
2172
+ path = path.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
2173
+ File.directory?(path) ? gather_directories(path) : extract_location(path)
2174
+ end.uniq
2175
+
2176
+ return files unless only_failures?
2177
+ relative_files = files.map { |f| Metadata.relative_path(File.expand_path f) }
2178
+ intersection = (relative_files & spec_files_with_failures.to_a)
2179
+ intersection.empty? ? files : intersection
2180
+ end
2181
+
2182
+ def paths_to_check(paths)
2183
+ return paths if pattern_might_load_specs_from_vendored_dirs?
2184
+ paths + [Dir.getwd]
2185
+ end
2186
+
2187
+ def pattern_might_load_specs_from_vendored_dirs?
2188
+ pattern.split(File::SEPARATOR).first.include?('**')
2189
+ end
2190
+
2191
+ def gather_directories(path)
2192
+ include_files = get_matching_files(path, pattern)
2193
+ exclude_files = get_matching_files(path, exclude_pattern)
2194
+ (include_files - exclude_files).uniq
2195
+ end
2196
+
2197
+ def get_matching_files(path, pattern)
2198
+ raw_files = Dir[file_glob_from(path, pattern)]
2199
+ raw_files.map { |file| File.expand_path(file) }.sort
2200
+ end
2201
+
2202
+ def file_glob_from(path, pattern)
2203
+ stripped = "{#{pattern.gsub(/\s*,\s*/, ',')}}"
2204
+ return stripped if pattern =~ /^(\.\/)?#{Regexp.escape path}/ || absolute_pattern?(pattern)
2205
+ File.join(path, stripped)
2206
+ end
2207
+
2208
+ if RSpec::Support::OS.windows?
2209
+ # :nocov:
2210
+ def absolute_pattern?(pattern)
2211
+ pattern =~ /\A[A-Z]:\\/ || windows_absolute_network_path?(pattern)
2212
+ end
2213
+
2214
+ def windows_absolute_network_path?(pattern)
2215
+ return false unless ::File::ALT_SEPARATOR
2216
+ pattern.start_with?(::File::ALT_SEPARATOR + ::File::ALT_SEPARATOR)
2217
+ end
2218
+ # :nocov:
2219
+ else
2220
+ def absolute_pattern?(pattern)
2221
+ pattern.start_with?(File::Separator)
2222
+ end
2223
+ end
2224
+
2225
+ def extract_location(path)
2226
+ match = /^(.*?)((?:\:\d+)+)$/.match(path)
2227
+
2228
+ if match
2229
+ captures = match.captures
2230
+ path = captures[0]
2231
+ lines = captures[1][1..-1].split(":").map(&:to_i)
2232
+ filter_manager.add_location path, lines
2233
+ else
2234
+ path, scoped_ids = Example.parse_id(path)
2235
+ filter_manager.add_ids(path, scoped_ids.split(/\s*,\s*/)) if scoped_ids
2236
+ end
2237
+
2238
+ return [] if path == default_path
2239
+ File.expand_path(path)
2240
+ end
2241
+
2242
+ def command
2243
+ $0.split(File::SEPARATOR).last
2244
+ end
2245
+
2246
+ def value_for(key)
2247
+ @preferred_options.fetch(key) { yield }
2248
+ end
2249
+
2250
+ def define_built_in_hooks
2251
+ around(:example, :aggregate_failures => true) do |procsy|
2252
+ begin
2253
+ aggregate_failures(nil, :hide_backtrace => true, &procsy)
2254
+ rescue Support::AllExceptionsExceptOnesWeMustNotRescue => exception
2255
+ procsy.example.set_aggregate_failures_exception(exception)
2256
+ end
2257
+ end
2258
+ end
2259
+
2260
+ def assert_no_example_groups_defined(config_option)
2261
+ return unless world.example_groups.any?
2262
+
2263
+ raise MustBeConfiguredBeforeExampleGroupsError.new(
2264
+ "RSpec's #{config_option} configuration option must be configured before " \
2265
+ "any example groups are defined, but you have already defined a group."
2266
+ )
2267
+ end
2268
+
2269
+ def output_wrapper
2270
+ @output_wrapper ||= OutputWrapper.new(output_stream)
2271
+ end
2272
+
2273
+ def output_to_tty?(output=output_stream)
2274
+ output.respond_to?(:tty?) && output.tty?
2275
+ end
2276
+
2277
+ def conditionally_disable_mocks_monkey_patching
2278
+ return unless disable_monkey_patching && rspec_mocks_loaded?
2279
+
2280
+ RSpec::Mocks.configuration.tap do |config|
2281
+ config.syntax = :expect
2282
+ config.patch_marshal_to_support_partial_doubles = false
2283
+ end
2284
+ end
2285
+
2286
+ def conditionally_disable_expectations_monkey_patching
2287
+ return unless disable_monkey_patching && rspec_expectations_loaded?
2288
+
2289
+ RSpec::Expectations.configuration.syntax = :expect
2290
+ end
2291
+
2292
+ def rspec_mocks_loaded?
2293
+ defined?(RSpec::Mocks.configuration)
2294
+ end
2295
+
2296
+ def rspec_expectations_loaded?
2297
+ defined?(RSpec::Expectations.configuration)
2298
+ end
2299
+
2300
+ def update_pattern_attr(name, value)
2301
+ if @spec_files_loaded
2302
+ RSpec.warning "Configuring `#{name}` to #{value} has no effect since " \
2303
+ "RSpec has already loaded the spec files."
2304
+ end
2305
+
2306
+ instance_variable_set(:"@#{name}", value)
2307
+ @files_to_run = nil
2308
+ end
2309
+
2310
+ def clear_values_derived_from_example_status_persistence_file_path
2311
+ @last_run_statuses = nil
2312
+ @spec_files_with_failures = nil
2313
+ end
2314
+
2315
+ def configure_group_with(group, module_list, application_method)
2316
+ module_list.items_for(group.metadata).each do |mod|
2317
+ __send__(application_method, mod, group)
2318
+ end
2319
+ end
2320
+
2321
+ def add_hook_to_existing_matching_groups(meta, scope, &block)
2322
+ # For example hooks, we have to apply it to each of the top level
2323
+ # groups, even if the groups do not match. When we apply it, we
2324
+ # apply it with the metadata, so it will only apply to examples
2325
+ # in the group that match the metadata.
2326
+ # #2280 for background and discussion.
2327
+ if scope == :example || scope == :each || scope.nil?
2328
+ world.example_groups.each(&block)
2329
+ else
2330
+ meta = Metadata.build_hash_from(meta.dup)
2331
+ on_existing_matching_groups(meta, &block)
2332
+ end
2333
+ end
2334
+
2335
+ def on_existing_matching_groups(meta)
2336
+ world.traverse_example_group_trees_until do |group|
2337
+ metadata_applies_to_group?(meta, group).tap do |applies|
2338
+ yield group if applies
2339
+ end
2340
+ end
2341
+ end
2342
+
2343
+ def metadata_applies_to_group?(meta, group)
2344
+ meta.empty? || MetadataFilter.apply?(:any?, meta, group.metadata)
2345
+ end
2346
+
2347
+ if RSpec::Support::RubyFeatures.module_prepends_supported?
2348
+ def safe_prepend(mod, host)
2349
+ host.__send__(:prepend, mod) unless host < mod
2350
+ end
2351
+ end
2352
+
2353
+ if RUBY_VERSION.to_f >= 1.9
2354
+ def safe_include(mod, host)
2355
+ host.__send__(:include, mod) unless host < mod
2356
+ end
2357
+
2358
+ def safe_extend(mod, host)
2359
+ host.extend(mod) unless host.singleton_class < mod
2360
+ end
2361
+ else # for 1.8.7
2362
+ # :nocov:
2363
+ def safe_include(mod, host)
2364
+ host.__send__(:include, mod) unless host.included_modules.include?(mod)
2365
+ end
2366
+
2367
+ def safe_extend(mod, host)
2368
+ host.extend(mod) unless (class << host; self; end).included_modules.include?(mod)
2369
+ end
2370
+ # :nocov:
2371
+ end
2372
+
2373
+ def define_mixed_in_module(mod, filters, mod_list, config_method, &block)
2374
+ unless Module === mod
2375
+ raise TypeError, "`RSpec.configuration.#{config_method}` expects a module but got: #{mod.inspect}"
2376
+ end
2377
+
2378
+ meta = Metadata.build_hash_from(filters, :warn_about_example_group_filtering)
2379
+ mod_list.append(mod, meta)
2380
+ on_existing_matching_groups(meta, &block)
2381
+ end
2382
+ end
2383
+ # rubocop:enable Metrics/ClassLength
2384
+ end
2385
+ end