cloudsmith-api 0.53.79 → 0.54.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (442) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +14 -14
  3. data/README.md +13 -9
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +4 -0
  6. data/docs/ConanPackageUpload.md +4 -0
  7. data/docs/MavenPackageUpload.md +4 -0
  8. data/docs/MetricsApi.md +71 -4
  9. data/docs/Package.md +4 -0
  10. data/docs/PackageCopy.md +4 -0
  11. data/docs/PackageMove.md +4 -0
  12. data/docs/PackagesApi.md +72 -3
  13. data/docs/PackagesCopy.md +1 -0
  14. data/docs/PackagesMove.md +1 -0
  15. data/docs/PackagesResync.md +8 -0
  16. data/docs/PackagesScan.md +8 -0
  17. data/docs/PackagesTag.md +1 -0
  18. data/docs/PackagesUploadAlpine.md +1 -0
  19. data/docs/PackagesUploadCargo.md +1 -0
  20. data/docs/PackagesUploadCocoapods.md +1 -0
  21. data/docs/PackagesUploadComposer.md +1 -0
  22. data/docs/PackagesUploadConan.md +1 -0
  23. data/docs/PackagesUploadCran.md +1 -0
  24. data/docs/PackagesUploadDart.md +1 -0
  25. data/docs/PackagesUploadDeb.md +1 -0
  26. data/docs/PackagesUploadDocker.md +1 -0
  27. data/docs/PackagesUploadGo.md +1 -0
  28. data/docs/PackagesUploadHelm.md +1 -0
  29. data/docs/PackagesUploadLuarocks.md +1 -0
  30. data/docs/PackagesUploadMaven.md +1 -0
  31. data/docs/PackagesUploadNpm.md +1 -0
  32. data/docs/PackagesUploadNuget.md +1 -0
  33. data/docs/PackagesUploadPython.md +1 -0
  34. data/docs/PackagesUploadRaw.md +1 -0
  35. data/docs/PackagesUploadRpm.md +1 -0
  36. data/docs/PackagesUploadRuby.md +1 -0
  37. data/docs/PackagesUploadTerraform.md +1 -0
  38. data/docs/PackagesUploadVagrant.md +1 -0
  39. data/docs/PackagesValidateuploadAlpine.md +1 -0
  40. data/docs/PackagesValidateuploadCargo.md +1 -0
  41. data/docs/PackagesValidateuploadCocoapods.md +1 -0
  42. data/docs/PackagesValidateuploadComposer.md +1 -0
  43. data/docs/PackagesValidateuploadConan.md +1 -0
  44. data/docs/PackagesValidateuploadCran.md +1 -0
  45. data/docs/PackagesValidateuploadDart.md +1 -0
  46. data/docs/PackagesValidateuploadDeb.md +1 -0
  47. data/docs/PackagesValidateuploadDocker.md +1 -0
  48. data/docs/PackagesValidateuploadGo.md +1 -0
  49. data/docs/PackagesValidateuploadHelm.md +1 -0
  50. data/docs/PackagesValidateuploadLuarocks.md +1 -0
  51. data/docs/PackagesValidateuploadMaven.md +1 -0
  52. data/docs/PackagesValidateuploadNpm.md +1 -0
  53. data/docs/PackagesValidateuploadNuget.md +1 -0
  54. data/docs/PackagesValidateuploadPython.md +1 -0
  55. data/docs/PackagesValidateuploadRaw.md +1 -0
  56. data/docs/PackagesValidateuploadRpm.md +1 -0
  57. data/docs/PackagesValidateuploadRuby.md +1 -0
  58. data/docs/PackagesValidateuploadTerraform.md +1 -0
  59. data/docs/PackagesValidateuploadVagrant.md +1 -0
  60. data/docs/RawPackageUpload.md +4 -0
  61. data/docs/VagrantPackageUpload.md +4 -0
  62. data/docs/VulnerabilitiesApi.md +22 -22
  63. data/lib/cloudsmith-api.rb +2 -0
  64. data/lib/cloudsmith-api/api/metrics_api.rb +73 -7
  65. data/lib/cloudsmith-api/api/packages_api.rb +72 -1
  66. data/lib/cloudsmith-api/api/vulnerabilities_api.rb +22 -22
  67. data/lib/cloudsmith-api/models/alpine_package_upload.rb +41 -1
  68. data/lib/cloudsmith-api/models/conan_package_upload.rb +41 -1
  69. data/lib/cloudsmith-api/models/maven_package_upload.rb +41 -1
  70. data/lib/cloudsmith-api/models/package.rb +41 -1
  71. data/lib/cloudsmith-api/models/package_copy.rb +41 -1
  72. data/lib/cloudsmith-api/models/package_move.rb +41 -1
  73. data/lib/cloudsmith-api/models/packages_copy.rb +14 -4
  74. data/lib/cloudsmith-api/models/packages_move.rb +14 -4
  75. data/lib/cloudsmith-api/models/packages_resync.rb +189 -0
  76. data/lib/cloudsmith-api/models/packages_scan.rb +189 -0
  77. data/lib/cloudsmith-api/models/packages_tag.rb +11 -1
  78. data/lib/cloudsmith-api/models/packages_upload_alpine.rb +11 -1
  79. data/lib/cloudsmith-api/models/packages_upload_cargo.rb +11 -1
  80. data/lib/cloudsmith-api/models/packages_upload_cocoapods.rb +11 -1
  81. data/lib/cloudsmith-api/models/packages_upload_composer.rb +11 -1
  82. data/lib/cloudsmith-api/models/packages_upload_conan.rb +11 -1
  83. data/lib/cloudsmith-api/models/packages_upload_cran.rb +11 -1
  84. data/lib/cloudsmith-api/models/packages_upload_dart.rb +11 -1
  85. data/lib/cloudsmith-api/models/packages_upload_deb.rb +11 -1
  86. data/lib/cloudsmith-api/models/packages_upload_docker.rb +11 -1
  87. data/lib/cloudsmith-api/models/packages_upload_go.rb +11 -1
  88. data/lib/cloudsmith-api/models/packages_upload_helm.rb +11 -1
  89. data/lib/cloudsmith-api/models/packages_upload_luarocks.rb +11 -1
  90. data/lib/cloudsmith-api/models/packages_upload_maven.rb +11 -1
  91. data/lib/cloudsmith-api/models/packages_upload_npm.rb +11 -1
  92. data/lib/cloudsmith-api/models/packages_upload_nuget.rb +11 -1
  93. data/lib/cloudsmith-api/models/packages_upload_python.rb +11 -1
  94. data/lib/cloudsmith-api/models/packages_upload_raw.rb +11 -1
  95. data/lib/cloudsmith-api/models/packages_upload_rpm.rb +11 -1
  96. data/lib/cloudsmith-api/models/packages_upload_ruby.rb +11 -1
  97. data/lib/cloudsmith-api/models/packages_upload_terraform.rb +11 -1
  98. data/lib/cloudsmith-api/models/packages_upload_vagrant.rb +11 -1
  99. data/lib/cloudsmith-api/models/packages_validateupload_alpine.rb +11 -1
  100. data/lib/cloudsmith-api/models/packages_validateupload_cargo.rb +11 -1
  101. data/lib/cloudsmith-api/models/packages_validateupload_cocoapods.rb +11 -1
  102. data/lib/cloudsmith-api/models/packages_validateupload_composer.rb +11 -1
  103. data/lib/cloudsmith-api/models/packages_validateupload_conan.rb +11 -1
  104. data/lib/cloudsmith-api/models/packages_validateupload_cran.rb +11 -1
  105. data/lib/cloudsmith-api/models/packages_validateupload_dart.rb +11 -1
  106. data/lib/cloudsmith-api/models/packages_validateupload_deb.rb +11 -1
  107. data/lib/cloudsmith-api/models/packages_validateupload_docker.rb +11 -1
  108. data/lib/cloudsmith-api/models/packages_validateupload_go.rb +11 -1
  109. data/lib/cloudsmith-api/models/packages_validateupload_helm.rb +11 -1
  110. data/lib/cloudsmith-api/models/packages_validateupload_luarocks.rb +11 -1
  111. data/lib/cloudsmith-api/models/packages_validateupload_maven.rb +11 -1
  112. data/lib/cloudsmith-api/models/packages_validateupload_npm.rb +11 -1
  113. data/lib/cloudsmith-api/models/packages_validateupload_nuget.rb +11 -1
  114. data/lib/cloudsmith-api/models/packages_validateupload_python.rb +11 -1
  115. data/lib/cloudsmith-api/models/packages_validateupload_raw.rb +11 -1
  116. data/lib/cloudsmith-api/models/packages_validateupload_rpm.rb +11 -1
  117. data/lib/cloudsmith-api/models/packages_validateupload_ruby.rb +11 -1
  118. data/lib/cloudsmith-api/models/packages_validateupload_terraform.rb +11 -1
  119. data/lib/cloudsmith-api/models/packages_validateupload_vagrant.rb +11 -1
  120. data/lib/cloudsmith-api/models/raw_package_upload.rb +41 -1
  121. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +41 -1
  122. data/lib/cloudsmith-api/version.rb +1 -1
  123. data/spec/api/metrics_api_spec.rb +18 -1
  124. data/spec/api/packages_api_spec.rb +16 -0
  125. data/spec/api/vulnerabilities_api_spec.rb +11 -11
  126. data/spec/models/alpine_package_upload_spec.rb +24 -0
  127. data/spec/models/conan_package_upload_spec.rb +24 -0
  128. data/spec/models/maven_package_upload_spec.rb +24 -0
  129. data/spec/models/package_copy_spec.rb +24 -0
  130. data/spec/models/package_move_spec.rb +24 -0
  131. data/spec/models/package_spec.rb +24 -0
  132. data/spec/models/packages_copy_spec.rb +6 -0
  133. data/spec/models/packages_move_spec.rb +6 -0
  134. data/spec/models/packages_resync_spec.rb +42 -0
  135. data/spec/models/packages_scan_spec.rb +42 -0
  136. data/spec/models/packages_tag_spec.rb +6 -0
  137. data/spec/models/packages_upload_alpine_spec.rb +6 -0
  138. data/spec/models/packages_upload_cargo_spec.rb +6 -0
  139. data/spec/models/packages_upload_cocoapods_spec.rb +6 -0
  140. data/spec/models/packages_upload_composer_spec.rb +6 -0
  141. data/spec/models/packages_upload_conan_spec.rb +6 -0
  142. data/spec/models/packages_upload_cran_spec.rb +6 -0
  143. data/spec/models/packages_upload_dart_spec.rb +6 -0
  144. data/spec/models/packages_upload_deb_spec.rb +6 -0
  145. data/spec/models/packages_upload_docker_spec.rb +6 -0
  146. data/spec/models/packages_upload_go_spec.rb +6 -0
  147. data/spec/models/packages_upload_helm_spec.rb +6 -0
  148. data/spec/models/packages_upload_luarocks_spec.rb +6 -0
  149. data/spec/models/packages_upload_maven_spec.rb +6 -0
  150. data/spec/models/packages_upload_npm_spec.rb +6 -0
  151. data/spec/models/packages_upload_nuget_spec.rb +6 -0
  152. data/spec/models/packages_upload_python_spec.rb +6 -0
  153. data/spec/models/packages_upload_raw_spec.rb +6 -0
  154. data/spec/models/packages_upload_rpm_spec.rb +6 -0
  155. data/spec/models/packages_upload_ruby_spec.rb +6 -0
  156. data/spec/models/packages_upload_terraform_spec.rb +6 -0
  157. data/spec/models/packages_upload_vagrant_spec.rb +6 -0
  158. data/spec/models/packages_validateupload_alpine_spec.rb +6 -0
  159. data/spec/models/packages_validateupload_cargo_spec.rb +6 -0
  160. data/spec/models/packages_validateupload_cocoapods_spec.rb +6 -0
  161. data/spec/models/packages_validateupload_composer_spec.rb +6 -0
  162. data/spec/models/packages_validateupload_conan_spec.rb +6 -0
  163. data/spec/models/packages_validateupload_cran_spec.rb +6 -0
  164. data/spec/models/packages_validateupload_dart_spec.rb +6 -0
  165. data/spec/models/packages_validateupload_deb_spec.rb +6 -0
  166. data/spec/models/packages_validateupload_docker_spec.rb +6 -0
  167. data/spec/models/packages_validateupload_go_spec.rb +6 -0
  168. data/spec/models/packages_validateupload_helm_spec.rb +6 -0
  169. data/spec/models/packages_validateupload_luarocks_spec.rb +6 -0
  170. data/spec/models/packages_validateupload_maven_spec.rb +6 -0
  171. data/spec/models/packages_validateupload_npm_spec.rb +6 -0
  172. data/spec/models/packages_validateupload_nuget_spec.rb +6 -0
  173. data/spec/models/packages_validateupload_python_spec.rb +6 -0
  174. data/spec/models/packages_validateupload_raw_spec.rb +6 -0
  175. data/spec/models/packages_validateupload_rpm_spec.rb +6 -0
  176. data/spec/models/packages_validateupload_ruby_spec.rb +6 -0
  177. data/spec/models/packages_validateupload_terraform_spec.rb +6 -0
  178. data/spec/models/packages_validateupload_vagrant_spec.rb +6 -0
  179. data/spec/models/raw_package_upload_spec.rb +24 -0
  180. data/spec/models/vagrant_package_upload_spec.rb +24 -0
  181. data/vendor/bundle/ruby/2.6.0/cache/rspec-3.10.0.gem +0 -0
  182. data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.10.0.gem +0 -0
  183. data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.10.0.gem +0 -0
  184. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.10.0.gem +0 -0
  185. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.10.0.gem +0 -0
  186. data/vendor/bundle/ruby/2.6.0/cache/sys-uname-1.2.2.gem +0 -0
  187. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.17/gem_make.out +1 -1
  188. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.13.1/gem_make.out +2 -2
  189. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.3.1/gem_make.out +1 -1
  190. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c/Makefile +3 -3
  191. data/vendor/bundle/ruby/2.6.0/gems/{rspec-3.9.0 → rspec-3.10.0}/LICENSE.md +0 -0
  192. data/vendor/bundle/ruby/2.6.0/gems/{rspec-3.9.0 → rspec-3.10.0}/README.md +0 -0
  193. data/vendor/bundle/ruby/2.6.0/gems/{rspec-3.9.0 → rspec-3.10.0}/lib/rspec.rb +0 -0
  194. data/vendor/bundle/ruby/2.6.0/gems/{rspec-3.9.0 → rspec-3.10.0}/lib/rspec/version.rb +1 -1
  195. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/.document +0 -0
  196. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/.yardopts +0 -0
  197. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/Changelog.md +10 -0
  198. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/LICENSE.md +0 -0
  199. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/README.md +0 -0
  200. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/exe/rspec +0 -0
  201. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/autorun.rb +0 -0
  202. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core.rb +0 -0
  203. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/backtrace_formatter.rb +0 -0
  204. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/bisect/coordinator.rb +0 -0
  205. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
  206. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/bisect/fork_runner.rb +0 -0
  207. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/bisect/server.rb +0 -0
  208. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/bisect/shell_command.rb +0 -0
  209. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/bisect/shell_runner.rb +0 -0
  210. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/bisect/utilities.rb +0 -0
  211. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/configuration.rb +6 -0
  212. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/configuration_options.rb +0 -0
  213. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/did_you_mean.rb +0 -0
  214. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/drb.rb +7 -0
  215. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/dsl.rb +0 -0
  216. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/example.rb +0 -0
  217. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/example_group.rb +0 -0
  218. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/example_status_persister.rb +0 -0
  219. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/filter_manager.rb +0 -0
  220. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/flat_map.rb +0 -0
  221. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters.rb +0 -0
  222. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -0
  223. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/base_formatter.rb +0 -0
  224. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
  225. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -0
  226. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
  227. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/console_codes.rb +0 -0
  228. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/deprecation_formatter.rb +0 -0
  229. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
  230. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/exception_presenter.rb +7 -5
  231. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/failure_list_formatter.rb +0 -0
  232. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
  233. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/helpers.rb +0 -0
  234. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/html_formatter.rb +0 -0
  235. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/html_printer.rb +0 -0
  236. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -0
  237. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/json_formatter.rb +0 -0
  238. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
  239. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
  240. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/protocol.rb +0 -0
  241. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
  242. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
  243. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/hooks.rb +0 -0
  244. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/invocations.rb +1 -1
  245. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/memoized_helpers.rb +0 -0
  246. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/metadata.rb +0 -0
  247. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/metadata_filter.rb +0 -0
  248. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
  249. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
  250. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
  251. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/mocking_adapters/null.rb +0 -0
  252. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
  253. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
  254. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/notifications.rb +0 -0
  255. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/option_parser.rb +5 -0
  256. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/ordering.rb +0 -0
  257. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/output_wrapper.rb +0 -0
  258. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/pending.rb +0 -0
  259. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/profiler.rb +0 -0
  260. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/project_initializer.rb +0 -0
  261. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/project_initializer/.rspec +0 -0
  262. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -0
  263. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/rake_task.rb +0 -0
  264. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/reporter.rb +0 -0
  265. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/ruby_project.rb +0 -0
  266. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/runner.rb +12 -4
  267. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/sandbox.rb +0 -0
  268. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/set.rb +0 -0
  269. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/shared_context.rb +0 -0
  270. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/shared_example_group.rb +0 -0
  271. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/shell_escape.rb +0 -0
  272. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
  273. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/version.rb +1 -1
  274. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/warnings.rb +0 -0
  275. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.3 → rspec-core-3.10.0}/lib/rspec/core/world.rb +0 -0
  276. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/.document +0 -0
  277. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/.yardopts +0 -0
  278. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/Changelog.md +43 -2
  279. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/LICENSE.md +0 -0
  280. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/README.md +4 -4
  281. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations.rb +0 -0
  282. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
  283. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations/configuration.rb +15 -0
  284. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations/expectation_target.rb +0 -0
  285. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations/fail_with.rb +0 -0
  286. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations/failure_aggregator.rb +19 -1
  287. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations/handler.rb +18 -6
  288. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations/minitest_integration.rb +0 -0
  289. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations/syntax.rb +0 -0
  290. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/expectations/version.rb +1 -1
  291. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers.rb +43 -40
  292. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/aliased_matcher.rb +0 -0
  293. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in.rb +2 -1
  294. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/all.rb +0 -0
  295. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
  296. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/be.rb +10 -107
  297. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/be_between.rb +0 -0
  298. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
  299. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
  300. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/be_within.rb +2 -2
  301. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/change.rb +0 -0
  302. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/compound.rb +0 -0
  303. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/contain_exactly.rb +0 -0
  304. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.0/lib/rspec/matchers/built_in/count_expectation.rb +169 -0
  305. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/cover.rb +0 -0
  306. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/eq.rb +0 -0
  307. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/eql.rb +0 -0
  308. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/equal.rb +0 -0
  309. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/exist.rb +0 -0
  310. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.0/lib/rspec/matchers/built_in/has.rb +167 -0
  311. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
  312. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/include.rb +72 -15
  313. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/match.rb +0 -0
  314. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/operators.rb +0 -0
  315. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/output.rb +0 -0
  316. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/raise_error.rb +42 -13
  317. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/respond_to.rb +46 -45
  318. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
  319. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
  320. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/throw_symbol.rb +0 -0
  321. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/built_in/yield.rb +6 -92
  322. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/composable.rb +0 -0
  323. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/dsl.rb +0 -0
  324. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/english_phrasing.rb +1 -1
  325. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
  326. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/fail_matchers.rb +0 -0
  327. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/generated_descriptions.rb +0 -0
  328. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/matcher_delegator.rb +0 -0
  329. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.9.2 → rspec-expectations-3.10.0}/lib/rspec/matchers/matcher_protocol.rb +0 -0
  330. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/.document +0 -0
  331. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/.yardopts +0 -0
  332. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/Changelog.md +10 -0
  333. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/LICENSE.md +0 -0
  334. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/README.md +5 -5
  335. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks.rb +4 -1
  336. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance.rb +0 -0
  337. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  338. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  339. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  340. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  341. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
  342. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
  343. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
  344. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  345. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  346. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/argument_list_matcher.rb +0 -0
  347. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/argument_matchers.rb +0 -0
  348. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/configuration.rb +0 -0
  349. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/error_generator.rb +0 -0
  350. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/example_methods.rb +0 -0
  351. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  352. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/marshal_extension.rb +0 -0
  353. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  354. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/matchers/have_received.rb +0 -0
  355. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/matchers/receive.rb +0 -0
  356. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
  357. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
  358. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/message_chain.rb +0 -0
  359. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/message_expectation.rb +2 -2
  360. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/method_double.rb +0 -0
  361. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/method_reference.rb +0 -0
  362. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/minitest_integration.rb +0 -0
  363. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/mutate_const.rb +0 -0
  364. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/object_reference.rb +0 -0
  365. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/order_group.rb +0 -0
  366. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/proxy.rb +0 -0
  367. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/space.rb +0 -0
  368. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/standalone.rb +0 -0
  369. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/syntax.rb +0 -0
  370. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/targets.rb +0 -0
  371. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/test_double.rb +0 -0
  372. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/verifying_double.rb +0 -0
  373. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
  374. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/verifying_proxy.rb +0 -0
  375. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.9.1 → rspec-mocks-3.10.0}/lib/rspec/mocks/version.rb +1 -1
  376. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/Changelog.md +12 -0
  377. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/LICENSE.md +0 -0
  378. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/README.md +2 -2
  379. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support.rb +0 -0
  380. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/caller_filter.rb +1 -1
  381. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/comparable_version.rb +1 -1
  382. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/differ.rb +0 -0
  383. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/directory_maker.rb +0 -0
  384. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/encoded_string.rb +0 -0
  385. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  386. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/hunk_generator.rb +0 -0
  387. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/matcher_definition.rb +0 -0
  388. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/method_signature_verifier.rb +2 -2
  389. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/mutex.rb +0 -0
  390. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/object_formatter.rb +0 -0
  391. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/recursive_const_methods.rb +0 -0
  392. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/reentrant_mutex.rb +0 -0
  393. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/ruby_features.rb +4 -4
  394. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/source.rb +10 -0
  395. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/source/location.rb +0 -0
  396. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/source/node.rb +0 -0
  397. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/source/token.rb +0 -0
  398. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec.rb +1 -0
  399. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  400. data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.0/lib/rspec/support/spec/diff_helpers.rb +31 -0
  401. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec/formatting_support.rb +0 -0
  402. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec/in_sub_process.rb +1 -3
  403. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  404. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec/shell_out.rb +19 -8
  405. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
  406. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec/string_matcher.rb +0 -1
  407. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  408. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  409. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/version.rb +1 -1
  410. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/warnings.rb +0 -0
  411. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.9.3 → rspec-support-3.10.0}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
  412. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1/CHANGES.rdoc → sys-uname-1.2.2/CHANGES.md} +41 -35
  413. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Gemfile +7 -0
  414. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/LICENSE +0 -0
  415. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1/MANIFEST.rdoc → sys-uname-1.2.2/MANIFEST.md} +2 -1
  416. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1/README.rdoc → sys-uname-1.2.2/README.md} +22 -20
  417. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/Rakefile +2 -2
  418. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/certs/djberg96_pub.pem +0 -0
  419. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/doc/uname.rdoc +1 -1
  420. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/examples/uname_test.rb +0 -0
  421. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/lib/sys-uname.rb +0 -0
  422. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/lib/sys/platform.rb +0 -0
  423. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/lib/sys/uname.rb +1 -1
  424. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/lib/sys/unix/uname.rb +0 -0
  425. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/lib/sys/windows/uname.rb +0 -0
  426. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/spec/sys_platform_spec.rb +1 -1
  427. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/spec/sys_uname_spec.rb +2 -2
  428. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.1 → sys-uname-1.2.2}/sys-uname.gemspec +5 -4
  429. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-3.9.0.gemspec → rspec-3.10.0.gemspec} +13 -13
  430. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-core-3.9.3.gemspec → rspec-core-3.10.0.gemspec} +8 -8
  431. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-expectations-3.9.2.gemspec → rspec-expectations-3.10.0.gemspec} +8 -8
  432. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-mocks-3.9.1.gemspec → rspec-mocks-3.10.0.gemspec} +11 -11
  433. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-support-3.9.3.gemspec → rspec-support-3.10.0.gemspec} +5 -5
  434. data/vendor/bundle/ruby/2.6.0/specifications/{sys-uname-1.2.1.gemspec → sys-uname-1.2.2.gemspec} +12 -9
  435. metadata +355 -344
  436. data/vendor/bundle/ruby/2.6.0/cache/rspec-3.9.0.gem +0 -0
  437. data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.9.3.gem +0 -0
  438. data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.9.2.gem +0 -0
  439. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.9.1.gem +0 -0
  440. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.9.3.gem +0 -0
  441. data/vendor/bundle/ruby/2.6.0/cache/sys-uname-1.2.1.gem +0 -0
  442. data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/has.rb +0 -103
