echonet_lite 0.1.0

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