pad_character 0.1.0

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