ory-client 0.0.1.alpha79 → 0.0.1.alpha83

Sign up to get free protection for your applications and to get access to all the features.
Files changed (474) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +12 -12
  3. data/README.md +5 -5
  4. data/lib/ory-client/api/metadata_api.rb +1 -1
  5. data/lib/ory-client/api/v0alpha0_api.rb +1 -1
  6. data/lib/ory-client/api/v0alpha2_api.rb +1 -1
  7. data/lib/ory-client/api_client.rb +1 -1
  8. data/lib/ory-client/api_error.rb +1 -1
  9. data/lib/ory-client/configuration.rb +1 -1
  10. data/lib/ory-client/models/active_project.rb +1 -1
  11. data/lib/ory-client/models/admin_create_identity_body.rb +1 -1
  12. data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
  13. data/lib/ory-client/models/admin_update_identity_body.rb +1 -1
  14. data/lib/ory-client/models/api_token.rb +1 -1
  15. data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
  16. data/lib/ory-client/models/cloud_account.rb +1 -1
  17. data/lib/ory-client/models/cname_settings.rb +1 -1
  18. data/lib/ory-client/models/create_custom_hostname_body.rb +1 -1
  19. data/lib/ory-client/models/create_subscription_payload.rb +1 -1
  20. data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
  21. data/lib/ory-client/models/generic_error.rb +1 -1
  22. data/lib/ory-client/models/health_not_ready_status.rb +1 -1
  23. data/lib/ory-client/models/health_status.rb +1 -1
  24. data/lib/ory-client/models/identity.rb +1 -1
  25. data/lib/ory-client/models/identity_credentials.rb +1 -1
  26. data/lib/ory-client/models/identity_credentials_type.rb +1 -1
  27. data/lib/ory-client/models/identity_preset.rb +1 -1
  28. data/lib/ory-client/models/identity_schema.rb +1 -1
  29. data/lib/ory-client/models/identity_schema_location.rb +1 -1
  30. data/lib/ory-client/models/identity_schema_validation_result.rb +1 -1
  31. data/lib/ory-client/models/identity_state.rb +1 -1
  32. data/lib/ory-client/models/inline_object.rb +1 -1
  33. data/lib/ory-client/models/inline_response200.rb +1 -1
  34. data/lib/ory-client/models/inline_response2001.rb +1 -1
  35. data/lib/ory-client/models/inline_response503.rb +1 -1
  36. data/lib/ory-client/models/invite_payload.rb +1 -1
  37. data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
  38. data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +1 -1
  39. data/lib/ory-client/models/json_error.rb +1 -1
  40. data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
  41. data/lib/ory-client/models/null_plan.rb +1 -1
  42. data/lib/ory-client/models/pagination.rb +1 -1
  43. data/lib/ory-client/models/project.rb +1 -1
  44. data/lib/ory-client/models/project_host.rb +1 -1
  45. data/lib/ory-client/models/project_invite.rb +1 -1
  46. data/lib/ory-client/models/project_revision.rb +1 -1
  47. data/lib/ory-client/models/project_revision_hook.rb +1 -1
  48. data/lib/ory-client/models/project_revision_identity_schema.rb +1 -1
  49. data/lib/ory-client/models/project_revision_third_party_login_provider.rb +1 -1
  50. data/lib/ory-client/models/project_slug.rb +1 -1
  51. data/lib/ory-client/models/quota_project_member_seats.rb +1 -1
  52. data/lib/ory-client/models/recovery_address.rb +1 -1
  53. data/lib/ory-client/models/revoked_sessions.rb +1 -1
  54. data/lib/ory-client/models/schema_patch.rb +1 -1
  55. data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +1 -1
  56. data/lib/ory-client/models/self_service_error.rb +1 -1
  57. data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
  58. data/lib/ory-client/models/self_service_login_flow.rb +1 -1
  59. data/lib/ory-client/models/self_service_logout_url.rb +1 -1
  60. data/lib/ory-client/models/self_service_recovery_flow.rb +1 -1
  61. data/lib/ory-client/models/self_service_recovery_flow_state.rb +1 -1
  62. data/lib/ory-client/models/self_service_recovery_link.rb +1 -1
  63. data/lib/ory-client/models/self_service_registration_flow.rb +1 -1
  64. data/lib/ory-client/models/self_service_settings_flow.rb +1 -1
  65. data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
  66. data/lib/ory-client/models/self_service_verification_flow.rb +1 -1
  67. data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
  68. data/lib/ory-client/models/session.rb +1 -1
  69. data/lib/ory-client/models/session_authentication_method.rb +1 -1
  70. data/lib/ory-client/models/session_device.rb +1 -1
  71. data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
  72. data/lib/ory-client/models/stripe_customer_response.rb +1 -1
  73. data/lib/ory-client/models/submit_self_service_login_flow_body.rb +1 -1
  74. data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +1 -1
  75. data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
  76. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
  77. data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +1 -1
  78. data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +1 -1
  79. data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
  80. data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +1 -1
  81. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
  82. data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +1 -1
  83. data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
  84. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
  85. data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +1 -1
  86. data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +1 -1
  87. data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
  88. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
  89. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
  90. data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +1 -1
  91. data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +1 -1
  92. data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +1 -1
  93. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
  94. data/lib/ory-client/models/subscription.rb +1 -1
  95. data/lib/ory-client/models/successful_project_config_update.rb +1 -1
  96. data/lib/ory-client/models/successful_self_service_login_without_browser.rb +1 -1
  97. data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +1 -1
  98. data/lib/ory-client/models/ui_container.rb +1 -1
  99. data/lib/ory-client/models/ui_node.rb +1 -1
  100. data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
  101. data/lib/ory-client/models/ui_node_attributes.rb +1 -1
  102. data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
  103. data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
  104. data/lib/ory-client/models/ui_node_meta.rb +1 -1
  105. data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
  106. data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
  107. data/lib/ory-client/models/ui_text.rb +1 -1
  108. data/lib/ory-client/models/update_custom_hostname_body.rb +1 -1
  109. data/lib/ory-client/models/update_project_config_config.rb +1 -1
  110. data/lib/ory-client/models/update_subscription_payload.rb +1 -1
  111. data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
  112. data/lib/ory-client/models/version.rb +1 -1
  113. data/lib/ory-client/models/warning.rb +1 -1
  114. data/lib/ory-client/version.rb +2 -2
  115. data/lib/ory-client.rb +1 -1
  116. data/ory-client.gemspec +1 -1
  117. data/spec/api/metadata_api_spec.rb +1 -1
  118. data/spec/api/v0alpha0_api_spec.rb +1 -1
  119. data/spec/api/v0alpha2_api_spec.rb +1 -1
  120. data/spec/api_client_spec.rb +1 -1
  121. data/spec/configuration_spec.rb +1 -1
  122. data/spec/models/active_project_spec.rb +1 -1
  123. data/spec/models/admin_create_identity_body_spec.rb +1 -1
  124. data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
  125. data/spec/models/admin_update_identity_body_spec.rb +1 -1
  126. data/spec/models/api_token_spec.rb +1 -1
  127. data/spec/models/authenticator_assurance_level_spec.rb +1 -1
  128. data/spec/models/cloud_account_spec.rb +1 -1
  129. data/spec/models/cname_settings_spec.rb +1 -1
  130. data/spec/models/create_custom_hostname_body_spec.rb +1 -1
  131. data/spec/models/create_subscription_payload_spec.rb +1 -1
  132. data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
  133. data/spec/models/generic_error_spec.rb +1 -1
  134. data/spec/models/health_not_ready_status_spec.rb +1 -1
  135. data/spec/models/health_status_spec.rb +1 -1
  136. data/spec/models/identity_credentials_spec.rb +1 -1
  137. data/spec/models/identity_credentials_type_spec.rb +1 -1
  138. data/spec/models/identity_preset_spec.rb +1 -1
  139. data/spec/models/identity_schema_location_spec.rb +1 -1
  140. data/spec/models/identity_schema_spec.rb +1 -1
  141. data/spec/models/identity_schema_validation_result_spec.rb +1 -1
  142. data/spec/models/identity_spec.rb +1 -1
  143. data/spec/models/identity_state_spec.rb +1 -1
  144. data/spec/models/inline_object_spec.rb +1 -1
  145. data/spec/models/inline_response2001_spec.rb +1 -1
  146. data/spec/models/inline_response200_spec.rb +1 -1
  147. data/spec/models/inline_response503_spec.rb +1 -1
  148. data/spec/models/invite_payload_spec.rb +1 -1
  149. data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +1 -1
  150. data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
  151. data/spec/models/json_error_spec.rb +1 -1
  152. data/spec/models/needs_privileged_session_error_spec.rb +1 -1
  153. data/spec/models/null_plan_spec.rb +1 -1
  154. data/spec/models/pagination_spec.rb +1 -1
  155. data/spec/models/project_host_spec.rb +1 -1
  156. data/spec/models/project_invite_spec.rb +1 -1
  157. data/spec/models/project_revision_hook_spec.rb +1 -1
  158. data/spec/models/project_revision_identity_schema_spec.rb +1 -1
  159. data/spec/models/project_revision_spec.rb +1 -1
  160. data/spec/models/project_revision_third_party_login_provider_spec.rb +1 -1
  161. data/spec/models/project_slug_spec.rb +1 -1
  162. data/spec/models/project_spec.rb +1 -1
  163. data/spec/models/quota_project_member_seats_spec.rb +1 -1
  164. data/spec/models/recovery_address_spec.rb +1 -1
  165. data/spec/models/revoked_sessions_spec.rb +1 -1
  166. data/spec/models/schema_patch_spec.rb +1 -1
  167. data/spec/models/self_service_browser_location_change_required_error_spec.rb +1 -1
  168. data/spec/models/self_service_error_spec.rb +1 -1
  169. data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
  170. data/spec/models/self_service_login_flow_spec.rb +1 -1
  171. data/spec/models/self_service_logout_url_spec.rb +1 -1
  172. data/spec/models/self_service_recovery_flow_spec.rb +1 -1
  173. data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
  174. data/spec/models/self_service_recovery_link_spec.rb +1 -1
  175. data/spec/models/self_service_registration_flow_spec.rb +1 -1
  176. data/spec/models/self_service_settings_flow_spec.rb +1 -1
  177. data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
  178. data/spec/models/self_service_verification_flow_spec.rb +1 -1
  179. data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
  180. data/spec/models/session_authentication_method_spec.rb +1 -1
  181. data/spec/models/session_device_spec.rb +1 -1
  182. data/spec/models/session_spec.rb +1 -1
  183. data/spec/models/settings_profile_form_config_spec.rb +1 -1
  184. data/spec/models/stripe_customer_response_spec.rb +1 -1
  185. data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
  186. data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +1 -1
  187. data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +1 -1
  188. data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
  189. data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +1 -1
  190. data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +1 -1
  191. data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
  192. data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
  193. data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
  194. data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
  195. data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +1 -1
  196. data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
  197. data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
  198. data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +1 -1
  199. data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +1 -1
  200. data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
  201. data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
  202. data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +1 -1
  203. data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +1 -1
  204. data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
  205. data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
  206. data/spec/models/subscription_spec.rb +1 -1
  207. data/spec/models/successful_project_config_update_spec.rb +1 -1
  208. data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
  209. data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
  210. data/spec/models/ui_container_spec.rb +1 -1
  211. data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
  212. data/spec/models/ui_node_attributes_spec.rb +1 -1
  213. data/spec/models/ui_node_image_attributes_spec.rb +1 -1
  214. data/spec/models/ui_node_input_attributes_spec.rb +1 -1
  215. data/spec/models/ui_node_meta_spec.rb +1 -1
  216. data/spec/models/ui_node_script_attributes_spec.rb +1 -1
  217. data/spec/models/ui_node_spec.rb +1 -1
  218. data/spec/models/ui_node_text_attributes_spec.rb +1 -1
  219. data/spec/models/ui_text_spec.rb +1 -1
  220. data/spec/models/update_custom_hostname_body_spec.rb +1 -1
  221. data/spec/models/update_project_config_config_spec.rb +1 -1
  222. data/spec/models/update_subscription_payload_spec.rb +1 -1
  223. data/spec/models/verifiable_identity_address_spec.rb +1 -1
  224. data/spec/models/version_spec.rb +1 -1
  225. data/spec/models/warning_spec.rb +1 -1
  226. data/spec/spec_helper.rb +1 -1
  227. data/vendor/bundle/ruby/2.5.0/cache/rspec-3.11.0.gem +0 -0
  228. data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.11.0.gem +0 -0
  229. data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.11.0.gem +0 -0
  230. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.11.0.gem +0 -0
  231. data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.11.0.gem +0 -0
  232. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  233. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
  234. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  235. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.3/gem_make.out +2 -2
  236. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/gem_make.out +2 -2
  237. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/mkmf.log +1 -1
  238. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  239. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  240. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  241. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.3/ext/psych/Makefile +2 -2
  242. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.10.0 → rspec-3.11.0}/LICENSE.md +0 -0
  243. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.10.0 → rspec-3.11.0}/README.md +5 -1
  244. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.10.0 → rspec-3.11.0}/lib/rspec/version.rb +1 -1
  245. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.10.0 → rspec-3.11.0}/lib/rspec.rb +0 -0
  246. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/.document +0 -0
  247. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/.yardopts +0 -0
  248. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/Changelog.md +14 -1
  249. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/LICENSE.md +0 -0
  250. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/README.md +1 -1
  251. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/exe/rspec +0 -0
  252. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/autorun.rb +0 -0
  253. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/backtrace_formatter.rb +0 -0
  254. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/bisect/coordinator.rb +0 -0
  255. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
  256. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/bisect/fork_runner.rb +0 -0
  257. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/bisect/server.rb +0 -0
  258. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/bisect/shell_command.rb +0 -0
  259. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/bisect/shell_runner.rb +0 -0
  260. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/bisect/utilities.rb +0 -0
  261. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/configuration.rb +11 -0
  262. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/configuration_options.rb +0 -0
  263. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/did_you_mean.rb +0 -0
  264. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/drb.rb +0 -0
  265. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/dsl.rb +0 -0
  266. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/example.rb +3 -0
  267. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/example_group.rb +2 -0
  268. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/example_status_persister.rb +0 -0
  269. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/filter_manager.rb +0 -0
  270. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/flat_map.rb +0 -0
  271. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -0
  272. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/base_formatter.rb +0 -0
  273. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
  274. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -0
  275. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
  276. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/console_codes.rb +17 -9
  277. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/deprecation_formatter.rb +0 -0
  278. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
  279. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/exception_presenter.rb +0 -0
  280. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/failure_list_formatter.rb +0 -0
  281. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
  282. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/helpers.rb +9 -1
  283. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/html_formatter.rb +0 -0
  284. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/html_printer.rb +0 -0
  285. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -0
  286. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/json_formatter.rb +0 -0
  287. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
  288. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
  289. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/protocol.rb +0 -0
  290. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
  291. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
  292. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/formatters.rb +0 -0
  293. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/hooks.rb +0 -0
  294. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/invocations.rb +0 -0
  295. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/memoized_helpers.rb +29 -3
  296. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/metadata.rb +0 -0
  297. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/metadata_filter.rb +0 -0
  298. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
  299. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
  300. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
  301. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/mocking_adapters/null.rb +0 -0
  302. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
  303. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
  304. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/notifications.rb +0 -0
  305. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/option_parser.rb +5 -4
  306. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/ordering.rb +12 -1
  307. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/output_wrapper.rb +0 -0
  308. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/pending.rb +0 -0
  309. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/profiler.rb +0 -0
  310. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/project_initializer/.rspec +0 -0
  311. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -0
  312. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/project_initializer.rb +0 -0
  313. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/rake_task.rb +0 -0
  314. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/reporter.rb +0 -0
  315. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/ruby_project.rb +0 -0
  316. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/runner.rb +0 -0
  317. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/sandbox.rb +0 -0
  318. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/set.rb +0 -0
  319. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/shared_context.rb +0 -0
  320. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/shared_example_group.rb +0 -0
  321. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/shell_escape.rb +0 -0
  322. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
  323. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/version.rb +1 -1
  324. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/warnings.rb +0 -0
  325. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core/world.rb +14 -4
  326. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.10.2 → rspec-core-3.11.0}/lib/rspec/core.rb +26 -0
  327. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/.document +0 -0
  328. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/.yardopts +0 -0
  329. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/Changelog.md +14 -2
  330. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/LICENSE.md +0 -0
  331. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/README.md +1 -1
  332. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
  333. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations/configuration.rb +0 -0
  334. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations/expectation_target.rb +39 -1
  335. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations/fail_with.rb +0 -0
  336. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations/failure_aggregator.rb +1 -1
  337. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations/handler.rb +0 -0
  338. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations/minitest_integration.rb +0 -0
  339. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations/syntax.rb +0 -0
  340. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations/version.rb +1 -1
  341. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/expectations.rb +0 -0
  342. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/aliased_matcher.rb +0 -0
  343. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/all.rb +0 -0
  344. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/base_matcher.rb +5 -0
  345. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/be.rb +0 -0
  346. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/be_between.rb +0 -0
  347. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
  348. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
  349. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/be_within.rb +0 -0
  350. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/change.rb +22 -0
  351. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/compound.rb +14 -0
  352. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/contain_exactly.rb +0 -0
  353. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/count_expectation.rb +0 -0
  354. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/cover.rb +0 -0
  355. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/eq.rb +0 -0
  356. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/eql.rb +0 -0
  357. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/equal.rb +0 -0
  358. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/exist.rb +0 -0
  359. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/has.rb +0 -0
  360. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
  361. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/include.rb +0 -0
  362. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/match.rb +0 -0
  363. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/operators.rb +0 -0
  364. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/output.rb +7 -0
  365. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/raise_error.rb +6 -0
  366. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
  367. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
  368. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
  369. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/throw_symbol.rb +6 -0
  370. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in/yield.rb +20 -0
  371. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/built_in.rb +0 -0
  372. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/composable.rb +0 -0
  373. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/dsl.rb +4 -0
  374. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/english_phrasing.rb +0 -0
  375. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
  376. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/fail_matchers.rb +0 -0
  377. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/generated_descriptions.rb +0 -0
  378. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/matcher_delegator.rb +0 -0
  379. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers/matcher_protocol.rb +6 -0
  380. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.10.2 → rspec-expectations-3.11.0}/lib/rspec/matchers.rb +0 -0
  381. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/.document +0 -0
  382. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/.yardopts +0 -0
  383. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/Changelog.md +10 -2
  384. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/LICENSE.md +0 -0
  385. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/README.md +1 -1
  386. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  387. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  388. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  389. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  390. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
  391. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
  392. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
  393. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  394. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  395. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/any_instance.rb +0 -0
  396. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/argument_list_matcher.rb +0 -0
  397. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/argument_matchers.rb +0 -0
  398. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/configuration.rb +0 -0
  399. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/error_generator.rb +0 -0
  400. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/example_methods.rb +0 -0
  401. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  402. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/marshal_extension.rb +0 -0
  403. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  404. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/matchers/have_received.rb +0 -0
  405. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/matchers/receive.rb +0 -0
  406. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/matchers/receive_message_chain.rb +1 -1
  407. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
  408. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/message_chain.rb +0 -0
  409. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/message_expectation.rb +60 -0
  410. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/method_double.rb +0 -0
  411. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/method_reference.rb +0 -0
  412. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/minitest_integration.rb +0 -0
  413. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/mutate_const.rb +0 -0
  414. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/object_reference.rb +0 -0
  415. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/order_group.rb +0 -0
  416. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/proxy.rb +0 -0
  417. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/space.rb +0 -0
  418. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/standalone.rb +0 -0
  419. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/syntax.rb +0 -0
  420. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/targets.rb +0 -0
  421. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/test_double.rb +0 -0
  422. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/verifying_double.rb +0 -0
  423. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
  424. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/verifying_proxy.rb +0 -0
  425. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks/version.rb +1 -1
  426. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.10.3 → rspec-mocks-3.11.0}/lib/rspec/mocks.rb +0 -0
  427. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/Changelog.md +8 -0
  428. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/LICENSE.md +0 -0
  429. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/README.md +1 -1
  430. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/caller_filter.rb +0 -0
  431. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/comparable_version.rb +0 -0
  432. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/differ.rb +0 -0
  433. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/directory_maker.rb +0 -0
  434. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/encoded_string.rb +0 -0
  435. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  436. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/hunk_generator.rb +0 -0
  437. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/matcher_definition.rb +0 -0
  438. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/method_signature_verifier.rb +0 -0
  439. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/mutex.rb +0 -0
  440. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/object_formatter.rb +0 -0
  441. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/recursive_const_methods.rb +0 -0
  442. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/reentrant_mutex.rb +0 -0
  443. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/ruby_features.rb +0 -0
  444. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/source/location.rb +0 -0
  445. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/source/node.rb +0 -0
  446. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/source/token.rb +0 -0
  447. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/source.rb +0 -0
  448. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  449. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  450. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/formatting_support.rb +0 -0
  451. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/in_sub_process.rb +0 -0
  452. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  453. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/shell_out.rb +0 -0
  454. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
  455. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/string_matcher.rb +0 -0
  456. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  457. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  458. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/spec.rb +0 -0
  459. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/version.rb +1 -1
  460. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/warnings.rb +0 -0
  461. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
  462. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.10.3 → rspec-support-3.11.0}/lib/rspec/support.rb +0 -0
  463. data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio/Makefile +2 -2
  464. data/vendor/bundle/ruby/2.5.0/specifications/{rspec-3.10.0.gemspec → rspec-3.11.0.gemspec} +14 -14
  465. data/vendor/bundle/ruby/2.5.0/specifications/{rspec-core-3.10.2.gemspec → rspec-core-3.11.0.gemspec} +8 -8
  466. data/vendor/bundle/ruby/2.5.0/specifications/{rspec-expectations-3.10.2.gemspec → rspec-expectations-3.11.0.gemspec} +8 -8
  467. data/vendor/bundle/ruby/2.5.0/specifications/{rspec-mocks-3.10.3.gemspec → rspec-mocks-3.11.0.gemspec} +8 -8
  468. data/vendor/bundle/ruby/2.5.0/specifications/{rspec-support-3.10.3.gemspec → rspec-support-3.11.0.gemspec} +5 -5
  469. metadata +233 -233
  470. data/vendor/bundle/ruby/2.5.0/cache/rspec-3.10.0.gem +0 -0
  471. data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.10.2.gem +0 -0
  472. data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.10.2.gem +0 -0
  473. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.10.3.gem +0 -0
  474. data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.10.3.gem +0 -0