@@ -28,6 +28,7 @@ module RSpec
28
28
 
29
29
  def initialize
30
30
  @on_potential_false_positives = :warn
31
+ @strict_predicate_matchers = false
31
32
  end
32
33
 
33
34
  # Configures the supported syntax.
@@ -185,6 +186,20 @@ module RSpec
185
186
  @on_potential_false_positives = behavior
186
187
  end
187
188
 
189
+ # Configures RSpec to check predicate matchers to `be(true)` / `be(false)` (strict),
190
+ # or `be_truthy` / `be_falsey` (not strict).
191
+ # Historically, the default was `false`, but `true` is recommended.
192
+ def strict_predicate_matchers=(flag)
193
+ raise ArgumentError, "Pass `true` or `false`" unless flag == true || flag == false
194
+ @strict_predicate_matchers = flag
195
+ end
196
+
197
+ attr_reader :strict_predicate_matchers
198
+
199
+ def strict_predicate_matchers?
200
+ @strict_predicate_matchers
201
+ end
202
+
188
203
  # Indicates what RSpec will do about matcher use which will
189
204
  # potentially cause false positives in tests, generally you want to
190
205
  # avoid such scenarios so this defaults to `true`.
@@ -150,11 +150,29 @@ module RSpec
150
150
  def enumerated(exceptions, index_offset)
