acfs 1.7.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +144 -116
  3. data/README.md +19 -24
  4. data/acfs.gemspec +7 -10
  5. data/lib/acfs/collections/paginatable.rb +11 -11
  6. data/lib/acfs/configuration.rb +1 -1
  7. data/lib/acfs/errors.rb +6 -6
  8. data/lib/acfs/global.rb +2 -2
  9. data/lib/acfs/location.rb +1 -1
  10. data/lib/acfs/resource/attributes/uuid.rb +1 -1
  11. data/lib/acfs/resource/attributes.rb +1 -1
  12. data/lib/acfs/resource/dirty.rb +1 -1
  13. data/lib/acfs/resource/operational.rb +4 -4
  14. data/lib/acfs/resource/query_methods.rb +3 -3
  15. data/lib/acfs/response/status.rb +1 -1
  16. data/lib/acfs/service/middleware.rb +2 -2
  17. data/lib/acfs/singleton_resource.rb +2 -2
  18. data/lib/acfs/stub.rb +1 -1
  19. data/lib/acfs/version.rb +2 -2
  20. data/lib/acfs/yard.rb +1 -0
  21. data/spec/acfs/adapter/typhoeus_spec.rb +3 -3
  22. data/spec/acfs/configuration_spec.rb +1 -1
  23. data/spec/acfs/global_spec.rb +5 -5
  24. data/spec/acfs/location_spec.rb +1 -1
  25. data/spec/acfs/middleware/json_spec.rb +1 -1
  26. data/spec/acfs/middleware/message_pack_spec.rb +1 -1
  27. data/spec/acfs/operation_spec.rb +1 -1
  28. data/spec/acfs/resource/attributes/boolean_spec.rb +31 -31
  29. data/spec/acfs/resource/attributes/date_time_spec.rb +9 -9
  30. data/spec/acfs/resource/attributes/dict_spec.rb +10 -10
  31. data/spec/acfs/resource/attributes/float_spec.rb +11 -11
  32. data/spec/acfs/resource/attributes/integer_spec.rb +6 -6
  33. data/spec/acfs/resource/attributes/list_spec.rb +1 -1
  34. data/spec/acfs/resource/attributes/uuid_spec.rb +8 -8
  35. data/spec/acfs/resource/attributes_spec.rb +8 -8
  36. data/spec/acfs/resource/dirty_spec.rb +1 -1
  37. data/spec/acfs/resource/persistence_spec.rb +7 -7
  38. data/spec/acfs/resource/query_methods_spec.rb +1 -1
  39. data/spec/acfs/runner_spec.rb +12 -12
  40. data/spec/acfs/stub_spec.rb +13 -18
  41. data/spec/acfs_spec.rb +4 -4
  42. data/spec/spec_helper.rb +9 -5
  43. data/spec/support/hash.rb +1 -1
  44. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/LICENSE +21 -0
  45. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/README.md +23 -0
  46. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/rubocop-config.gemspec +31 -0
  47. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/CHANGELOG.md +205 -0
  48. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/MIT-LICENSE +21 -0
  49. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/README.rdoc +57 -0
  50. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/CHANGELOG.md +67 -0
  51. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/MIT-LICENSE +21 -0
  52. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/README.rdoc +40 -0
  53. data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/CHANGELOG.md +110 -0
  54. data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/MIT-LICENSE +21 -0
  55. data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/README.rdoc +266 -0
  56. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/CHANGELOG.md +157 -0
  57. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/MIT-LICENSE +20 -0
  58. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/README.rdoc +40 -0
  59. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/CHANGELOG.md +301 -0
  60. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/LICENSE.txt +202 -0
  61. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/README.md +121 -0
  62. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/addressable.gemspec +28 -0
  63. data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/MIT-LICENSE +21 -0
  64. data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/README.md +243 -0
  65. data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/appraisal.gemspec +29 -0
  66. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/LICENSE.txt +22 -0
  67. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/README.md +48 -0
  68. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/README.md +138 -0
  69. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/benchmark.gemspec +32 -0
  70. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/LICENSE +56 -0
  71. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/bigdecimal.gemspec +57 -0
  72. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/MIT-LICENSE +20 -0
  73. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/README.md +258 -0
  74. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/builder.gemspec +49 -0
  75. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/CHANGELOG.md +603 -0
  76. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/LICENSE.txt +21 -0
  77. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/README.md +407 -0
  78. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/LICENSE +20 -0
  79. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/README.md +167 -0
  80. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/connection_pool.gemspec +24 -0
  81. data/vendor/bundle/ruby/3.4.0/gems/crack-1.0.0/LICENSE +20 -0
  82. data/vendor/bundle/ruby/3.4.0/gems/crack-1.0.0/README.md +43 -0
  83. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/LICENSE +18 -0
  84. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/README.md +192 -0
  85. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/crass.gemspec +31 -0
  86. data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.5.1/License.md +41 -0
  87. data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.5.1/README.rdoc +84 -0
  88. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/LICENSE.txt +22 -0
  89. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/drb.gemspec +41 -0
  90. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/CHANGELOG +111 -0
  91. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/MIT-LICENSE +21 -0
  92. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/README.rdoc +151 -0
  93. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/CHANGELOG.md +375 -0
  94. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/LICENSE +20 -0
  95. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/README.md +118 -0
  96. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/ethon.gemspec +26 -0
  97. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/CHANGELOG.md +465 -0
  98. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/LICENSE +24 -0
  99. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/LICENSE.SPECS +22 -0
  100. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/README.md +137 -0
  101. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/ffi.gemspec +42 -0
  102. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/LICENSE +19 -0
  103. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/README.md +298 -0
  104. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/changelog.md +119 -0
  105. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/hashdiff.gemspec +39 -0
  106. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.6/MIT-LICENSE +20 -0
  107. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.6/README.md +127 -0
  108. data/vendor/bundle/ruby/3.4.0/gems/json-2.9.1/README.md +195 -0
  109. data/vendor/bundle/ruby/3.4.0/gems/json-2.9.1/json.gemspec +64 -0
  110. data/vendor/bundle/ruby/3.4.0/gems/logger-1.6.5/README.md +104 -0
  111. data/vendor/bundle/ruby/3.4.0/gems/logger-1.6.5/logger.gemspec +28 -0
  112. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/CHANGELOG.md +591 -0
  113. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/MIT-LICENSE.txt +23 -0
  114. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/README.md +410 -0
  115. data/vendor/bundle/ruby/3.4.0/gems/minitest-5.25.4/README.rdoc +835 -0
  116. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/CHANGELOG.md +275 -0
  117. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/LICENSE.md +20 -0
  118. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/README.md +121 -0
  119. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/LICENSE-DEPENDENCIES.md +2224 -0
  120. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/LICENSE.md +9 -0
  121. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/README.md +293 -0
  122. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/CHANGELOG.md +491 -0
  123. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/LICENSE.txt +22 -0
  124. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/README.md +222 -0
  125. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/ChangeLog +846 -0
  126. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
  127. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.rdoc +60 -0
  128. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/CHANGELOG.md +998 -0
  129. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/MIT-LICENSE +20 -0
  130. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/README.md +328 -0
  131. data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.0/license.md +72 -0
  132. data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.0/readme.md +47 -0
  133. data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/MIT-LICENSE.txt +20 -0
  134. data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/README.md +139 -0
  135. data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.2.0/MIT-LICENSE +23 -0
  136. data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.2.0/README.md +91 -0
  137. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/CHANGELOG.md +255 -0
  138. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/MIT-LICENSE +23 -0
  139. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/README.md +267 -0
  140. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/MIT-LICENSE +21 -0
  141. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/README.rdoc +155 -0
  142. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/rake.gemspec +101 -0
  143. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/LICENSE +21 -0
  144. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/README.md +107 -0
  145. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/rake-release.gemspec +23 -0
  146. data/vendor/bundle/ruby/3.4.0/gems/rexml-3.4.0/LICENSE.txt +22 -0
  147. data/vendor/bundle/ruby/3.4.0/gems/rexml-3.4.0/README.md +57 -0
  148. data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.0/LICENSE.md +27 -0
  149. data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.0/README.md +47 -0
  150. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/Changelog.md +68 -0
  151. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/LICENSE.txt +27 -0
  152. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/README.md +76 -0
  153. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/rspec-collection_matchers.gemspec +33 -0
  154. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/Changelog.md +2415 -0
  155. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/LICENSE.md +26 -0
  156. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/README.md +389 -0
  157. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/Changelog.md +1352 -0
  158. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/LICENSE.md +25 -0
  159. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/README.md +326 -0
  160. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/Changelog.md +73 -0
  161. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/LICENSE.txt +27 -0
  162. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/README.md +104 -0
  163. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/rspec-its.gemspec +31 -0
  164. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/Changelog.md +1299 -0
  165. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/LICENSE.md +25 -0
  166. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/README.md +465 -0
  167. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/Changelog.md +408 -0
  168. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/LICENSE.md +23 -0
  169. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/README.md +40 -0
  170. data/vendor/bundle/ruby/3.4.0/gems/securerandom-0.4.1/README.md +72 -0
  171. data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/LICENSE.md +20 -0
  172. data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/README.md +45 -0
  173. data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/thor.gemspec +33 -0
  174. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/CHANGELOG.md +410 -0
  175. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/LICENSE +22 -0
  176. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/README.md +588 -0
  177. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/typhoeus.gemspec +25 -0
  178. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/LICENSE +19 -0
  179. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/README.md +406 -0
  180. data/vendor/bundle/ruby/3.4.0/gems/uri-1.0.2/README.md +55 -0
  181. data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/LICENSE +20 -0
  182. data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/README.md +42 -0
  183. data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/CHANGELOG.md +2104 -0
  184. data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/LICENSE +20 -0
  185. data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/README.md +1222 -0
  186. data/vendor/bundle/ruby/3.4.0/specifications/actionpack-8.0.1.gemspec +36 -0
  187. data/vendor/bundle/ruby/3.4.0/specifications/actionview-8.0.1.gemspec +33 -0
  188. data/vendor/bundle/ruby/3.4.0/specifications/activemodel-8.0.1.gemspec +26 -0
  189. data/vendor/bundle/ruby/3.4.0/specifications/activesupport-8.0.1.gemspec +38 -0
  190. data/vendor/bundle/ruby/3.4.0/specifications/addressable-2.8.7.gemspec +30 -0
  191. data/vendor/bundle/ruby/3.4.0/specifications/appraisal-2.5.0.gemspec +31 -0
  192. data/vendor/bundle/ruby/3.4.0/specifications/base64-0.2.0.gemspec +23 -0
  193. data/vendor/bundle/ruby/3.4.0/specifications/benchmark-0.4.0.gemspec +23 -0
  194. data/vendor/bundle/ruby/3.4.0/specifications/bigdecimal-3.1.9.gemspec +25 -0
  195. data/vendor/bundle/ruby/3.4.0/specifications/builder-3.3.0.gemspec +22 -0
  196. data/vendor/bundle/ruby/3.4.0/specifications/concurrent-ruby-1.3.5.gemspec +24 -0
  197. data/vendor/bundle/ruby/3.4.0/specifications/connection_pool-2.5.0.gemspec +28 -0
  198. data/vendor/bundle/ruby/3.4.0/specifications/crack-1.0.0.gemspec +27 -0
  199. data/vendor/bundle/ruby/3.4.0/specifications/crass-1.0.6.gemspec +27 -0
  200. data/vendor/bundle/ruby/3.4.0/specifications/diff-lcs-1.5.1.gemspec +37 -0
  201. data/vendor/bundle/ruby/3.4.0/specifications/drb-2.2.1.gemspec +22 -0
  202. data/vendor/bundle/ruby/3.4.0/specifications/erubi-1.13.1.gemspec +29 -0
  203. data/vendor/bundle/ruby/3.4.0/specifications/ethon-0.16.0.gemspec +24 -0
  204. data/vendor/bundle/ruby/3.4.0/specifications/ffi-1.17.1-x86_64-linux-gnu.gemspec +31 -0
  205. data/vendor/bundle/ruby/3.4.0/specifications/hashdiff-1.1.2.gemspec +30 -0
  206. data/vendor/bundle/ruby/3.4.0/specifications/i18n-1.14.6.gemspec +27 -0
  207. data/vendor/bundle/ruby/3.4.0/specifications/json-2.9.1.gemspec +0 -0
  208. data/vendor/bundle/ruby/3.4.0/specifications/logger-1.6.5.gemspec +22 -0
  209. data/vendor/bundle/ruby/3.4.0/specifications/loofah-2.24.0.gemspec +27 -0
  210. data/vendor/bundle/ruby/3.4.0/specifications/minitest-5.25.4.gemspec +31 -0
  211. data/vendor/bundle/ruby/3.4.0/specifications/multi_json-1.15.0.gemspec +26 -0
  212. data/vendor/bundle/ruby/3.4.0/specifications/nokogiri-1.18.1-x86_64-linux-gnu.gemspec +31 -0
  213. data/vendor/bundle/ruby/3.4.0/specifications/public_suffix-6.0.1.gemspec +24 -0
  214. data/vendor/bundle/ruby/3.4.0/specifications/racc-1.8.1.gemspec +28 -0
  215. data/vendor/bundle/ruby/3.4.0/specifications/rack-3.1.8.gemspec +31 -0
  216. data/vendor/bundle/ruby/3.4.0/specifications/rack-session-2.1.0.gemspec +30 -0
  217. data/vendor/bundle/ruby/3.4.0/specifications/rack-test-2.2.0.gemspec +29 -0
  218. data/vendor/bundle/ruby/3.4.0/specifications/rails-dom-testing-2.2.0.gemspec +28 -0
  219. data/vendor/bundle/ruby/3.4.0/specifications/rails-html-sanitizer-1.6.2.gemspec +27 -0
  220. data/vendor/bundle/ruby/3.4.0/specifications/rake-13.2.1.gemspec +26 -0
  221. data/vendor/bundle/ruby/3.4.0/specifications/rake-release-1.3.0.gemspec +26 -0
  222. data/vendor/bundle/ruby/3.4.0/specifications/rexml-3.4.0.gemspec +25 -0
  223. data/vendor/bundle/ruby/3.4.0/specifications/rspec-3.13.0.gemspec +31 -0
  224. data/vendor/bundle/ruby/3.4.0/specifications/rspec-collection_matchers-1.2.1.gemspec +27 -0
  225. data/vendor/bundle/ruby/3.4.0/specifications/rspec-core-3.13.2.gemspec +39 -0
  226. data/vendor/bundle/ruby/3.4.0/specifications/rspec-expectations-3.13.3.gemspec +33 -0
  227. data/vendor/bundle/ruby/3.4.0/specifications/rspec-its-2.0.0.gemspec +27 -0
  228. data/vendor/bundle/ruby/3.4.0/specifications/rspec-mocks-3.13.2.gemspec +33 -0
  229. data/vendor/bundle/ruby/3.4.0/specifications/rspec-support-3.13.2.gemspec +29 -0
  230. data/vendor/bundle/ruby/3.4.0/specifications/securerandom-0.4.1.gemspec +23 -0
  231. data/vendor/bundle/ruby/3.4.0/specifications/thor-1.3.2.gemspec +28 -0
  232. data/vendor/bundle/ruby/3.4.0/specifications/typhoeus-1.4.1.gemspec +24 -0
  233. data/vendor/bundle/ruby/3.4.0/specifications/tzinfo-2.0.6.gemspec +30 -0
  234. data/vendor/bundle/ruby/3.4.0/specifications/uri-1.0.2.gemspec +23 -0
  235. data/vendor/bundle/ruby/3.4.0/specifications/useragent-0.16.11.gemspec +25 -0
  236. data/vendor/bundle/ruby/3.4.0/specifications/webmock-3.24.0.gemspec +45 -0
  237. metadata +204 -67
