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,139 @@
1
+ # -*- ruby encoding: utf-8 -*-
2
+
3
+ require 'spec_helper'
4
+
5
+ describe "Diff::LCS.traverse_sequences" do
6
+ describe "callback with no finishers" do
7
+ describe "over (seq1, seq2)" do
8
+ before(:each) do
9
+ @callback_s1_s2 = simple_callback_no_finishers
10
+ Diff::LCS.traverse_sequences(seq1, seq2, @callback_s1_s2)
11
+
12
+ @callback_s2_s1 = simple_callback_no_finishers
13
+ Diff::LCS.traverse_sequences(seq2, seq1, @callback_s2_s1)
14
+ end
15
+
16
+ it "should have the correct LCS result on left-matches" do
17
+ @callback_s1_s2.matched_a.should == correct_lcs
18
+ @callback_s2_s1.matched_a.should == correct_lcs
19
+ end
20
+
21
+ it "should have the correct LCS result on right-matches" do
22
+ @callback_s1_s2.matched_b.should == correct_lcs
23
+ @callback_s2_s1.matched_b.should == correct_lcs
24
+ end
25
+
26
+ it "should have the correct skipped sequences with the left sequence" do
27
+ @callback_s1_s2.discards_a.should == skipped_seq1
28
+ @callback_s2_s1.discards_a.should == skipped_seq2
29
+ end
30
+
31
+ it "should have the correct skipped sequences with the right sequence" do
32
+ @callback_s1_s2.discards_b.should == skipped_seq2
33
+ @callback_s2_s1.discards_b.should == skipped_seq1
34
+ end
35
+
36
+ it "should not have anything done markers from the left or right sequences" do
37
+ @callback_s1_s2.done_a.should be_empty
38
+ @callback_s1_s2.done_b.should be_empty
39
+ @callback_s2_s1.done_a.should be_empty
40
+ @callback_s2_s1.done_b.should be_empty
41
+ end
42
+ end
43
+
44
+ describe "over (hello, hello)" do
45
+ before(:each) do
46
+ @callback = simple_callback_no_finishers
47
+ Diff::LCS.traverse_sequences(hello, hello, @callback)
48
+ end
49
+
50
+ it "should have the correct LCS result on left-matches" do
51
+ @callback.matched_a.should == hello.split(//)
52
+ end
53
+
54
+ it "should have the correct LCS result on right-matches" do
55
+ @callback.matched_b.should == hello.split(//)
56
+ end
57
+
58
+ it "should have the correct skipped sequences with the left sequence", :only => true do
59
+ @callback.discards_a.should be_empty
60
+ end
61
+
62
+ it "should have the correct skipped sequences with the right sequence" do
63
+ @callback.discards_b.should be_empty
64
+ end
65
+
66
+ it "should not have anything done markers from the left or right sequences" do
67
+ @callback.done_a.should be_empty
68
+ @callback.done_b.should be_empty
69
+ end
70
+ end
71
+
72
+ describe "over (hello_ary, hello_ary)" do
73
+ before(:each) do
74
+ @callback = simple_callback_no_finishers
75
+ Diff::LCS.traverse_sequences(hello_ary, hello_ary, @callback)
76
+ end
77
+
78
+ it "should have the correct LCS result on left-matches" do
79
+ @callback.matched_a.should == hello_ary
80
+ end
81
+
82
+ it "should have the correct LCS result on right-matches" do
83
+ @callback.matched_b.should == hello_ary
84
+ end
85
+
86
+ it "should have the correct skipped sequences with the left sequence" do
87
+ @callback.discards_a.should be_empty
88
+ end
89
+
90
+ it "should have the correct skipped sequences with the right sequence" do
91
+ @callback.discards_b.should be_empty
92
+ end
93
+
94
+ it "should not have anything done markers from the left or right sequences" do
95
+ @callback.done_a.should be_empty
96
+ @callback.done_b.should be_empty
97
+ end
98
+ end
99
+ end
100
+
101
+ describe "callback with finisher" do
102
+ before(:each) do
103
+ @callback_s1_s2 = simple_callback
104
+ Diff::LCS.traverse_sequences(seq1, seq2, @callback_s1_s2)
105
+ @callback_s2_s1 = simple_callback
106
+ Diff::LCS.traverse_sequences(seq2, seq1, @callback_s2_s1)
107
+ end
108
+
109
+ it "should have the correct LCS result on left-matches" do
110
+ @callback_s1_s2.matched_a.should == correct_lcs
111
+ @callback_s2_s1.matched_a.should == correct_lcs
112
+ end
113
+
114
+ it "should have the correct LCS result on right-matches" do
115
+ @callback_s1_s2.matched_b.should == correct_lcs
116
+ @callback_s2_s1.matched_b.should == correct_lcs
117
+ end
118
+
119
+ it "should have the correct skipped sequences for the left sequence" do
120
+ @callback_s1_s2.discards_a.should == skipped_seq1
121
+ @callback_s2_s1.discards_a.should == skipped_seq2
122
+ end
123
+
124
+ it "should have the correct skipped sequences for the right sequence" do
125
+ @callback_s1_s2.discards_b.should == skipped_seq2
126
+ @callback_s2_s1.discards_b.should == skipped_seq1
127
+ end
128
+
129
+ it "should have done markers differently-sized sequences" do
130
+ @callback_s1_s2.done_a.should == [[ "p", 9, "s", 10 ]]
131
+ @callback_s1_s2.done_b.should be_empty
132
+
133
+ # 20110731 I don't yet understand why this particular behaviour
134
+ # isn't transitive.
135
+ @callback_s2_s1.done_a.should be_empty
136
+ @callback_s2_s1.done_b.should be_empty
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,24 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2009 Chad Humphries, David Chelimsky
4
+ Copyright (c) 2006 David Chelimsky, The RSpec Development Team
5
+ Copyright (c) 2005 Steven Baker
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining
8
+ a copy of this software and associated documentation files (the
9
+ "Software"), to deal in the Software without restriction, including
10
+ without limitation the rights to use, copy, modify, merge, publish,
11
+ distribute, sublicense, and/or sell copies of the Software, and to
12
+ permit persons to whom the Software is furnished to do so, subject to
13
+ the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be
16
+ included in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,34 @@
1
+ # RSpec
2
+
3
+ Behaviour Driven Development for Ruby
4
+
5
+ # Description
6
+
7
+ rspec is a meta-gem, which depends on the [rspec-core](https://github.com/rspec/rspec-core), [rspec-expectations](https://github.com/rspec/rspec-expectations)
8
+ and [rspec-mocks](https://github.com/rspec/rspec-mocks) gems. Each of these can be installed separately and loaded in
9
+ isolation using `require`. Among other benefits, this allows you to use
10
+ rspec-expectations, for example, in Test::Unit::TestCase if you happen to
11
+ prefer that style.
12
+
13
+ Conversely, if you like RSpec's approach to declaring example groups and
14
+ examples (`describe` and `it`) but prefer Test::Unit assertions and mocha, rr
15
+ or flexmock for mocking, you'll be able to do that without having to install or load the
16
+ components of RSpec that you're not using.
17
+
18
+ ## Documentation
19
+
20
+ See http://rspec.info/documentation/ for links to documentation for all gems.
21
+
22
+ ## Install
23
+
24
+ gem install rspec
25
+
26
+ ## Contribute
27
+
28
+ * [http://github.com/rspec/rspec-dev](http://github.com/rspec/rspec-dev)
29
+
30
+ ## Also see
31
+
32
+ * <http://github.com/rspec/rspec-core>
33
+ * <http://github.com/rspec/rspec-expectations>
34
+ * <http://github.com/rspec/rspec-mocks>
@@ -0,0 +1,3 @@
1
+ require 'rspec/core'
2
+ require 'rspec/version'
3
+
@@ -0,0 +1,5 @@
1
+ module RSpec # :nodoc:
2
+ module Version # :nodoc:
3
+ STRING = '3.3.0'
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ -
3
+ README.md
4
+ License.txt
5
+ Changelog.md
@@ -0,0 +1,8 @@
1
+ --exclude features
2
+ --no-private
3
+ --markup markdown
4
+ --default-return void
5
+ -
6
+ Filtering.md
7
+ Changelog.md
8
+ License.txt
@@ -0,0 +1,1856 @@
1
+ ### 3.3.2 / 2015-07-15
2
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.1...v3.3.2)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix formatters to handle exceptions for which `backtrace` returns `nil`.
7
+ (Myron Marston, #2023)
8
+ * Fix duplicate formatter detection so that it allows subclasses of formatters
9
+ to be added. (Sebastián Tello, #2019)
10
+
11
+ ### 3.3.1 / 2015-06-18
12
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.0...v3.3.1)
13
+
14
+ Bug Fixes:
15
+
16
+ * Correctly run `before(:suite)` (and friends) in the context of an example
17
+ group instance, thus making the expected RSpec environment available.
18
+ (Jon Rowe, #1986)
19
+
20
+ ### 3.3.0 / 2015-06-12
21
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.3...v3.3.0)
22
+
23
+ Enhancements:
24
+
25
+ * Expose the reporter used to run examples via `RSpec::Core::Example#reporter`.
26
+ (Jon Rowe, #1866)
27
+ * Make `RSpec::Core::Reporter#message` a public supported API. (Jon Rowe, #1866)
28
+ * Allow custom formatter events to be published via
29
+ `RSpec::Core::Reporter#publish(event_name, hash_of_attributes)`. (Jon Rowe, #1869)
30
+ * Remove dependency on the standard library `Set` and replace with `RSpec::Core::Set`.
31
+ (Jon Rowe, #1870)
32
+ * Assign a unique id to each example and group so that they can be
33
+ uniquely identified, even for shared examples (and similar situations)
34
+ where the location isn't unique. (Myron Marston, #1884)
35
+ * Use the example id in the rerun command printed for failed examples
36
+ when the location is not unique. (Myron Marston, #1884)
37
+ * Add `config.example_status_persistence_file_path` option, which is
38
+ used to persist the last run status of each example. (Myron Marston, #1888)
39
+ * Add `:last_run_status` metadata to each example, which indicates what
40
+ happened the last time an example ran. (Myron Marston, #1888)
41
+ * Add `--only-failures` CLI option which filters to only the examples
42
+ that failed the last time they ran. (Myron Marston, #1888)
43
+ * Add `--next-failure` CLI option which allows you to repeatedly focus
44
+ on just one of the currently failing examples, then move on to the
45
+ next failure, etc. (Myron Marston, #1888)
46
+ * Make `--order random` ordering stable, so that when you rerun a
47
+ subset with a given seed, the examples will be order consistently
48
+ relative to each other. (Myron Marston, #1908)
49
+ * Set example group constant earlier so errors when evaluating the context
50
+ include the example group name (Myron Marson, #1911)
51
+ * Make `let` and `subject` threadsafe. (Josh Cheek, #1858)
52
+ * Add version information into the JSON formatter. (Mark Swinson, #1883)
53
+ * Add `--bisect` CLI option, which will repeatedly run your suite in
54
+ order to isolate the failures to the smallest reproducible case.
55
+ (Myron Marston, #1917)
56
+ * For `config.include`, `config.extend` and `config.prepend`, apply the
57
+ module to previously defined matching example groups. (Eugene Kenny, #1935)
58
+ * When invalid options are parsed, notify users where they came from
59
+ (e.g. `.rspec` or `~/.rspec` or `ENV['SPEC_OPTS']`) so they can
60
+ easily find the source of the problem. (Myron Marston, #1940)
61
+ * Add pending message contents to the json formatter output. (Jon Rowe, #1949)
62
+ * Add shared group backtrace to the output displayed by the built-in
63
+ formatters for pending examples that have been fixed. (Myron Marston, #1946)
64
+ * Add support for `:aggregate_failures` metadata. Tag an example or
65
+ group with this metadata and it'll use rspec-expectations'
66
+ `aggregate_failures` feature to allow multiple failures in an example
67
+ and list them all, rather than aborting on the first failure. (Myron
68
+ Marston, #1946)
69
+ * When no formatter implements #message add a fallback to prevent those
70
+ messages being lost. (Jon Rowe, #1980)
71
+ * Profiling examples now takes into account time spent in `before(:context)`
72
+ hooks. (Denis Laliberté, Jon Rowe, #1971)
73
+ * Improve failure output when an example has multiple exceptions, such
74
+ as one from an `it` block and one from an `after` block. (Myron Marston, #1985)
75
+
76
+ Bug Fixes:
77
+
78
+ * Handle invalid UTF-8 strings within exception methods. (Benjamin Fleischer, #1760)
79
+ * Fix Rake Task quoting of file names with quotes to work properly on
80
+ Windows. (Myron Marston, #1887)
81
+ * Fix `RSpec::Core::RakeTask#failure_message` so that it gets printed
82
+ when the task failed. (Myron Marston, #1905)
83
+ * Make `let` work properly when defined in a shared context that is applied
84
+ to an individual example via metadata. (Myron Marston, #1912)
85
+ * Ensure `rspec/autorun` respects configuration defaults. (Jon Rowe, #1933)
86
+ * Prevent modules overriding example group defined methods when included,
87
+ prepended or extended by config defined after an example group. (Eugene Kenny, #1935)
88
+ * Fix regression which caused shared examples to be mistakenly run when specs
89
+ where filtered to a particular location. (Ben Axnick, #1963)
90
+ * Fix time formatting logic so that it displays 70 seconds as "1 minute,
91
+ 10 seconds" rather than "1 minute, 1 second". (Paul Brennan, #1984)
92
+ * Fix regression where the formatter loader would allow duplicate formatters.
93
+ (Jon Rowe, #1990)
94
+
95
+ ### 3.2.3 / 2015-04-06
96
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.2...v3.2.3)
97
+
98
+ Bug Fixes:
99
+
100
+ * Fix how the DSL methods are defined so that RSpec is compatible with
101
+ gems that define methods of the same name on `Kernel` (such as
102
+ the `its-it` gem). (Alex Kwiatkowski, Ryan Ong, #1907)
103
+ * Fix `before(:context) { skip }` so that it does not wrongly cause the
104
+ spec suite to exit with a non-zero status when no examples failed.
105
+ (Myron Marston, #1926)
106
+
107
+ ### 3.2.2 / 2015-03-11
108
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.1...v3.2.2)
109
+
110
+ Bug Fixes:
111
+
112
+ * Fix regression in 3.2.0 that allowed tag-filtered examples to
113
+ run even if there was a location filter applied to the spec
114
+ file that was intended to limit the file to other examples.
115
+ (#1894, Myron Marston)
116
+
117
+ ### 3.2.1 / 2015-02-23
118
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.2.0...v3.2.1)
119
+
120
+ Bug Fixes:
121
+
122
+ * Notify start-of-run seed _before_ `start` notification rather than
123
+ _after_ so that formatters like Fuubar work properly. (Samuel Esposito, #1882)
124
+
125
+ ### 3.2.0 / 2015-02-03
126
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.7...v3.2.0)
127
+
128
+ Enhancements:
129
+
130
+ * Improve the `inspect` output of example groups. (Mike Dalton, #1687)
131
+ * When rake task fails, only output the command if `verbose` flag is
132
+ set. (Ben Snape, #1704)
133
+ * Add `RSpec.clear_examples` as a clear way to reset examples in between
134
+ spec runs, whilst retaining user configuration. (Alexey Fedorov, #1706)
135
+ * Reduce string allocations when defining and running examples by 70%
136
+ and 50% respectively. (Myron Marston, #1738)
137
+ * Removed dependency on pathname from stdlib. (Sam Phippen, #1703)
138
+ * Improve the message presented when a user hits Ctrl-C.
139
+ (Alex Chaffee #1717, #1742)
140
+ * Improve shared example group inclusion backtrace displayed
141
+ in failed example output so that it works for all methods
142
+ of including shared example groups and shows all inclusion
143
+ locations. (Myron Marston, #1763)
144
+ * Issue seed notification at start (as well as the end) of the reporter
145
+ run. (Arlandis Word, #1761)
146
+ * Improve the documentation of around hooks. (Jim Kingdon, #1772)
147
+ * Support prepending of modules into example groups from config and allow
148
+ filtering based on metadata. (Arlandis Word, #1806)
149
+ * Emit warnings when `:suite` hooks are registered on an example group
150
+ (where it has always been ignored) or are registered with metadata
151
+ (which has always been ignored). (Myron Marston, #1805)
152
+ * Provide a friendly error message when users call RSpec example group
153
+ APIs (e.g. `context`, `describe`, `it`, `let`, `before`, etc) from
154
+ within an example where those APIs are unavailable. (Myron Marston, #1819)
155
+ * Provide a friendly error message when users call RSpec example
156
+ APIs (e.g. `expect`, `double`, `stub_const`, etc) from
157
+ within an example group where those APIs are unavailable.
158
+ (Myron Marston, #1819)
159
+ * Add new `RSpec::Core::Sandbox.sandboxed { }` API that facilitates
160
+ testing RSpec with RSpec, allowing you to define example groups
161
+ and example from within an example without affecting the global
162
+ `RSpec.world` state. (Tyler Ball, 1808)
163
+ * Apply line-number filters only to the files they are scoped to,
164
+ allowing you to mix filtered and unfiltered files. (Myron Marston, #1839)
165
+ * When dumping pending examples, include the failure details so that you
166
+ don't have to un-pend the example to see it. (Myron Marston, #1844)
167
+ * Make `-I` option support multiple values when separated by
168
+ `File::PATH_SEPARATOR`, such as `rspec -I foo:bar`. This matches
169
+ the behavior of Ruby's `-I` option. (Fumiaki Matsushima, #1855).
170
+ * Treat each example as having a singleton example group for the
171
+ purposes of applying metadata-based features that normally apply
172
+ to example groups to individually tagged examples. For example,
173
+ `RSpec.shared_context "Uses redis", :uses_redis` will now apply
174
+ to individual examples tagged with `:uses_redis`, as will
175
+ `config.include RedisHelpers, :uses_redis`, and
176
+ `config.before(:context, :uses_redis) { }`, etc. (Myron Marston, #1749)
177
+
178
+ Bug Fixes:
179
+
180
+ * When assigning generated example descriptions, surface errors
181
+ raised by `matcher.description` in the example description.
182
+ (Myron Marston, #1771)
183
+ * Don't consider expectations from `after` hooks when generating
184
+ example descriptions. (Myron Marston, #1771)
185
+ * Don't apply metadata-filtered config hooks to examples in groups
186
+ with matching metadata when those examples override the parent
187
+ metadata value to not match. (Myron Marston, #1796)
188
+ * Fix `config.expect_with :minitest` so that `skip` uses RSpec's
189
+ implementation rather than Minitest's. (Jonathan Rochkind, #1822)
190
+ * Fix `NameError` caused when duplicate example group aliases are defined and
191
+ the DSL is not globally exposed. (Aaron Kromer, #1825)
192
+ * When a shared example defined in an external file fails, use the host
193
+ example group (from a loaded spec file) for the re-run command to
194
+ ensure the command will actually work. (Myron Marston, #1835)
195
+ * Fix location filtering to work properly for examples defined in
196
+ a nested example group within a shared example group defined in
197
+ an external file. (Bradley Schaefer, Xavier Shay, Myron Marston, #1837)
198
+ * When a pending example fails (as expected) due to a mock expectation,
199
+ set `RSpec::Core::Example::ExecutionResult#pending_exception` --
200
+ previously it was not being set but should have been. (Myron Marston, #1844)
201
+ * Fix rake task to work when `rspec-core` is installed in a directory
202
+ containing a space. (Guido Günther, #1845)
203
+ * Fix regression in 3.1 that caused `describe Regexp` to raise errors.
204
+ (Durran Jordan, #1853)
205
+ * Fix regression in 3.x that caused the profile information to be printed
206
+ after the summary. (Max Lincoln, #1857)
207
+ * Apply `--seed` before loading `--require` files so that required files
208
+ can access the provided seed. (Myron Marston, #1745)
209
+ * Handle `RSpec::Core::Formatters::DeprecationFormatter::FileStream` being
210
+ reopened with an IO stream, which sometimes happens with spring.
211
+ (Kevin Mook, #1757)
212
+
213
+ ### 3.1.7 / 2014-10-11
214
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.6...v3.1.7)
215
+
216
+ Bug Fixes:
217
+
218
+ * Fix `Metadata.relative_path` so that for a current directory of
219
+ `/foo/bar`, `/foo/bar_1` is not wrongly converted to `._1`.
220
+ (Akos Vandra, #1730)
221
+ * Prevent constant lookup mistakenly finding `RSpec::ExampleGroups` generated
222
+ constants on 1.9.2 by appending a trailing `_` to the generated names.
223
+ (Jon Rowe, #1737)
224
+ * Fix bug in `:pending` metadata. If it got set in any way besides passing
225
+ it as part of the metadata literal passed to `it` (such as by using
226
+ `define_derived_metadata`), it did not have the desired effect,
227
+ instead marking the example as `:passed`. (Myron Marston, #1739)
228
+
229
+ ### 3.1.6 / 2014-10-08
230
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.5...v3.1.6)
231
+
232
+ Bug Fixes:
233
+
234
+ * Fix regression in rake task pattern handling, that prevented patterns
235
+ that were relative from the current directory rather than from `spec`
236
+ from working properly. (Myron Marston, #1734)
237
+ * Prevent rake task from generating duplicate load path entries.
238
+ (Myron Marston, #1735)
239
+
240
+ ### 3.1.5 / 2014-09-29
241
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.4...v3.1.5)
242
+
243
+ Bug Fixes:
244
+
245
+ * Fix issue with the rake task incorrectly escaping strings on Windows.
246
+ (Jon Rowe #1718)
247
+ * Support absolute path patterns. While this wasn't officially supported
248
+ previously, setting `rake_task.pattern` to an absolute path pattern in
249
+ RSpec 3.0 and before worked since it delegated to `FileList` internally
250
+ (but now just forwards the pattern on to the `rspec` command).
251
+ (Myron Marston, #1726)
252
+
253
+ ### 3.1.4 / 2014-09-18
254
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.3...v3.1.4)
255
+
256
+ Bug Fixes:
257
+
258
+ * Fix implicit `subject` when using `describe false` or `describe nil`
259
+ so that it returns the provided primitive rather than the string
260
+ representation. (Myron Marston, #1710)
261
+ * Fix backtrace filtering to allow code in subdirectories of your
262
+ current working directory (such as vendor/bundle/...) to be filtered
263
+ from backtraces. (Myron Marston, #1708)
264
+
265
+ ### 3.1.3 / 2014-09-15
266
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.2...v3.1.3)
267
+
268
+ Bug Fixes:
269
+
270
+ * Fix yet another regression in rake task pattern handling, to allow
271
+ `task.pattern = FileList["..."]` to work. That was never intended
272
+ to be supported but accidentally worked in 3.0 and earlier.
273
+ (Myron Marston, #1701)
274
+ * Fix pattern handling so that files are normalized to absolute paths
275
+ before subtracting the `--exclude-pattern` matched files from the
276
+ `--pattern` matched files so that it still works even if the patterns
277
+ are in slightly different forms (e.g. one starting with `./`).
278
+ (Christian Nelson, #1698)
279
+
280
+ ### 3.1.2 / 2014-09-08
281
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.1...v3.1.2)
282
+
283
+ Bug Fixes:
284
+
285
+ * Fix another regression in rake task pattern handling, so that patterns
286
+ that start with `./` still work. (Christian Nelson, #1696)
287
+
288
+ ### 3.1.1 / 2014-09-05
289
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.0...v3.1.1)
290
+
291
+ Bug Fixes:
292
+
293
+ * Fix a regression in rake task pattern handling, so that `rake_task.pattern = array`
294
+ works again. While we never intended to support array values (or even knew that worked!),
295
+ the implementation from 3.0 and earlier used `FileList` internally, which allows arrays.
296
+ The fix restores the old behavior. (Myron Marston, #1694)
297
+
298
+ ### 3.1.0 / 2014-09-04
299
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.4...v3.1.0)
300
+
301
+ Enhancements:
302
+
303
+ * Update files generated by `rspec --init` so that warnings are enabled
304
+ in commented out section of `spec_helper` rather than `.rspec` so users
305
+ have to consciously opt-in to the setting. (Andrew Hooker, #1572)
306
+ * Update `spec_helper` generated by `rspec --init` so that it sets the new
307
+ rspec-expectations `include_chain_clauses_in_custom_matcher_descriptions`
308
+ config option (which will be on by default in RSpec 4) and also sets the
309
+ rspec-mocks `verify_partial_doubles` option (which will also default
310
+ to on in RSpec 4). (Myron Marston, #1647)
311
+ * Provide an `inspect` output for example procsy objects (used in around
312
+ hooks) that doesn't make them look like procs. (Jon Rowe, #1620)
313
+ * Remove a few unneeded `require` statements from
314
+ `rspec/core/rake_task.rb`, making it even more lighterweight.
315
+ (Myron Marston, #1640)
316
+ * Allow rspec-core to be used when neither rspec-mocks or
317
+ rspec-expectations are installed, without requiring any
318
+ user configuration. (Sam Phippen, Myron Marston, #1615)
319
+ * Don't filter out gems from backtraces by default. (The RSpec
320
+ gems will still be filtered). User feedback has indicated
321
+ that including gems in default backtraces will be useful.
322
+ (Myron Marston, #1641)
323
+ * Add new `config.filter_gems_from_backtrace "rack", "rake"` API
324
+ to easily filter the named gems from backtraces. (Myron Marston, #1682)
325
+ * Fix default backtrace filters so that the RSpec binary is
326
+ excluded when installing RSpec as a bundler `:git` dependency.
327
+ (Myron Marston, #1648)
328
+ * Simplify command generated by the rake task so that it no longer
329
+ includes unnecessary `-S`. (Myron Marston, #1559)
330
+ * Add `--exclude-pattern` CLI option, `config.exclude_pattern =` config
331
+ option and `task.exclude_pattern =` rake task config option. Matching
332
+ files will be excluded. (John Gesimondo, Myron Marston, #1651, #1671)
333
+ * When an around hook fails to execute the example, mark it as
334
+ pending (rather than passing) so the user is made aware of the
335
+ fact that the example did not actually run. (Myron Marston, #1660)
336
+ * Remove dependency on `FileUtils` from the standard library so that users do
337
+ not get false positives where their code relies on it but they are not
338
+ requiring it. (Sam Phippen, #1565)
339
+
340
+ Bug Fixes:
341
+
342
+ * Fix rake task `t.pattern =` option so that it does not run all specs
343
+ when it matches no files, by passing along a `--pattern` option to
344
+ the `rspec` command, rather than resolving the file list and passing
345
+ along the files individually. (Evgeny Zislis, #1653)
346
+ * Fix rake task default pattern so that it follows symlinks properly.
347
+ (Myron Marston, #1672)
348
+ * Fix default pattern used with `rspec` command so that it follows
349
+ symlinks properly. (Myron Marston, #1672)
350
+ * Change how we assign constant names to example group classes so that
351
+ it avoids a problem with `describe "Core"`. (Daniela Wellisz, #1679)
352
+ * Handle rendering exceptions that have a different encoding than that
353
+ of their original source file. (Jon Rowe, #1681)
354
+ * Allow access to message_lines without colour for failed examples even
355
+ when they're part of a shared example group. (tomykaira, #1689)
356
+
357
+ ### 3.0.4 / 2014-08-14
358
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.3...v3.0.4)
359
+
360
+ Bug Fixes:
361
+
362
+ * Fix processing order of CLI options so that if `config.files_to_run`
363
+ is accessed from a file loaded by `--require`, `--pattern` is still
364
+ applied. (Myron Marston, #1652)
365
+ * Fix `config.pattern=` so that it still takes affect even if
366
+ `config.files_to_run` has already been accessed. (Myron Marston, #1652)
367
+
368
+ ### 3.0.3 / 2014-07-21
369
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.2...v3.0.3)
370
+
371
+ Bug Fixes:
372
+
373
+ * Properly convert both parts of a description into strings before
374
+ concatenation. (@nicklink483, #1636)
375
+ * Exclude the working directory when figuring out folders to ignore.
376
+ (Jon Rowe, Myron Marston, #1616)
377
+ * Allow `::RSpec::Core::Notifications::FailedExampleNotification#message_lines`
378
+ to be accessed without a colouriser. (@tomykaira, #1637)
379
+
380
+ ### 3.0.2 / 2014-06-19
381
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.1...v3.0.2)
382
+
383
+ Bug Fixes:
384
+
385
+ * Fix regression in CLI option handling that prevented `--tag slow`
386
+ passed at the command line from overriding `--tag ~slow` in `.rspec`.
387
+ (Colin Jones, #1602)
388
+ * Fix metadata `:example_group` deprecation warning so that it gets
389
+ issued at the call site of the configuration that specified it as
390
+ a filter rather than later when an example group is defined.
391
+ (Myron Marston, #1562)
392
+ * Make the line that is printed when a shared example group fails indicating
393
+ where the concrete example group is white, separating it from the stack trace
394
+ that is produced for the failure. (Sam Phippen, Jon Rowe, #1606)
395
+
396
+ ### 3.0.1 / 2014-06-12
397
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0...v3.0.1)
398
+
399
+ Bug Fixes:
400
+
401
+ * Fix a couple ruby warnings caused by rspec-core when loaded.
402
+ (Prem Sichanugrist, #1584)
403
+ * Example groups named `Config` will no longer cause a Ruby warning to be
404
+ issued. (Jimmy Cuadra, #1580)
405
+
406
+ ### 3.0.0 / 2014-06-01
407
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0.rc1...v3.0.0)
408
+
409
+ Bug Fixes:
410
+
411
+ * Fix `BaseTextFormatter` so that it does not re-close a closed output
412
+ stream. (Myron Marston)
413
+ * Fix regression in metadata that caused the metadata hash of a top-level
414
+ example group to have a `:parent_example_group` key even though it has
415
+ no parent example group. (Myron Marston)
416
+
417
+ Enhancements:
418
+
419
+ * Alter the default `spec_helper.rb` to no longer recommend
420
+ `config.full_backtrace = true` see #1536 for discussion. (Jon Rowe)
421
+
422
+ ### 3.0.0.rc1 / 2014-05-18
423
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0.beta2...v3.0.0.rc1)
424
+
425
+ Breaking Changes for 3.0.0:
426
+
427
+ * Change `described_class` so that in a nested group like `describe
428
+ MyClass`, it returns `MyClass` rather than the outer group's described
429
+ class. (Myron Marston)
430
+ * Refactor filter manager so that it no longer subclasses Hash and has a
431
+ tighter, more domain-specific interface. (Sergey Pchelincev)
432
+ * Remove legacy colours definitions from `BaseTextFormatter`. (Jon Rowe)
433
+ * Remove console color definitions from `BaseTextFormatter`. (Jon Rowe)
434
+ * Restructure example group metadata so that the computed keys are
435
+ exposed directly off of the metadata hash rather than being on
436
+ a nested `:example_group` subhash. In addition, the parent example
437
+ group metadata is now available as `[:parent_example_group]` rather
438
+ than `[:example_group][:example_group]`. Deprecated access via the
439
+ old key structure is still provided. (Myron Marston)
440
+ * Remove `:describes` metadata key. It duplicates `:described_class`
441
+ for no good reason. Deprecated access via `:describes` is still
442
+ provided. (Myron Marston)
443
+ * Rename `:example_group_block` metadata key to `:block`.
444
+ (Myron Marston)
445
+ * Remove deprecated `RSpec::Core::Example#options`. (Myron Marston)
446
+ * Move `BaseTextFormatter#colorize_summary` to `SummaryNotification#colorize_with`
447
+ (Jon Rowe).
448
+ * `describe some_hash` treated `some_hash` as metadata in RSpec 2.x but
449
+ will treat it as the described object in RSpec 3.0. Metadata must
450
+ always come after the description args. (Myron Marston)
451
+ * Remove deprecated `display_name` alias of `ExampleGroup.description`.
452
+ (Myron Marston)
453
+ * Remove deprecated `describes` alias of `ExampleGroup.described_class`.
454
+ (Myron Marston)
455
+ * Remove deprecated `RSpec::Core::ExampleGroup.alias_it_behaves_like_to`.
456
+ Use `RSpec::Core::Configuration#alias_it_behaves_like_to` instead.
457
+ (Myron Marston)
458
+ * Remove deprecated `RSpec::Core::ExampleGroup.alias_example_to`.
459
+ Use `RSpec::Core::Configuration#alias_example_to` instead.
460
+ (Myron Marston)
461
+ * Removed `focused` example alias and change example/group aliases
462
+ `fit`, `focus`, `fcontext` and `fdescribe` to no longer include
463
+ `:focused => true` metadata. They only contain `:focus => true`
464
+ metadata now. This means that you will need to filter them with
465
+ `filter_run :focus`, not `filter_run :focused`. (Myron Marston)
466
+ * Remove `--line-number` filtering. It's semantically dubious since it's
467
+ a global filter (potentially applied to multiple files) but there's no
468
+ meaningful connection between the same line number in multiple files.
469
+ Instead use the `rspec path/to/spec.rb:23:46` form, which is terser
470
+ and makes more sense as it is scoped to a file. (Myron Marston)
471
+ * Remove `--default_path` as an alias for `--default-path`. (Jon Rowe)
472
+ * Remove deprecated `share_examples_for`. There's still
473
+ `shared_examples` and `shared_examples_for`. (Myron Marston)
474
+ * Rename `RSpec::Core::Configuration#warnings` to
475
+ `RSpec::Core::Configuration#warnings?` since it's a boolean flag.
476
+ (Myron Marston)
477
+ * RSpec's global state is no longer reset after a spec run. This gives
478
+ more flexibility to alternate runners to decide when and if they
479
+ want the state reset. Alternate runners are now responsible for
480
+ calling this (or doing a similar reset) if they are going to run
481
+ the spec suite multiple times in the same process. (Sam Phippen)
482
+ * Merge `RSpec::Core::CommandLine` (never formally declared public)
483
+ into `RSpec::Core::Runner`. (Myron Marston)
484
+ * Remove `color_enabled` as an alias of `color`. (Jon Rowe)
485
+ * Remove `backtrace_cleaner` as an alias of `backtrace_formatter`. (Jon Rowe)
486
+ * Remove `filename_pattern` as an alias of `pattern`. (Jon Rowe)
487
+ * Extract support for legacy formatters to `rspec-legacy_formatters`. (Jon Rowe)
488
+ * `RSpec::Configuration#formatters` now returns a dup to prevent mutation. (Jon Rowe)
489
+ * Replace `stdlib` as an available expectation framework with `test_unit` and
490
+ `minitest`. (Aaron Kromer)
491
+ * Remove backtrace formatting helpers from `BaseTextFormatter`. (Jon Rowe)
492
+ * Extract profiler support to `ProfileFormatter` and `ProfileNotification`.
493
+ Formatters should implement `dump_profile` if they wish to respond to `--profile`.
494
+ (Jon Rowe)
495
+ * Extract remaining formatter state to reporter and notifications. Introduce
496
+ `ExamplesNotification` to share information about examples that was previously
497
+ held in `BaseFormatter`. (Jon Rowe)
498
+
499
+ Enhancements:
500
+
501
+ * Add `config.default_formatter` attribute, which can be used to set a
502
+ formatter which will only be used if no other formatter is set
503
+ (e.g. via `--formatter`). (Myron Marston)
504
+ * Support legacy colour definitions in `LegacyFormatterAdaptor`. (Jon Rowe)
505
+ * Migrate `execution_result` (exposed by metadata) from a hash to a
506
+ first-class object with appropriate attributes. `status` is now
507
+ stored and returned as a symbol rather than a string. It retains
508
+ deprecated hash behavior for backwards compatibility. (Myron Marston)
509
+ * Provide console code helper for formatters. (Jon Rowe)
510
+ * Use raw ruby hashes for the metadata hashes rather than a subclass of
511
+ a hash. Computed metadata entries are now computed in advance rather
512
+ than being done lazily on first access. (Myron Marston)
513
+ * Add `:block` metadata entry to the example metadata, bringing
514
+ parity with `:block` in the example group metadata. (Myron Marston)
515
+ * Add `fspecify` and `fexample` as aliases of `specify` and `example`
516
+ with `:focus => true` metadata for parity with `fit`. (Myron Marston)
517
+ * Add legacy support for `colorize_summary`. (Jon Rowe)
518
+ * Restructure runner so it can be more easily customized in a subclass
519
+ for an alternate runner. (Ben Hoskings)
520
+ * Document `RSpec::Core::ConfigurationOptions` as an officially
521
+ supported public API. (Myron Marston)
522
+ * Add `--deprecation-out` CLI option which directs deprecation warnings
523
+ to the named file. (Myron Marston)
524
+ * Minitest 5 compatability for `expect_with :stdlib` (now available as
525
+ `expect_with :minitest`). (Xavier Shay)
526
+ * Reporter now notifies formatters of the load time of RSpec and your
527
+ specs via `StartNotification` and `SummaryNotification`. (Jon Rowe)
528
+ * Add `disable_monkey_patching!` config option that disables all monkey
529
+ patching from whatever pieces of RSpec you use. (Alexey Fedorov)
530
+ * Add `Pathname` support for setting all output streams. (Aaron Kromer)
531
+ * Add `config.define_derived_metadata`, which can be used to apply
532
+ additional metadata to all groups or examples that match a given
533
+ filter. (Myron Marston)
534
+ * Provide formatted and colorized backtraces via `FailedExampleNotification`
535
+ and send `PendingExampleFixedNotifications` when the error is due to a
536
+ passing spec you expect to fail. (Jon Rowe)
537
+ * Add `dump_profile` to formatter API to allow formatters to implement
538
+ support for `--profile`. (Jon Rowe)
539
+ * Allow colourising text via `ConsoleCodes` with RSpec 'states'
540
+ (e.g. `:success`, `:failure`) rather than direct colour codes. (Jon Rowe)
541
+ * Expose `fully_formatted` methods off the formatter notification objects
542
+ that make it easy for a custom formatter to produce formatted output
543
+ like rspec-core's. (Myron Marston)
544
+
545
+ Bug Fixes:
546
+
547
+ * Fix `spec_helper.rb` file generated by `rspec --init` so that the
548
+ recommended settings correctly use the documentation formatter
549
+ when running one file. (Myron Marston)
550
+ * Fix ordering problem where descriptions were generated after
551
+ tearing down mocks, which resulted in unexpected exceptions.
552
+ (Bradley Schaefer, Aaron Kromer, Andrey Savchenko)
553
+ * Allow a symbol to be used as an implicit subject (e.g. `describe
554
+ :foo`). (Myron Marston)
555
+ * Prevent creating an isolated context (i.e. using `RSpec.describe`) when
556
+ already inside a context. There is no reason to do this, and it could
557
+ potentially cause unexpected bugs. (Xavier Shay)
558
+ * Fix shared example group scoping so that when two shared example
559
+ groups share the same name at different levels of nested contexts,
560
+ the one in the nearest context is used. (Myron Marston)
561
+ * Fix `--warnings` option so that it enables warnings immediately so
562
+ that it applies to files loaded by `--require`. (Myron Marston)
563
+ * Issue a warning when you set `config.deprecation_stream` too late for
564
+ it to take effect because the reporter has already been setup. (Myron Marston)
565
+ * Add the full `RSpec::Core::Example` interface to the argument yielded
566
+ to `around` hooks. (Myron Marston)
567
+ * Line number always takes precendence when running specs with filters.
568
+ (Xavier Shay)
569
+ * Ensure :if and :unless metadata filters are treated as a special case
570
+ and are always in-effect. (Bradley Schaefer)
571
+ * Ensure the currently running installation of RSpec is used when
572
+ the rake task shells out to `rspec`, even if a newer version is also
573
+ installed. (Postmodern)
574
+ * Using a legacy formatter as default no longer causes an infinite loop.
575
+ (Xavier Shay)
576
+
577
+ ### 3.0.0.beta2 / 2014-02-17
578
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.0.beta1...v3.0.0.beta2)
579
+
580
+ Breaking Changes for 3.0.0:
581
+
582
+ * Make `mock_with` option more strict. Strings are no longer supported
583
+ (e.g. `mock_with "mocha"`) -- use a symbol instead. Also, unrecognized
584
+ values will now result in an error rather than falling back to the
585
+ null mocking adapter. If you want to use the null mocking adapter,
586
+ use `mock_with :nothing` (as has been documented for a long time).
587
+ (Myron Marston)
588
+ * Remove support for overriding RSpec's built-in `:if` and `:unless`
589
+ filters. (Ashish Dixit)
590
+ * Custom formatters are now required to call
591
+ `RSpec::Core::Formatters.register(formatter_class, *notifications)`
592
+ where `notifications` is the list of events the formatter wishes to
593
+ be notified about. Notifications are handled by methods matching the
594
+ names on formatters. This allows us to add or remove notifications
595
+ without breaking existing formatters. (Jon Rowe)
596
+ * Change arguments passed to formatters. Rather than passing multiple
597
+ arguments (which limits are ability to add additional arguments as
598
+ doing so would break existing formatters), we now pass a notification
599
+ value object that exposes the same data via attributes. This will
600
+ allow us to add new bits of data to a notification event without
601
+ breaking existing formatters. (Jon Rowe)
602
+ * Remove support for deprecated `:alias` option for
603
+ `RSpec.configuration.add_setting`. (Myron Marston)
604
+ * Remove support for deprecated `RSpec.configuration.requires = [...]`.
605
+ (Myron Marston)
606
+ * Remove support for deprecated `--formatter` CLI option. (Myron Marston)
607
+ * Remove support for deprecated `--configure` CLI option. (Myron Marston)
608
+ * Remove support for deprecated `RSpec::Core::RakeTask#spec_opts=`.
609
+ (Myron Marston)
610
+ * An example group level `pending` block or `:pending` metadata now executes
611
+ the example and cause a failure if it passes, otherwise it will be pending if
612
+ it fails. The old "never run" behaviour is still used for `xexample`, `xit`,
613
+ and `xspecify`, or via a new `skip` method or `:skip` metadata option.
614
+ (Xavier Shay)
615
+ * After calling `pending` inside an example, the remainder of the example will
616
+ now be run. If it passes a failure is raised, otherwise the example is marked
617
+ pending. The old "never run" behaviour is provided a by a new `skip` method.
618
+ (Xavier Shay)
619
+ * Pending blocks inside an example have been removed as a feature with no
620
+ direct replacement. Use `skip` or `pending` without a block. (Xavier Shay)
621
+ * Pending statement is no longer allowed in `before(:all)` hooks. Use `skip`
622
+ instead. (Xavier Shay)
623
+ * Remove `show_failures_in_pending_blocks` configuration option. (Xavier Shay)
624
+ * Remove support for specifying the documentation formatter using
625
+ 's', 'n', 'spec' or 'nested'. (Jon Rowe)
626
+
627
+ Enhancements:
628
+
629
+ * Add example run time to JSON formatter output. (Karthik Kastury)
630
+ * Add more suggested settings to the files generated by
631
+ `rspec --init`. (Myron Marston)
632
+ * Add `config.alias_example_group_to`, which can be used to define a
633
+ new method that defines an example group with the provided metadata.
634
+ (Michi Huber)
635
+ * Add `xdescribe` and `xcontext` as shortcuts to skip an example group.
636
+ (Myron Marston)
637
+ * Add `fdescribe` and `fcontext` as shortcuts to focus an example group.
638
+ (Myron Marston)
639
+ * Don't autorun specs via `#at_exit` by default. `require 'rspec/autorun'`
640
+ is only needed when running specs via `ruby`, as it always has been.
641
+ Running specs via `rake` or `rspec` are both unaffected. (Ben Hoskings)
642
+ * Add `expose_dsl_globally` config option, defaulting to true. When disabled
643
+ it will remove the monkey patches rspec-core adds to `main` and `Module`
644
+ (e.g. `describe`, `shared_examples_for`, etc). (Jon Rowe)
645
+ * Expose RSpec DSL entry point methods (`describe`,
646
+ `shared_examples_for`, etc) on the `RSpec` constant. Intended for use
647
+ when `expose_dsl_globally` is set to `false`. (Jon Rowe)
648
+ * For consistency, expose all example group aliases (including
649
+ `context`) on the `RSpec` constant. If `expose_dsl_globally` is set to
650
+ `true`, also expose them on `main` and `Module`. Historically, only `describe`
651
+ was exposed. (Jon Rowe, Michi Huber)
652
+ * Add hook scope `:example` as an alias for `:each`, and `:context` as an alias
653
+ for `:all`. (John Feminella)
654
+
655
+ Bug Fixes:
656
+
657
+ * Fix failure (undefined method `path`) in end-of-run summary
658
+ when `raise_errors_for_deprecations!` is configured. (Myron Marston)
659
+ * Issue error when attempting to use `-i` or `--I` on command line,
660
+ too close to `-I` to be considered short hand for `--init`. (Jon Rowe)
661
+ * Prevent adding formatters to an output target if the same
662
+ formatter has already been added to that output. (Alex Peattie)
663
+ * Allow a matcher-generated example description to be used when
664
+ the example is pending. (Myron Marston)
665
+ * Ensure the configured `failure_exit_code` is used by the rake
666
+ task when there is a failure. (Jon Rowe)
667
+ * Restore behaviour whereby system exclusion filters take priority over working
668
+ directory (was broken in beta1). (Jon Rowe)
669
+ * Prevent RSpec mangling file names that have substrings containing `line_number`
670
+ or `default_path`. (Matijs van Zuijlen)
671
+ * Fix failure line detection so that it handles relative file paths
672
+ (which can happen when running specs through `ruby` using `rspec/autorun`).
673
+ (Myron Marston, #1829)
674
+
675
+ ### 3.0.0.beta1 / 2013-11-07
676
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.1...v3.0.0.beta1)
677
+
678
+ Breaking Changes for 3.0.0:
679
+
680
+ * Remove explicit support for 1.8.6. (Jon Rowe)
681
+ * Remove `RSpec::Core::ExampleGroup#example` and
682
+ `RSpec::Core::ExampleGroup#running_example` methods. If you need
683
+ access to the example (e.g. to get its metadata), use a block arg
684
+ instead. (David Chelimsky)
685
+ * Remove `TextMateFormatter`, it has been moved to `rspec-tmbundle`.
686
+ (Aaron Kromer)
687
+ * Remove RCov integration. (Jon Rowe)
688
+ * Remove deprecated support for RSpec 1 constructs (Myron Marston):
689
+ * The `Spec` and `Rspec` constants (rather than `RSpec`).
690
+ * `Spec::Runner.configure` rather than `RSpec.configure`.
691
+ * `Rake::SpecTask` rather than `RSpec::Core::RakeTask`.
692
+ * Remove deprecated support for `share_as`. (Myron Marston)
693
+ * Remove `--debug` option (and corresponding option on
694
+ `RSpec::Core::Configuration`). Instead, use `-r<debugger gem name>` to
695
+ load whichever debugger gem you wish to use (e.g. `ruby-debug`,
696
+ `debugger`, or `pry`). (Myron Marston)
697
+ * Extract Autotest support to a seperate gem. (Jon Rowe)
698
+ * Raise an error when a `let` or `subject` declaration is
699
+ accessed in a `before(:all)` or `after(:all)` hook. (Myron Marston)
700
+ * Extract `its` support to a separate gem. (Peter Alfvin)
701
+ * Disallow use of a shared example group from sibling contexts, making them
702
+ fully isolated. 2.14 and 2.99 allowed this but printed a deprecation warning.
703
+ (Jon Rowe)
704
+ * Remove `RSpec::Core::Configuration#output` and
705
+ `RSpec::Core::Configuration#out` aliases of
706
+ `RSpec::Core::Configuration#output_stream`. (Myron Marston)
707
+ * Remove legacy ordering APIs deprecated in 2.99.0.beta1. (Myron
708
+ Marston)
709
+
710
+ Enhancements:
711
+
712
+ * Replace unmaintained syntax gem with coderay gem. (Xavier Shay)
713
+ * Times in profile output are now bold instead of `failure_color`.
714
+ (Matthew Boedicker)
715
+ * Add `--no-fail-fast` command line option. (Gonzalo Rodríguez-Baltanás Díaz)
716
+ * Runner now considers the local system ip address when running under Drb.
717
+ (Adrian CB)
718
+ * JsonFormatter now includes `--profile` information. (Alex / @MasterLambaster)
719
+ * Always treat symbols passed as metadata args as hash
720
+ keys with true values. RSpec 2 supported this with the
721
+ `treat_symbols_as_metadata_keys_with_true_values` but
722
+ now this behavior is always enabled. (Myron Marston)
723
+ * Add `--dry-run` option, which prints the formatter output
724
+ of your suite without running any examples or hooks.
725
+ (Thomas Stratmann, Myron Marston)
726
+ * Document the configuration options and default values in the `spec_helper.rb`
727
+ file that is generated by RSpec. (Parker Selbert)
728
+ * Give generated example group classes a friendly name derived
729
+ from the docstring, rather than something like "Nested_2".
730
+ (Myron Marston)
731
+ * Avoid affecting randomization of user code when shuffling
732
+ examples so that users can count on their own seeds
733
+ working. (Travis Herrick)
734
+ * Ordering is no longer a single global property of the test suite.
735
+ Each group can pick an ordering using `:order` metadata. (Andy
736
+ Lindeman, Sam Phippen, Myron Marston)
737
+ * Allow named custom ordering strategies to be registered, which can
738
+ then be used on individual example groups. (Andy Lindeman, Sam
739
+ Phippen, Myron Marston)
740
+
741
+ Deprecations:
742
+
743
+ * `treat_symbols_as_metadata_keys_with_true_values` is deprecated and no
744
+ longer has an affect now that the behavior it enabled is always
745
+ enabled. (Myron Marston)
746
+
747
+ ### 2.99.2 / 2014-08-19
748
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.1...v2.99.2)
749
+
750
+ Enhancements:
751
+
752
+ * Improve deprecation warning for RSpec 3 change in `describe <a symbol>`
753
+ behavior. (Jon Rowe, #1667)
754
+
755
+ ### 2.99.1 / 2014-06-19
756
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0...v2.99.1)
757
+
758
+ Bug Fixes:
759
+
760
+ * Add missing deprecation warning for when `RSpec::Core::Runner` is used
761
+ multiple times in the same process. In 2.x RSpec's global state was
762
+ automatically cleared between runs but in 3.0 you need to call `RSpec.reset`
763
+ manually in these situations. (Sam Phippen, #1587)
764
+ * Prevent deprecation being accidentally issues when doubles used with `be_`
765
+ matchers due to automatically generated descriptions. (Jon Rowe, #1573)
766
+ * Load `rspec/core` when loading `rspec/core/rake_task` to ensure we can
767
+ issue deprecations correctly. (Jon Rowe, #1612)
768
+
769
+ ### 2.99.0 / 2014-06-01
770
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.rc1...v2.99.0)
771
+
772
+ Bug Fixes:
773
+
774
+ * Fix `BaseTextFormatter` so that it does not re-close a closed output
775
+ stream. (Myron Marston)
776
+ * Use `RSpec::Configuration#backtrace_exclusion_patterns` rather than the
777
+ deprecated `RSpec::Configuration#backtrace_clean_patterns` when mocking
778
+ with rr. (David Dollar)
779
+
780
+ ### 2.99.0.rc1 / 2014-05-18
781
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.beta2...v2.99.0.rc1)
782
+
783
+ Enhancements:
784
+
785
+ * Add `--deprecation-out` CLI option which directs deprecation warnings
786
+ to the named file. (Myron Marston)
787
+ * Backport support for `skip` in metadata to skip execution of an example.
788
+ (Xavier Shay, #1472)
789
+ * Add `Pathname` support for setting all output streams. (Aaron Kromer)
790
+ * Add `test_unit` and `minitest` expectation frameworks. (Aaron Kromer)
791
+
792
+ Deprecations:
793
+
794
+ * Deprecate `RSpec::Core::Pending::PendingDeclaredInExample`, use
795
+ `SkipDeclaredInExample` instead. (Xavier Shay)
796
+ * Issue a deprecation when `described_class` is accessed from within
797
+ a nested `describe <SomeClass>` example group, since `described_class`
798
+ will return the innermost described class in RSpec 3 rather than the
799
+ outermost described class, as it behaved in RSpec 2. (Myron Marston)
800
+ * Deprecate `RSpec::Core::FilterManager::DEFAULT_EXCLUSIONS`,
801
+ `RSpec::Core::FilterManager::STANDALONE_FILTERS` and use of
802
+ `#empty_without_conditional_filters?` on those filters. (Sergey Pchelincev)
803
+ * Deprecate `RSpec::Core::Example#options` in favor of
804
+ `RSpec::Core::Example#metadata`. (Myron Marston)
805
+ * Issue warning when passing a symbol or hash to `describe` or `context`
806
+ as the first argument. In RSpec 2.x this would be treated as metadata
807
+ but in RSpec 3 it'll be treated as the described object. To continue
808
+ having it treated as metadata, pass a description before the symbol or
809
+ hash. (Myron Marston)
810
+ * Deprecate `RSpec::Core::BaseTextFormatter::VT100_COLORS` and
811
+ `RSpec::Core::BaseTextFormatter::VT100_COLOR_CODES` in favour
812
+ of `RSpec::Core::BaseTextFormatter::ConsoleCodes::VT100_CODES` and
813
+ `RSpec::Core::BaseTextFormatter::ConsoleCodes::VT100_CODE_VALUES`.
814
+ (Jon Rowe)
815
+ * Deprecate `RSpec::Core::ExampleGroup.display_name` in favor of
816
+ `RSpec::Core::ExampleGroup.description`. (Myron Marston)
817
+ * Deprecate `RSpec::Core::ExampleGroup.describes` in favor of
818
+ `RSpec::Core::ExampleGroup.described_class`. (Myron Marston)
819
+ * Deprecate `RSpec::Core::ExampleGroup.alias_example_to` in favor of
820
+ `RSpec::Core::Configuration#alias_example_to`. (Myron Marston)
821
+ * Deprecate `RSpec::Core::ExampleGroup.alias_it_behaves_like_to` in favor
822
+ of `RSpec::Core::Configuration#alias_it_behaves_like_to`. (Myron Marston)
823
+ * Deprecate `RSpec::Core::ExampleGroup.focused` in favor of
824
+ `RSpec::Core::ExampleGroup.focus`. (Myron Marston)
825
+ * Add deprecation warning for `config.filter_run :focused` since
826
+ example aliases `fit` and `focus` will no longer include
827
+ `:focused` metadata but will continue to include `:focus`. (Myron Marston)
828
+ * Deprecate filtering by `:line_number` (e.g. `--line-number` from the
829
+ CLI). Use location filtering instead. (Myron Marston)
830
+ * Deprecate `--default_path` as an alternative to `--default-path`. (Jon Rowe)
831
+ * Deprecate `RSpec::Core::Configuration#warnings` in favor of
832
+ `RSpec::Core::Configuration#warnings?`. (Myron Marston)
833
+ * Deprecate `share_examples_for` in favor of `shared_examples_for` or
834
+ just `shared_examples`. (Myron Marston)
835
+ * Deprecate `RSpec::Core::CommandLine` in favor of
836
+ `RSpec::Core::Runner`. (Myron Marston)
837
+ * Deprecate `#color_enabled`, `#color_enabled=` and `#color?` in favour of
838
+ `#color`, `#color=` and `#color_enabled? output`. (Jon Rowe)
839
+ * Deprecate `#filename_pattern` in favour of `#pattern`. (Jon Rowe)
840
+ * Deprecate `#backtrace_cleaner` in favour of `#backtrace_formatter`. (Jon Rowe)
841
+ * Deprecate mutating `RSpec::Configuration#formatters`. (Jon Rowe)
842
+ * Deprecate `stdlib` as an available expectation framework in favour of
843
+ `test_unit` and `minitest`. (Aaron Kromer)
844
+
845
+ Bug Fixes:
846
+
847
+ * Issue a warning when you set `config.deprecation_stream` too late for
848
+ it to take effect because the reporter has already been setup. (Myron Marston)
849
+ * `skip` with a block should not execute the block. (Xavier Shay)
850
+
851
+ ### 2.99.0.beta2 / 2014-02-17
852
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.beta1...v2.99.0.beta2)
853
+
854
+ Enhancements:
855
+
856
+ * Add `is_expected` for one-liners that read well with the
857
+ `expect`-based syntax. `is_expected` is simply defined as
858
+ `expect(subject)` and can be used in an expression like:
859
+ `it { is_expected.to read_well }`. (Myron Marston)
860
+ * Backport `skip` from RSpec 3, which acts like `pending` did in RSpec 2
861
+ when not given a block, since the behavior of `pending` is changing in
862
+ RSpec 3. (Xavier Shay)
863
+
864
+ Deprecations:
865
+
866
+ * Deprecate inexact `mock_with` config options. RSpec 3 will only support
867
+ the exact symbols `:rspec`, `:mocha`, `:flexmock`, `:rr` or `:nothing`
868
+ (or any module that implements the adapter interface). RSpec 2 did
869
+ fuzzy matching but this will not be supported going forward.
870
+ (Myron Marston)
871
+ * Deprecate `show_failures_in_pending_blocks` config option. To achieve
872
+ the same behavior as the option enabled, you can use a custom
873
+ formatter instead. (Xavier Shay)
874
+ * Add a deprecation warning for the fact that the behavior of `pending`
875
+ is changing in RSpec 3 -- rather than skipping the example (as it did
876
+ in 2.x when no block was provided), it will run the example and mark
877
+ it as failed if no exception is raised. Use `skip` instead to preserve
878
+ the old behavior. (Xavier Shay)
879
+ * Deprecate 's', 'n', 'spec' and 'nested' as aliases for documentation
880
+ formatter. (Jon Rowe)
881
+ * Deprecate `RSpec::Core::Reporter#abort` in favor of
882
+ `RSpec::Core::Reporter#finish`. (Jon Rowe)
883
+
884
+ Bug Fixes:
885
+
886
+ * Fix failure (undefined method `path`) in end-of-run summary
887
+ when `raise_errors_for_deprecations!` is configured. (Myron Marston)
888
+ * Fix issue were overridding spec ordering from the command line wasn't
889
+ fully recognised interally. (Jon Rowe)
890
+
891
+ ### 2.99.0.beta1 / 2013-11-07
892
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.7...v2.99.0.beta1)
893
+
894
+ Enhancements
895
+
896
+ * Block-based DSL methods that run in the context of an example
897
+ (`it`, `before(:each)`, `after(:each)`, `let` and `subject`)
898
+ now yield the example as a block argument. (David Chelimsky)
899
+ * Warn when the name of more than one example group is submitted to
900
+ `include_examples` and it's aliases. (David Chelimsky)
901
+ * Add `expose_current_running_example_as` config option for
902
+ use during the upgrade process when external gems use the
903
+ deprecated `RSpec::Core::ExampleGroup#example` and
904
+ `RSpec::Core::ExampleGroup#running_example` methods. (Myron Marston)
905
+ * Limit spamminess of deprecation messages. (Bradley Schaefer, Loren Segal)
906
+ * Add `config.raise_errors_for_deprecations!` option, which turns
907
+ deprecations warnings into errors to surface the full backtrace
908
+ of the call site. (Myron Marston)
909
+
910
+ Deprecations
911
+
912
+ * Deprecate `RSpec::Core::ExampleGroup#example` and
913
+ `RSpec::Core::ExampleGroup#running_example` methods. If you need
914
+ access to the example (e.g. to get its metadata), use a block argument
915
+ instead. (David Chelimsky)
916
+ * Deprecate use of `autotest/rspec2` in favour of `rspec-autotest`. (Jon Rowe)
917
+ * Deprecate RSpec's built-in debugger support. Use a CLI option like
918
+ `-rruby-debug` (for the ruby-debug gem) or `-rdebugger` (for the
919
+ debugger gem) instead. (Myron Marston)
920
+ * Deprecate `RSpec.configuration.treat_symbols_as_metadata_keys_with_true_values = false`.
921
+ RSpec 3 will not support having this option set to `false`. (Myron Marston)
922
+ * Deprecate accessing a `let` or `subject` declaration in
923
+ a `after(:all)` hook. (Myron Marston, Jon Rowe)
924
+ * Deprecate built-in `its` usage in favor of `rspec-its` gem due to planned
925
+ removal in RSpec 3. (Peter Alfvin)
926
+ * Deprecate `RSpec::Core::PendingExampleFixedError` in favor of
927
+ `RSpec::Core::Pending::PendingExampleFixedError`. (Myron Marston)
928
+ * Deprecate `RSpec::Core::Configuration#out` and
929
+ `RSpec::Core::Configuration#output` in favor of
930
+ `RSpec::Core::Configuration#output_stream`. (Myron Marston)
931
+ * Deprecate legacy ordering APIs.
932
+ * You should use `register_ordering(:global)` instead of these:
933
+ * `RSpec::Core::Configuration#order_examples`
934
+ * `RSpec::Core::Configuration#order_groups`
935
+ * `RSpec::Core::Configuration#order_groups_and_examples`
936
+ * These are deprecated with no replacement because in RSpec 3
937
+ ordering is a property of individual example groups rather than
938
+ just a global property of the entire test suite:
939
+ * `RSpec::Core::Configuration#order`
940
+ * `RSpec::Core::Configuration#randomize?`
941
+ * `--order default` is deprecated in favor of `--order defined`
942
+ (Myron Marston)
943
+
944
+ ### 2.14.8 / 2014-02-27
945
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.7...v2.14.8)
946
+
947
+ Bug fixes:
948
+
949
+ * Fix regression with the `textmateformatter` that prevented backtrace links
950
+ from being clickable. (Stefan Daschek)
951
+
952
+ ### 2.14.7 / 2013-10-29
953
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.6...v2.14.7)
954
+
955
+ Bug fixes:
956
+
957
+ * Fix regression in 2.14.6 that broke the Fivemat formatter.
958
+ It depended upon either
959
+ `example.execution_result[:exception].pending_fixed?` (which
960
+ was removed in 2.14.6 to fix an issue with frozen error objects)
961
+ or `RSpec::Core::PendingExampleFixedError` (which was renamed
962
+ to `RSpec::Core::Pending::PendingExampleFixedError` in 2.8.
963
+ This fix makes a constant alias for the old error name.
964
+ (Myron Marston)
965
+
966
+ ### 2.14.6 / 2013-10-15
967
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.5...v2.14.6)
968
+
969
+ Bug fixes:
970
+
971
+ * Format stringified numbers correctly when mathn library is loaded.
972
+ (Jay Hayes)
973
+ * Fix an issue that prevented the use of frozen error objects. (Lars
974
+ Gierth)
975
+
976
+ ### 2.14.5 / 2013-08-13
977
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.4...v2.14.5)
978
+
979
+ Bug fixes:
980
+
981
+ * Fix a `NoMethodError` that was being raised when there were no shared
982
+ examples or contexts declared and `RSpec.world.reset` is invoked.
983
+ (thepoho, Jon Rowe, Myron Marston)
984
+ * Fix a deprecation warning that was being incorrectly displayed when
985
+ `shared_examples` are declared at top level in a `module` scope.
986
+ (Jon Rowe)
987
+ * Fix after(:all) hooks so consecutive (same context) scopes will run even if
988
+ one raises an error. (Jon Rowe, Trejkaz)
989
+ * JsonFormatter no longer dies if `dump_profile` isn't defined (Alex / @MasterLambaster, Jon Rowe)
990
+
991
+ ### 2.14.4 / 2013-07-21
992
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.3...v2.14.4)
993
+
994
+ Bug fixes
995
+
996
+ * Fix regression in 2.14: ensure configured requires (via `-r` option)
997
+ are loaded before spec files are loaded. This allows the spec files
998
+ to programatically change the file pattern (Jon Rowe).
999
+ * Autoload `RSpec::Mocks` and `RSpec::Expectations` when referenced if
1000
+ they are not already loaded (`RSpec::Matches` has been autoloaded
1001
+ for a while). In the `rspec` gem, we changed it recently to stop
1002
+ loading `rspec/mocks` and `rspec/expectations` by default, as some
1003
+ users reported problems where they were intending to use mocha,
1004
+ not rspec-mocks, but rspec-mocks was loaded and causing a conflict.
1005
+ rspec-core loads mocks and expectations at the appropriate time, so
1006
+ it seemed like a safe change -- but caused a problem for some authors
1007
+ of libraries that integrate with RSpec. This fixes that problem.
1008
+ (Myron Marston)
1009
+ * Gracefully handle a command like `rspec --profile path/to/spec.rb`:
1010
+ the `path/to/spec.rb` arg was being wrongly treated as the `profile`
1011
+ integer arg, which got cast `0` using `to_i`, causing no profiled
1012
+ examples to be printed. (Jon Rowe)
1013
+
1014
+ ### 2.14.3 / 2013-07-13
1015
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.2...v2.14.3)
1016
+
1017
+ Bug fixes
1018
+
1019
+ * Fix deprecation notices issued from `RSpec::Core::RakeTask` so
1020
+ that they work properly when all of rspec-core is not loaded.
1021
+ (This was a regression in 2.14) (Jon Rowe)
1022
+
1023
+ ### 2.14.2 / 2013-07-09
1024
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.1...v2.14.2)
1025
+
1026
+ Bug fixes
1027
+
1028
+ * Fix regression caused by 2.14.1 release: formatters that
1029
+ report that they `respond_to?` a notification, but had
1030
+ no corresponding method would raise an error when registered.
1031
+ The new fix is to just implement `start` on the deprecation
1032
+ formatter to fix the original JRuby/ruby-debug issue.
1033
+ (Jon Rowe)
1034
+
1035
+ ### 2.14.1 / 2013-07-08
1036
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.0...v2.14.1)
1037
+
1038
+ Bug fixes
1039
+
1040
+ * Address deprecation formatter failure when using `ruby-debug` on
1041
+ JRuby: fix `RSpec::Core::Reporter` to not send a notification
1042
+ when the formatter's implementation of the notification method
1043
+ comes from `Kernel` (Alex Portnov, Jon Rowe).
1044
+
1045
+ ### 2.14.0 / 2013-07-06
1046
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.0.rc1...v2.14.0)
1047
+
1048
+ Enhancements
1049
+
1050
+ * Apply focus to examples defined with `fit` (equivalent of
1051
+ `it "description", focus: true`) (Michael de Silva)
1052
+
1053
+ Bug fix
1054
+
1055
+ * Ensure methods defined by `let` take precedence over others
1056
+ when there is a name collision (e.g. from an included module).
1057
+ (Jon Rowe, Andy Lindeman and Myron Marston)
1058
+
1059
+ ### 2.14.0.rc1 / 2013-05-27
1060
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.13.1...v2.14.0.rc1)
1061
+
1062
+ Enhancements
1063
+
1064
+ * Improved Windows detection inside Git Bash, for better `--color` handling.
1065
+ * Add profiling of the slowest example groups to `--profile` option.
1066
+ The output is sorted by the slowest average example groups.
1067
+ * Don't show slow examples if there's a failure and both `--fail-fast`
1068
+ and `--profile` options are used (Paweł Gościcki).
1069
+ * Rather than always adding `spec` to the load path, add the configured
1070
+ `--default-path` to the load path (which defaults to `spec`). This
1071
+ better supports folks who choose to put their specs in a different
1072
+ directory (John Feminella).
1073
+ * Add some logic to test time duration precision. Make it a
1074
+ function of time, dropping precision as the time increases. (Aaron Kromer)
1075
+ * Add new `backtrace_inclusion_patterns` config option. Backtrace lines
1076
+ that match one of these patterns will _always_ be included in the
1077
+ backtrace, even if they match an exclusion pattern, too (Sam Phippen).
1078
+ * Support ERB trim mode using the `-` when parsing `.rspec` as ERB
1079
+ (Gabor Garami).
1080
+ * Give a better error message when let and subject are called without a block.
1081
+ (Sam Phippen).
1082
+ * List the precedence of `.rspec-local` in the configuration documentation
1083
+ (Sam Phippen)
1084
+ * Support `{a,b}` shell expansion syntax in `--pattern` option
1085
+ (Konstantin Haase).
1086
+ * Add cucumber documentation for --require command line option
1087
+ (Bradley Schaefer)
1088
+ * Expose configuration options via config:
1089
+ * `config.libs` returns the libs configured to be added onto the load path
1090
+ * `full_backtrace?` returns the state of the backtrace cleaner
1091
+ * `debug?` returns true when the debugger is loaded
1092
+ * `line_numbers` returns the line numbers we are filtering by (if any)
1093
+ * `full_description` returns the RegExp used to filter descriptions
1094
+ (Jon Rowe)
1095
+ * Add setters for RSpec.world and RSpec.configuration (Alex Soulim)
1096
+ * Configure ruby's warning behaviour with `--warnings` (Jon Rowe)
1097
+ * Fix an obscure issue on old versions of `1.8.7` where `Time.dup` wouldn't
1098
+ allow access to `Time.now` (Jon Rowe)
1099
+ * Make `shared_examples_for` context aware, so that keys may be safely reused
1100
+ in multiple contexts without colliding. (Jon Rowe)
1101
+ * Add a configurable `deprecation_stream` (Jon Rowe)
1102
+ * Publish deprecations through a formatter (David Chelimsky)
1103
+
1104
+ Bug fixes
1105
+
1106
+ * Make JSON formatter behave the same when it comes to `--profile` as
1107
+ the text formatter (Paweł Gościcki).
1108
+ * Fix named subjects so that if an inner group defines a method that
1109
+ overrides the named method, `subject` still retains the originally
1110
+ declared value (Myron Marston).
1111
+ * Fix random ordering so that it does not cause `rand` in examples in
1112
+ nested sibling contexts to return the same value (Max Shytikov).
1113
+ * Use the new `backtrace_inclusion_patterns` config option to ensure
1114
+ that folks who develop code in a directory matching one of the default
1115
+ exclusion patterns (e.g. `gems`) still get the normal backtrace
1116
+ filtering (Sam Phippen).
1117
+ * Fix ordering of `before` hooks so that `before` hooks declared in
1118
+ `RSpec.configure` run before `before` hooks declared in a shared
1119
+ context (Michi Huber and Tejas Dinkar).
1120
+ * Fix `Example#full_description` so that it gets filled in by the last
1121
+ matcher description (as `Example#description` already did) when no
1122
+ doc string has been provided (David Chelimsky).
1123
+ * Fix the memoized methods (`let` and `subject`) leaking `define_method`
1124
+ as a `public` method. (Thomas Holmes and Jon Rowe) (#873)
1125
+ * Fix warnings coming from the test suite. (Pete Higgins)
1126
+
1127
+ Deprecations
1128
+
1129
+ * Deprecate `Configuration#backtrace_clean_patterns` in favor of
1130
+ `Configuration#backtrace_exclusion_patterns` for greater consistency
1131
+ and symmetry with new `backtrace_inclusion_patterns` config option
1132
+ (Sam Phippen).
1133
+ * Deprecate `Configuration#requires=` in favor of using ruby's
1134
+ `require`. Requires specified by the command line can still be
1135
+ accessed by the `Configuration#require` reader. (Bradley Schaefer)
1136
+ * Deprecate calling `SharedExampleGroups` defined across sibling contexts
1137
+ (Jon Rowe)
1138
+
1139
+ ### 2.13.1 / 2013-03-12
1140
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.13.0...v2.13.1)
1141
+
1142
+ Bug fixes
1143
+
1144
+ * Use hook classes as proxies rather than extending hook blocks to support
1145
+ lambdas for before/after/around hooks. (David Chelimsky)
1146
+ * Fix regression in 2.13.0 that caused confusing behavior when overriding
1147
+ a named subject with an unnamed subject in an inner group and then
1148
+ referencing the outer group subject's name. The fix for this required
1149
+ us to disallow using `super` in a named subject (which is confusing,
1150
+ anyway -- named subjects create 2 methods, so which method on the
1151
+ parent example group are you `super`ing to?) but `super` in an unnamed
1152
+ subject continues to work (Myron Marston).
1153
+ * Do not allow a referenced `let` or `subject` in `before(:all)` to cause
1154
+ other `let` declarations to leak across examples (Myron Marston).
1155
+ * Work around odd ruby 1.9 bug with `String#match` that was triggered
1156
+ by passing it a regex from a `let` declaration. For more info, see
1157
+ http://bugs.ruby-lang.org/issues/8059 (Aaron Kromer).
1158
+ * Add missing `require 'set'` to `base_text_formatter.rb` (Tom
1159
+ Anderson).
1160
+
1161
+ Deprecations
1162
+
1163
+ * Deprecate accessing `let` or `subject` declarations in `before(:all)`.
1164
+ These were not intended to be called in a `before(:all)` hook, as
1165
+ they exist to define state that is reset between each example, while
1166
+ `before(:all)` exists to define state that is shared across examples
1167
+ in an example group (Myron Marston).
1168
+
1169
+ ### 2.13.0 / 2013-02-23
1170
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.12.2...v2.13.0)
1171
+
1172
+ Enhancements
1173
+
1174
+ * Allow `--profile` option to take a count argument that
1175
+ determines the number of slow examples to dump
1176
+ (Greggory Rothmeier).
1177
+ * Add `subject!` that is the analog to `let!`. It defines an
1178
+ explicit subject and sets a `before` hook that will invoke
1179
+ the subject (Zubin Henner).
1180
+ * Fix `let` and `subject` declaration so that `super`
1181
+ and `return` can be used in them, just like in a normal
1182
+ method. (Myron Marston)
1183
+ * Allow output colors to be configured individually.
1184
+ (Charlie Maffitt)
1185
+ * Always dump slow examples when `--profile` option is given,
1186
+ even when an example failed (Myron Marston).
1187
+
1188
+ Bug fixes
1189
+
1190
+ * Don't blow up when dumping error output for instances
1191
+ of anonymous error classes (Myron Marston).
1192
+ * Fix default backtrace filters so lines from projects
1193
+ containing "gems" in the name are not filtered, but
1194
+ lines from installed gems still are (Myron Marston).
1195
+ * Fix autotest command so that is uses double quotes
1196
+ rather than single quotes for windows compatibility
1197
+ (Jonas Tingeborn).
1198
+ * Fix `its` so that uses of `subject` in a `before` or `let`
1199
+ declaration in the parent group continue to reference the
1200
+ parent group's subject. (Olek Janiszewski)
1201
+
1202
+ ### 2.12.2 / 2012-12-13
1203
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.12.1...v2.12.2)
1204
+
1205
+ Bug fixes
1206
+
1207
+ * Fix `RSpec::Core::RakeTask` so that it is compatible with rake 0.8.7
1208
+ on ruby 1.8.7. We had accidentally broke it in the 2.12 release
1209
+ (Myron Marston).
1210
+ * Fix `RSpec::Core::RakeTask` so it is tolerant of the `Rspec` constant
1211
+ for backwards compatibility (Patrick Van Stee)
1212
+
1213
+ ### 2.12.1 / 2012-12-01
1214
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.12.0...v2.12.1)
1215
+
1216
+ Bug fixes
1217
+
1218
+ * Specs are run even if another at\_exit hook calls `exit`. This allows
1219
+ Test::Unit and RSpec to run together. (Suraj N. Kurapati)
1220
+ * Fix full doc string concatenation so that it handles the case of a
1221
+ method string (e.g. "#foo") being nested under a context string
1222
+ (e.g. "when it is tuesday"), so that we get "when it is tuesday #foo"
1223
+ rather than "when it is tuesday#foo". (Myron Marston)
1224
+ * Restore public API I unintentionally broke in 2.12.0:
1225
+ `RSpec::Core::Formatters::BaseFormatter#format_backtrce(backtrace, example)`
1226
+ (Myron Marston).
1227
+
1228
+ ### 2.12.0 / 2012-11-12
1229
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.11.1...v2.12.0)
1230
+
1231
+ Enhancements
1232
+
1233
+ * Add support for custom ordering strategies for groups and examples.
1234
+ (Myron Marston)
1235
+ * JSON Formatter (Alex Chaffee)
1236
+ * Refactor rake task internals (Sam Phippen)
1237
+ * Refactor HtmlFormatter (Pete Hodgson)
1238
+ * Autotest supports a path to Ruby that contains spaces (dsisnero)
1239
+ * Provide a helpful warning when a shared example group is redefined.
1240
+ (Mark Burns).
1241
+ * `--default_path` can be specified as `--default-line`. `--line_number` can be
1242
+ specified as `--line-number`. Hyphens are more idiomatic command line argument
1243
+ separators (Sam Phippen).
1244
+ * A more useful error message is shown when an invalid command line option is
1245
+ used (Jordi Polo).
1246
+ * Add `format_docstrings { |str| }` config option. It can be used to
1247
+ apply formatting rules to example group and example docstrings.
1248
+ (Alex Tan)
1249
+ * Add support for an `.rspec-local` options file. This is intended to
1250
+ allow individual developers to set options in a git-ignored file that
1251
+ override the common project options in `.rspec`. (Sam Phippen)
1252
+ * Support for mocha 0.13.0. (Andy Lindeman)
1253
+
1254
+ Bug fixes
1255
+
1256
+ * Remove override of `ExampleGroup#ancestors`. This is a core ruby method that
1257
+ RSpec shouldn't override. Instead, define `ExampleGroup#parent_groups`. (Myron
1258
+ Marston)
1259
+ * Limit monkey patching of shared example/context declaration methods
1260
+ (`shared_examples_for`, etc.) to just the objects that need it rather than
1261
+ every object in the system (Myron Marston).
1262
+ * Fix Metadata#fetch to support computed values (Sam Goldman).
1263
+ * Named subject can now be referred to from within subject block in a nested
1264
+ group (tomykaira).
1265
+ * Fix `fail_fast` so that it properly exits when an error occurs in a
1266
+ `before(:all) hook` (Bradley Schaefer).
1267
+ * Make the order spec files are loaded consistent, regardless of the
1268
+ order of the files returned by the OS or the order passed at
1269
+ the command line (Jo Liss and Sam Phippen).
1270
+ * Ensure instance variables from `before(:all)` are always exposed
1271
+ from `after(:all)`, even if an error occurs in `before(:all)`
1272
+ (Sam Phippen).
1273
+ * `rspec --init` no longer generates an incorrect warning about `--configure`
1274
+ being deprecated (Sam Phippen).
1275
+ * Fix pluralization of `1 seconds` (Odin Dutton)
1276
+ * Fix ANSICON url (Jarmo Pertman)
1277
+ * Use dup of Time so reporting isn't clobbered by examples that modify Time
1278
+ without properly restoring it. (David Chelimsky)
1279
+
1280
+ Deprecations
1281
+
1282
+ * `share_as` is no longer needed. `shared_context` and/or
1283
+ `RSpec::SharedContext` provide better mechanisms (Sam Phippen).
1284
+ * Deprecate `RSpec.configuration` with a block (use `RSpec.configure`).
1285
+
1286
+
1287
+ ### 2.11.1 / 2012-07-18
1288
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.11.0...v2.11.1)
1289
+
1290
+ Bug fixes
1291
+
1292
+ * Fix the way we autoload RSpec::Matchers so that custom matchers can be
1293
+ defined before rspec-core has been configured to definitely use
1294
+ rspec-expectations. (Myron Marston)
1295
+ * Fix typo in --help message printed for -e option. (Jo Liss)
1296
+ * Fix ruby warnings. (Myron Marston)
1297
+ * Ignore mock expectation failures when the example has already failed.
1298
+ Mock expectation failures have always been ignored in this situation,
1299
+ but due to my changes in 27059bf1 it was printing a confusing message.
1300
+ (Myron Marston).
1301
+
1302
+ ### 2.11.0 / 2012-07-07
1303
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.10.1...v2.11.0)
1304
+
1305
+ Enhancements
1306
+
1307
+ * Support multiple `--example` options. (Daniel Doubrovkine @dblock)
1308
+ * Named subject e.g. `subject(:article) { Article.new }`
1309
+ * see [http://blog.davidchelimsky.net/2012/05/13/spec-smell-explicit-use-of-subject/](http://blog.davidchelimsky.net/2012/05/13/spec-smell-explicit-use-of-subject/)
1310
+ for background.
1311
+ * thanks to Bradley Schaefer for suggesting it and Avdi Grimm for almost
1312
+ suggesting it.
1313
+ * `config.mock_with` and `config.expect_with` yield custom config object to a
1314
+ block if given
1315
+ * aids decoupling from rspec-core's configuation
1316
+ * `include_context` and `include_examples` support a block, which gets eval'd
1317
+ in the current context (vs the nested context generated by `it_behaves_like`).
1318
+ * Add `config.order = 'random'` to the `spec_helper.rb` generated by `rspec
1319
+ --init`.
1320
+ * Delay the loading of DRb (Myron Marston).
1321
+ * Limit monkey patching of `describe` onto just the objects that need it rather
1322
+ than every object in the system (Myron Marston).
1323
+
1324
+ Bug fixes
1325
+
1326
+ * Support alternative path separators. For example, on Windows, you can now do
1327
+ this: `rspec spec\subdir`. (Jarmo Pertman @jarmo)
1328
+ * When an example raises an error and an after or around hook does as
1329
+ well, print out the hook error. Previously, the error was silenced and
1330
+ the user got no feedback about what happened. (Myron Marston)
1331
+ * `--require` and `-I` are merged among different configuration sources (Andy
1332
+ Lindeman)
1333
+ * Delegate to mocha methods instead of aliasing them in mocha adapter.
1334
+
1335
+ ### 2.10.1 / 2012-05-19
1336
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.10.0...v2.10.1)
1337
+
1338
+ Bug fixes
1339
+
1340
+ * `RSpec.reset` properly reinits configuration and world
1341
+ * Call `to_s` before `split` on exception messages that might not always be
1342
+ Strings (slyphon)
1343
+
1344
+ ### 2.10.0 / 2012-05-03
1345
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.9.0...v2.10.0)
1346
+
1347
+ Enhancements
1348
+
1349
+ * Add `prepend_before` and `append_after` hooks (preethiramdev)
1350
+ * intended for extension libs
1351
+ * restores rspec-1 behavior
1352
+ * Reporting of profiled examples (moro)
1353
+ * Report the total amount of time taken for the top slowest examples.
1354
+ * Report what percentage the slowest examples took from the total runtime.
1355
+
1356
+ Bug fixes
1357
+
1358
+ * Properly parse `SPEC_OPTS` options.
1359
+ * `example.description` returns the location of the example if there is no
1360
+ explicit description or matcher-generated description.
1361
+ * RDoc fixes (Grzegorz Świrski)
1362
+ * Do not modify example ancestry when dumping errors (Michael Grosser)
1363
+
1364
+ ### 2.9.0 / 2012-03-17
1365
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.8.0...v2.9.0)
1366
+
1367
+ Enhancements
1368
+
1369
+ * Support for "X minutes X seconds" spec run duration in formatter. (uzzz)
1370
+ * Strip whitespace from group and example names in doc formatter.
1371
+ * Removed spork-0.9 shim. If you're using spork-0.8.x, you'll need to upgrade
1372
+ to 0.9.0.
1373
+
1374
+ Bug fixes
1375
+
1376
+ * Restore `--full_backtrace` option
1377
+ * Ensure that values passed to `config.filter_run` are respected when running
1378
+ over DRb (using spork).
1379
+ * Ensure shared example groups are reset after a run (as example groups are).
1380
+ * Remove `rescue false` from calls to filters represented as Procs
1381
+ * Ensure `described_class` gets the closest constant (pyromaniac)
1382
+ * In "autorun", don't run the specs in the `at_exit` hook if there was an
1383
+ exception (most likely due to a SyntaxError). (sunaku)
1384
+ * Don't extend groups with modules already used to extend ancestor groups.
1385
+ * `its` correctly memoizes nil or false values (Yamada Masaki)
1386
+
1387
+ ### 2.8.0 / 2012-01-04
1388
+
1389
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.8.0.rc2...v2.8.0)
1390
+
1391
+ Bug fixes
1392
+
1393
+ * For metadata filtering, restore passing the entire array to the proc, rather
1394
+ than each item in the array (weidenfreak)
1395
+ * Ensure each spec file is loaded only once
1396
+ * Fixes a bug that caused all the examples in a file to be run when
1397
+ referenced twice with line numbers in a command, e.g.
1398
+ * `rspec path/to/file:37 path/to/file:42`
1399
+
1400
+ ### 2.8.0.rc2 / 2011-12-19
1401
+
1402
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.8.0.rc1...v2.8.0.rc2)
1403
+
1404
+ Enhancments
1405
+
1406
+ * new `--init` command (Peter Schröder)
1407
+ * generates `spec/spec_helper.rb`
1408
+ * deletes obsolete files (on confirmation)
1409
+ * merged with and deprecates `--configure` command, which generated
1410
+ `.rspec`
1411
+ * use `require_relative` when available (Ian Leitch)
1412
+ * `include_context` and `include_examples` accept params (Calvin Bascom)
1413
+ * print the time for every example in the html formatter (Richie Vos)
1414
+ * several tasty refactoring niblets (Sasha)
1415
+ * `it "does something", :x => [:foo,'bar',/baz/] (Ivan Neverov)
1416
+ * supports matching n command line tag values with an example or group
1417
+
1418
+ ### 2.8.0.rc1 / 2011-11-06
1419
+
1420
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.7.1...v2.8.0.rc1)
1421
+
1422
+ Enhancements
1423
+
1424
+ * `--order` (Justin Ko)
1425
+ * run examples in random order: `--order rand`
1426
+ * specify the seed: `--order rand:123`
1427
+ * `--seed SEED`
1428
+ * equivalent of `--order rand:SEED`
1429
+ * SharedContext supports `let` (David Chelimsky)
1430
+ * Filter improvements (David Chelimsky)
1431
+ * override opposing tags from the command line
1432
+ * override RSpec.configure tags from the command line
1433
+ * `--line_number 37` overrides all other filters
1434
+ * `path/to/file.rb:37` overrides all other filters
1435
+ * refactor: consolidate filter management in a FilterManger object
1436
+ * Eliminate Ruby warnings (Matijs van Zuijlen)
1437
+ * Make reporter.report an API (David Chelimsky)
1438
+ * supports extension tools like interative_rspec
1439
+
1440
+ Changes
1441
+
1442
+ * change `config.color_enabled` (getter/setter/predicate) to `color` to align
1443
+ with `--[no]-color` CLI option.
1444
+ * `color_enabled` is still supported for now, but will likley be deprecated
1445
+ in a 2.x release so we can remove it in 3.0.
1446
+
1447
+ Bug fixes
1448
+
1449
+ * Make sure the `bar` in `--tag foo:bar` makes it to DRb (Aaron Gibralter)
1450
+ * Fix bug where full descriptions of groups nested 3 deep were repeated.
1451
+ * Restore report of time to run to start after files are loaded.
1452
+ * fixes bug where run times were cumalitive in spork
1453
+ * fixes compatibility with time-series metrics
1454
+ * Don't error out when `config.mock_with` or `expect_with` is re-specifying the
1455
+ current config (Myron Marston)
1456
+
1457
+ * Deprecations
1458
+ * :alias option on `configuration.add_setting`. Use `:alias_with` on the
1459
+ original setting declaration instead.
1460
+
1461
+ ### 2.7.1 / 2011-10-20
1462
+
1463
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.7.0...v2.7.1)
1464
+
1465
+ Bug fixes
1466
+
1467
+ * tell autotest the correct place to find the rspec executable
1468
+
1469
+ ### 2.7.0 / 2011-10-16
1470
+
1471
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.4...v2.7.0)
1472
+
1473
+ NOTE: RSpec's release policy dictates that there should not be any backward
1474
+ incompatible changes in minor releases, but we're making an exception to
1475
+ release a change to how RSpec interacts with other command line tools.
1476
+
1477
+ As of 2.7.0, you must explicity `require "rspec/autorun"` unless you use the
1478
+ `rspec` command (which already does this for you).
1479
+
1480
+ Enhancements
1481
+
1482
+ * Add `example.exception` (David Chelimsky)
1483
+ * `--default_path` command line option (Justin Ko)
1484
+ * support multiple `--line_number` options (David J. Hamilton)
1485
+ * also supports `path/to/file.rb:5:9` (runs examples on lines 5 and 9)
1486
+ * Allow classes/modules to be used as shared example group identifiers (Arthur
1487
+ Gunn)
1488
+ * Friendly error message when shared context cannot be found (Sławosz
1489
+ Sławiński)
1490
+ * Clear formatters when resetting config (John Bintz)
1491
+ * Add `xspecify` and xexample as temp-pending methods (David Chelimsky)
1492
+ * Add `--no-drb` option (Iain Hecker)
1493
+ * Provide more accurate run time by registering start time before code is
1494
+ loaded (David Chelimsky)
1495
+ * reverted in 2.8.0
1496
+ * Rake task default pattern finds specs in symlinked dirs (Kelly Felkins)
1497
+ * Rake task no longer does anything to invoke bundler since Bundler already
1498
+ handles it for us. Thanks to Andre Arko for the tip.
1499
+ * Add `--failure-exit-code` option (Chris Griego)
1500
+
1501
+ Bug fixes
1502
+
1503
+ * Include `Rake::DSL` to remove deprecation warnings in Rake > 0.8.7 (Pivotal
1504
+ Casebook)
1505
+ * Only eval `let` block once even if it returns `nil` (Adam Meehan)
1506
+ * Fix `--pattern` option (wasn't being recognized) (David Chelimsky)
1507
+ * Only implicitly `require "rspec/autorun"` with the `rspec` command (David
1508
+ Chelimsky)
1509
+ * Ensure that rspec's `at_exit` defines the exit code (Daniel Doubrovkine)
1510
+ * Show the correct snippet in the HTML and TextMate formatters (Brian Faherty)
1511
+
1512
+ ### 2.6.4 / 2011-06-06
1513
+
1514
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.3...v2.6.4)
1515
+
1516
+ NOTE: RSpec's release policy dictates that there should not be new
1517
+ functionality in patch releases, but this minor enhancement slipped in by
1518
+ accident. As it doesn't add a new API, we decided to leave it in rather than
1519
+ roll back this release.
1520
+
1521
+ Enhancements
1522
+
1523
+ * Add summary of commands to run individual failed examples.
1524
+
1525
+ Bug fixes
1526
+
1527
+ * Support exclusion filters in DRb. (Yann Lugrin)
1528
+ * Fix --example escaping when run over DRb. (Elliot Winkler)
1529
+ * Use standard ANSI codes for color formatting so colors work in a wider set of
1530
+ color schemes.
1531
+
1532
+ ### 2.6.3 / 2011-05-24
1533
+
1534
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.2...v2.6.3)
1535
+
1536
+ Bug fixes
1537
+
1538
+ * Explicitly convert exit code to integer, avoiding TypeError when return
1539
+ value of run is IO object proxied by `DRb::DRbObject` (Julian Scheid)
1540
+ * Clarify behavior of `--example` command line option
1541
+ * Build using a rubygems-1.6.2 to avoid downstream yaml parsing error
1542
+
1543
+ ### 2.6.2 / 2011-05-21
1544
+
1545
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.1...v2.6.2)
1546
+
1547
+ Bug fixes
1548
+
1549
+ * Warn rather than raise when HOME env var is not defined
1550
+ * Properly merge command-line exclusions with default :if and :unless (joshcooper)
1551
+
1552
+ ### 2.6.1 / 2011-05-19
1553
+
1554
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.6.0...v2.6.1)
1555
+
1556
+ Bug fixes
1557
+
1558
+ * Don't extend nil when filters are nil
1559
+ * `require 'rspec/autorun'` when running rcov.
1560
+
1561
+ ### 2.6.0 / 2011-05-12
1562
+
1563
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.5.1...v2.6.0)
1564
+
1565
+ Enhancements
1566
+
1567
+ * `shared_context` (Damian Nurzynski)
1568
+ * extend groups matching specific metadata with:
1569
+ * method definitions
1570
+ * subject declarations
1571
+ * let/let! declarations
1572
+ * etc (anything you can do in a group)
1573
+ * `its([:key])` works for any subject with #[]. (Peter Jaros)
1574
+ * `treat_symbols_as_metadata_keys_with_true_values` (Myron Marston)
1575
+ * Print a deprecation warning when you configure RSpec after defining an
1576
+ example. All configuration should happen before any examples are defined.
1577
+ (Myron Marston)
1578
+ * Pass the exit status of a DRb run to the invoking process. This causes specs
1579
+ run via DRb to not just return true or false. (Ilkka Laukkanen)
1580
+ * Refactoring of `ConfigurationOptions#parse_options` (Rodrigo Rosenfeld Rosas)
1581
+ * Report excluded filters in runner output (tip from andyl)
1582
+ * Clean up messages for filters/tags.
1583
+ * Restore --pattern/-P command line option from rspec-1
1584
+ * Support false as well as true in config.full_backtrace= (Andreas Tolf
1585
+ Tolfsen)
1586
+
1587
+ Bug fixes
1588
+
1589
+ * Don't stumble over an exception without a message (Hans Hasselberg)
1590
+ * Remove non-ascii characters from comments that were choking rcov (Geoffrey
1591
+ Byers)
1592
+ * Fixed backtrace so it doesn't include lines from before the autorun at_exit
1593
+ hook (Myron Marston)
1594
+ * Include RSpec::Matchers when first example group is defined, rather than just
1595
+ before running the examples. This works around an obscure bug in ruby 1.9
1596
+ that can cause infinite recursion. (Myron Marston)
1597
+ * Don't send `example_group_[started|finished]` to formatters for empty groups.
1598
+ * Get specs passing on jruby (Sidu Ponnappa)
1599
+ * Fix bug where mixing nested groups and outer-level examples gave
1600
+ unpredictable :line_number behavior (Artur Małecki)
1601
+ * Regexp.escape the argument to --example (tip from Elliot Winkler)
1602
+ * Correctly pass/fail pending block with message expectations
1603
+ * CommandLine returns exit status (0/1) instead of true/false
1604
+ * Create path to formatter output file if it doesn't exist (marekj).
1605
+
1606
+
1607
+ ### 2.5.1 / 2011-02-06
1608
+
1609
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.5.0...v2.5.1)
1610
+
1611
+ NOTE: this release breaks compatibility with rspec/autotest/bundler
1612
+ integration, but does so in order to greatly simplify it.
1613
+
1614
+ With this release, if you want the generated autotest command to include
1615
+ 'bundle exec', require Autotest's bundler plugin in a .autotest file in the
1616
+ project's root directory or in your home directory:
1617
+
1618
+ require "autotest/bundler"
1619
+
1620
+ Now you can just type 'autotest' on the commmand line and it will work as you expect.
1621
+
1622
+ If you don't want 'bundle exec', there is nothing you have to do.
1623
+
1624
+ ### 2.5.0 / 2011-02-05
1625
+
1626
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.4.0...v2.5.0)
1627
+
1628
+ Enhancements
1629
+
1630
+ * Autotest::Rspec2 parses command line args passed to autotest after '--'
1631
+ * --skip-bundler option for autotest command
1632
+ * Autotest regexp fixes (Jon Rowe)
1633
+ * Add filters to html and textmate formatters (Daniel Quimper)
1634
+ * Explicit passing of block (need for JRuby 1.6) (John Firebaugh)
1635
+
1636
+ Bug fixes
1637
+
1638
+ * fix dom IDs in HTML formatter (Brian Faherty)
1639
+ * fix bug with --drb + formatters when not running in drb
1640
+ * include --tag options in drb args (monocle)
1641
+ * fix regression so now SPEC_OPTS take precedence over CLI options again (Roman
1642
+ Chernyatchik)
1643
+ * only call its(:attribute) once (failing example from Brian Dunn)
1644
+ * fix bizarre bug where rspec would hang after String.alias :to_int :to_i
1645
+ (Damian Nurzynski)
1646
+
1647
+ Deprecations
1648
+
1649
+ * implicit inclusion of 'bundle exec' when Gemfile present (use autotest's
1650
+ bundler plugin instead)
1651
+
1652
+ ### 2.4.0 / 2011-01-02
1653
+
1654
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.3.1...v2.4.0)
1655
+
1656
+ Enhancements
1657
+
1658
+ * start the debugger on -d so the stack trace is visible when it stops
1659
+ (Clifford Heath)
1660
+ * apply hook filtering to examples as well as groups (Myron Marston)
1661
+ * support multiple formatters, each with their own output
1662
+ * show exception classes in failure messages unless they come from RSpec
1663
+ matchers or message expectations
1664
+ * before(:all) { pending } sets all examples to pending
1665
+
1666
+ Bug fixes
1667
+
1668
+ * fix bug due to change in behavior of reject in Ruby 1.9.3-dev (Shota
1669
+ Fukumori)
1670
+ * fix bug when running in jruby: be explicit about passing block to super (John
1671
+ Firebaugh)
1672
+ * rake task doesn't choke on paths with quotes (Janmejay Singh)
1673
+ * restore --options option from rspec-1
1674
+ * require 'ostruct' to fix bug with its([key]) (Kim Burgestrand)
1675
+ * --configure option generates .rspec file instead of autotest/discover.rb
1676
+
1677
+ ### 2.3.1 / 2010-12-16
1678
+
1679
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.3.0...v2.3.1)
1680
+
1681
+ Bug fixes
1682
+
1683
+ * send debugger warning message to $stdout if RSpec.configuration.error_stream
1684
+ has not been defined yet.
1685
+ * HTML Formatter _finally_ properly displays nested groups (Jarmo Pertman)
1686
+ * eliminate some warnings when running RSpec's own suite (Jarmo Pertman)
1687
+
1688
+ ### 2.3.0 / 2010-12-12
1689
+
1690
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.2.1...v2.3.0)
1691
+
1692
+ Enhancements
1693
+
1694
+ * tell autotest to use "rspec2" if it sees a .rspec file in the project's root
1695
+ directory
1696
+ * replaces the need for ./autotest/discover.rb, which will not work with
1697
+ all versions of ZenTest and/or autotest
1698
+ * config.expect_with
1699
+ * :rspec # => rspec/expectations
1700
+ * :stdlib # => test/unit/assertions
1701
+ * :rspec, :stdlib # => both
1702
+
1703
+ Bug fixes
1704
+
1705
+ * fix dev Gemfile to work on non-mac-os machines (Lake Denman)
1706
+ * ensure explicit subject is only eval'd once (Laszlo Bacsi)
1707
+
1708
+ ### 2.2.1 / 2010-11-28
1709
+
1710
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.2.0...v2.2.1)
1711
+
1712
+ Bug fixes
1713
+ * alias_method instead of override Kernel#method_missing (John Wilger)
1714
+ * changed --autotest to --tty in generated command (MIKAMI Yoshiyuki)
1715
+ * revert change to debugger (had introduced conflict with Rails)
1716
+ * also restored --debugger/-debug option
1717
+
1718
+ ### 2.2.0 / 2010-11-28
1719
+
1720
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.1.0...v2.2.0)
1721
+
1722
+ Deprecations/changes
1723
+
1724
+ * --debug/-d on command line is deprecated and now has no effect
1725
+ * win32console is now ignored; Windows users must use ANSICON for color support
1726
+ (Bosko Ivanisevic)
1727
+
1728
+ Enhancements
1729
+
1730
+ * When developing locally rspec-core now works with the rspec-dev setup or your
1731
+ local gems
1732
+ * Raise exception with helpful message when rspec-1 is loaded alongside rspec-2
1733
+ (Justin Ko)
1734
+ * debugger statements _just work_ as long as ruby-debug is installed
1735
+ * otherwise you get warned, but not fired
1736
+ * Expose example.metadata in around hooks
1737
+ * Performance improvments (much faster now)
1738
+
1739
+ Bug fixes
1740
+
1741
+ * Make sure --fail-fast makes it across drb
1742
+ * Pass -Ilib:spec to rcov
1743
+
1744
+ ### 2.1.0 / 2010-11-07
1745
+
1746
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.1...v2.1.0)
1747
+
1748
+ Enhancments
1749
+
1750
+ * Add skip_bundler option to rake task to tell rake task to ignore the presence
1751
+ of a Gemfile (jfelchner)
1752
+ * Add gemfile option to rake task to tell rake task what Gemfile to look for
1753
+ (defaults to 'Gemfile')
1754
+ * Allow passing caller trace into Metadata to support extensions (Glenn
1755
+ Vanderburg)
1756
+ * Add deprecation warning for Spec::Runner.configure to aid upgrade from
1757
+ RSpec-1
1758
+ * Add deprecated Spec::Rake::SpecTask to aid upgrade from RSpec-1
1759
+ * Add 'autospec' command with helpful message to aid upgrade from RSpec-1
1760
+ * Add support for filtering with tags on CLI (Lailson Bandeira)
1761
+ * Add a helpful message about RUBYOPT when require fails in bin/rspec (slyphon)
1762
+ * Add "-Ilib" to the default rcov options (Tianyi Cui)
1763
+ * Make the expectation framework configurable (default rspec, of course)
1764
+ (Justin Ko)
1765
+ * Add 'pending' to be conditional (Myron Marston)
1766
+ * Add explicit support for :if and :unless as metadata keys for conditional run
1767
+ of examples (Myron Marston)
1768
+ * Add --fail-fast command line option (Jeff Kreeftmeijer)
1769
+
1770
+ Bug fixes
1771
+
1772
+ * Eliminate stack overflow with "subject { self }"
1773
+ * Require 'rspec/core' in the Raketask (ensures it required when running rcov)
1774
+
1775
+ ### 2.0.1 / 2010-10-18
1776
+
1777
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.0...v2.0.1)
1778
+
1779
+ Bug fixes
1780
+
1781
+ * Restore color when using spork + autotest
1782
+ * Pending examples without docstrings render the correct message (Josep M.
1783
+ Bach)
1784
+ * Fixed bug where a failure in a spec file ending in anything but _spec.rb
1785
+ would fail in a confusing way.
1786
+ * Support backtrace lines from erb templates in html formatter (Alex Crichton)
1787
+
1788
+ ### 2.0.0 / 2010-10-10
1789
+
1790
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.rc...v2.0.0)
1791
+
1792
+ RSpec-1 compatibility
1793
+
1794
+ * Rake task uses ENV["SPEC"] as file list if present
1795
+
1796
+ Bug fixes
1797
+
1798
+ * Bug Fix: optparse --out foo.txt (Leonardo Bessa)
1799
+ * Suppress color codes for non-tty output (except autotest)
1800
+
1801
+ ### 2.0.0.rc / 2010-10-05
1802
+
1803
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.22...v2.0.0.rc)
1804
+
1805
+ Enhancements
1806
+
1807
+ * implicitly require unknown formatters so you don't have to require the file
1808
+ explicitly on the commmand line (Michael Grosser)
1809
+ * add --out/-o option to assign output target
1810
+ * added fail_fast configuration option to abort on first failure
1811
+ * support a Hash subject (its([:key]) { should == value }) (Josep M. Bach)
1812
+
1813
+ Bug fixes
1814
+
1815
+ * Explicitly require rspec version to fix broken rdoc task (Hans de Graaff)
1816
+ * Ignore backtrace lines that come from other languages, like Java or
1817
+ Javascript (Charles Lowell)
1818
+ * Rake task now does what is expected when setting (or not setting)
1819
+ fail_on_error and verbose
1820
+ * Fix bug in which before/after(:all) hooks were running on excluded nested
1821
+ groups (Myron Marston)
1822
+ * Fix before(:all) error handling so that it fails examples in nested groups,
1823
+ too (Myron Marston)
1824
+
1825
+ ### 2.0.0.beta.22 / 2010-09-12
1826
+
1827
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.20...v2.0.0.beta.22)
1828
+
1829
+ Enhancements
1830
+
1831
+ * removed at_exit hook
1832
+ * CTRL-C stops the run (almost) immediately
1833
+ * first it cleans things up by running the appropriate after(:all) and
1834
+ after(:suite) hooks
1835
+ * then it reports on any examples that have already run
1836
+ * cleaned up rake task
1837
+ * generate correct task under variety of conditions
1838
+ * options are more consistent
1839
+ * deprecated redundant options
1840
+ * run 'bundle exec autotest' when Gemfile is present
1841
+ * support ERB in .rspec options files (Justin Ko)
1842
+ * depend on bundler for development tasks (Myron Marston)
1843
+ * add example_group_finished to formatters and reporter (Roman Chernyatchik)
1844
+
1845
+ Bug fixes
1846
+
1847
+ * support paths with spaces when using autotest (Andreas Neuhaus)
1848
+ * fix module_exec with ruby 1.8.6 (Myron Marston)
1849
+ * remove context method from top-level
1850
+ * was conflicting with irb, for example
1851
+ * errors in before(:all) are now reported correctly (Chad Humphries)
1852
+
1853
+ Removals
1854
+
1855
+ * removed -o --options-file command line option
1856
+ * use ./.rspec and ~/.rspec