sublimetheme 1.0.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 (276) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/CODE_OF_CONDUCT.md +13 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +230 -0
  9. data/Rakefile +8 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +7 -0
  12. data/lib/sublimetheme.rb +6832 -0
  13. data/lib/sublimetheme/version.rb +3 -0
  14. data/path/bin/htmldiff +25 -0
  15. data/path/bin/htmldiff.bat +6 -0
  16. data/path/bin/ldiff +25 -0
  17. data/path/bin/ldiff.bat +6 -0
  18. data/path/bin/rspec +23 -0
  19. data/path/bin/rspec.bat +6 -0
  20. data/path/cache/diff-lcs-1.2.5.gem +0 -0
  21. data/path/cache/rspec-3.3.0.gem +0 -0
  22. data/path/cache/rspec-core-3.3.2.gem +0 -0
  23. data/path/cache/rspec-expectations-3.3.1.gem +0 -0
  24. data/path/cache/rspec-mocks-3.3.2.gem +0 -0
  25. data/path/cache/rspec-support-3.3.0.gem +0 -0
  26. data/path/gems/diff-lcs-1.2.5/.autotest +3 -0
  27. data/path/gems/diff-lcs-1.2.5/.gemtest +0 -0
  28. data/path/gems/diff-lcs-1.2.5/.hoerc +2 -0
  29. data/path/gems/diff-lcs-1.2.5/.rspec +2 -0
  30. data/path/gems/diff-lcs-1.2.5/.travis.yml +22 -0
  31. data/path/gems/diff-lcs-1.2.5/Contributing.rdoc +64 -0
  32. data/path/gems/diff-lcs-1.2.5/Gemfile +20 -0
  33. data/path/gems/diff-lcs-1.2.5/History.rdoc +152 -0
  34. data/path/gems/diff-lcs-1.2.5/License.rdoc +39 -0
  35. data/path/gems/diff-lcs-1.2.5/Manifest.txt +38 -0
  36. data/path/gems/diff-lcs-1.2.5/README.rdoc +85 -0
  37. data/path/gems/diff-lcs-1.2.5/Rakefile +41 -0
  38. data/path/gems/diff-lcs-1.2.5/autotest/discover.rb +1 -0
  39. data/path/gems/diff-lcs-1.2.5/bin/htmldiff +32 -0
  40. data/path/gems/diff-lcs-1.2.5/bin/ldiff +6 -0
  41. data/path/gems/diff-lcs-1.2.5/docs/COPYING.txt +339 -0
  42. data/path/gems/diff-lcs-1.2.5/docs/artistic.txt +127 -0
  43. data/path/gems/diff-lcs-1.2.5/lib/diff-lcs.rb +3 -0
  44. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs.rb +805 -0
  45. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/array.rb +7 -0
  46. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/block.rb +37 -0
  47. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/callbacks.rb +322 -0
  48. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/change.rb +177 -0
  49. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/htmldiff.rb +149 -0
  50. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/hunk.rb +276 -0
  51. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/internals.rb +301 -0
  52. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/ldiff.rb +195 -0
  53. data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/string.rb +5 -0
  54. data/path/gems/diff-lcs-1.2.5/spec/change_spec.rb +65 -0
  55. data/path/gems/diff-lcs-1.2.5/spec/diff_spec.rb +47 -0
  56. data/path/gems/diff-lcs-1.2.5/spec/hunk_spec.rb +72 -0
  57. data/path/gems/diff-lcs-1.2.5/spec/issues_spec.rb +24 -0
  58. data/path/gems/diff-lcs-1.2.5/spec/lcs_spec.rb +54 -0
  59. data/path/gems/diff-lcs-1.2.5/spec/patch_spec.rb +414 -0
  60. data/path/gems/diff-lcs-1.2.5/spec/sdiff_spec.rb +214 -0
  61. data/path/gems/diff-lcs-1.2.5/spec/spec_helper.rb +290 -0
  62. data/path/gems/diff-lcs-1.2.5/spec/traverse_balanced_spec.rb +310 -0
  63. data/path/gems/diff-lcs-1.2.5/spec/traverse_sequences_spec.rb +139 -0
  64. data/path/gems/rspec-3.3.0/License.txt +24 -0
  65. data/path/gems/rspec-3.3.0/README.md +34 -0
  66. data/path/gems/rspec-3.3.0/lib/rspec.rb +3 -0
  67. data/path/gems/rspec-3.3.0/lib/rspec/version.rb +5 -0
  68. data/path/gems/rspec-core-3.3.2/.document +5 -0
  69. data/path/gems/rspec-core-3.3.2/.yardopts +8 -0
  70. data/path/gems/rspec-core-3.3.2/Changelog.md +1856 -0
  71. data/path/gems/rspec-core-3.3.2/License.txt +25 -0
  72. data/path/gems/rspec-core-3.3.2/README.md +369 -0
  73. data/path/gems/rspec-core-3.3.2/exe/rspec +4 -0
  74. data/path/gems/rspec-core-3.3.2/lib/rspec/autorun.rb +3 -0
  75. data/path/gems/rspec-core-3.3.2/lib/rspec/core.rb +181 -0
  76. data/path/gems/rspec-core-3.3.2/lib/rspec/core/backtrace_formatter.rb +64 -0
  77. data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/coordinator.rb +66 -0
  78. data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/example_minimizer.rb +130 -0
  79. data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/runner.rb +139 -0
  80. data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/server.rb +61 -0
  81. data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/subset_enumerator.rb +39 -0
  82. data/path/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb +1807 -0
  83. data/path/gems/rspec-core-3.3.2/lib/rspec/core/configuration_options.rb +191 -0
  84. data/path/gems/rspec-core-3.3.2/lib/rspec/core/drb.rb +111 -0
  85. data/path/gems/rspec-core-3.3.2/lib/rspec/core/dsl.rb +96 -0
  86. data/path/gems/rspec-core-3.3.2/lib/rspec/core/example.rb +573 -0
  87. data/path/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb +796 -0
  88. data/path/gems/rspec-core-3.3.2/lib/rspec/core/example_status_persister.rb +235 -0
  89. data/path/gems/rspec-core-3.3.2/lib/rspec/core/filter_manager.rb +231 -0
  90. data/path/gems/rspec-core-3.3.2/lib/rspec/core/flat_map.rb +20 -0
  91. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters.rb +254 -0
  92. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/base_formatter.rb +70 -0
  93. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/base_text_formatter.rb +77 -0
  94. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/bisect_formatter.rb +68 -0
  95. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/bisect_progress_formatter.rb +115 -0
  96. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/console_codes.rb +65 -0
  97. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
  98. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/documentation_formatter.rb +70 -0
  99. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/exception_presenter.rb +393 -0
  100. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
  101. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/helpers.rb +109 -0
  102. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/html_formatter.rb +151 -0
  103. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/html_printer.rb +415 -0
  104. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/json_formatter.rb +96 -0
  105. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/profile_formatter.rb +68 -0
  106. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/progress_formatter.rb +28 -0
  107. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/protocol.rb +172 -0
  108. data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/snippet_extractor.rb +116 -0
  109. data/path/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb +638 -0
  110. data/path/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb +532 -0
  111. data/path/gems/rspec-core-3.3.2/lib/rspec/core/metadata.rb +490 -0
  112. data/path/gems/rspec-core-3.3.2/lib/rspec/core/metadata_filter.rb +235 -0
  113. data/path/gems/rspec-core-3.3.2/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
  114. data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
  115. data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
  116. data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/null.rb +14 -0
  117. data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/rr.rb +31 -0
  118. data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
  119. data/path/gems/rspec-core-3.3.2/lib/rspec/core/mutex.rb +63 -0
  120. data/path/gems/rspec-core-3.3.2/lib/rspec/core/notifications.rb +498 -0
  121. data/path/gems/rspec-core-3.3.2/lib/rspec/core/option_parser.rb +301 -0
  122. data/path/gems/rspec-core-3.3.2/lib/rspec/core/ordering.rb +158 -0
  123. data/path/gems/rspec-core-3.3.2/lib/rspec/core/pending.rb +165 -0
  124. data/path/gems/rspec-core-3.3.2/lib/rspec/core/profiler.rb +32 -0
  125. data/path/gems/rspec-core-3.3.2/lib/rspec/core/project_initializer.rb +48 -0
  126. data/path/gems/rspec-core-3.3.2/lib/rspec/core/project_initializer/.rspec +2 -0
  127. data/path/gems/rspec-core-3.3.2/lib/rspec/core/project_initializer/spec/spec_helper.rb +96 -0
  128. data/path/gems/rspec-core-3.3.2/lib/rspec/core/rake_task.rb +158 -0
  129. data/path/gems/rspec-core-3.3.2/lib/rspec/core/reentrant_mutex.rb +52 -0
  130. data/path/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb +220 -0
  131. data/path/gems/rspec-core-3.3.2/lib/rspec/core/ruby_project.rb +53 -0
  132. data/path/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb +179 -0
  133. data/path/gems/rspec-core-3.3.2/lib/rspec/core/sandbox.rb +37 -0
  134. data/path/gems/rspec-core-3.3.2/lib/rspec/core/set.rb +49 -0
  135. data/path/gems/rspec-core-3.3.2/lib/rspec/core/shared_context.rb +55 -0
  136. data/path/gems/rspec-core-3.3.2/lib/rspec/core/shared_example_group.rb +210 -0
  137. data/path/gems/rspec-core-3.3.2/lib/rspec/core/shell_escape.rb +49 -0
  138. data/path/gems/rspec-core-3.3.2/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
  139. data/path/gems/rspec-core-3.3.2/lib/rspec/core/version.rb +9 -0
  140. data/path/gems/rspec-core-3.3.2/lib/rspec/core/warnings.rb +40 -0
  141. data/path/gems/rspec-core-3.3.2/lib/rspec/core/world.rb +178 -0
  142. data/path/gems/rspec-expectations-3.3.1/.document +5 -0
  143. data/path/gems/rspec-expectations-3.3.1/.yardopts +6 -0
  144. data/path/gems/rspec-expectations-3.3.1/Changelog.md +953 -0
  145. data/path/gems/rspec-expectations-3.3.1/License.txt +24 -0
  146. data/path/gems/rspec-expectations-3.3.1/README.md +289 -0
  147. data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations.rb +81 -0
  148. data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/configuration.rb +164 -0
  149. data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/expectation_target.rb +113 -0
  150. data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/fail_with.rb +31 -0
  151. data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/failure_aggregator.rb +194 -0
  152. data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/handler.rb +170 -0
  153. data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/minitest_integration.rb +31 -0
  154. data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/syntax.rb +132 -0
  155. data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/version.rb +8 -0
  156. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers.rb +1009 -0
  157. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/aliased_matcher.rb +116 -0
  158. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in.rb +52 -0
  159. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/all.rb +85 -0
  160. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/base_matcher.rb +181 -0
  161. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be.rb +285 -0
  162. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be_between.rb +77 -0
  163. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be_instance_of.rb +22 -0
  164. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be_kind_of.rb +16 -0
  165. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be_within.rb +72 -0
  166. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/change.rb +337 -0
  167. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/compound.rb +293 -0
  168. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/contain_exactly.rb +253 -0
  169. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/cover.rb +24 -0
  170. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/eq.rb +40 -0
  171. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/eql.rb +34 -0
  172. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/equal.rb +81 -0
  173. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/exist.rb +86 -0
  174. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/has.rb +103 -0
  175. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
  176. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/include.rb +130 -0
  177. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/match.rb +37 -0
  178. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/operators.rb +128 -0
  179. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/output.rb +200 -0
  180. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/raise_error.rb +216 -0
  181. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/respond_to.rb +90 -0
  182. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/satisfy.rb +37 -0
  183. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
  184. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
  185. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/yield.rb +418 -0
  186. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/composable.rb +184 -0
  187. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/dsl.rb +453 -0
  188. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/english_phrasing.rb +42 -0
  189. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +73 -0
  190. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/fail_matchers.rb +42 -0
  191. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/generated_descriptions.rb +42 -0
  192. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/matcher_delegator.rb +35 -0
  193. data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/matcher_protocol.rb +99 -0
  194. data/path/gems/rspec-mocks-3.3.2/.document +5 -0
  195. data/path/gems/rspec-mocks-3.3.2/.yardopts +6 -0
  196. data/path/gems/rspec-mocks-3.3.2/Changelog.md +965 -0
  197. data/path/gems/rspec-mocks-3.3.2/License.txt +24 -0
  198. data/path/gems/rspec-mocks-3.3.2/README.md +430 -0
  199. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks.rb +126 -0
  200. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance.rb +11 -0
  201. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/chain.rb +110 -0
  202. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
  203. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/expect_chain_chain.rb +35 -0
  204. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/expectation_chain.rb +48 -0
  205. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
  206. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/proxy.rb +116 -0
  207. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/recorder.rb +264 -0
  208. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/stub_chain.rb +46 -0
  209. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/stub_chain_chain.rb +27 -0
  210. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/argument_list_matcher.rb +100 -0
  211. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/argument_matchers.rb +320 -0
  212. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/configuration.rb +188 -0
  213. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/error_generator.rb +362 -0
  214. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/example_methods.rb +421 -0
  215. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/instance_method_stasher.rb +135 -0
  216. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/marshal_extension.rb +41 -0
  217. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
  218. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/have_received.rb +116 -0
  219. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/receive.rb +130 -0
  220. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/receive_message_chain.rb +80 -0
  221. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/receive_messages.rb +75 -0
  222. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/message_chain.rb +87 -0
  223. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/message_expectation.rb +717 -0
  224. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/method_double.rb +287 -0
  225. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/method_reference.rb +192 -0
  226. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/mutate_const.rb +335 -0
  227. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/mutex.rb +73 -0
  228. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/object_reference.rb +149 -0
  229. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/order_group.rb +81 -0
  230. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/proxy.rb +439 -0
  231. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/reentrant_mutex.rb +53 -0
  232. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/space.rb +238 -0
  233. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/standalone.rb +3 -0
  234. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/syntax.rb +325 -0
  235. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/targets.rb +97 -0
  236. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/test_double.rb +170 -0
  237. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/verifying_double.rb +129 -0
  238. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/verifying_message_expecation.rb +54 -0
  239. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/verifying_proxy.rb +213 -0
  240. data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/version.rb +9 -0
  241. data/path/gems/rspec-support-3.3.0/Changelog.md +125 -0
  242. data/path/gems/rspec-support-3.3.0/LICENSE.txt +22 -0
  243. data/path/gems/rspec-support-3.3.0/README.md +26 -0
  244. data/path/gems/rspec-support-3.3.0/lib/rspec/support.rb +111 -0
  245. data/path/gems/rspec-support-3.3.0/lib/rspec/support/caller_filter.rb +83 -0
  246. data/path/gems/rspec-support-3.3.0/lib/rspec/support/differ.rb +215 -0
  247. data/path/gems/rspec-support-3.3.0/lib/rspec/support/directory_maker.rb +63 -0
  248. data/path/gems/rspec-support-3.3.0/lib/rspec/support/encoded_string.rb +155 -0
  249. data/path/gems/rspec-support-3.3.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
  250. data/path/gems/rspec-support-3.3.0/lib/rspec/support/hunk_generator.rb +47 -0
  251. data/path/gems/rspec-support-3.3.0/lib/rspec/support/matcher_definition.rb +42 -0
  252. data/path/gems/rspec-support-3.3.0/lib/rspec/support/method_signature_verifier.rb +273 -0
  253. data/path/gems/rspec-support-3.3.0/lib/rspec/support/object_formatter.rb +93 -0
  254. data/path/gems/rspec-support-3.3.0/lib/rspec/support/recursive_const_methods.rb +76 -0
  255. data/path/gems/rspec-support-3.3.0/lib/rspec/support/ruby_features.rb +118 -0
  256. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec.rb +81 -0
  257. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
  258. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/formatting_support.rb +9 -0
  259. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/in_sub_process.rb +52 -0
  260. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/library_wide_checks.rb +145 -0
  261. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/shell_out.rb +71 -0
  262. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
  263. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/string_matcher.rb +46 -0
  264. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb +9 -0
  265. data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
  266. data/path/gems/rspec-support-3.3.0/lib/rspec/support/version.rb +7 -0
  267. data/path/gems/rspec-support-3.3.0/lib/rspec/support/version_checker.rb +53 -0
  268. data/path/gems/rspec-support-3.3.0/lib/rspec/support/warnings.rb +39 -0
  269. data/path/specifications/diff-lcs-1.2.5.gemspec +68 -0
  270. data/path/specifications/rspec-3.3.0.gemspec +42 -0
  271. data/path/specifications/rspec-core-3.3.2.gemspec +68 -0
  272. data/path/specifications/rspec-expectations-3.3.1.gemspec +50 -0
  273. data/path/specifications/rspec-mocks-3.3.2.gemspec +53 -0
  274. data/path/specifications/rspec-support-3.3.0.gemspec +38 -0
  275. data/sublimetheme.gemspec +32 -0
  276. metadata +363 -0