@@ -1,4 +1,4 @@
1
- # RSpec Expectations [![Build Status](https://github.com/rspec/rspec-expectations/workflows/RSpec%20CI/badge.svg?branch=3-10-maintenance)](https://github.com/rspec/rspec-expectations/actions) [![Code Climate](https://codeclimate.com/github/rspec/rspec-expectations.svg)](https://codeclimate.com/github/rspec/rspec-expectations)
1
+ # RSpec Expectations [![Build Status](https://github.com/rspec/rspec-expectations/workflows/RSpec%20CI/badge.svg)](https://github.com/rspec/rspec-expectations/actions) [![Code Climate](https://codeclimate.com/github/rspec/rspec-expectations.svg)](https://codeclimate.com/github/rspec/rspec-expectations)
2
2
 
3
3
  RSpec::Expectations lets you express expected outcomes on an object in an
4
4
  example.
@@ -42,7 +42,7 @@ module RSpec
42
42
  elsif block
43
43
  raise ArgumentError, "You cannot pass both an argument and a block to `expect`."
44
44
  else
45
- new(value)
45
+ ValueExpectationTarget.new(value)
46
46
  end
47
47
  end
48
48
 
@@ -90,6 +90,44 @@ module RSpec
90
90
  include InstanceMethods
91
91
  end