151
151
  exceptions.each_with_index.map do |exception, index|
152
152
  index += index_offset
153
- formatted_message = yield exception
153
+ formatted_message = "#{yield exception}\n#{format_backtrace(exception.backtrace).first}"
154
154
  "#{index_label index}#{indented formatted_message, index}"
155
155
  end
156
156
  end
157
157
 
158
+ def exclusion_patterns
159
+ patterns = %w[/lib\d*/ruby/ bin/ exe/rspec /lib/bundler/ /exe/bundle:]
160
+ patterns << "org/jruby/" if RSpec::Support::Ruby.jruby?
161
+ patterns.map! { |s| Regexp.new(s.gsub('/', File::SEPARATOR)) }
162
+ end
163
+
164
+ def format_backtrace(backtrace)
165
+ backtrace.map { |l| backtrace_line(l) }.compact.tap { |filtered| filtered.concat backtrace if filtered.empty? }
166
+ end
167
+
168
+ def backtrace_line(line)
169
+ return if [Regexp.union(RSpec::CallerFilter::IGNORE_REGEX, *exclusion_patterns)].any? { |p| line =~ p }
170
+
171
+ # It changes the current path that is relative to
172
+ # system root to be relative to the project root.
173
+ line.sub(/(\A|\s)#{File.expand_path('.')}(#{File::SEPARATOR}|\s|\Z)/, '\\1.\\2'.freeze).sub(/\A([^:]+:\d+)$/, '\\1'.freeze)
174
+ end
175
+
158
176
  def enumerated_failures
159
177
  enumerated(failures, 0, &:message)
160
178
  end
@@ -44,10 +44,16 @@ module RSpec
44
44
 
45
45
  # @private
46
46
  class PositiveExpectationHandler
47
- def self.handle_matcher(actual, initial_matcher, message=nil, &block)
48
- ExpectationHelper.with_matcher(self, initial_matcher, message) do |matcher|
47
+ def self.handle_matcher(actual, initial_matcher, custom_message=nil, &block)
48
+ ExpectationHelper.with_matcher(self, initial_matcher, custom_message) do |matcher|
49
49
  return ::RSpec::Matchers::BuiltIn::PositiveOperatorMatcher.new(actual) unless initial_matcher
50
- matcher.matches?(actual, &block) || ExpectationHelper.handle_failure(matcher, message, :failure_message)
50
+
51
+ match_result = matcher.matches?(actual, &block)
52
+ if custom_message && match_result.respond_to?(:error_generator)
53
+ match_result.error_generator.opts[:message] = custom_message
54
+ end
55
+
56
+ match_result || ExpectationHelper.handle_failure(matcher, custom_message, :failure_message)
51
57
  end
52
58
  end
53
59
 
@@ -66,10 +72,16 @@ module RSpec
66
72
 
67
73
  # @private
68
74
  class NegativeExpectationHandler
69
- def self.handle_matcher(actual, initial_matcher, message=nil, &block)
70
- ExpectationHelper.with_matcher(self, initial_matcher, message) do |matcher|
75
+ def self.handle_matcher(actual, initial_matcher, custom_message=nil, &block)
76
+ ExpectationHelper.with_matcher(self, initial_matcher, custom_message) do |matcher|
71
77
  return ::RSpec::Matchers::BuiltIn::NegativeOperatorMatcher.new(actual) unless initial_matcher
72
- does_not_match?(matcher, actual, &block) || ExpectationHelper.handle_failure(matcher, message, :failure_message_when_negated)
78
+
79
+ negated_match_result = does_not_match?(matcher, actual, &block)
80
+ if custom_message && negated_match_result.respond_to?(:error_generator)
81
+ negated_match_result.error_generator.opts[:message] = custom_message
82
+ end
83
+
84
+ negated_match_result || ExpectationHelper.handle_failure(matcher, custom_message, :failure_message_when_negated)
73
85
  end
74
86
  end
75
87
 
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Expectations
3
3
  # @private
4
4
  module Version
5
- STRING = '3.9.2'
5
+ STRING = '3.10.0'
6
6
  end
7
7
  end
8
8
  end
@@ -238,7 +238,7 @@ module RSpec
238
238
  # best to find a more positive name for the negated form, such as
239
239
  # `avoid_changing` rather than `not_change`.
240
240
  #
241
- module Matchers
241
+ module Matchers # rubocop:disable Metrics/ModuleLength
242
242
  extend ::RSpec::Matchers::DSL
243
243
 
244
244
  # @!macro [attach] alias_matcher
@@ -316,9 +316,9 @@ module RSpec
316
316
  def be_falsey
317
317
  BuiltIn::BeFalsey.new
318
318
  end
319
- alias_matcher :be_falsy, :be_falsey
319
+ alias_matcher :be_falsy, :be_falsey
320
320
  alias_matcher :a_falsey_value, :be_falsey
321
- alias_matcher :a_falsy_value, :be_falsey
321
+ alias_matcher :a_falsy_value, :be_falsey
322
322
 
323
323
  # Passes if actual is nil
324
324
  def be_nil
@@ -379,7 +379,7 @@ module RSpec
379
379
  BuiltIn::BeAKindOf.new(expected)
380
380
  end
381
381
  alias_method :be_kind_of, :be_a_kind_of
382
- alias_matcher :a_kind_of, :be_a_kind_of
382
+ alias_matcher :a_kind_of, :be_a_kind_of
383
383
 
384
384
  # Passes if actual.between?(min, max). Works with any Comparable object,
385
385
  # including String, Symbol, Time, or Numeric (Fixnum, Bignum, Integer,
@@ -406,7 +406,7 @@ module RSpec
406
406
  BuiltIn::BeWithin.new(delta)
407
407
  end
408
408
  alias_matcher :a_value_within, :be_within
409
- alias_matcher :within, :be_within
409
+ alias_matcher :within, :be_within
410
410
 
411
411
  # Applied to a proc, specifies that its execution will cause some value to
412
412
  # change.
@@ -492,8 +492,8 @@ module RSpec
492
492
  def change(receiver=nil, message=nil, &block)
493
493
  BuiltIn::Change.new(receiver, message, &block)
494
494
  end
495
- alias_matcher :a_block_changing, :change
496
- alias_matcher :changing, :change
495
+ alias_matcher :a_block_changing, :change
496
+ alias_matcher :changing, :change
497
497
 
498
498
  # Passes if actual contains all of the expected regardless of order.
499
499
  # This works for collections. Pass in multiple args and it will only
@@ -511,7 +511,7 @@ module RSpec
511
511
  BuiltIn::ContainExactly.new(items)
512
512
  end
513
513
  alias_matcher :a_collection_containing_exactly, :contain_exactly
514
- alias_matcher :containing_exactly, :contain_exactly
514
+ alias_matcher :containing_exactly, :contain_exactly
515
515
 
516
516
  # Passes if actual covers expected. This works for
517
517
  # Ranges. You can also pass in multiple args
@@ -529,7 +529,7 @@ module RSpec
529
529
  BuiltIn::Cover.new(*values)
530
530
  end
531
531
  alias_matcher :a_range_covering, :cover
532
- alias_matcher :covering, :cover
532
+ alias_matcher :covering, :cover
533
533
 
534
534
  # Matches if the actual value ends with the expected value(s). In the case
535
535
  # of a string, matches against the last `expected.length` characters of the
@@ -544,8 +544,8 @@ module RSpec
544
544
  BuiltIn::EndWith.new(*expected)
545
545
  end
546
546
  alias_matcher :a_collection_ending_with, :end_with
547
- alias_matcher :a_string_ending_with, :end_with
548
- alias_matcher :ending_with, :end_with
547
+ alias_matcher :a_string_ending_with, :end_with
548
+ alias_matcher :ending_with, :end_with
549
549
 
550
550
  # Passes if <tt>actual == expected</tt>.
551
551
  #
@@ -559,7 +559,7 @@ module RSpec
559
559
  BuiltIn::Eq.new(expected)
560
560
  end
561
561
  alias_matcher :an_object_eq_to, :eq
562
- alias_matcher :eq_to, :eq
562
+ alias_matcher :eq_to, :eq
563
563
 
564
564
  # Passes if `actual.eql?(expected)`
565
565
  #
@@ -573,7 +573,7 @@ module RSpec
573
573
  BuiltIn::Eql.new(expected)
574
574
  end
575
575
  alias_matcher :an_object_eql_to, :eql
576
- alias_matcher :eql_to, :eql
576
+ alias_matcher :eql_to, :eql
577
577
 
578
578
  # Passes if <tt>actual.equal?(expected)</tt> (object identity).
579
579
  #
@@ -587,7 +587,7 @@ module RSpec
587
587
  BuiltIn::Equal.new(expected)
588
588
  end
589
589
  alias_matcher :an_object_equal_to, :equal
590
- alias_matcher :equal_to, :equal
590
+ alias_matcher :equal_to, :equal
591
591
 
592
592
  # Passes if `actual.exist?` or `actual.exists?`
593
593
  #
@@ -597,7 +597,7 @@ module RSpec
597
597
  BuiltIn::Exist.new(*args)
598
598
  end
599
599
  alias_matcher :an_object_existing, :exist
600
- alias_matcher :existing, :exist
600
+ alias_matcher :existing, :exist
601
601
 
602
602
  # Passes if actual's attribute values match the expected attributes hash.
603
603
  # This works no matter how you define your attribute readers.
@@ -617,7 +617,7 @@ module RSpec
617
617
  BuiltIn::HaveAttributes.new(expected)
618
618
  end
619
619
  alias_matcher :an_object_having_attributes, :have_attributes
620
- alias_matcher :having_attributes, :have_attributes
620
+ alias_matcher :having_attributes, :have_attributes
621
621
 
622
622
  # Passes if actual includes expected. This works for
623
623
  # collections and Strings. You can also pass in multiple args
@@ -640,9 +640,9 @@ module RSpec
640
640
  BuiltIn::Include.new(*expected)
641
641
  end
642
642
  alias_matcher :a_collection_including, :include
643
- alias_matcher :a_string_including, :include
644
- alias_matcher :a_hash_including, :include
645
- alias_matcher :including, :include
643
+ alias_matcher :a_string_including, :include
644
+ alias_matcher :a_hash_including, :include
645
+ alias_matcher :including, :include
646
646
 
647
647
  # Passes if the provided matcher passes when checked against all
648
648
  # elements of the collection.
@@ -697,10 +697,10 @@ module RSpec
697
697
  def match(expected)
698
698
  BuiltIn::Match.new(expected)
699
699
  end
700
- alias_matcher :match_regex, :match
700
+ alias_matcher :match_regex, :match
701
701
  alias_matcher :an_object_matching, :match
702
- alias_matcher :a_string_matching, :match
703
- alias_matcher :matching, :match
702
+ alias_matcher :a_string_matching, :match
703
+ alias_matcher :matching, :match
704
704
 
705
705
  # An alternate form of `contain_exactly` that accepts
706
706
  # the expected contents as a single array arg rather
@@ -761,20 +761,22 @@ module RSpec
761
761
  # expect { do_something_risky }.to raise_error
762
762
  # expect { do_something_risky }.to raise_error(PoorRiskDecisionError)
763
763
  # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) { |error| expect(error.data).to eq 42 }
764
+ # expect { do_something_risky }.to raise_error { |error| expect(error.data).to eq 42 }
764
765
  # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, "that was too risky")
765
766
  # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, /oo ri/)
767
+ # expect { do_something_risky }.to raise_error("that was too risky")
766
768
  #
767
769
  # expect { do_something_risky }.not_to raise_error
768
- def raise_error(error=nil, message=nil, &block)
770
+ def raise_error(error=BuiltIn::RaiseError::UndefinedValue, message=nil, &block)
769
771
  BuiltIn::RaiseError.new(error, message, &block)
770
772
  end
771
- alias_method :raise_exception, :raise_error
773
+ alias_method :raise_exception, :raise_error
772
774
 
773
- alias_matcher :a_block_raising, :raise_error do |desc|
775
+ alias_matcher :a_block_raising, :raise_error do |desc|
774
776
  desc.sub("raise", "a block raising")
775
777
  end
776
778
 
777
- alias_matcher :raising, :raise_error do |desc|
779
+ alias_matcher :raising, :raise_error do |desc|
778
780
  desc.sub("raise", "raising")
779
781
  end
780
782
 
@@ -788,7 +790,7 @@ module RSpec
788
790
  BuiltIn::RespondTo.new(*names)
789
791
  end
790
792
  alias_matcher :an_object_responding_to, :respond_to
791
- alias_matcher :responding_to, :respond_to
793
+ alias_matcher :responding_to, :respond_to
792
794
 
793
795
  # Passes if the submitted block returns true. Yields target to the
794
796
  # block.
@@ -809,7 +811,7 @@ module RSpec
809
811
  BuiltIn::Satisfy.new(description, &block)
810
812
  end
811
813
  alias_matcher :an_object_satisfying, :satisfy
812
- alias_matcher :satisfying, :satisfy
814
+ alias_matcher :satisfying, :satisfy
813
815
 
814
816
  # Matches if the actual value starts with the expected value(s). In the
815
817
  # case of a string, matches against the first `expected.length` characters
@@ -824,8 +826,8 @@ module RSpec
824
826
  BuiltIn::StartWith.new(*expected)
825
827
  end
826
828
  alias_matcher :a_collection_starting_with, :start_with
827
- alias_matcher :a_string_starting_with, :start_with
828
- alias_matcher :starting_with, :start_with
829
+ alias_matcher :a_string_starting_with, :start_with
830
+ alias_matcher :starting_with, :start_with
829
831
 
830
832
  # Given no argument, matches if a proc throws any Symbol.
831
833
  #
@@ -850,7 +852,7 @@ module RSpec
850
852
  desc.sub("throw", "a block throwing")
851
853
  end
852
854
 
853
- alias_matcher :throwing, :throw_symbol do |desc|
855
+ alias_matcher :throwing, :throw_symbol do |desc|
854
856
  desc.sub("throw", "throwing")
855
857
  end
856
858
 
@@ -866,8 +868,8 @@ module RSpec
866
868
  def yield_control
867
869
  BuiltIn::YieldControl.new
868
870
  end
869
- alias_matcher :a_block_yielding_control, :yield_control
870
- alias_matcher :yielding_control, :yield_control
871
+ alias_matcher :a_block_yielding_control, :yield_control
872
+ alias_matcher :yielding_control, :yield_control
871
873
 
872
874
  # Passes if the method called in the expect block yields with
873
875
  # no arguments. Fails if it does not yield, or yields with arguments.
@@ -884,8 +886,8 @@ module RSpec
884
886
  def yield_with_no_args
885
887
  BuiltIn::YieldWithNoArgs.new
886
888
  end
887
- alias_matcher :a_block_yielding_with_no_args, :yield_with_no_args
888
- alias_matcher :yielding_with_no_args, :yield_with_no_args
889
+ alias_matcher :a_block_yielding_with_no_args, :yield_with_no_args
890
+ alias_matcher :yielding_with_no_args, :yield_with_no_args
889
891
 
890
892
  # Given no arguments, matches if the method called in the expect
891
893
  # block yields with arguments (regardless of what they are or how
@@ -914,8 +916,8 @@ module RSpec
914
916
  def yield_with_args(*args)
915
917
  BuiltIn::YieldWithArgs.new(*args)
916
918
  end
917
- alias_matcher :a_block_yielding_with_args, :yield_with_args
918
- alias_matcher :yielding_with_args, :yield_with_args
919
+ alias_matcher :a_block_yielding_with_args, :yield_with_args
920
+ alias_matcher :yielding_with_args, :yield_with_args
919
921
 
920
922
  # Designed for use with methods that repeatedly yield (such as
921
923
  # iterators). Passes if the method called in the expect block yields
@@ -935,8 +937,8 @@ module RSpec
935
937
  def yield_successive_args(*args)
936
938
  BuiltIn::YieldSuccessiveArgs.new(*args)
937
939
  end
938
- alias_matcher :a_block_yielding_successive_args, :yield_successive_args
939
- alias_matcher :yielding_successive_args, :yield_successive_args
940
+ alias_matcher :a_block_yielding_successive_args, :yield_successive_args
941
+ alias_matcher :yielding_successive_args, :yield_successive_args
940
942
 
941
943
  # Delegates to {RSpec::Expectations.configuration}.
942
944
  # This is here because rspec-core's `expect_with` option
@@ -949,7 +951,7 @@ module RSpec
949
951
 
950
952
  private
951
953
 
952
- BE_PREDICATE_REGEX = /^(be_(?:an?_)?)(.*)/
954
+ BE_PREDICATE_REGEX = /^(?:be_(?:an?_)?)(.*)/
953
955
  HAS_REGEX = /^(?:have_)(.*)/
954
956
  DYNAMIC_MATCHER_REGEX = Regexp.union(BE_PREDICATE_REGEX, HAS_REGEX)
955
957
 
@@ -963,6 +965,7 @@ module RSpec
963
965
  super
964
966
  end
965
967
  end
968
+ ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
966
969
 
967
970
  if RUBY_VERSION.to_f >= 1.9
968
971
  def respond_to_missing?(method, *)
@@ -16,8 +16,9 @@ module RSpec
16
16
  autoload :Be, 'rspec/matchers/built_in/be'
17
17
  autoload :BeComparedTo, 'rspec/matchers/built_in/be'
18
18
  autoload :BeFalsey, 'rspec/matchers/built_in/be'
19
+ autoload :BeHelpers, 'rspec/matchers/built_in/be'
19
20
  autoload :BeNil, 'rspec/matchers/built_in/be'
20
- autoload :BePredicate, 'rspec/matchers/built_in/be'
21
+ autoload :BePredicate, 'rspec/matchers/built_in/has'
21
22
  autoload :BeTruthy, 'rspec/matchers/built_in/be'
22
23
  autoload :BeWithin, 'rspec/matchers/built_in/be_within'
23
24
  autoload :Change, 'rspec/matchers/built_in/change'
@@ -143,8 +143,13 @@ module RSpec
143
143
  end
144
144
 
145
145
  def matches?(actual)
146
- @actual = actual
147
- @actual.__send__ @operator, @expected
146
+ perform_match(actual)
147
+ rescue ArgumentError, NoMethodError
148
+ false
149
+ end
150
+
151
+ def does_not_match?(actual)
152
+ !perform_match(actual)
148
153
  rescue ArgumentError, NoMethodError
149
154
  false
150
155
  end
@@ -173,114 +178,12 @@ module RSpec
173
178
  def description
174
179
  "be #{@operator} #{expected_to_sentence}#{args_to_sentence}"
175
180
  end
176
- end
177
-
178
- # @api private
179
- # Provides the implementation of `be_<predicate>`.
180
- # Not intended to be instantiated directly.
181
- class BePredicate < BaseMatcher
182
- include BeHelpers
183
-
184
- def initialize(*args, &block)
185
- @expected = parse_expected(args.shift)
186
- @args = args
187
- @block = block
188
- end
189
-
190
- def matches?(actual, &block)
191
- @actual = actual
192
- @block ||= block
193
- predicate_accessible? && predicate_matches?
194
- end
195
-
196
- def does_not_match?(actual, &block)
197
- @actual = actual
198
- @block ||= block
199
- predicate_accessible? && !predicate_matches?
200
- end
201
-
202
- # @api private
203
- # @return [String]
204
- def failure_message
205
- failure_message_expecting(true)
206
- end
207
-
208
- # @api private
209
- # @return [String]
210
- def failure_message_when_negated
211
- failure_message_expecting(false)
212
- end
213
-
214
- # @api private
215
- # @return [String]
216
- def description
217
- "#{prefix_to_sentence}#{expected_to_sentence}#{args_to_sentence}"
218
- end
219
181
 
220
182
  private
221
183
 
222
- def predicate_accessible?
223
- actual.respond_to?(predicate) || actual.respond_to?(present_tense_predicate)
224
- end
225
-
226
- # support 1.8.7, evaluate once at load time for performance
227
- if String === methods.first
228
- # :nocov:
229
- def private_predicate?
230
- @actual.private_methods.include? predicate.to_s
231
- end
232
- # :nocov:
233
- else
234
- def private_predicate?
235
- @actual.private_methods.include? predicate
236
- end
237
- end
238
-
239
- def predicate_matches?
240
- method_name = actual.respond_to?(predicate) ? predicate : present_tense_predicate
241
- @predicate_matches = actual.__send__(method_name, *@args, &@block)
242
- end
243
-
244
- def predicate
245
- :"#{@expected}?"
246
- end
247
-
248
- def present_tense_predicate
249
- :"#{@expected}s?"
250
- end
251
-
252
- def parse_expected(expected)
253
- @prefix, expected = prefix_and_expected(expected)
254
- expected
255
- end
256
-
257
- def prefix_and_expected(symbol)
258
- Matchers::BE_PREDICATE_REGEX.match(symbol.to_s).captures.compact
259
- end
260
-
261
- def prefix_to_sentence
262
- EnglishPhrasing.split_words(@prefix)
263
- end
264
-
265
- def failure_message_expecting(value)
266
- validity_message ||
267
- "expected `#{actual_formatted}.#{predicate}#{args_to_s}` to return #{value}, got #{description_of @predicate_matches}"
268
- end
269
-
270
- def validity_message
271
- return nil if predicate_accessible?
272
-
273
- msg = "expected #{actual_formatted} to respond to `#{predicate}`".dup
274
-
275
- if private_predicate?
276
- msg << " but `#{predicate}` is a private method"
277
- elsif predicate == :true?
278
- msg << " or perhaps you meant `be true` or `be_truthy`"
279
- elsif predicate == :false?
280
- msg << " or perhaps you meant `be false` or `be_falsey`"
281
- end
282
-
283
- msg
184
+ def perform_match(actual)
185
+ @actual = actual
186
+ @actual.__send__ @operator, @expected
284
187
  end
285
188
  end
286
189
  end