@@ -0,0 +1,1299 @@
1
+ ### Development
2
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.2...3-13-maintennace)
3
+
4
+ ### 3.13.2 / 2024-10-02
5
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.1...v3.13.2)
6
+
7
+ Bug Fixes:
8
+
9
+ * Support keyword arguments in callables passed to `and_invoke`. (Jon Rowe, #1595)
10
+
11
+ ### 3.13.1 / 2024-05-08
12
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.0...v3.13.1)
13
+
14
+ Bug Fixes:
15
+
16
+ * Use `RSpec::Support::Mutex` in `RSpec::Mocks::Proxy` to avoid issues from
17
+ stubbing `::Mutex#new`. (Eric Mueller, #1575)
18
+
19
+ ### 3.13.0 / 2024-02-04
20
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.7...v3.13.0)
21
+
22
+ Enhancements:
23
+
24
+ * Add an `array_excluding` matcher for arguments. (Zane Wolfgang Pickett, #1528)
25
+
26
+ ### 3.12.7 / 2024-02-04
27
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.6...v3.12.7)
28
+
29
+ Bug Fixes:
30
+
31
+ * Reduce allocations from "any_instance" style mocks. (Carlos Palhares, #1479)
32
+
33
+ ### 3.12.6 / 2023-07-11
34
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.5...v3.12.6)
35
+
36
+ Bug Fixes:
37
+
38
+ * Fix an issue with `and_call_original` when using the `method_missing` fallback
39
+ with keyword arguments. (Igor Drozdov, #1552)
40
+
41
+ ### 3.12.5 / 2023-03-30
42
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.4...v3.12.5)
43
+
44
+ Bug Fixes:
45
+
46
+ * Fix compatibility issue with Rails where active_support monkey patches `with`
47
+ when using any instance. (Lachlan Sylvester, #1540)
48
+
49
+ ### 3.12.4 / 2023-03-12
50
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.3...v3.12.4)
51
+
52
+ Bug Fixes:
53
+
54
+ * Fix an issue with asserting that Array#reverse is never called. (Brad Trick, #1533)
55
+ * Fix compatibility issue with Rails where active_support monkey patches `with`.
56
+ (Jean Boussier, #1531, #1534)
57
+
58
+ ### 3.12.3 / 2023-01-17
59
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.2...v3.12.3)
60
+
61
+ Bug Fixes:
62
+
63
+ * Fix keyword delegation in `send` for verifying doubles on Ruby 3.
64
+ (Charlie Honig, #1485)
65
+
66
+ ### 3.12.2 / 2023-01-07
67
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.1...v3.12.2)
68
+
69
+ Bug Fixes:
70
+
71
+ * Fix implementation blocks for mocks using keyword arguments on Ruby 3.2.0.
72
+ (Adam Steel, #1508)
73
+ * Fix keyword argument assertions when mocking using `with` on Ruby 3.2.0.
74
+ (Slava Kardakov, Benoit Tigeot, Phil Pirozhkov, Benoit Daloze, #1514)
75
+
76
+ ### 3.12.1 / 2022-12-10
77
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.0...v3.12.1)
78
+
79
+ Bug Fixes:
80
+
81
+ * Remove empty diff marker when a diff only contains console codes. (Jon Rowe, #1506)
82
+ * Show keyword vs hash diff marker when arguments are not `==` (Jon Rowe, #1506)
83
+ * Change check to detect frozen objects to rescue errors rather than
84
+ pre-empting by checking `frozen?` due to some objects mis-behaving.
85
+ (Keegan Roth, #1401)
86
+ * Prevent unfulfilled expectations using `expect_any_instance_of` across a class
87
+ inheritance boundary from raising rather than failing. (Jon Rowe, #1496)
88
+ * Prevent a misleading error message when using `allow(...).not_to` with
89
+ unsupported matchers. (Phil Pirozhkov, #1503)
90
+
91
+ ### 3.12.0 / 2022-10-26
92
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.2...v3.12.0)
93
+
94
+ Enhancements:
95
+
96
+ * Improve diff output when diffing keyword arguments against hashes.
97
+ (Jean Boussier, #1461)
98
+
99
+ ### 3.11.2 / 2022-10-25
100
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...v3.11.2)
101
+
102
+ Bug Fixes:
103
+
104
+ * Use the original implementation of `Class.new` to detect overridden definitions
105
+ of `new` rather than the owner, fixing detection of "double aliased" methods
106
+ in Ruby 3 and above. (Benoit Daloze, #1470, #1476)
107
+ * Support keyword argument semantics when constraining argument expectations using
108
+ `with` on Ruby 3.0+ with `instance_double` (Andrii Malyshko, #1473)
109
+
110
+ ### 3.11.1 / 2022-03-31
111
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...v3.11.1)
112
+
113
+ Bug Fixes:
114
+
115
+ * Add extra `ruby2_keywords` calls to properly designate methods using
116
+ `*args` to pass keyword around, fixes an issue with TruffleRuby.
117
+ (Benoit Daloze, #1464)
118
+
119
+ ### 3.11.0 / 2022-02-09
120
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.3...v3.11.0)
121
+
122
+ Enhancements:
123
+
124
+ * Add `and_invoke` implementation for configuring responses to `receive`
125
+ (and `receive_messages`) with multiple callable objects. (Kyle Smith, #1411)
126
+
127
+ ### 3.10.3 / 2022-01-28
128
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.2...v3.10.3)
129
+
130
+ Bug Fixes:
131
+
132
+ * Suppress warning by setting `$VERBOSE` to nil. (Nobuyoshi Nakada, #1414)
133
+ * Support keyword argument semantics when constraining argument expectations using
134
+ `with` on Ruby 3.0+ (Yusuke Endoh, #1394)
135
+
136
+ ### 3.10.2 / 2021-01-27
137
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.1...v3.10.2)
138
+
139
+ Bug Fixes:
140
+
141
+ * Support keyword arguments with `and_call_original` on Ruby 3.0.
142
+ (Bryan Powell, #1385)
143
+ * `RSpec::Mocks::Constant#previously_defined?` is now always a boolean.
144
+ (Phil Pirozhkov, #1397)
145
+ * Support keyword arguments on Ruby 3.0 when used with `expect_any_instance_of`
146
+ or `allow_any_instance_of` with `and_call_original`.
147
+ (Jess Hottenstein, #1407)
148
+
149
+ ### 3.10.1 / 2020-12-27
150
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.0...v3.10.1)
151
+
152
+ Bug Fixes:
153
+
154
+ * Issue `ArgumentError` rather than `TypeError` when unsupported methods on
155
+ unsupported objects are attempted to be stubbed. (@zhisme, #1357)
156
+
157
+ ### 3.10.0 / 2020-10-30
158
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.9.1...v3.10.0)
159
+
160
+ Enhancements:
161
+ * Add the ability to set a custom error generator in `MessageExpectation`.
162
+ This will allow rspec-expectations to inject a custom failure message.
163
+ (Benoit Tigeot and Nicolas Zermati, #1312)
164
+ * Return the result of the block passed to `RSpec::Mocks.with_temporary_scope`
165
+ when block run. (@expeehaa, #1329)
166
+
167
+ ### 3.9.1 / 2019-12-31
168
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.9.0...v3.9.1)
169
+
170
+ Bug Fixes:
171
+
172
+ * Trigger `RSpec::Mocks.configuration.verifying_double_callbacks` when using
173
+ `allow_any_instance_of` or `expect_any_instance_of` (Daniel Orner, #1309)
174
+
175
+ ### 3.9.0 / 2019-10-07
176
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.2...v3.9.0)
177
+
178
+ Enhancements:
179
+
180
+ * Improve thread safety of message expectations by using Mutex to prevent
181
+ deadlocking errors. (Ry Biesemeyer, #1236)
182
+ * Add the ability to use `time` as an alias for `times`. For example:
183
+ `expect(Class).to receive(:method).exactly(1).time`.
184
+ (Pistos, Benoit Tigeot, #1271)
185
+
186
+ ### 3.8.2 / 2019-10-02
187
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.1...v3.8.2)
188
+
189
+ * Allow `array_including` argument matchers to be nested.
190
+ (Emmanuel Delmas, #1291)
191
+
192
+ ### 3.8.1 / 2019-06-13
193
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.0...v3.8.1)
194
+
195
+ Bug Fixes:
196
+
197
+ * Ensure stubbing methods does not change their visibility.
198
+ (Kevin Boschert, #1277)
199
+
200
+ ### 3.8.0 / 2018-08-04
201
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.7.0...v3.8.0)
202
+
203
+ Bug Fixes:
204
+
205
+ * Issue error when encountering invalid "counted" negative message expectations.
206
+ (Sergiy Yarinovskiy, #1212)
207
+ * Ensure `allow_any_instance_of` and `expect_any_instance_of` can be temporarily
208
+ supressed. (Jon Rowe, #1228)
209
+ * Ensure `expect_any_instance_of(double).to_not have_received(:some_method)`
210
+ fails gracefully (as its not supported) rather than issuing a `NoMethodError`.
211
+ (Maxim Krizhanovsky, #1231)
212
+
213
+ ### 3.7.0 / 2017-10-17
214
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0...v3.7.0)
215
+
216
+ Enhancements:
217
+
218
+ * Improve compatibility with `--enable-frozen-string-literal` option
219
+ on Ruby 2.3+. (Pat Allan, #1165)
220
+
221
+ Bug Fixes:
222
+
223
+ * Fix `hash_including` and `hash_excluding` so that they work against
224
+ subclasses of `Hash`. (Aaron Rosenberg, #1167)
225
+
226
+ ### 3.6.0 / 2017-05-04
227
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0.beta2...v3.6.0)
228
+
229
+ Bug Fixes:
230
+
231
+ * Fix "instance variable @color not initialized" warning when using
232
+ rspec-mocks without rspec-core. (Myron Marston, #1142)
233
+ * Restore aliased module methods properly when stubbing on 1.8.7.
234
+ (Samuel Giddins, #1144)
235
+ * Allow a message chain expectation to be constrained by argument(s).
236
+ (Jon Rowe, #1156)
237
+
238
+ ### 3.6.0.beta2 / 2016-12-12
239
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0.beta1...v3.6.0.beta2)
240
+
241
+ Enhancements:
242
+
243
+ * Add new `without_partial_double_verification { }` API that lets you
244
+ temporarily turn off partial double verification for an example.
245
+ (Jon Rowe, #1104)
246
+
247
+ ### 3.6.0.beta1 / 2016-10-09
248
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0...v3.6.0.beta1)
249
+
250
+ Bug Fixes:
251
+
252
+ * Return the test double instance form `#freeze` (Alessandro Berardi, #1109)
253
+ * Allow the special logic for stubbing `new` to work when `<Class>.method` has
254
+ been redefined. (Proby, #1119)
255
+
256
+ ### 3.5.0 / 2016-07-01
257
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta4...v3.5.0)
258
+
259
+ Enhancements:
260
+
261
+ * Provides a nice string representation of
262
+ `RSpec::Mocks::MessageExpectation` (Myron Marston, #1095)
263
+
264
+ ### 3.5.0.beta4 / 2016-06-05
265
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta3...v3.5.0.beta4)
266
+
267
+ Enhancements:
268
+
269
+ * Add `and_throw` to any instance handling. (Tobias Bühlmann, #1068)
270
+
271
+ ### 3.5.0.beta3 / 2016-04-02
272
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta2...v3.5.0.beta3)
273
+
274
+ Enhancements:
275
+
276
+ * Issue warning when attempting to use unsupported
277
+ `allow(...).to receive(...).ordered`. (Jon Rowe, #1000)
278
+ * Add `rspec/mocks/minitest_integration`, to properly integrate rspec-mocks
279
+ with minitest. (Myron Marston, #1065)
280
+
281
+ ### 3.5.0.beta2 / 2016-03-10
282
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta1...v3.5.0.beta2)
283
+
284
+ Enhancements:
285
+
286
+ * Improve error message displayed when using `and_wrap_original` on pure test
287
+ doubles. (betesh, #1063)
288
+
289
+ Bug Fixes:
290
+
291
+ * Fix issue that prevented `receive_message_chain(...).with(...)` working
292
+ correctly on "any instance" mocks. (Jon Rowe, #1061)
293
+
294
+ ### 3.5.0.beta1 / 2016-02-06
295
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.1...v3.5.0.beta1)
296
+
297
+ Bug Fixes:
298
+
299
+ * Allow `any_instance_of(...).to receive(...)` to use `and_yield` multiple
300
+ times. (Kilian Cirera Sant, #1054)
301
+ * Allow matchers which inherit from `rspec-mocks` matchers to be used for
302
+ `allow`. (Andrew Kozin, #1056)
303
+ * Prevent stubbing `respond_to?` on partial doubles from causing infinite
304
+ recursion. (Jon Rowe, #1013)
305
+ * Prevent aliased methods from disapearing after being mocked with
306
+ `any_instance` (regression from #1043). (Joe Rafaniello, #1060)
307
+
308
+ ### 3.4.1 / 2016-01-10
309
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.0...v3.4.1)
310
+
311
+ Bug Fixes:
312
+
313
+ * Fix `any_instance` to work properly on Ruby 2.3. (Joe Rafaniello, #1043)
314
+
315
+ ### 3.4.0 / 2015-11-11
316
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.2...v3.4.0)
317
+
318
+ Enhancements:
319
+
320
+ * Make `expect(...).to have_received` work without relying upon
321
+ rspec-expectations. (Myron Marston, #978)
322
+ * Add option for failing tests when expectations are set on `nil`.
323
+ (Liz Rush, #983)
324
+
325
+ Bug Fixes:
326
+
327
+ * Fix `have_received { ... }` so that any block passed when the message
328
+ was received is forwarded to the `have_received` block. (Myron Marston, #1006)
329
+ * Fix infinite loop in error generator when stubbing `respond_to?`.
330
+ (Alex Dowad, #1022)
331
+ * Fix issue with using `receive` on subclasses (at a class level) with 1.8.7.
332
+ (Alex Dowad, #1026)
333
+
334
+ ### 3.3.2 / 2015-07-15
335
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.1...v3.3.2)
336
+
337
+ Bug Fixes:
338
+
339
+ * Prevent thread deadlock errors during proxy creation (e.g. when using
340
+ `before_verifying_doubles` callbacks). (Jon Rowe, #980, #979)
341
+
342
+ ### 3.3.1 / 2015-06-19
343
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.0...v3.3.1)
344
+
345
+ Bug Fixes:
346
+
347
+ * Fix bug in `before_verifying_double` callback logic that caused it to be called
348
+ once for each class in the ancestor list when mocking or stubbing a class. Now
349
+ it is only called for the mocked or stubbed class, as you would expect. (Sam
350
+ Phippen, #974)
351
+
352
+ ### 3.3.0 / 2015-06-12
353
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.1...v3.3.0)
354
+
355
+ Enhancements:
356
+
357
+ * When stubbing `new` on `MyClass` or `class_double(MyClass)`, use the
358
+ method signature from `MyClass#initialize` to verify arguments.
359
+ (Myron Marston, #886)
360
+ * Use matcher descriptions when generating description of received arguments
361
+ for mock expectation failures. (Tim Wade, #891)
362
+ * Avoid loading `stringio` unnecessarily. (Myron Marston, #894)
363
+ * Verifying doubles failure messages now distinguish between class and instance
364
+ level methods. (Tim Wade, #896, #908)
365
+ * Improve mock expectation failure messages so that it combines both
366
+ number of times and the received arguments in the output. (John Ceh, #918)
367
+ * Improve how test doubles are represented in failure messages.
368
+ (Siva Gollapalli, Myron Marston, #932)
369
+ * Rename `RSpec::Mocks::Configuration#when_declaring_verifying_double` to
370
+ `RSpec::Mocks::Configuration#before_verifying_doubles` and utilise when
371
+ verifying partial doubles. (Jon Rowe, #940)
372
+ * Use rspec-support's `ObjectFormatter` for improved formatting of
373
+ arguments in failure messages so that, for example, full time
374
+ precisions is displayed for time objects. (Gavin Miller, Myron Marston, #955)
375
+
376
+ Bug Fixes:
377
+
378
+ * Ensure expectations that raise eagerly also raise during RSpec verification.
379
+ This means that if exceptions are caught inside test execution the test will
380
+ still fail. (Sam Phippen, #884)
381
+ * Fix `have_received(msg).with(args).exactly(n).times` and
382
+ `receive(msg).with(args).exactly(n).times` failure messages
383
+ for when the message was received the wrong number of times with
384
+ the specified args, and also received additional times with other
385
+ arguments. Previously it confusingly listed the arguments as being
386
+ mis-matched (even when the double was allowed to receive with any
387
+ args) rather than listing the count. (John Ceh, #918)
388
+ * Fix `any_args`/`anything` support so that we avoid calling `obj == anything`
389
+ on user objects that may have improperly implemented `==` in a way that
390
+ raises errors. (Myron Marston, #924)
391
+ * Fix edge case involving stubbing the same method on a class and a subclass
392
+ which previously hit a `NoMethodError` internally in RSpec. (Myron Marston #954)
393
+ * Fix edge case where the message received count would be incremented multiple
394
+ times for one failure. (Myron Marston, #957)
395
+ * Fix failure messages for when spies received the expected message with
396
+ different arguments and also received another message. (Maurício Linhares, #960)
397
+ * Silence whitespace-only diffs. (Myron Marston, #969)
398
+
399
+ ### 3.2.1 / 2015-02-23
400
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.0...v3.2.1)
401
+
402
+ Bug Fixes:
403
+
404
+ * Add missing `rspec/support/differ` require so that rspec-mocks can be
405
+ used w/o rspec-expectations (which also loads the differ and hided the
406
+ fact we forgot to require it). (Myron Marston, #893)
407
+ * Revert tracking of received arg mutation (added in 3.2.0 to provide an
408
+ error in a situation we can't support) as our implementation has side
409
+ effects on non-standard objects and there's no solution we could come
410
+ up with that always works. (Myron Marston, #900)
411
+
412
+ ### 3.2.0 / 2015-02-03
413
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.3...v3.2.0)
414
+
415
+ Enhancements:
416
+
417
+ * Treat `any_args` as an arg splat, allowing it to match an arbitrary
418
+ number of args at any point in an arg list. (Myron Marston, #786)
419
+ * Print diffs when arguments in mock expectations are mismatched.
420
+ (Sam Phippen, #751)
421
+ * Support names for verified doubles (`instance_double`, `instance_spy`,
422
+ `class_double`, `class_spy`, `object_double`, `object_spy`). (Cezary
423
+ Baginski, #826)
424
+ * Make `array_including` and `hash_including` argument matchers composable.
425
+ (Sam Phippen, #819)
426
+ * Make `allow_any_instance_of(...).to receive(...).and_wrap_original`
427
+ work. (Ryan Fitzgerald, #869)
428
+
429
+ Bug Fixes:
430
+
431
+ * Provide a clear error when users wrongly combine `no_args` with
432
+ additional arguments (e.g. `expect().to receive().with(no_args, 1)`).
433
+ (Myron Marston, #786)
434
+ * Provide a clear error when users wrongly use `any_args` multiple times in the
435
+ same argument list (e.g. `expect().to receive().with(any_args, 1, any_args)`.
436
+ (Myron Marston, #786)
437
+ * Prevent the error generator from using user object #description methods.
438
+ See [#685](https://github.com/rspec/rspec-mocks/issues/685).
439
+ (Sam Phippen, #751)
440
+ * Make verified doubles declared as `(instance|class)_double(SomeConst)`
441
+ work properly when `SomeConst` has previously been stubbed.
442
+ `(instance|class)_double("SomeClass")` already worked properly.
443
+ (Myron Marston, #824)
444
+ * Add a matcher description for `receive`, `receive_messages` and
445
+ `receive_message_chain`. (Myron Marston, #828)
446
+ * Validate invocation args for null object verified doubles.
447
+ (Myron Marston, #829)
448
+ * Fix `RSpec::Mocks::Constant.original` when called with an invalid
449
+ constant to return an object indicating the constant name is invalid,
450
+ rather than blowing up. (Myron Marston, #833)
451
+ * Make `extend RSpec::Mocks::ExampleMethods` on any object work properly
452
+ to add the rspec-mocks API to that object. Previously, `expect` would
453
+ be undefined. (Myron Marston, #846)
454
+ * Fix `require 'rspec/mocks/standalone'` so that it only affects `main`
455
+ and not every object. It's really only intended to be used in a REPL
456
+ like IRB, but some gems have loaded it, thinking it needs to be loaded
457
+ when using rspec-mocks outside the context of rspec-core.
458
+ (Myron Marston, #846)
459
+ * Prevent message expectations from being modified by customization methods
460
+ (e.g. `with`) after they have been invoked. (Sam Phippen and Melanie Gilman, #837)
461
+ * Handle cases where a method stub cannot be removed due to something
462
+ external to RSpec monkeying with the method definition. This can
463
+ happen, for example, when you `file.reopen(io)` after previously
464
+ stubbing a method on the `file` object. (Myron Marston, #853)
465
+ * Provide a clear error when received message args are mutated before
466
+ a `have_received(...).with(...)` expectation. (Myron Marston, #868)
467
+
468
+ ### 3.1.3 / 2014-10-08
469
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.2...v3.1.3)
470
+
471
+ Bug Fixes:
472
+
473
+ * Correct received messages count when used with `have_received` matcher.
474
+ (Jon Rowe, #793)
475
+ * Provide a clear error message when you use `allow_any_instance_of(...)` or
476
+ `expect_any_instance_of(...)` with the `have_received` matcher (they are
477
+ not intended to be used together and previously caused an odd internal
478
+ failure in rspec-mocks). (Jon Rowe, #799).
479
+ * Fix verified double `with` verification so that it applies to method
480
+ stubs. (Myron Marston, #790)
481
+
482
+ ### 3.1.2 / 2014-09-26
483
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.1...v3.1.2)
484
+
485
+ Bug Fixes:
486
+
487
+ * Provide a clear error message when you use `allow(...)` with the
488
+ `have_received` matcher (they are not intended to be used together
489
+ and previously caused an odd internal failure in rspec-mocks). (Jon Rowe, #788).
490
+
491
+ ### 3.1.1 / 2014-09-18
492
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.0...v3.1.1)
493
+
494
+ Bug Fixes:
495
+
496
+ * Prevent included modules being detected as prepended modules on Ruby 2.0
497
+ when using `any_instance_of(...)`. (Tony Novak, #781)
498
+
499
+ ### 3.1.0 / 2014-09-04
500
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.4...v3.1.0)
501
+
502
+ Enhancements:
503
+
504
+ * Add spying methods (`spy`, `ìnstance_spy`, `class_spy` and `object_spy`)
505
+ which create doubles as null objects for use with spying in testing. (Sam
506
+ Phippen, #671)
507
+ * `have_received` matcher will raise "does not implement" errors correctly when
508
+ used with verifying doubles and partial doubles. (Xavier Shay, #722)
509
+ * Allow matchers to be used in place of keyword arguments in `with`
510
+ expectations. (Xavier Shay, #726)
511
+ * Add `thrice` modifier to message expectation interface as a synonym
512
+ for `exactly(3).times`. (Dennis Taylor, #753)
513
+ * Add more `thrice` synonyms e.g. `.at_least(:thrice)`, `.at_most(:thrice)`,
514
+ `receive(...).thrice` and `have_received(...).thrice`. (Jon Rowe, #754)
515
+ * Add `and_wrap_original` modifier for partial doubles to mutate the
516
+ response from a method. (Jon Rowe, #762)
517
+
518
+ Bug Fixes:
519
+
520
+ * Remove `any_number_of_times` from `any_instance` recorders that were
521
+ erroneously causing mention of the method in documentation. (Jon Rowe, #760)
522
+ * Prevent included modules being detected as prepended modules on Ruby 2.0.
523
+ (Eugene Kenny, #771)
524
+
525
+ ### 3.0.4 / 2014-08-14
526
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.3...v3.0.4)
527
+
528
+ Bug Fixes:
529
+
530
+ * Restore `kind_of(x)` to match using `arg.kind_of?(x)` (like RSpec 2)
531
+ rather than `x === arg`. (Jon Rowe, #750)
532
+
533
+ ### 3.0.3 / 2014-07-21
534
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.2...v3.0.3)
535
+
536
+ Bug Fixes:
537
+
538
+ * `have_received` matcher will raise "does not implement" errors correctly when
539
+ used with verifying doubles and partial doubles. (Xavier Shay, #722)
540
+ * Make `double.as_null_object.dup` and `double.as_null_object.clone`
541
+ make the copies be null objects. (Myron Marston, #732)
542
+ * Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, #739)
543
+
544
+ ### 3.0.2 / 2014-06-19
545
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.1...v3.0.2)
546
+
547
+ Bug Fixes:
548
+
549
+ * Fix edge case that triggered "can't add a new key into hash during
550
+ iteration" during mock verification. (Sam Phippen, Myron Marston, #711)
551
+ * Fix verifying doubles so that when they accidentally leak into another
552
+ example, they provide the same clear error message that normal doubles
553
+ do. (Myron Marston, #718)
554
+ * Make `ordered` work with exact receive counts. (Sam Phippen, #713)
555
+
556
+ ### 3.0.1 / 2014-06-07
557
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0...v3.0.1)
558
+
559
+ Bug Fixes:
560
+
561
+ * Fix `receive_message_chain(...)` so that it supports `with` just like
562
+ `stub_chain` did. (Jon Rowe, #697)
563
+ * Fix regression in `expect_any_instance_of` so that it expects the
564
+ message on _any_ instance rather than on _every_ instance.
565
+ (Myron Marston, #699)
566
+
567
+ ### 3.0.0 / 2014-06-01
568
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.rc1...v3.0.0)
569
+
570
+ Bug Fixes:
571
+
572
+ * Fix module prepend detection to work properly on ruby 2.0 for a case
573
+ where a module is extended onto itself. (Myron Marston)
574
+ * Fix `transfer_nested_constants` option so that transferred constants
575
+ get properly reset at the end of the example. (Myron Marston)
576
+ * Fix `config.transfer_nested_constants = true` so that you don't
577
+ erroneously get errors when stubbing a constant that is not a module
578
+ or a class. (Myron Marston)
579
+ * Fix regression that caused `double(:class => SomeClass)` to later
580
+ trigger infinite recursion. (Myron Marston)
581
+ * Fix bug in `have_received(...).with(...).ordered` where it was not
582
+ taking the args into account when checking the order. (Myron Marston)
583
+ * Fix bug in `have_received(...).ordered` where it was wrongly
584
+ considering stubs when checking the order. (Myron Marston)
585
+ * Message expectation matchers now show descriptions from argument
586
+ matchers when their expectations aren't met. (Jon Rowe)
587
+ * Display warning when encountering `TypeError` during instance method
588
+ staging on 2.0.0-p195, suffers from https://bugs.ruby-lang.org/issues/8686
589
+ too. (Cezar Halmagean).
590
+
591
+ ### 3.0.0.rc1 / 2014-05-18
592
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.beta2...v3.0.0.rc1)
593
+
594
+ Breaking Changes for 3.0.0:
595
+
596
+ * Remove `RSpec::Mocks::TestDouble.extend_onto`. (Myron Marston)
597
+ * Remove `RSpec::Mocks::ConstantStubber`. (Jon Rowe)
598
+ * Make monkey-patch of Marshal to support dumping of stubbed objects opt-in.
599
+ (Xavier Shay)
600
+
601
+ Enhancements:
602
+
603
+ * Instead of crashing when cleaning up stub methods on a frozen object, it now
604
+ issues a warning explaining that it's impossible to clean up the stubs.
605
+ (Justin Coyne and Sam Phippen)
606
+ * Add meaningful descriptions to `anything`, `duck_type` and `instance_of` argument
607
+ matchers. (Jon Rowe)
608
+
609
+ Bug Fixes:
610
+
611
+ * Fix regression introduced in 3.0.0.beta2 that caused
612
+ `double.as_null_object.to_str` to return the double rather
613
+ than a string. (Myron Marston)
614
+ * Fix bug in `expect(dbl).to receive_message_chain(:foo, :bar)` where it was
615
+ not setting an expectation for the last message in the chain.
616
+ (Jonathan del Strother)
617
+ * Allow verifying partial doubles to have private methods stubbed. (Xavier Shay)
618
+ * Fix bug with allowing/expecting messages on Class objects which have had
619
+ their singleton class prepended to. (Jon Rowe)
620
+ * Fix an issue with 1.8.7 not running implementation blocks on partial doubles.
621
+ (Maurício Linhares)
622
+ * Prevent `StackLevelTooDeep` errors when stubbing an `any_instance` method that's
623
+ accessed in `inspect` by providing our own inspect output. (Jon Rowe)
624
+ * Fix bug in `any_instance` logic that did not allow you to mock or stub
625
+ private methods if `verify_partial_doubles` was configured. (Oren Dobzinski)
626
+ * Include useful error message when trying to observe an unimplemented method
627
+ on an any instance. (Xavier Shay)
628
+ * Fix `and_call_original` to work properly when multiple classes in an
629
+ inheritance hierarchy have been stubbed with the same method. (Myron Marston)
630
+ * Fix `any_instance` so that it updates existing instances that have
631
+ already been stubbed. (Myron Marston)
632
+ * Fix verified doubles so that their class name is included in failure
633
+ messages. (Myron Marston)
634
+ * Fix `expect_any_instance_of` so that when the message is received
635
+ on an individual instance that has been directly stubbed, it still
636
+ satisfies the expectation. (Sam Phippen, Myron Marston)
637
+ * Explicitly disallow using `any_instance` to mock or stub a method
638
+ that is defined on a module prepended onto the class. This triggered
639
+ `SystemStackError` before and is very hard to support so we are not
640
+ supporting it at this time. (Myron Marston)
641
+
642
+ ### 3.0.0.beta2 / 2014-02-17
643
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.beta1...v3.0.0.beta2)
644
+
645
+ Breaking Changes for 3.0.0:
646
+
647
+ * Rename `RSpec::Mocks::Mock` to `RSpec::Mocks::Double`. (Myron Marston)
648
+ * Change how to integrate rspec-mocks in other test frameworks. You now
649
+ need to include `RSpec::Mocks::ExampleMethods` in your test context.
650
+ (Myron Marston)
651
+ * Prevent RSpec mocks' doubles and partial doubles from being used outside of
652
+ the per-test lifecycle (e.g. from a `before(:all)` hook). (Sam Phippen)
653
+ * Remove the `host` argument of `RSpec::Mocks.setup`. Instead
654
+ `RSpec::Mocks::ExampleMethods` should be included directly in the scope where
655
+ RSpec's mocking capabilities are used. (Sam Phippen)
656
+ * Make test doubles raise errors if you attempt to use them after they
657
+ get reset, to help surface issues when you accidentally retain
658
+ references to test doubles and attempt to reuse them in another
659
+ example. (Myron Marston)
660
+ * Remove support for `and_return { value }` and `and_return` without arguments. (Yuji Nakayama)
661
+
662
+ Enhancements:
663
+
664
+ * Add `receive_message_chain` which provides the functionality of the old
665
+ `stub_chain` for the new allow/expect syntax. Use it like so: `allow(...).to
666
+ receive_message_chain(:foo, :bar, :bazz)`. (Sam Phippen).
667
+ * Change argument matchers to use `===` as their primary matching
668
+ protocol, since their semantics mirror that of a case or rescue statement
669
+ (which uses `===` for matching). (Myron Marston)
670
+ * Add `RSpec::Mocks.with_temporary_scope`, which allows you to create
671
+ temporary rspec-mocks scopes in arbitrary places (such as a
672
+ `before(:all)` hook). (Myron Marston)
673
+ * Support keyword arguments when checking arity with verifying doubles.
674
+ (Xavier Shay)
675
+
676
+ Bug Fixes:
677
+
678
+ * Fix regression in 3.0.0.beta1 that caused `double("string_name" => :value)`
679
+ to stop working. (Xavier Shay)
680
+ * Fix the way rspec-mocks and rspec-core interact so that if users
681
+ define a `let` with the same name as one of the methods
682
+ from `RSpec::Mocks::ArgumentMatchers`, the user's `let` takes
683
+ precedence. (Michi Huber, Myron Marston)
684
+ * Fix verified doubles so that their methods match the visibility
685
+ (public, protected or private) of the interface they verify
686
+ against. (Myron Marston)
687
+ * Fix verified null object doubles so that they do not wrongly
688
+ report that they respond to anything. They only respond to methods
689
+ available on the interface they verify against. (Myron Marston)
690
+ * Fix deprecation warning for use of old `:should` syntax w/o explicit
691
+ config so that it no longer is silenced by an extension gem such
692
+ as rspec-rails when it calls `config.add_stub_and_should_receive_to`.
693
+ (Sam Phippen)
694
+ * Fix `expect` syntax so that it does not wrongly emit a "You're
695
+ overriding a previous implementation for this stub" warning when
696
+ you are not actually doing that. (Myron Marston)
697
+ * Fix `any_instance.unstub` when used on sub classes for whom the super
698
+ class has had `any_instance.stub` invoked on. (Jon Rowe)
699
+ * Fix regression in `stub_chain`/`receive_message_chain` that caused
700
+ it to raise an `ArgumentError` when passing args to the stubbed
701
+ methods. (Sam Phippen)
702
+ * Correct stub of undefined parent modules all the way down when stubbing a
703
+ nested constant. (Xavier Shay)
704
+ * Raise `VerifyingDoubleNotDefinedError` when a constant is not defined for
705
+ a verifying class double. (Maurício Linhares)
706
+ * Remove `Double#to_str`, which caused confusing `raise some_double`
707
+ behavior. (Maurício Linhares)
708
+
709
+ ### 3.0.0.beta1 / 2013-11-07
710
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.4...v3.0.0.beta1)
711
+
712
+ Breaking Changes for 3.0.0:
713
+
714
+ * Raise an explicit error if `should_not_receive(...).and_return` is used. (Sam
715
+ Phippen)
716
+ * Remove 1.8.6 workarounds. (Jon Rowe)
717
+ * Remove `stub!` and `unstub!`. (Sam Phippen)
718
+ * Remove `mock(name, methods)` and `stub(name, methods)`, leaving
719
+ `double(name, methods)` for creating test doubles. (Sam Phippen, Michi Huber)
720
+ * Remove `any_number_of_times` since `should_receive(:msg).any_number_of_times`
721
+ is really a stub in a mock's clothing. (Sam Phippen)
722
+ * Remove support for re-using the same null-object test double in multiple
723
+ examples. Test doubles are designed to only live for one example.
724
+ (Myron Marston)
725
+ * Make `at_least(0)` raise an error. (Sam Phippen)
726
+ * Remove support for `require 'spec/mocks'` which had been kept
727
+ in place for backwards compatibility with RSpec 1. (Myron Marston)
728
+ * Blocks provided to `with` are always used as implementation. (Xavier Shay)
729
+ * The config option (added in 2.99) to yield the receiver to
730
+ `any_instance` implementation blocks now defaults to "on". (Sam Phippen)
731
+
732
+ Enhancements:
733
+
734
+ * Allow the `have_received` matcher to use a block to set further expectations
735
+ on arguments. (Tim Cowlishaw)
736
+ * Provide `instance_double` and `class_double` to create verifying doubles,
737
+ ported from `rspec-fire`. (Xavier Shay)
738
+ * `as_null_object` on a verifying double only responds to defined methods.
739
+ (Xavier Shay)
740
+ * Provide `object_double` to create verified doubles of specific object
741
+ instances. (Xavier Shay)
742
+ * Provide `verify_partial_doubles` configuration that provides `object_double`
743
+ like verification behaviour on partial doubles. (Xavier Shay)
744
+ * Improved performance of double creation, particularly those with many
745
+ attributes. (Xavier Shay)
746
+ * Default value of `transfer_nested_constants` option for constant stubbing can
747
+ be configured. (Xavier Shay)
748
+ * Messages can be allowed or expected on in bulk via
749
+ `receive_messages(:message => :value)`. (Jon Rowe)
750
+ * `allow(Klass.any_instance)` and `expect(Klass.any_instance)` now print a
751
+ warning. This is usually a mistake, and users usually want
752
+ `allow_any_instance_of` or `expect_any_instance_of` instead. (Sam Phippen)
753
+ * `instance_double` and `class_double` raise `ArgumentError` if the underlying
754
+ module is loaded and the arity of the method being invoked does not match the
755
+ arity of the method as it is actually implemented. (Andy Lindeman)
756
+ * Spies can now check their invocation ordering is correct. (Jon Rowe)
757
+
758
+ Deprecations:
759
+
760
+ * Using the old `:should` syntax without explicitly configuring it
761
+ is deprecated. It will continue to work but will emit a deprecation
762
+ warning in RSpec 3 if you do not explicitly enable it. (Sam Phippen)
763
+
764
+ Bug Fixes:
765
+
766
+ * Fix `and_call_original` to handle a complex edge case involving
767
+ singleton class ancestors. (Marc-André Lafortune, Myron Marston)
768
+ * When generating an error message for unexpected arguments,
769
+ use `#inspect` rather than `#description` if `#description`
770
+ returns `nil` or `''` so that you still get a useful message.
771
+ (Nick DeLuca)
772
+
773
+ ### 2.99.4 / 2015-06-19
774
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.3...v2.99.4)
775
+
776
+ Bug Fixes:
777
+
778
+ * Add missing deprecation for using `with` with no arguments e.g. `with()`. (Yousuke, #970)
779
+
780
+ ### 2.99.3 / 2015-01-09
781
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.2...v2.99.3)
782
+
783
+ Bug Fixes:
784
+
785
+ * Fix regression that caused an error when a test double was deserialized from YAML. (Yuji Nakayama, #777)
786
+
787
+ ### 2.99.2 / 2014-07-21
788
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.1...v2.99.2)
789
+
790
+ Enhancements:
791
+
792
+ * Warn about upcoming change to `#===` matching and `DateTime#===` behaviour.
793
+ (Jon Rowe, #735)
794
+
795
+ ### 2.99.1 / 2014-06-12
796
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0...v2.99.1)
797
+
798
+ Bug Fixes:
799
+
800
+ * Fix bug that caused errors at the end of each example
801
+ when a `double.as_null_object` had been frozen. (Yuji Nakayama, #698)
802
+
803
+ Deprecations:
804
+
805
+ * Deprecate freezing a test double. (Yuji Nakayama, #698)
806
+
807
+ ### 2.99.0 / 2014-06-01
808
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.rc1...v2.99.0)
809
+
810
+ No changes. Just taking it out of pre-release.
811
+
812
+ ### 2.99.0.rc1 / 2014-05-18
813
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.beta2...v2.99.0.rc1)
814
+
815
+ Deprecations:
816
+
817
+ * Deprecate `RSpec::Mocks::TestDouble.extend_onto`. (Myron Marston)
818
+ * Deprecate `RSpec::Mocks::ConstantStubber`. (Jon Rowe)
819
+ * Deprecate `Marshal.dump` monkey-patch without opt-in. (Xavier Shay)
820
+
821
+ ### 2.99.0.beta2 / 2014-02-17
822
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.beta1...v2.99.0.beta2)
823
+
824
+ Deprecations:
825
+
826
+ * Deprecate `RSpec::Mocks::Mock` in favor of `RSpec::Mocks::Double`.
827
+ (Myron Marston)
828
+ * Deprecate the `host` argument of `RSpec::Mocks.setup`. Instead
829
+ `RSpec::Mocks::ExampleMethods` should be included directly in the scope where
830
+ RSpec's mocking capabilities are used. (Sam Phippen)
831
+ * Deprecate using any of rspec-mocks' features outside the per-test
832
+ lifecycle (e.g. from a `before(:all)` hook). (Myron Marston)
833
+ * Deprecate re-using a test double in another example. (Myron Marston)
834
+ * Deprecate `and_return { value }` and `and_return` without arguments. (Yuji Nakayama)
835
+
836
+ ### 2.99.0.beta1 / 2013-11-07
837
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.4...v2.99.0.beta1)
838
+
839
+ Deprecations
840
+
841
+ * Expecting to use lambdas or other strong arity implementations for stub
842
+ methods with mis-matched arity is deprecated and support for them will be
843
+ removed in 3.0. Either provide the right amount of arguments or use a weak
844
+ arity implementation (methods with splats or procs). (Jon Rowe)
845
+ * Using the same test double instance in multiple examples is deprecated. Test
846
+ doubles are only meant to live for one example. The mocks and stubs have
847
+ always been reset between examples; however, in 2.x the `as_null_object`
848
+ state was not reset and some users relied on this to have a null object
849
+ double that is used for many examples. This behavior will be removed in 3.0.
850
+ (Myron Marston)
851
+ * Print a detailed warning when an `any_instance` implementation block is used
852
+ when the new `yield_receiver_to_any_instance_implementation_blocks` config
853
+ option is not explicitly set, as RSpec 3.0 will default to enabling this new
854
+ feature. (Sam Phippen)
855
+
856
+ Enhancements:
857
+
858
+ * Add a config option to yield the receiver to `any_instance` implementation
859
+ blocks. (Sam Phippen)
860
+
861
+ ### 2.14.6 / 2014-02-20
862
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.5...v2.14.6)
863
+
864
+ Bug Fixes:
865
+
866
+ * Ensure `any_instance` method stubs and expectations are torn down regardless of
867
+ expectation failures. (Sam Phippen)
868
+
869
+ ### 2.14.5 / 2014-02-01
870
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.4...v2.14.5)
871
+
872
+ Bug Fixes:
873
+
874
+ * Fix regression that caused block implementations to not receive all
875
+ args on 1.8.7 if the block also receives a block, due to Proc#arity
876
+ reporting `1` no matter how many args the block receives if it
877
+ receives a block, too. (Myron Marston)
878
+
879
+ ### 2.14.4 / 2013-10-15
880
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.3...v2.14.4)
881
+
882
+ Bug Fixes:
883
+
884
+ * Fix issue where unstubing methods on "any instances" would not
885
+ remove stubs on existing instances (Jon Rowe)
886
+ * Fix issue with receive(:message) do ... end precedence preventing
887
+ the usage of modifications (`and_return` etc) (Jon Rowe)
888
+
889
+ ### 2.14.3 / 2013-08-08
890
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.2...v2.14.3)
891
+
892
+ Bug Fixes:
893
+
894
+ * Fix stubbing some instance methods for classes whose hierarchy includes
895
+ a prepended Module (Bradley Schaefer)
896
+
897
+ ### 2.14.2 / 2013-07-30
898
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.1...v2.14.2)
899
+
900
+ Bug Fixes:
901
+
902
+ * Fix `as_null_object` doubles so that they return `nil` from `to_ary`
903
+ (Jon Rowe).
904
+ * Fix regression in 2.14 that made `stub!` (with an implicit receiver)
905
+ return a test double rather than stub a method (Myron Marston).
906
+
907
+ ### 2.14.1 / 2013-07-07
908
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.0...v2.14.1)
909
+
910
+ Bug Fixes:
911
+
912
+ * Restore `double.as_null_object` behavior from 2.13 and earlier: a
913
+ double's nullness persisted between examples in earlier examples.
914
+ While this is not an intended use case (test doubles are meant to live
915
+ for only one example), we don't want to break behavior users rely
916
+ on in a minor relase. This will be deprecated in 2.99 and removed
917
+ in 3.0. (Myron Marston)
918
+
919
+ ### 2.14.0 / 2013-07-06
920
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.0.rc1...v2.14.0)
921
+
922
+ Enhancements:
923
+
924
+ * Document test spies in the readme. (Adarsh Pandit)
925
+ * Add an `array_including` matcher. (Sam Phippen)
926
+ * Add a syntax-agnostic API for mocking or stubbing a method. This is
927
+ intended for use by libraries such as rspec-rails that need to mock
928
+ or stub a method, and work regardless of the syntax the user has
929
+ configured (Paul Annesley, Myron Marston and Sam Phippen).
930
+
931
+ Bug Fixes:
932
+
933
+ * Fix `double` so that it sets up passed stubs correctly regardless of
934
+ the configured syntax (Paul Annesley).
935
+ * Allow a block implementation to be used in combination with
936
+ `and_yield`, `and_raise`, `and_return` or `and_throw`. This got fixed
937
+ in 2.13.1 but failed to get merged into master for the 2.14.0.rc1
938
+ release (Myron Marston).
939
+ * `Marshal.dump` does not unnecessarily duplicate objects when rspec-mocks has
940
+ not been fully initialized. This could cause errors when using `spork` or
941
+ similar preloading gems (Andy Lindeman).
942
+
943
+ ### 2.14.0.rc1 / 2013-05-27
944
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.13.0...v2.14.0.rc1)
945
+
946
+ Enhancements:
947
+
948
+ * Refactor internals so that the mock proxy methods and state are held
949
+ outside of the mocked object rather than inside it. This paves the way
950
+ for future syntax enhancements and removes the need for some hacky
951
+ work arounds for `any_instance` dup'ing and `YAML` serialization,
952
+ among other things. Note that the code now relies upon `__id__`
953
+ returning a unique, consistent value for any object you want to
954
+ mock or stub (Myron Marston).
955
+ * Add support for test spies. This allows you to verify a message
956
+ was received afterwards using the `have_received` matcher.
957
+ Note that you must first stub the method or use a null double.
958
+ (Joe Ferris and Joël Quenneville)
959
+ * Make `at_least` and `at_most` style receive expectations print that they were
960
+ expecting at least or at most some number of calls, rather than just the
961
+ number of calls given in the expectation (Sam Phippen)
962
+ * Make `with` style receive expectations print the args they were expecting, and
963
+ the args that they got (Sam Phippen)
964
+ * Fix some warnings seen under ruby 2.0.0p0 (Sam Phippen).
965
+ * Add a new `:expect` syntax for message expectations
966
+ (Myron Marston and Sam Phippen).
967
+
968
+ Bug fixes
969
+
970
+ * Fix `any_instance` so that a frozen object can be `dup`'d when methods
971
+ have been stubbed on that type using `any_instance` (Jon Rowe).
972
+ * Fix `and_call_original` so that it properly raises an `ArgumentError`
973
+ when the wrong number of args are passed (Jon Rowe).
974
+ * Fix `double` on 1.9.2 so you can wrap them in an Array
975
+ using `Array(my_double)` (Jon Rowe).
976
+ * Fix `stub_const` and `hide_const` to handle constants that redefine `send`
977
+ (Sam Phippen).
978
+ * Fix `Marshal.dump` extension so that it correctly handles nil.
979
+ (Luke Imhoff, Jon Rowe)
980
+ * Fix isolation of `allow_message_expectations_on_nil` (Jon Rowe)
981
+ * Use inspect to format actual arguments on expectations in failure messages (#280, Ben Langfeld)
982
+ * Protect against improperly initialised test doubles (#293) (Joseph Shraibman and Jon Rowe)
983
+
984
+ Deprecations
985
+
986
+ * Deprecate `stub` and `mock` as aliases for `double`. `double` is the
987
+ best term for creating a test double, and it reduces confusion to
988
+ have only one term (Michi Huber).
989
+ * Deprecate `stub!` and `unstub!` in favor of `stub` and `unstub`
990
+ (Jon Rowe).
991
+ * Deprecate `at_least(0).times` and `any_number_of_times` (Michi Huber).
992
+
993
+ ### 2.13.1 / 2013-04-06
994
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.13.0...v2.13.1)
995
+
996
+ Bug fixes
997
+
998
+ * Allow a block implementation to be used in combination with
999
+ `and_yield`, `and_raise`, `and_return` or `and_throw` (Myron Marston).
1000
+
1001
+ ### 2.13.0 / 2013-02-23
1002
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.12.2...v2.13.0)
1003
+
1004
+ Bug fixes
1005
+
1006
+ * Fix bug that caused weird behavior when a method that had
1007
+ previously been stubbed with multiple return values (e.g.
1008
+ `obj.stub(:foo).and_return(1, 2)`) was later mocked with a
1009
+ single return value (e.g. `obj.should_receive(:foo).once.and_return(1)`).
1010
+ (Myron Marston)
1011
+ * Fix bug related to a mock expectation for a method that already had
1012
+ multiple stubs with different `with` constraints. Previously, the
1013
+ first stub was used, even though it may not have matched the passed
1014
+ args. The fix defers this decision until the message is received so
1015
+ that the proper stub response can be chosen based on the passed
1016
+ arguments (Myron Marston).
1017
+ * Do not call `nil?` extra times on a mocked object, in case `nil?`
1018
+ itself is expected a set number of times (Myron Marston).
1019
+ * Fix `missing_default_stub_error` message so array args are handled
1020
+ properly (Myron Marston).
1021
+ * Explicitly disallow `any_instance.unstub!` (Ryan Jones).
1022
+ * Fix `any_instance` stubbing so that it works with `Delegator`
1023
+ subclasses (Myron Marston).
1024
+ * Fix `and_call_original` so that it works with `Delegator` subclasses
1025
+ (Myron Marston).
1026
+ * Fix `any_instance.should_not_receive` when `any_instance.should_receive`
1027
+ is used on the same class in the same example. Previously it would
1028
+ wrongly report a failure even when the message was not received
1029
+ (Myron Marston).
1030
+
1031
+ ### 2.12.2 / 2013-01-27
1032
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.12.1...v.2.12.2)
1033
+
1034
+ Bug fixes
1035
+
1036
+ * Fix `and_call_original` to work properly for methods defined
1037
+ on a module extended onto an object instance (Myron Marston).
1038
+ * Fix `stub_const` with an undefined constnat name to work properly
1039
+ with constant strings that are prefixed with `::` -- and edge case
1040
+ I missed in the bug fix in the 2.12.1 release (Myron Marston).
1041
+ * Ensure method visibility on a partial mock is restored after reseting
1042
+ method stubs, even on a singleton module (created via `extend self`)
1043
+ when the method visibility differs between the instance and singleton
1044
+ versions (Andy Lindeman).
1045
+
1046
+ ### 2.12.1 / 2012-12-21
1047
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.12.0...v2.12.1)
1048
+
1049
+ Bug fixes
1050
+
1051
+ * Fix `any_instance` to support `and_call_original`.
1052
+ (Myron Marston)
1053
+ * Properly restore stubbed aliased methods on rubies
1054
+ that report the incorrect owner (Myron Marston and Andy Lindeman).
1055
+ * Fix `hide_const` and `stub_const` with a defined constnat name to
1056
+ work properly with constant strings that are prefixed with `::` (Myron Marston).
1057
+
1058
+ ### 2.12.0 / 2012-11-12
1059
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.3...v2.12.0)
1060
+
1061
+ Enhancements
1062
+
1063
+ * `and_raise` can accept an exception class and message, more closely
1064
+ matching `Kernel#raise` (e.g., `foo.stub(:bar).and_raise(RuntimeError, "message")`)
1065
+ (Bas Vodde)
1066
+ * Add `and_call_original`, which will delegate the message to the
1067
+ original method (Myron Marston).
1068
+
1069
+ Deprecations:
1070
+
1071
+ * Add deprecation warning when using `and_return` with `should_not_receive`
1072
+ (Neha Kumari)
1073
+
1074
+ ### 2.11.3 / 2012-09-19
1075
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.2...v2.11.3)
1076
+
1077
+ Bug fixes
1078
+
1079
+ * Fix `:transfer_nested_constants` option of `stub_const` so that it
1080
+ doesn't blow up when there are inherited constants. (Myron Marston)
1081
+ * `any_instance` stubs can be used on classes that override `Object#method`.
1082
+ (Andy Lindeman)
1083
+ * Methods stubbed with `any_instance` are unstubbed after the test finishes.
1084
+ (Andy Lindeman)
1085
+ * Fix confusing error message when calling a mocked class method an
1086
+ extra time with the wrong arguments (Myron Marston).
1087
+
1088
+ ### 2.11.2 / 2012-08-11
1089
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.1...v2.11.2)
1090
+
1091
+ Bug fixes
1092
+
1093
+ * Don't modify `dup` on classes that don't support `dup` (David Chelimsky)
1094
+ * Fix `any_instance` so that it works properly with methods defined on
1095
+ a superclass. (Daniel Eguzkiza)
1096
+ * Fix `stub_const` so that it works properly for nested constants that
1097
+ share a name with a top-level constant (e.g. "MyGem::Hash"). (Myron
1098
+ Marston)
1099
+
1100
+ ### 2.11.1 / 2012-07-09
1101
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.0...v2.11.1)
1102
+
1103
+ Bug fixes
1104
+
1105
+ * Fix `should_receive` so that when it is called on an `as_null_object`
1106
+ double with no implementation, and there is a previous explicit stub
1107
+ for the same method, the explicit stub remains (rather than being
1108
+ overridden with the null object implementation--`return self`). (Myron
1109
+ Marston)
1110
+
1111
+ ### 2.11.0 / 2012-07-07
1112
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.10.1...v2.11.0)
1113
+
1114
+ Enhancements
1115
+
1116
+ * Expose ArgumentListMatcher as a formal API
1117
+ * supports use by 3rd party mock frameworks like Surrogate
1118
+ * Add `stub_const` API to stub constants for the duration of an
1119
+ example (Myron Marston).
1120
+
1121
+ Bug fixes
1122
+
1123
+ * Fix regression of edge case behavior. `double.should_receive(:foo) { a }`
1124
+ was causing a NoMethodError when `double.stub(:foo).and_return(a, b)`
1125
+ had been setup before (Myron Marston).
1126
+ * Infinite loop generated by using `any_instance` and `dup`. (Sidu Ponnappa @kaiwren)
1127
+ * `double.should_receive(:foo).at_least(:once).and_return(a)` always returns a
1128
+ even if `:foo` is already stubbed.
1129
+ * Prevent infinite loop when interpolating a null double into a string
1130
+ as an integer (`"%i" % double.as_null_object`). (Myron Marston)
1131
+ * Fix `should_receive` so that null object behavior (e.g. returning
1132
+ self) is preserved if no implementation is given (Myron Marston).
1133
+ * Fix `and_raise` so that it raises `RuntimeError` rather than
1134
+ `Exception` by default, just like ruby does. (Andrew Marshall)
1135
+
1136
+ ### 2.10.1 / 2012-05-05
1137
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.10.0...v2.10.1)
1138
+
1139
+ Bug fixes
1140
+
1141
+ * fix regression of edge case behavior
1142
+ (https://github.com/rspec/rspec-mocks/issues/132)
1143
+ * fixed failure of `object.should_receive(:message).at_least(0).times.and_return value`
1144
+ * fixed failure of `object.should_not_receive(:message).and_return value`
1145
+
1146
+ ### 2.10.0 / 2012-05-03
1147
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.9.0...v2.10.0)
1148
+
1149
+ Bug fixes
1150
+
1151
+ * fail fast when an `exactly` or `at_most` expectation is exceeded
1152
+
1153
+ ### 2.9.0 / 2012-03-17
1154
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0...v2.9.0)
1155
+
1156
+ Enhancements
1157
+
1158
+ * Support order constraints across objects (preethiramdev)
1159
+
1160
+ Bug fixes
1161
+
1162
+ * Allow a `as_null_object` to be passed to `with`
1163
+ * Pass proc to block passed to stub (Aubrey Rhodes)
1164
+ * Initialize child message expectation args to match any args (#109 -
1165
+ preethiramdev)
1166
+
1167
+ ### 2.8.0 / 2012-01-04
1168
+
1169
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc2...v2.8.0)
1170
+
1171
+ No changes for this release. Just releasing with the other rspec gems.
1172
+
1173
+ ### 2.8.0.rc2 / 2011-12-19
1174
+
1175
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
1176
+
1177
+ No changes for this release. Just releasing with the other rspec gems.
1178
+
1179
+ ### 2.8.0.rc1 / 2011-11-06
1180
+
1181
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.7.0...v2.8.0.rc1)
1182
+
1183
+ Enhancements
1184
+
1185
+ * Eliminate Ruby warnings (Matijs van Zuijlen)
1186
+
1187
+ ### 2.7.0 / 2011-10-16
1188
+
1189
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.6.0...v2.7.0)
1190
+
1191
+ Enhancements
1192
+
1193
+ * Use `__send__` rather than `send` (alextk)
1194
+ * Add support for `any_instance.stub_chain` (Sidu Ponnappa)
1195
+ * Add support for `any_instance` argument matching based on `with` (Sidu
1196
+ Ponnappa and Andy Lindeman)
1197
+
1198
+ Changes
1199
+
1200
+ * Check for `failure_message_for_should` or `failure_message` instead of
1201
+ `description` to detect a matcher (Tibor Claassen)
1202
+
1203
+ Bug fixes
1204
+
1205
+ * pass a hash to `any_instance.stub`. (Justin Ko)
1206
+ * allow `to_ary` to be called without raising `NoMethodError` (Mikhail
1207
+ Dieterle)
1208
+ * `any_instance` properly restores private methods (Sidu Ponnappa)
1209
+
1210
+ ### 2.6.0 / 2011-05-12
1211
+
1212
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.5.0...v2.6.0)
1213
+
1214
+ Enhancements
1215
+
1216
+ * Add support for `any_instance.stub` and `any_instance.should_receive` (Sidu
1217
+ Ponnappa and Andy Lindeman)
1218
+
1219
+ Bug fixes
1220
+
1221
+ * fix bug in which multiple chains with shared messages ending in hashes failed
1222
+ to return the correct value
1223
+
1224
+ ### 2.5.0 / 2011-02-05
1225
+
1226
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.4.0...v2.5.0)
1227
+
1228
+ Bug fixes
1229
+
1230
+ * message expectation counts now work in combination with a stub (Damian
1231
+ Nurzynski)
1232
+ * fix failure message when message received with incorrect args (Josep M.
1233
+ Bach)
1234
+
1235
+ ### 2.4.0 / 2011-01-02
1236
+
1237
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.3.0...v2.4.0)
1238
+
1239
+ No functional changes in this release, which was made to align with the
1240
+ rspec-core-2.4.0 release.
1241
+
1242
+ ### 2.3.0 / 2010-12-12
1243
+
1244
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.2.0...v2.3.0)
1245
+
1246
+ Bug fixes
1247
+
1248
+ * Fix our Marshal extension so that it does not interfere with objects that
1249
+ have their own `@mock_proxy` instance variable. (Myron Marston)
1250
+
1251
+ ### 2.2.0 / 2010-11-28
1252
+
1253
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.1.0...v2.2.0)
1254
+
1255
+ Enhancements
1256
+
1257
+ * Added "rspec/mocks/standalone" for exploring the rspec-mocks in irb.
1258
+
1259
+ Bug fix
1260
+
1261
+ * Eliminate warning on splat args without parens (Gioele Barabucci)
1262
+ * Fix bug where `obj.should_receive(:foo).with(stub.as_null_object)` would pass
1263
+ with a false positive.
1264
+
1265
+ ### 2.1.0 / 2010-11-07
1266
+
1267
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.1...v2.1.0)
1268
+
1269
+ Bug fixes
1270
+
1271
+ * Fix serialization of stubbed object (Josep M Bach)
1272
+
1273
+ ### 2.0.0 / 2010-10-10
1274
+
1275
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0)
1276
+
1277
+ ### 2.0.0.rc / 2010-10-05
1278
+
1279
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0.rc)
1280
+
1281
+ Enhancements
1282
+
1283
+ * support passing a block to an expectation block (Nicolas Braem)
1284
+ * `obj.should_receive(:msg) {|&block| ... }`
1285
+
1286
+ Bug fixes
1287
+
1288
+ * Fix YAML serialization of stub (Myron Marston)
1289
+ * Fix rdoc rake task (Hans de Graaff)
1290
+
1291
+ ### 2.0.0.beta.22 / 2010-09-12
1292
+
1293
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.20...v2.0.0.beta.22)
1294
+
1295
+ Bug fixes
1296
+
1297
+ * fixed regression that broke `obj.stub_chain(:a, :b => :c)`
1298
+ * fixed regression that broke `obj.stub_chain(:a, :b) { :c }`
1299
+ * `respond_to?` always returns true when using `as_null_object`