92
92
 
93
+ # @private
94
+ # Validates the provided matcher to ensure it supports block
95
+ # expectations, in order to avoid user confusion when they
96
+ # use a block thinking the expectation will be on the return
97
+ # value of the block rather than the block itself.
98
+ class ValueExpectationTarget < ExpectationTarget
99
+ def to(matcher=nil, message=nil, &block)
100
+ enforce_value_expectation(matcher)
101
+ super
102
+ end
103
+
104
+ def not_to(matcher=nil, message=nil, &block)
105
+ enforce_value_expectation(matcher)
106
+ super
107
+ end
108
+
109
+ private
110
+
111
+ def enforce_value_expectation(matcher)
112
+ return if supports_value_expectations?(matcher)
113
+
114
+ RSpec.deprecate(
115
+ "expect(value).to #{RSpec::Support::ObjectFormatter.format(matcher)}",
116
+ :message =>
117
+ "The implicit block expectation syntax is deprecated, you should pass " \
118
+ "a block rather than an argument to `expect` to use the provided " \
119
+ "block expectation matcher or the matcher must implement " \
120
+ "`supports_value_expectations?`. e.g `expect { value }.to " \
121
+ "#{RSpec::Support::ObjectFormatter.format(matcher)}` not " \
122
+ "`expect(value).to #{RSpec::Support::ObjectFormatter.format(matcher)}`"
123
+ )
124
+ end
125
+
126
+ def supports_value_expectations?(matcher)
127
+ !matcher.respond_to?(:supports_value_expectations?) || matcher.supports_value_expectations?
128
+ end
129
+ end
130
+
93
131
  # @private