@@ -0,0 +1,178 @@
1
+ module RSpec
2
+ module Core
3
+ # @api private
4
+ #
5
+ # Internal container for global non-configuration data.
6
+ class World
7
+ # @private
8
+ attr_reader :example_groups, :filtered_examples
9
+
10
+ # Used internally to determine what to do when a SIGINT is received.
11
+ attr_accessor :wants_to_quit
12
+
13
+ def initialize(configuration=RSpec.configuration)
14
+ @configuration = configuration
15
+ @example_groups = []
16
+ @example_group_counts_by_spec_file = Hash.new(0)
17
+ @filtered_examples = Hash.new do |hash, group|
18
+ hash[group] = filter_manager.prune(group.examples)
19
+ end
20
+ end
21
+
22
+ # @api private
23
+ #
24
+ # Apply ordering strategy from configuration to example groups.
25
+ def ordered_example_groups
26
+ ordering_strategy = @configuration.ordering_registry.fetch(:global)
27
+ ordering_strategy.order(@example_groups)
28
+ end
29
+
30
+ # @api private
31
+ #
32
+ # Reset world to 'scratch' before running suite.
33
+ def reset
34
+ example_groups.clear
35
+ @shared_example_group_registry = nil
36
+ end
37
+
38
+ # @private
39
+ def filter_manager
40
+ @configuration.filter_manager
41
+ end
42
+
43
+ # @api private
44
+ #
45
+ # Register an example group.
46
+ def register(example_group)
47
+ example_groups << example_group
48
+ @example_group_counts_by_spec_file[example_group.metadata[:file_path]] += 1
49
+ example_group
50
+ end
51
+
52
+ # @private
53
+ def num_example_groups_defined_in(file)
54
+ @example_group_counts_by_spec_file[file]
55
+ end
56
+
57
+ # @private
58
+ def shared_example_group_registry
59
+ @shared_example_group_registry ||= SharedExampleGroup::Registry.new
60
+ end
61
+
62
+ # @private
63
+ def inclusion_filter
64
+ @configuration.inclusion_filter
65
+ end
66
+
67
+ # @private
68
+ def exclusion_filter
69
+ @configuration.exclusion_filter
70
+ end
71
+
72
+ # @api private
73
+ #
74
+ # Get count of examples to be run.
75
+ def example_count(groups=example_groups)
76
+ FlatMap.flat_map(groups) { |g| g.descendants }.
77
+ inject(0) { |a, e| a + e.filtered_examples.size }
78
+ end
79
+
80
+ # @private
81
+ def all_example_groups
82
+ FlatMap.flat_map(example_groups) { |g| g.descendants }
83
+ end
84
+
85
+ # @private
86
+ def all_examples
87
+ FlatMap.flat_map(all_example_groups) { |g| g.examples }
88
+ end
89
+
90
+ # @api private
91
+ #
92
+ # Find line number of previous declaration.
93
+ def preceding_declaration_line(filter_line)
94
+ declaration_line_numbers.sort.inject(nil) do |highest_prior_declaration_line, line|
95
+ line <= filter_line ? line : highest_prior_declaration_line
96
+ end
97
+ end
98
+
99
+ # @private
100
+ def reporter
101
+ @configuration.reporter
102
+ end
103
+
104
+ # @api private
105
+ #
106
+ # Notify reporter of filters.
107
+ def announce_filters
108
+ fail_if_config_and_cli_options_invalid
109
+ filter_announcements = []
110
+
111
+ announce_inclusion_filter filter_announcements
112
+ announce_exclusion_filter filter_announcements
113
+
114
+ unless filter_manager.empty?
115
+ if filter_announcements.length == 1
116
+ reporter.message("Run options: #{filter_announcements[0]}")
117
+ else
118
+ reporter.message("Run options:\n #{filter_announcements.join("\n ")}")
119
+ end
120
+ end
121
+
122
+ if @configuration.run_all_when_everything_filtered? && example_count.zero? && !@configuration.only_failures?
123
+ reporter.message("#{everything_filtered_message}; ignoring #{inclusion_filter.description}")
124
+ filtered_examples.clear
125
+ inclusion_filter.clear
126
+ end
127
+
128
+ return unless example_count.zero?
129
+
130
+ example_groups.clear
131
+ if filter_manager.empty?
132
+ reporter.message("No examples found.")
133
+ elsif exclusion_filter.empty? || inclusion_filter.empty?
134
+ reporter.message(everything_filtered_message)
135
+ end
136
+ end
137
+
138
+ # @private
139
+ def everything_filtered_message
140
+ "\nAll examples were filtered out"
141
+ end
142
+
143
+ # @api private
144
+ #
145
+ # Add inclusion filters to announcement message.
146
+ def announce_inclusion_filter(announcements)
147
+ return if inclusion_filter.empty?
148
+
149
+ announcements << "include #{inclusion_filter.description}"
150
+ end
151
+
152
+ # @api private
153
+ #
154
+ # Add exclusion filters to announcement message.
155
+ def announce_exclusion_filter(announcements)
156
+ return if exclusion_filter.empty?
157
+
158
+ announcements << "exclude #{exclusion_filter.description}"
159
+ end
160
+
161
+ private
162
+
163
+ def declaration_line_numbers
164
+ @declaration_line_numbers ||= FlatMap.flat_map(example_groups, &:declaration_line_numbers)
165
+ end
166
+
167
+ def fail_if_config_and_cli_options_invalid
168
+ return unless @configuration.only_failures_but_not_configured?
169
+
170
+ reporter.abort_with(
171
+ "\nTo use `--only-failures`, you must first set " \
172
+ "`config.example_status_persistence_file_path`.",
173
+ 1 # exit code
174
+ )
175
+ end
176
+ end
177
+ end
178
+ end
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ -
3
+ README.md
4
+ License.txt
5
+ Changelog.md
@@ -0,0 +1,6 @@
1
+ --exclude features
2
+ --no-private
3
+ --markup markdown
4
+ -
5
+ Changelog.md
6
+ License.txt
@@ -0,0 +1,953 @@
1
+ ### 3.3.1 / 2015-07-15
2
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.3.0...v3.3.1)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix `be >`, `be <`, etc so that it fails rather than allowing an
7
+ argument error to be raised when compared against an object of the
8
+ wrong type. This allows it to be used in composed matcher expressions
9
+ against heterogeneous objects. (Dennis Günnewig, #809)
10
+ * Fix `respond_to` to work properly on target objects
11
+ that redefine the `method` method. (unmanbearpig, #821)
12
+
13
+ ### 3.3.0 / 2015-06-12
14
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.2.1...v3.3.0)
15
+
16
+ Enhancements:
17
+
18
+ * Expose `RSpec::Matchers::EnglishPhrasing` to make it easier to write
19
+ nice failure messages in custom matchers. (Jared Beck, #736)
20
+ * Add `RSpec::Matchers::FailMatchers`, a mixin which provides
21
+ `fail`, `fail_with` and `fail_including` matchers for use in
22
+ specifying that an expectation fails for use by
23
+ extension/plugin authors. (Charlie Rudolph, #729)
24
+ * Avoid loading `tempfile` (and its dependencies) unless
25
+ it is absolutely needed. (Myron Marston, #735)
26
+ * Improve failure output when attempting to use `be_true` or `be_false`.
27
+ (Tim Wade, #744)
28
+ * Define `RSpec::Matchers#respond_to_missing?` so that
29
+ `RSpec::Matchers#respond_to?` and `RSpec::Matchers#method` handle
30
+ dynamic predicate matchers. (Andrei Botalov, #751)
31
+ * Use custom Time/DateTime/BigDecimal formatting for all matchers
32
+ so they are consistently represented in failure messages.
33
+ (Gavin Miller, #740)
34
+ * Add configuration to turn off warnings about matcher combinations that
35
+ may cause false positives. (Jon Rowe, #768)
36
+ * Warn when using a bare `raise_error` matcher that you may be subject to
37
+ false positives. (Jon Rowe, #768)
38
+ * Warn rather than raise when using the`raise_error` matcher in negative
39
+ expectations that may be subject to false positives. (Jon Rowe, #775)
40
+ * Improve failure message for `include(a, b, c)` so that if `a` and `b`
41
+ are included the failure message only mentions `c`. (Chris Arcand, #780)
42
+ * Allow `satisfy` matcher to take an optional description argument
43
+ that will be used in the `description`, `failure_message` and
44
+ `failure_message_when_negated` in place of the undescriptive
45
+ "sastify block". (Chris Arcand, #783)
46
+ * Add new `aggregate_failures` API that allows multiple independent
47
+ expectations to all fail and be listed in the failure output, rather
48
+ than the example aborting on the first failure. (Myron Marston, #776)
49
+ * Improve `raise_error` matcher so that it can accept a matcher as a single argument
50
+ that matches the message. (Time Wade, #782)
51
+
52
+ Bug Fixes:
53
+
54
+ * Make `contain_exactly` / `match_array` work with strict test doubles
55
+ that have not defined `<=>`. (Myron Marston, #758)
56
+ * Fix `include` matcher so that it omits the diff when it would
57
+ confusingly highlight items that are actually included but are not
58
+ an exact match in a line-by-line diff. (Tim Wade, #763)
59
+ * Fix `match` matcher so that it does not blow up when matching a string
60
+ or regex against another matcher (rather than a string or regex).
61
+ (Myron Marston, #772)
62
+ * Silence whitespace-only diffs. (Myron Marston, #801)
63
+
64
+ ### 3.2.1 / 2015-04-06
65
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.2.0...v3.2.1)
66
+
67
+ Bug Fixes:
68
+
69
+ * Prevent `Range`s from being enumerated when generating matcher
70
+ descriptions. (Jon Rowe, #755)
71
+ * Ensure exception messages are compared as strings in the `raise_error`
72
+ matcher. (Jon Rowe, #755)
73
+
74
+ ### 3.2.0 / 2015-02-03
75
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.1.2...v3.2.0)
76
+
77
+ Enhancements:
78
+
79
+ * Add `block_arg` method to custom matcher API, which allows you to
80
+ access the block passed to a custom matcher, if there is one.
81
+ (Mike Dalton, #645)
82
+ * Provide more detail in failure message of `yield_control` matcher.
83
+ (Jon Rowe, #650)
84
+ * Add a shorthand syntax for `chain` in the matcher DSL which assigns values
85
+ for use elsewhere, for example `chain :and_smaller_than, :small_value`
86
+ creates an `attr_reader` for `small_value` (Tom Stuart, #644)
87
+ * Provide a more helpful deprecation message when using the `should` syntax.
88
+ (Elia Schito, #663)
89
+ * Provide more detail in the `have_attributes` matcher failure message.
90
+ (Jon Rowe, #668)
91
+ * Make the `have_attributes` matcher diffable.
92
+ (Jon Rowe, Alexey Fedorov, #668)
93
+ * Add `output(...).to_std(out|err)_from_any_process` as alternatives
94
+ to `output(...).to_std(out|err)`. The latter doesn't work when a sub
95
+ process writes to the named stream but is much faster.
96
+ (Alex Genco, #700)
97
+ * Improve compound matchers (created by `and` and `or`) so that diffs
98
+ are included in failures when one or more of their matchers
99
+ are diffable. (Alexey Fedorov, #713)
100
+
101
+ Bug Fixes:
102
+
103
+ * Avoid calling `private_methods` from the `be` predicate matcher on
104
+ the target object if the object publicly responds to the predicate
105
+ method. This avoids a possible error that can occur if the object
106
+ raises errors from `private_methods` (which can happen with celluloid
107
+ objects). (@chapmajs, #670)
108
+ * Make `yield_control` (with no modifier) default to
109
+ `at_least(:once)` rather than raising a confusing error
110
+ when multiple yields are encountered.
111
+ (Myron Marston, #675)
112
+ * Fix "instance variable @color not initialized" warning when using
113
+ rspec-expectations outside of an rspec-core context. (Myron Marston, #689)
114
+ * Fix `start_with` and `end_with` to work properly when checking a
115
+ string against an array of strings. (Myron Marston, #690)
116
+ * Don't use internally delegated matchers when generating descriptions
117
+ for examples without doc strings. (Myron Marston, #692)
118
+
119
+ ### 3.1.2 / 2014-09-26
120
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.1.1...v3.1.2)
121
+
122
+ Bug Fixes:
123
+
124
+ * Fix `define_negated_matcher` so that matchers that support fluent
125
+ interfaces continue to be negated after you use the chained method.
126
+ (Myron Marston, #656)
127
+ * Fix `define_negated_matcher` so that the matchers fail with an
128
+ appropriate failure message. (Myron Marston, #659)
129
+
130
+ ### 3.1.1 / 2014-09-15
131
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.1.0...v3.1.1)
132
+
133
+ Bug Fixes:
134
+
135
+ * Fix regression in `all` matcher in 3.1.0 that prevented it from
136
+ working on objects that are not `Enumerable` but do implement
137
+ `each_with_index` (such as an ActiveRecord proxy). (Jori Hardman, #647)
138
+
139
+ ### 3.1.0 / 2014-09-04
140
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.4...v3.1.0)
141
+
142
+ Enhancements:
143
+
144
+ * Add `have_attributes` matcher, that passes if actual's attribute
145
+ values match the expected attributes hash:
146
+ `Person = Struct.new(:name, :age)`
147
+ `person = Person.new("Bob", 32)`
148
+ `expect(person).to have_attributes(:name => "Bob", :age => 32)`.
149
+ (Adam Farhi, #571)
150
+ * Extended compound matcher support to block matchers, for cases like:
151
+ `expect { ... }.to change { x }.to(3).and change { y }.to(4)`. (Myron
152
+ Marston, #567)
153
+ * Include chained methods in custom matcher description and failure message
154
+ when new `include_chain_clauses_in_custom_matcher_descriptions` config
155
+ option is enabled. (Dan Oved, #600)
156
+ * Add `thrice` modifier to `yield_control` matcher as a synonym for
157
+ `exactly(3).times`. (Dennis Taylor, #615)
158
+ * Add `RSpec::Matchers.define_negated_matcher`, which defines a negated
159
+ version of the named matcher. (Adam Farhi, Myron Marston, #618)
160
+ * Document and support negation of `contain_exactly`/`match_array`.
161
+ (Jon Rowe, #626).
162
+
163
+ Bug Fixes:
164
+
165
+ * Rename private `LegacyMacherAdapter` constant to `LegacyMatcherAdapter`
166
+ to fix typo. (Abdelkader Boudih, #563)
167
+ * Fix `all` matcher so that it fails properly (rather than raising a
168
+ `NoMethodError`) when matched against a non-enumerable. (Hao Su, #622)
169
+
170
+ ### 3.0.4 / 2014-08-14
171
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.3...v3.0.4)
172
+
173
+ Bug Fixes:
174
+
175
+ * Fix `start_with` and `end_with` so that they work properly with
176
+ structs. (Myron Marston, #620)
177
+ * Fix failure message generation so that structs are printed properly
178
+ in failures. Previously failure messages would represent them as
179
+ an array. (Myron Marston, #620)
180
+ * Fix composable matcher support so that it does not wrongly treat
181
+ structs as arrays. (Myron Marston, #620)
182
+
183
+ ### 3.0.3 / 2014-07-21
184
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.2...v3.0.3)
185
+
186
+ Bug Fixes:
187
+
188
+ * Fix issue with detection of generic operator matchers so they work
189
+ correctly when undefined. (Myron Marston, #597)
190
+ * Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, #603)
191
+ * Fix `include` matcher so that it fails gracefully when matched against
192
+ an object that does not respond to `include?`. (Myron Marston, #607)
193
+
194
+ ### 3.0.2 / 2014-06-19
195
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.1...v3.0.2)
196
+
197
+ Bug Fixes:
198
+
199
+ * Fix regression in `contain_exactly` (AKA `match_array`) that caused it
200
+ to wrongly pass when the expected array was empty. (Myron Marston, #581)
201
+ * Provide a better error message when you use the `change(obj, :msg)`
202
+ form of the change matcher but forget the message argument. (Alex
203
+ Sunderland, #585)
204
+ * Make the `contain_exactly` matcher work with arrays that contain hashes in
205
+ arbitrary ordering. (Sam Phippen, #578)
206
+
207
+ ### 3.0.1 / 2014-06-12
208
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.0...v3.0.1)
209
+
210
+ Bug Fixes:
211
+
212
+ * Add a missing `require` that would cause the `respond_to` matcher to
213
+ fail when used in a project where the rest of RSpec (e.g. core and
214
+ expecatations) weren't being used. (Myron Marston, #566)
215
+ * Structs are no longer treated as arrays when diffed. (Jon Rowe, #576)
216
+
217
+ ### 3.0.0 / 2014-06-01
218
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.0.rc1...v3.0.0)
219
+
220
+ No code changes. Just taking it out of pre-release.
221
+
222
+ ### 3.0.0.rc1 / 2014-05-18
223
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.0.beta2...v3.0.0.rc1)
224
+
225
+ Breaking Changes for 3.0.0:
226
+
227
+ * Remove `matcher_execution_context` attribute from DSL-defined
228
+ custom matchers. (Myron Marston)
229
+ * Remove `RSpec::Matchers::Pretty#_pretty_print`. (Myron Marston)
230
+ * Remove `RSpec::Matchers::Pretty#expected_to_sentence`. (Myron Marston)
231
+ * Rename `RSpec::Matchers::Configuration` constant to
232
+ `RSpec::Expectations::Configuration`. (Myron Marston)
233
+ * Prevent `have_xyz` predicate matchers using private methods.
234
+ (Adrian Gonzalez)
235
+ * Block matchers must now implement `supports_block_expectations?`.
236
+ (Myron Marston)
237
+ * Stop supporting `require 'rspec-expectations'`.
238
+ Use `require 'rspec/expectations'` instead. (Myron Marston)
239
+
240
+ Bug Fixes:
241
+
242
+ * Fix `NoMethodError` triggered by beta2 when `YARD` was loaded in
243
+ the test environment. (Myron Marston)
244
+ * Fix `be_xyz` matcher to accept a `do...end` block. (Myron Marston)
245
+ * Fix composable matcher failure message generation logic
246
+ so that it does not blow up when given `$stdout` or `$stderr`.
247
+ (Myron Marston)
248
+ * Fix `change` matcher to work properly with `IO` objects.
249
+ (Myron Marston)
250
+ * Fix `exist` matcher so that it can be used in composed matcher
251
+ expressions involving objects that do not implement `exist?` or
252
+ `exists?`. (Daniel Fone)
253
+ * Fix composable matcher match logic so that it clones matchers
254
+ before using them in order to work properly with matchers
255
+ that use internal memoization based on a given `actual` value.
256
+ (Myron Marston)
257
+ * Fix `be_xyz` and `has_xyz` predicate matchers so that they can
258
+ be used in composed matcher expressions involving objects that
259
+ do not implement the predicate method. (Daniel Fone)
260
+
261
+ Enhancements:
262
+
263
+ * Document the remaining public APIs. rspec-expectations now has 100% of
264
+ the public API documented and will remain that way (as new undocumented
265
+ methods will fail the build). (Myron Marston)
266
+ * Improve the formatting of BigDecimal objects in `eq` matcher failure
267
+ messages. (Daniel Fone)
268
+ * Improve the failure message for `be_xyz` predicate matchers so
269
+ that it includes the `inspect` output of the receiver.
270
+ (Erik Michaels-Ober, Sam Phippen)
271
+ * Add `all` matcher, to allow you to specify that a given matcher
272
+ matches all elements in a collection:
273
+ `expect([1, 3, 5]).to all( be_odd )`. (Adam Farhi)
274
+ * Add boolean aliases (`&`/`|`) for compound operators (`and`/`or`). (Adam Farhi)
275
+ * Give users a clear error when they wrongly use a value matcher
276
+ in a block expectation expression (e.g. `expect { 3 }.to eq(3)`)
277
+ or vice versa. (Myron Marston)
278
+
279
+ ### 3.0.0.beta2 / 2014-02-17
280
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.0.0.beta1...v3.0.0.beta2)
281
+
282
+ Breaking Changes for 3.0.0:
283
+
284
+ * Remove deprecated support for accessing the `RSpec` constant using
285
+ `Rspec` or `Spec`. (Myron Marston)
286
+ * Remove deprecated `RSpec::Expectations.differ=`. (Myron Marston)
287
+ * Remove support for deprecated `expect(...).should`. (Myron Marston)
288
+ * Explicitly disallow `expect { }.not_to change { }` with `by`,
289
+ `by_at_least`, `by_at_most` or `to`. These have never been supported
290
+ but did not raise explicit errors. (Myron Marston)
291
+ * Provide `===` rather than `==` as an alias of `matches?` for
292
+ all matchers. The semantics of `===` are closer to an RSpec
293
+ matcher than `==`. (Myron Marston)
294
+ * Remove deprecated `RSpec::Matchers::OperatorMatcher` constant.
295
+ (Myron Marston)
296
+ * Make `RSpec::Expectations::ExpectationNotMetError` subclass
297
+ `Exception` rather than `StandardError` so they can bypass
298
+ a bare `rescue` in end-user code (e.g. when an expectation is
299
+ set from within a rspec-mocks stub implementation). (Myron Marston)
300
+ * Remove Test::Unit and Minitest 4.x integration. (Myron Marston)
301
+
302
+ Enhancements:
303
+
304
+ * Simplify the failure message of the `be` matcher when matching against:
305
+ `true`, `false` and `nil`. (Sam Phippen)
306
+ * Update matcher protocol and custom matcher DSL to better align
307
+ with the newer `expect` syntax. If you want your matchers to
308
+ maintain compatibility with multiple versions of RSpec, you can
309
+ alias the new names to the old. (Myron Marston)
310
+ * `failure_message_for_should` => `failure_message`
311
+ * `failure_message_for_should_not` => `failure_message_when_negated`
312
+ * `match_for_should` => `match`
313
+ * `match_for_should_not` => `match_when_negated`
314
+ * Improve generated descriptions from `change` matcher. (Myron Marston)
315
+ * Add support for compound matcher expressions using `and` and `or`.
316
+ Simply chain them off of any existing matcher to create an expression
317
+ like `expect(alphabet).to start_with("a").and end_with("z")`.
318
+ (Eloy Espinaco)
319
+ * Add `contain_exactly` as a less ambiguous version of `match_array`.
320
+ Note that it expects the expected array to be splatted as
321
+ individual args: `expect(array).to contain_exactly(1, 2)` is
322
+ the same as `expect(array).to match_array([1, 2])`. (Myron Marston)
323
+ * Update `contain_exactly`/`match_array` so that it can match against
324
+ other non-array collections (such as a `Set`). (Myron Marston)
325
+ * Update built-in matchers so that they can accept matchers as arguments
326
+ to allow you to compose matchers in arbitrary ways. (Myron Marston)
327
+ * Add `RSpec::Matchers::Composable` mixin that can be used to make
328
+ a custom matcher composable as well. Note that custom matchers
329
+ defined via `RSpec::Matchers.define` already have this. (Myron
330
+ Marston)
331
+ * Define noun-phrase aliases for built-in matchers, which can be
332
+ used when creating composed matcher expressions that read better
333
+ and provide better failure messages. (Myron Marston)
334
+ * Add `RSpec::Matchers.alias_matcher` so users can define their own
335
+ matcher aliases. The `description` of the matcher will reflect the
336
+ alternate matcher name. (Myron Marston)
337
+ * Add explicit `be_between` matcher. `be_between` has worked for a
338
+ long time as a dynamic predicate matcher, but the failure message
339
+ was suboptimal. The new matcher provides a much better failure
340
+ message. (Erik Michaels-Ober)
341
+ * Enhance the `be_between` matcher to allow for `inclusive` or `exclusive`
342
+ comparison (e.g. inclusive of min/max or exclusive of min/max).
343
+ (Pedro Gimenez)
344
+ * Make failure message for `not_to be #{operator}` less confusing by
345
+ only saying it's confusing when comparison operators are used.
346
+ (Prathamesh Sonpatki)
347
+ * Improve failure message of `eq` matcher when `Time` or `DateTime`
348
+ objects are used so that the full sub-second precision is included.
349
+ (Thomas Holmes, Jeff Wallace)
350
+ * Add `output` matcher for expecting that a block outputs `to_stdout`
351
+ or `to_stderr`. (Luca Pette, Matthias Günther)
352
+ * Forward a provided block on to the `has_xyz?` method call when
353
+ the `have_xyz` matcher is used. (Damian Galarza)
354
+ * Provide integration with Minitest 5.x. Require
355
+ `rspec/expectations/minitest_integration` after loading minitest
356
+ to use rspec-expectations with minitest. (Myron Marston)
357
+
358
+ Bug Fixes:
359
+
360
+ * Fix wrong matcher descriptions with falsey expected value (yujinakayama)
361
+ * Fix `expect { }.not_to change { }.from(x)` so that the matcher only
362
+ passes if the starting value is `x`. (Tyler Rick, Myron Marston)
363
+ * Fix hash diffing, so that it colorizes properly and doesn't consider trailing
364
+ commas when performing the diff. (Jared Norman)
365
+ * Fix built-in matchers to fail normally rather than raising
366
+ `ArgumentError` when given an object of the wrong type to match
367
+ against, so that they work well in composite matcher expressions like
368
+ `expect([1.51, "foo"]).to include(a_string_matching(/foo/), a_value_within(0.1).of(1.5))`.
369
+ (Myron Marston)
370
+
371
+ Deprecations:
372
+
373
+ * Retain support for RSpec 2 matcher protocol (e.g. for matchers
374
+ in 3rd party extension gems like `shoulda`), but it will print
375
+ a deprecation warning. (Myron Marston)
376
+
377
+ ### 3.0.0.beta1 / 2013-11-07
378
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.99.2...v3.0.0.beta1)
379
+
380
+ Breaking Changes for 3.0.0:
381
+
382
+ * Remove explicit support for 1.8.6. (Jon Rowe)
383
+ * Remove the deprecated `be_close` matcher, preferring `be_within` instead.
384
+ (Sam Phippen)
385
+ * Remove the deprecated `have`, `have_at_least` and `have_at_most` matchers.
386
+ You can continue using those matchers through https://github.com/rspec/rspec-collection_matchers,
387
+ or you can rewrite your expectations with something like
388
+ `expect(your_object.size).to eq(num)`. (Hugo Baraúna)
389
+ * Rename `be_true` and `be_false` to `be_truthy` and `be_falsey`. (Sam Phippen)
390
+ * Make `expect { }.to_not raise_error(SomeSpecificClass, message)`,
391
+ `expect { }.to_not raise_error(SomeSpecificClass)` and
392
+ `expect { }.to_not raise_error(message)` invalid, since they are prone
393
+ to hiding failures. Instead, use `expect { }.to_not raise_error` (with no
394
+ args). (Sam Phippen)
395
+ * Within `RSpec::Matchers.define` blocks, helper methods made available
396
+ either via `def self.helper` or `extend HelperModule` are no longer
397
+ available to the `match` block (or any of the others). Instead
398
+ `include` your helper module and define the helper method as an
399
+ instance method. (Myron Marston)
400
+ * Force upgrading Diff::LCS for encoding compatability with diffs. (Jon Rowe)
401
+
402
+ Enhancements:
403
+
404
+ * Support `do..end` style block with `raise_error` matcher. (Yuji Nakayama)
405
+ * Rewrote custom matcher DSL to simplify its implementation and solve a
406
+ few issues. (Myron Marston)
407
+ * Allow early `return` from within custom matcher DSL blocks. (Myron
408
+ Marston)
409
+ * The custom matcher DSL's `chain` can now accept a block. (Myron
410
+ Marston)
411
+ * Support setting an expectation on a `raise_error` matcher via a chained
412
+ `with_message` method call. (Sam Phippen)
413
+
414
+ Bug Fixes:
415
+
416
+ * Allow `include` and `match` matchers to be used from within a
417
+ DSL-defined custom matcher's `match` block. (Myron Marston)
418
+ * Correct encoding error message on diff failure (Jon Rowe)
419
+
420
+ Deprecations:
421
+
422
+ * Using the old `:should` syntax without explicitly configuring it is deprecated.
423
+ It will continue to work but will emit a deprecation warning in RSpec 3 if
424
+ you do not explicitly enable it. (Sam Phippen)
425
+
426
+ ### 2.99.2 / 2014-07-21
427
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.99.1...v2.99.2)
428
+
429
+ Bug Fixes:
430
+
431
+ * Fix regression in `Expectations#method_handle_for` where proxy objects
432
+ with method delegated would wrongly not return a method handle.
433
+ (Jon Rowe, #594)
434
+ * Fix issue with detection of generic operator matchers so they work
435
+ correctly when undefined. (Myron Marston, #597)
436
+
437
+ ### 2.99.1 / 2014-06-19
438
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.99.0...v2.99.1)
439
+
440
+ Bug Fixes:
441
+
442
+ * Fix typo in custom matcher `expected` deprecation warning -- it's
443
+ `expected_as_array`, not `expected_array`. (Frederick Cheung, #562)
444
+
445
+ ### 2.99.0 / 2014-06-01
446
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.99.0.rc1...v2.99.0)
447
+
448
+ Enhancements:
449
+
450
+ * Special case deprecation message for `errors_on` with `rspec-rails` to be more useful.
451
+ (Aaron Kromer)
452
+
453
+ ### 2.99.0.rc1 / 2014-05-18
454
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.99.0.beta2...2.99.0.rc1)
455
+
456
+ Deprecations:
457
+
458
+ * Deprecate `matcher_execution_context` attribute on DSL-defined
459
+ custom matchers. (Myron Marston)
460
+ * Deprecate `RSpec::Matchers::Pretty#_pretty_print`. (Myron Marston)
461
+ * Deprecate `RSpec::Matchers::Pretty#expected_to_sentence`. (Myron Marston)
462
+ * Deprecate `RSpec::Matchers::Configuration` in favor of
463
+ `RSpec::Expectations::Configuration`. (Myron Marston)
464
+ * Deprecate `be_xyz` predicate matcher on an object that doesn't respond to
465
+ `xyz?` or `xyzs?`. (Daniel Fone)
466
+ * Deprecate `have_xyz` matcher on an object that doesn't respond to `has_xyz?`.
467
+ (Daniel Fone)
468
+ * Deprecate `have_xyz` matcher on an object that has a private method `has_xyz?`.
469
+ (Jon Rowe)
470
+ * Issue a deprecation warning when a block expectation expression is
471
+ used with a matcher that doesn't explicitly support block expectations
472
+ via `supports_block_expectations?`. (Myron Marston)
473
+ * Deprecate `require 'rspec-expectations'`. Use
474
+ `require 'rspec/expectations'` instead. (Myron Marston)
475
+
476
+ ### 2.99.0.beta2 / 2014-02-17
477
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.99.0.beta1...v2.99.0.beta2)
478
+
479
+ Deprecations:
480
+
481
+ * Deprecate chaining `by`, `by_at_least`, `by_at_most` or `to` off of
482
+ `expect { }.not_to change { }`. The docs have always said these are
483
+ not supported for the negative form but now they explicitly raise
484
+ errors in RSpec 3. (Myron Marston)
485
+ * Change the semantics of `expect { }.not_to change { x }.from(y)`.
486
+ In RSpec 2.x, this expectation would only fail if `x` started with
487
+ the value of `y` and changed. If it started with a different value
488
+ and changed, it would pass. In RSpec 3, it will pass only if the
489
+ value starts at `y` and it does not change. (Myron Marston)
490
+ * Deprecate `matcher == value` as an alias for `matcher.matches?(value)`,
491
+ in favor of `matcher === value`. (Myron Marston)
492
+ * Deprecate `RSpec::Matchers::OperatorMatcher` in favor of
493
+ `RSpec::Matchers::BuiltIn::OperatorMatcher`. (Myron Marston)
494
+ * Deprecate auto-integration with Test::Unit and minitest.
495
+ Instead, include `RSpec::Matchers` in the appropriate test case
496
+ base class yourself. (Myron Marston)
497
+ * Deprecate treating `#expected` on a DSL-generated custom matcher
498
+ as an array when only 1 argument is passed to the matcher method.
499
+ In RSpec 3 it will be the single value in order to make diffs
500
+ work properly. (Jon Rowe)
501
+
502
+ ### 2.99.0.beta1 / 2013-11-07
503
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.14.4...v2.99.0.beta1)
504
+
505
+ Deprecations
506
+
507
+ * Deprecate `have`, `have_at_least` and `have_at_most`. You can continue using those
508
+ matchers through https://github.com/rspec/rspec-collection_matchers, or
509
+ you can rewrite your expectations with something like
510
+ `expect(your_object.size).to eq(num)`. (Hugo Baraúna)
511
+ * Deprecate `be_xyz` predicate matcher when `xyz?` is a private method.
512
+ (Jon Rowe)
513
+ * Deprecate `be_true`/`be_false` in favour of `be_truthy`/`be_falsey`
514
+ (for Ruby's conditional semantics) or `be true`/`be false`
515
+ (for exact equality). (Sam Phippen)
516
+ * Deprecate calling helper methods from a custom matcher with the wrong
517
+ scope. (Myron Marston)
518
+ * `def self.foo` / `extend Helper` can be used to add macro methods
519
+ (e.g. methods that call the custom matcher DSL methods), but should
520
+ not be used to define helper methods called from within the DSL
521
+ blocks.
522
+ * `def foo` / `include Helper` is the opposite: it's for helper methods
523
+ callable from within a DSL block, but not for defining macros.
524
+ * RSpec 2.x allowed helper methods defined either way to be used for
525
+ either purpose, but RSpec 3.0 will not.
526
+
527
+ ### 2.14.5 / 2014-02-01
528
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.14.4...v2.14.5)
529
+
530
+ Bug fixes
531
+
532
+ * Fix wrong matcher descriptions with falsey expected value
533
+ (yujinakayama)
534
+
535
+ ### 2.14.4 / 2013-11-06
536
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.14.3...v2.14.4)
537
+
538
+ Bug fixes
539
+
540
+ * Make the `match` matcher produce a diff output. (Jon Rowe, Ben Moss)
541
+ * Choose encoding for diff's more intelligently, and when all else fails fall
542
+ back to default internal encoding with replacing characters. (Jon Rowe)
543
+
544
+ ### 2.14.3 / 2013-09-22
545
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.14.2...v2.14.3)
546
+
547
+ Bug fixes
548
+
549
+ * Fix operator matchers (`should` syntax) when `method` is redefined on target.
550
+ (Brandon Turner)
551
+ * Fix diffing of hashes with object based keys. (Jon Rowe)
552
+ * Fix operator matchers (`should` syntax) when operator is defined via
553
+ `method_missing` (Jon Rowe)
554
+
555
+ ### 2.14.2 / 2013-08-14
556
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.14.1...v2.14.2)
557
+
558
+ Bug fixes
559
+
560
+ * Fix `be_<predicate>` matcher to not support operator chaining like the
561
+ `be` matcher does (e.g. `be == 5`). This led to some odd behaviors
562
+ since `be_<predicate> == anything` returned a `BeComparedTo` matcher
563
+ and was thus always truthy. This was a consequence of the implementation
564
+ (e.g. subclassing the basic `Be` matcher) and was not intended behavior.
565
+ (Myron Marston).
566
+ * Fix `change` matcher to compare using `==` in addition to `===`. This
567
+ is important for an expression like:
568
+ `expect {}.to change { a.class }.from(ClassA).to(ClassB)` because
569
+ `SomeClass === SomeClass` returns false. (Myron Marston)
570
+
571
+ ### 2.14.1 / 2013-08-08
572
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.14.0...2.14.1)
573
+
574
+ Bug fixes
575
+
576
+ * Ensure diff output uses the same encoding as the encoding of
577
+ the string being diff'd to prevent `Encoding::UndefinedConversionError`
578
+ errors (Jon Rowe).
579
+
580
+ ### 2.14.0 / 2013-07-06
581
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.14.0.rc1...v2.14.0)
582
+
583
+ Bug fixes
584
+
585
+ * Values that are not matchers use `#inspect`, rather than `#description` for
586
+ documentation output (Andy Lindeman, Sam Phippen).
587
+ * Make `expect(a).to be_within(x).percent_of(y)` work with negative y
588
+ (Katsuhiko Nishimra).
589
+ * Make the `be_predicate` matcher work as expected used with `expect{...}.to
590
+ change...` (Sam Phippen).
591
+
592
+ ### 2.14.0.rc1 / 2013-05-27
593
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.13.0...v2.14.0.rc1)
594
+
595
+ Enhancements
596
+
597
+ * Enhance `yield_control` so that you can specify an exact or relative
598
+ number of times: `expect { }.to yield_control.exactly(3).times`,
599
+ `expect { }.to yield_control.at_least(2).times`, etc (Bartek
600
+ Borkowski).
601
+ * Make the differ that is used when an expectation fails better handle arrays
602
+ by splitting each element of the array onto its own line. (Sam Phippen)
603
+ * Accept duck-typed strings that respond to `:to_str` as expectation messages.
604
+ (Toby Ovod-Everett)
605
+
606
+ Bug fixes
607
+
608
+ * Fix differ to not raise errors when dealing with differently-encoded
609
+ strings (Jon Rowe).
610
+ * Fix `expect(something).to be_within(x).percent_of(y)` where x and y are both
611
+ integers (Sam Phippen).
612
+ * Fix `have` matcher to handle the fact that on ruby 2.0,
613
+ `Enumerator#size` may return nil (Kenta Murata).
614
+ * Fix `expect { raise s }.to raise_error(s)` where s is an error instance
615
+ on ruby 2.0 (Sam Phippen).
616
+ * Fix `expect(object).to raise_error` passing. This now warns the user and
617
+ fails the spec (tomykaira).
618
+
619
+ Deprecations
620
+
621
+ * Deprecate `expect { }.not_to raise_error(SpecificErrorClass)` or
622
+ `expect { }.not_to raise_error("some specific message")`. Using
623
+ these was prone to hiding failures as they would allow _any other
624
+ error_ to pass. (Sam Phippen and David Chelimsky)
625
+
626
+ ### 2.13.0 / 2013-02-23
627
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.12.1...v2.13.0)
628
+
629
+ Enhancements
630
+
631
+ * Add support for percent deltas to `be_within` matcher:
632
+ `expect(value).to be_within(10).percent_of(expected)`
633
+ (Myron Marston).
634
+ * Add support to `include` matcher to allow it to be given a list
635
+ of matchers as the expecteds to match against (Luke Redpath).
636
+
637
+ Bug fixes
638
+
639
+ * Fix `change` matcher so that it dups strings in order to handle
640
+ mutated strings (Myron Marston).
641
+ * Fix `should be =~ /some regex/` / `expect(...).to be =~ /some regex/`.
642
+ Previously, these either failed with a confusing `undefined method
643
+ matches?' for false:FalseClass` error or were no-ops that didn't
644
+ actually verify anything (Myron Marston).
645
+ * Add compatibility for diff-lcs 1.2 and relax the version
646
+ constraint (Peter Goldstein).
647
+ * Fix DSL-generated matchers to allow multiple instances of the
648
+ same matcher in the same example to have different description
649
+ and failure messages based on the expected value (Myron Marston).
650
+ * Prevent `undefined method #split for Array` error when dumping
651
+ the diff of an array of multiline strings (Myron Marston).
652
+ * Don't blow up when comparing strings that are in an encoding
653
+ that is not ASCII compatible (Myron Marston).
654
+ * Remove confusing "Check the implementation of #==" message
655
+ printed for empty diffs (Myron Marston).
656
+
657
+ ### 2.12.1 / 2012-12-15
658
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.12.0...v2.12.1)
659
+
660
+ Bug fixes
661
+
662
+ * Improve the failure message for an expression like
663
+ `{}.should =~ {}`. (Myron Marston and Andy Lindeman)
664
+ * Provide a `match_regex` alias so that custom matchers
665
+ built using the matcher DSL can use it (since `match`
666
+ is a different method in that context).
667
+ (Steven Harman)
668
+
669
+ ### 2.12.0 / 2012-11-12
670
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.11.3...v2.12.0)
671
+
672
+ Enhancements
673
+
674
+ * Colorize diffs if the `--color` option is configured. (Alex Coplan)
675
+ * Include backtraces in unexpected errors handled by `raise_error`
676
+ matcher (Myron Marston)
677
+ * Print a warning when users accidentally pass a non-string argument
678
+ as an expectation message (Sam Phippen)
679
+ * `=~` and `match_array` matchers output a more useful error message when
680
+ the actual value is not an array (or an object that responds to `#to_ary`)
681
+ (Sam Phippen)
682
+
683
+ Bug fixes
684
+
685
+ * Fix `include` matcher so that `expect({}).to include(:a => nil)`
686
+ fails as it should (Sam Phippen).
687
+ * Fix `be_an_instance_of` matcher so that `Class#to_s` is used in the
688
+ description rather than `Class#inspect`, since some classes (like
689
+ `ActiveRecord::Base`) define a long, verbose `#inspect`.
690
+ (Tom Stuart)
691
+
692
+ ### 2.11.3 / 2012-09-04
693
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.11.2...v2.11.3)
694
+
695
+ Bug fixes
696
+
697
+ * Fix (and deprecate) `expect { }.should` syntax so that it works even
698
+ though it was never a documented or intended syntax. It worked as a
699
+ consequence of the implementation of `expect` in RSpec 2.10 and
700
+ earlier. (Myron Marston)
701
+ * Ensure #== is defined on built in matchers so that they can be composed.
702
+ For example:
703
+
704
+ expect {
705
+ user.emailed!
706
+ }.to change { user.last_emailed_at }.to be_within(1.second).of(Time.zone.now)
707
+
708
+ ### 2.11.2 / 2012-07-25
709
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.11.1...v2.11.2)
710
+
711
+ Bug fixes
712
+
713
+ * Define `should` and `should_not` on `Object` rather than `BasicObject`
714
+ on MacRuby. On MacRuby, `BasicObject` is defined but is not the root
715
+ of the object hierarchy. (Gabriel Gilder)
716
+
717
+ ### 2.11.1 / 2012-07-08
718
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.11.0...v2.11.1)
719
+
720
+ Bug fixes
721
+
722
+ * Constrain `actual` in `be_within` matcher to values that respond to `-` instead
723
+ of requiring a specific type.
724
+ * `Time`, for example, is a legit alternative.
725
+
726
+ ### 2.11.0 / 2012-07-07
727
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.10.0...v2.11.0)
728
+
729
+ Enhancements
730
+
731
+ * Expand `expect` syntax so that it supports expections on bare values
732
+ in addition to blocks (Myron Marston).
733
+ * Add configuration options to control available expectation syntaxes
734
+ (Myron Marston):
735
+ * `RSpec.configuration.expect_with(:rspec) { |c| c.syntax = :expect }`
736
+ * `RSpec.configuration.expect_with(:rspec) { |c| c.syntax = :should }`
737
+ * `RSpec.configuration.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }`
738
+ * `RSpec.configuration.add_should_and_should_not_to Delegator`
739
+
740
+ Bug fixes
741
+
742
+ * Allow only `Numeric` values to be the "actual" in the `be_within` matcher.
743
+ This prevents confusing error messages. (Su Zhang @zhangsu)
744
+ * Define `should` and `should_not` on `BasicObject` rather than `Kernel`
745
+ on 1.9. This makes `should` and `should_not` work properly with
746
+ `BasicObject`-subclassed proxy objects like `Delegator`. (Myron
747
+ Marston)
748
+
749
+ ### 2.10.0 / 2012-05-03
750
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.9.1...v2.10.0)
751
+
752
+ Enhancements
753
+
754
+ * Add new `start_with` and `end_with` matchers (Jeremy Wadsack)
755
+ * Add new matchers for specifying yields (Myron Marston):
756
+ * `expect {...}.to yield_control`
757
+ * `expect {...}.to yield_with_args(1, 2, 3)`
758
+ * `expect {...}.to yield_with_no_args`
759
+ * `expect {...}.to yield_successive_args(1, 2, 3)`
760
+ * `match_unless_raises` takes multiple exception args
761
+
762
+ Bug fixes
763
+
764
+ * Fix `be_within` matcher to be inclusive of delta.
765
+ * Fix message-specific specs to pass on Rubinius (John Firebaugh)
766
+
767
+ ### 2.9.1 / 2012-04-03
768
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.9.0...v2.9.1)
769
+
770
+ Bug fixes
771
+
772
+ * Provide a helpful message if the diff between two objects is empty.
773
+ * Fix bug diffing single strings with multiline strings.
774
+ * Fix for error with using custom matchers inside other custom matchers
775
+ (mirasrael)
776
+ * Fix using execution context methods in nested DSL matchers (mirasrael)
777
+
778
+ ### 2.9.0 / 2012-03-17
779
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.8.0...v2.9.0)
780
+
781
+ Enhancements
782
+
783
+ * Move built-in matcher classes to RSpec::Matchers::BuiltIn to reduce pollution
784
+ of RSpec::Matchers (which is included in every example).
785
+ * Autoload files with matcher classes to improve load time.
786
+
787
+ Bug fixes
788
+
789
+ * Align `respond_to?` and `method_missing` in DSL-defined matchers.
790
+ * Clear out user-defined instance variables between invocations of DSL-defined
791
+ matchers.
792
+ * Dup the instance of a DSL generated matcher so its state is not changed by
793
+ subsequent invocations.
794
+ * Treat expected args consistently across positive and negative expectations
795
+ (thanks to Ralf Kistner for the heads up)
796
+
797
+ ### 2.8.0 / 2012-01-04
798
+
799
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.8.0.rc2...v2.8.0)
800
+
801
+ Enhancements
802
+
803
+ * Better diff output for Hash (Philippe Creux)
804
+ * Eliminate Ruby warnings (Olek Janiszewski)
805
+
806
+ ### 2.8.0.rc2 / 2011-12-19
807
+
808
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.8.0.rc1...v2.8.0.rc2)
809
+
810
+ No changes for this release. Just releasing with the other rspec gems.
811
+
812
+ ### 2.8.0.rc1 / 2011-11-06
813
+
814
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.7.0...v2.8.0.rc1)
815
+
816
+ Enhancements
817
+
818
+ * Use classes for the built-in matchers (they're faster).
819
+ * Eliminate Ruby warnings (Matijs van Zuijlen)
820
+
821
+ ### 2.7.0 / 2011-10-16
822
+
823
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.6.0...v2.7.0)
824
+
825
+ Enhancements
826
+
827
+ * `HaveMatcher` converts argument using `to_i` (Alex Bepple & Pat Maddox)
828
+ * Improved failure message for the `have_xxx` matcher (Myron Marston)
829
+ * `HaveMatcher` supports `count` (Matthew Bellantoni)
830
+ * Change matcher dups `Enumerable` before the action, supporting custom
831
+ `Enumerable` types like `CollectionProxy` in Rails (David Chelimsky)
832
+
833
+ Bug fixes
834
+
835
+ * Fix typo in `have(n).xyz` documentation (Jean Boussier)
836
+ * fix `safe_sort` for ruby 1.9.2 (`Kernel` now defines `<=>` for Object) (Peter
837
+ van Hardenberg)
838
+
839
+ ### 2.6.0 / 2011-05-12
840
+
841
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.5.0...v2.6.0)
842
+
843
+ Enhancements
844
+
845
+ * `change` matcher accepts regexps (Robert Davis)
846
+ * better descriptions for `have_xxx` matchers (Magnus Bergmark)
847
+ * `range.should cover(*values)` (Anders Furseth)
848
+
849
+ Bug fixes
850
+
851
+ * Removed non-ascii characters that were choking rcov (Geoffrey Byers)
852
+ * change matcher dups arrays and hashes so their before/after states can be
853
+ compared correctly.
854
+ * Fix the order of inclusion of RSpec::Matchers in Test::Unit::TestCase and
855
+ MiniTest::Unit::TestCase to prevent a SystemStackError (Myron Marston)
856
+
857
+ ### 2.5.0 / 2011-02-05
858
+
859
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.4.0...v2.5.0)
860
+
861
+ Enhancements
862
+
863
+ * `should exist` works with `exist?` or `exists?` (Myron Marston)
864
+ * `expect { ... }.not_to do_something` (in addition to `to_not`)
865
+
866
+ Documentation
867
+
868
+ * improved docs for raise_error matcher (James Almond)
869
+
870
+ ### 2.4.0 / 2011-01-02
871
+
872
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.3.0...v2.4.0)
873
+
874
+ No functional changes in this release, which was made to align with the
875
+ rspec-core-2.4.0 release.
876
+
877
+ Enhancements
878
+
879
+ * improved RDoc for change matcher (Jo Liss)
880
+
881
+ ### 2.3.0 / 2010-12-12
882
+
883
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.2.1...v2.3.0)
884
+
885
+ Enhancements
886
+
887
+ * diff strings when include matcher fails (Mike Sassak)
888
+
889
+ ### 2.2.0 / 2010-11-28
890
+
891
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.1.0...v2.2.0)
892
+
893
+ ### 2.1.0 / 2010-11-07
894
+
895
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.1...v2.1.0)
896
+
897
+ Enhancements
898
+
899
+ * `be_within(delta).of(expected)` matcher (Myron Marston)
900
+ * Lots of new Cucumber features (Myron Marston)
901
+ * Raise error if you try `should != expected` on Ruby-1.9 (Myron Marston)
902
+ * Improved failure messages from `throw_symbol` (Myron Marston)
903
+
904
+ Bug fixes
905
+
906
+ * Eliminate hard dependency on `RSpec::Core` (Myron Marston)
907
+ * `have_matcher` - use pluralize only when ActiveSupport inflections are indeed
908
+ defined (Josep M Bach)
909
+ * throw_symbol matcher no longer swallows exceptions (Myron Marston)
910
+ * fix matcher chaining to avoid name collisions (Myron Marston)
911
+
912
+ ### 2.0.0 / 2010-10-10
913
+
914
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.0.rc...v2.0.0)
915
+
916
+ Enhancements
917
+
918
+ * Add match_for_should_not method to matcher DSL (Myron Marston)
919
+
920
+ Bug fixes
921
+
922
+ * `respond_to` matcher works correctly with `should_not` with multiple methods
923
+ (Myron Marston)
924
+ * `include` matcher works correctly with `should_not` with multiple values
925
+ (Myron Marston)
926
+
927
+ ### 2.0.0.rc / 2010-10-05
928
+
929
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.0.beta.22...v2.0.0.rc)
930
+
931
+ Enhancements
932
+
933
+ * `require 'rspec/expectations'` in a T::U or MiniUnit suite (Josep M. Bach)
934
+
935
+ Bug fixes
936
+
937
+ * change by 0 passes/fails correctly (Len Smith)
938
+ * Add description to satisfy matcher
939
+
940
+ ### 2.0.0.beta.22 / 2010-09-12
941
+
942
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.0.beta.20...v2.0.0.beta.22)
943
+
944
+ Enhancements
945
+
946
+ * diffing improvements
947
+ * diff multiline strings
948
+ * don't diff single line strings
949
+ * don't diff numbers (silly)
950
+ * diff regexp + multiline string
951
+
952
+ Bug fixes
953
+ * `should[_not]` change now handles boolean values correctly