94
132
  # Validates the provided matcher to ensure it supports block
95
133
  # expectations, in order to avoid user confusion when they
@@ -80,7 +80,7 @@ module RSpec
80
80
  all_errors = failures + other_errors
81
81
 
82
82
  case all_errors.size
83
- when 0 then return nil
83
+ when 0 then return true
84
84
  when 1 then RSpec::Support.notify_failure all_errors.first
85
85
  else RSpec::Support.notify_failure MultipleExpectationsNotMetError.new(self)
86
86
  end
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Expectations
3
3
  # @private
4
4
  module Version
5
- STRING = '3.10.2'
5
+ STRING = '3.11.0'
6
6
  end
7
7
  end
8
8
  end
@@ -78,6 +78,11 @@ module RSpec
78
78
  false
79
79
  end
80
80
 
81
+ # @private
82
+ def supports_value_expectations?
83
+ true
84
+ end
85
+
81
86
  # @api private
82
87
  def expects_call_stack_jump?
83
88
  false
@@ -77,6 +77,11 @@ module RSpec
77
77
  true
78
78
  end
79
79
 
80
+ # @private
81
+ def supports_value_expectations?
82
+ false
83
+ end
84
+
80
85
  private
81
86
 
82
87
  def initialize(receiver=nil, message=nil, &block)
@@ -158,6 +163,11 @@ module RSpec
158
163
  true
159
164
  end
160
165
 
166
+ # @private
167
+ def supports_value_expectations?
168
+ false
169
+ end
170
+
161
171
  private
162
172
 
163
173
  def failure_reason
@@ -201,6 +211,11 @@ module RSpec
201
211
  true
202
212
  end
203
213
 
214
+ # @private
215
+ def supports_value_expectations?
216
+ false
217
+ end
218
+
204
219
  private
205
220
 
206
221
  def perform_change(event_proc)
@@ -337,6 +352,8 @@ module RSpec
337
352
  class ChangeDetails
338
353
  attr_reader :actual_after
339
354
 
355
+ UNDEFINED = Module.new.freeze
356
+
340
357
  def initialize(matcher_name, receiver=nil, message=nil, &block)
341
358
  if receiver && !message
342
359
  raise(
@@ -351,6 +368,11 @@ module RSpec
351
368
  @receiver = receiver
352
369
  @message = message
353
370
  @value_proc = block
371
+ # TODO: temporary measure to mute warning of access to an initialized
372
+ # instance variable when a deprecated implicit block expectation
373
+ # syntax is used. This may be removed once `fail` is used, and the
374
+ # matcher never issues this warning.
375
+ @actual_after = UNDEFINED
354
376
  end
355
377
 
356
378
  def value_representation
@@ -26,11 +26,19 @@ module RSpec
26
26
  "#{matcher_1.description} #{conjunction} #{matcher_2.description}"
27
27
  end
28
28
 
29
+ # @api private
29
30
  def supports_block_expectations?
30
31
  matcher_supports_block_expectations?(matcher_1) &&
31
32
  matcher_supports_block_expectations?(matcher_2)
32
33
  end
33
34
 
35
+ # @api private
36
+ def supports_value_expectations?
37
+ matcher_supports_value_expectations?(matcher_1) &&
38
+ matcher_supports_value_expectations?(matcher_2)
39
+ end
40
+
41
+ # @api private
34
42
  def expects_call_stack_jump?
35
43
  NestedEvaluator.matcher_expects_call_stack_jump?(matcher_1) ||
36
44
  NestedEvaluator.matcher_expects_call_stack_jump?(matcher_2)
@@ -102,6 +110,12 @@ module RSpec
102
110
  false
103
111
  end
104
112
 
113
+ def matcher_supports_value_expectations?(matcher)
114
+ matcher.supports_value_expectations?
115
+ rescue NoMethodError
116
+ true
117
+ end
118
+
105
119
  def matcher_is_diffable?(matcher)
106
120
  matcher.diffable?
107
121
  rescue NoMethodError
@@ -94,6 +94,13 @@ module RSpec
94
94
  true
95
95
  end
96
96
 
97
+ # @api private
98
+ # Indicates this matcher matches against a block only.
99
+ # @return [False]
100
+ def supports_value_expectations?
101
+ false
102
+ end
103
+
97
104
  private
98
105
 
99
106
  def captured?
@@ -86,6 +86,12 @@ module RSpec
86
86
  true
87
87
  end
88
88
 
89
+ # @private
90
+ def supports_value_expectations?
91
+ false
92
+ end
93
+
94
+ # @private
89
95
  def expects_call_stack_jump?
90
96
  true
91
97
  end
@@ -94,6 +94,12 @@ module RSpec
94
94
  true
95
95
  end
96
96
 
97
+ # @api private
98
+ def supports_value_expectations?
99
+ false
100
+ end
101
+
102
+ # @api private
97
103
  def expects_call_stack_jump?
98
104
  true
99
105
  end
@@ -129,6 +129,11 @@ module RSpec
129
129
  true
130
130
  end
131
131
 
132
+ # @private
133
+ def supports_value_expectations?
134
+ false
135
+ end
136
+
132
137
  private
133
138
 
134
139
  def failure_reason
@@ -169,6 +174,11 @@ module RSpec
169
174
  true
170
175
  end
171
176
 
177
+ # @private
178
+ def supports_value_expectations?
179
+ false
180
+ end
181
+
172
182
  private
173
183
 
174
184
  def positive_failure_reason
@@ -231,6 +241,11 @@ module RSpec
231
241
  true
232
242
  end
233
243
 
244
+ # @private
245
+ def supports_value_expectations?
246
+ false
247
+ end
248
+
234
249
  private
235
250
 
236
251
  def positive_failure_reason
@@ -328,6 +343,11 @@ module RSpec
328
343
  true
329
344
  end
330
345
 
346
+ # @private
347
+ def supports_value_expectations?
348
+ false
349
+ end
350
+
331
351
  private
332
352
 
333
353
  def expected_arg_description
@@ -403,6 +403,10 @@ module RSpec
403
403
  false
404
404
  end
405
405
 
406
+ def supports_value_expectations?
407
+ true
408
+ end
409
+
406
410
  # Most matchers do not expect call stack jumps.
407
411
  def expects_call_stack_jump?
408
412
  false
@@ -60,6 +60,12 @@ module RSpec
60
60
  # @return [Boolean] true if this matcher can be used in block expressions.
61
61
  # @note If not defined, RSpec assumes a value of `false` for this method.
62
62
 
63
+ # @!method supports_value_expectations?
64
+ # Indicates that this matcher can be used in a value expectation expression,
65
+ # such as `expect(foo).to eq(bar)`.
66
+ # @return [Boolean] true if this matcher can be used in value expressions.
67
+ # @note If not defined, RSpec assumes a value of `true` for this method.
68
+
63
69
  # @!method expects_call_stack_jump?
64
70
  # Indicates that when this matcher is used in a block expectation
65
71
  # expression, it expects the block to use a ruby construct that causes
@@ -1,7 +1,15 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.3...3-10-maintenance)
2
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...3-11-maintenance)
3
3
 
4
- ### 3.10.3 / 2021-01-28
4
+ ### 3.11.0 / 2022-02-09
5
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.3...v3.11.0)
6
+
7
+ Enhancements:
8
+
9
+ * Add `and_invoke` implementation for configuring responses to `receive`
10
+ (and `receive_messages`) with multiple callable objects. (Kyle Smith, #1411)
11
+
12
+ ### 3.10.3 / 2022-01-28
5
13
  [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.2...v3.10.3)
6
14
 
7
15
  Bug Fixes:
@@ -1,4 +1,4 @@
1
- # RSpec Mocks [![Build Status](https://github.com/rspec/rspec-mocks/workflows/RSpec%20CI/badge.svg?branch=3-10-maintenance)](https://github.com/rspec/rspec-mocks/actions) [![Code Climate](https://codeclimate.com/github/rspec/rspec-mocks.svg)](https://codeclimate.com/github/rspec/rspec-mocks)
1
+ # RSpec Mocks [![Build Status](https://github.com/rspec/rspec-mocks/workflows/RSpec%20CI/badge.svg)](https://github.com/rspec/rspec-mocks/actions) [![Code Climate](https://codeclimate.com/github/rspec/rspec-mocks.svg)](https://codeclimate.com/github/rspec/rspec-mocks)
2
2
  rspec-mocks is a test-double framework for rspec with support for method stubs,
3
3
  fakes, and message expectations on generated test-doubles and real objects
4
4
  alike.
@@ -13,7 +13,7 @@ module RSpec
13
13
  @recorded_customizations = []
14
14
  end
15
15
 
16
- [:with, :and_return, :and_throw, :and_raise, :and_yield, :and_call_original].each do |msg|
16
+ [:with, :and_return, :and_invoke, :and_throw, :and_raise, :and_yield, :and_call_original].each do |msg|
17
17
  define_method(msg) do |*args, &block|
18
18
  @recorded_customizations << ExpectationCustomization.new(msg, args, block)
19
19
  self
@@ -85,6 +85,48 @@ module RSpec
85
85
  nil
86
86
  end
87
87
 
88
+ # Tells the object to invoke a Proc when it receives the message. Given
89
+ # more than one value, the result of the first Proc is returned the first
90
+ # time the message is received, the result of the second Proc is returned
91
+ # the next time, etc, etc.
92
+ #
93
+ # If the message is received more times than there are Procs, the result of
94
+ # the last Proc is returned for every subsequent call.
95
+ #
96
+ # @return [nil] No further chaining is supported after this.
97
+ # @example
98
+ # allow(api).to receive(:get_foo).and_invoke(-> { raise ApiTimeout })
99
+ # api.get_foo # => raises ApiTimeout
100
+ # api.get_foo # => raises ApiTimeout
101
+ #
102
+ # allow(api).to receive(:get_foo).and_invoke(-> { raise ApiTimeout }, -> { raise ApiTimeout }, -> { :a_foo })
103
+ # api.get_foo # => raises ApiTimeout
104
+ # api.get_foo # => rasies ApiTimeout
105
+ # api.get_foo # => :a_foo
106
+ # api.get_foo # => :a_foo
107
+ # api.get_foo # => :a_foo
108
+ # # etc
109
+ def and_invoke(first_proc, *procs)
110
+ raise_already_invoked_error_if_necessary(__method__)
111
+ if negative?
112
+ raise "`and_invoke` is not supported with negative message expectations"
113
+ end
114
+
115
+ if block_given?
116
+ raise ArgumentError, "Implementation blocks aren't supported with `and_invoke`"
117
+ end
118
+
119
+ procs.unshift(first_proc)
120
+ if procs.any? { |p| !p.respond_to?(:call) }
121
+ raise ArgumentError, "Arguments to `and_invoke` must be callable."
122
+ end
123
+
124
+ @expected_received_count = [@expected_received_count, procs.size].max unless ignoring_args? || (@expected_received_count == 0 && @at_least)
125
+ self.terminal_implementation_action = AndInvokeImplementation.new(procs)
126
+
127
+ nil
128
+ end
129
+
88
130
  # Tells the object to delegate to the original unmodified method
89
131
  # when it receives the message.
90
132
  #
@@ -684,6 +726,24 @@ module RSpec
684
726
  end
685
727
  end
686
728
 
729
+ # Handles the implementation of an `and_invoke` implementation.
730
+ # @private
731
+ class AndInvokeImplementation
732
+ def initialize(procs_to_invoke)
733
+ @procs_to_invoke = procs_to_invoke
734
+ end
735
+
736
+ def call(*args, &block)
737
+ proc = if @procs_to_invoke.size > 1
738
+ @procs_to_invoke.shift
739
+ else
740
+ @procs_to_invoke.first
741
+ end
742
+
743
+ proc.call(*args, &block)
744
+ end
745
+ end
746
+
687
747
  # Represents a configured implementation. Takes into account
688
748
  # any number of sub-implementations.
689
749
  # @private
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec mocks.
4
4
  module Version
5
5
  # Version of RSpec mocks currently in use in SemVer format.
6
- STRING = '3.10.3'
6
+ STRING = '3.11.0'
7
7
  end
8
8
  end
9
9
  end