/vendor/bundle/jruby/2.1/gems/rspec-core-2.14.8/Changelog.md

https://github.com/delowong/logstash · Markdown · 912 lines · 705 code · 207 blank · 0 comment · 0 complexity · e86c19346157b896f6bbaf065afc5cd3 MD5 · raw file

  1. ### 2.14.8 / 2014-02-27
  2. [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.7...v2.14.8)
  3. Bug fixes:
  4. * Fix regression with the `TextMateFormatter` that prevented backtrace links
  5. from being clickable. (Stefan Daschek)
  6. ### 2.14.7 / 2013-10-29
  7. [full changelog](http://github.com/rspec/rspec-core/compare/v2.14.6...v2.14.7)
  8. Bug fixes:
  9. * Fix regression in 2.14.6 that broke the Fivemat formatter.
  10. It depended upon either
  11. `example.execution_result[:exception].pending_fixed?` (which
  12. was removed in 2.14.6 to fix an issue with frozen error objects)
  13. or `RSpec::Core::PendingExampleFixedError` (which was renamed
  14. to `RSpec::Core::Pending::PendingExampleFixedError` in 2.8.
  15. This fix makes a constant alias for the old error name.
  16. (Myron Marston)
  17. ### 2.14.6 / 2013-10-15
  18. [full changelog](http://github.com/rspec/rspec-core/compare/v2.14.5...v2.14.6)
  19. Bug fixes:
  20. * Format stringified numbers correctly when mathn library is loaded.
  21. (Jay Hayes)
  22. * Fix an issue that prevented the use of frozen error objects. (Lars Gierth)
  23. ### 2.14.5 / 2013-08-13
  24. [full changelog](http://github.com/rspec/rspec-core/compare/v2.14.4...v2.14.5)
  25. Bug fixes:
  26. * Fix a `NoMethodError` that was being raised when there were no shared
  27. examples or contexts declared and `RSpec.world.reset` is invoked.
  28. (thepoho, Jon Rowe, Myron Marston)
  29. * Fix a deprecation warning that was being incorrectly displayed when
  30. `shared_examples` are declared at top level in a `module` scope.
  31. (Jon Rowe)
  32. * Fix after(:all) hooks so consecutive (same context) scopes will run even if
  33. one raises an error. (Jon Rowe, Trejkaz)
  34. * JsonFormatter no longer dies if `dump_profile` isn't defined (Alex / @MasterLambaster, Jon Rowe)
  35. ### 2.14.4 / 2013-07-21
  36. [full changelog](http://github.com/rspec/rspec-core/compare/v2.14.3...v2.14.4)
  37. Bug fixes
  38. * Fix regression in 2.14: ensure configured requires (via `-r` option)
  39. are loaded before spec files are loaded. This allows the spec files
  40. to programatically change the file pattern (Jon Rowe).
  41. * Autoload `RSpec::Mocks` and `RSpec::Expectations` when referenced if
  42. they are not already loaded (`RSpec::Matches` has been autoloaded
  43. for a while). In the `rspec` gem, we changed it recently to stop
  44. loading `rspec/mocks` and `rspec/expectations` by default, as some
  45. users reported problems where they were intending to use mocha,
  46. not rspec-mocks, but rspec-mocks was loaded and causing a conflict.
  47. rspec-core loads mocks and expectations at the appropriate time, so
  48. it seemed like a safe change -- but caused a problem for some authors
  49. of libraries that integrate with RSpec. This fixes that problem.
  50. (Myron Marston)
  51. * Gracefully handle a command like `rspec --profile path/to/spec.rb`:
  52. the `path/to/spec.rb` arg was being wrongly treated as the `profile`
  53. integer arg, which got cast `0` using `to_i`, causing no profiled
  54. examples to be printed. (Jon Rowe)
  55. ### 2.14.3 / 2013-07-13
  56. [full changelog](http://github.com/rspec/rspec-core/compare/v2.14.2...v2.14.3)
  57. Bug fixes
  58. * Fix deprecation notices issued from `RSpec::Core::RakeTask` so
  59. that they work properly when all of rspec-core is not loaded.
  60. (This was a regression in 2.14) (Jon Rowe)
  61. ### 2.14.2 / 2013-07-09
  62. [full changelog](http://github.com/rspec/rspec-core/compare/v2.14.1...v2.14.2)
  63. Bug fixes
  64. * Fix regression caused by 2.14.1 release: formatters that
  65. report that they `respond_to?` a notification, but had
  66. no corresponding method would raise an error when registered.
  67. The new fix is to just implement `start` on the deprecation
  68. formatter to fix the original JRuby/ruby-debug issue.
  69. (Jon Rowe)
  70. ### 2.14.1 / 2013-07-08
  71. [full changelog](http://github.com/rspec/rspec-core/compare/v2.14.0...v2.14.1)
  72. Bug fixes
  73. * Address deprecation formatter failure when using `ruby-debug` on
  74. JRuby: fix `RSpec::Core::Reporter` to not send a notification
  75. when the formatter's implementation of the notification method
  76. comes from `Kernel` (Alex Portnov, Jon Rowe).
  77. ### 2.14.0 / 2013-07-06
  78. [full changelog](http://github.com/rspec/rspec-core/compare/v2.14.0.rc1...v2.14.0)
  79. Enhancements
  80. * Apply focus to examples defined with `fit` (equivalent of
  81. `it "description", focus: true`) (Michael de Silva)
  82. Bug fixes
  83. * Ensure methods defined by `let` take precedence over others
  84. when there is a name collision (e.g. from an included module).
  85. (Jon Rowe, Andy Lindeman and Myron Marston)
  86. ### 2.14.0.rc1 / 2013-05-27
  87. [full changelog](http://github.com/rspec/rspec-core/compare/v2.13.1...v2.14.0.rc1)
  88. Enhancements
  89. * Improved Windows detection inside Git Bash, for better `--color` handling.
  90. * Add profiling of the slowest example groups to `--profile` option.
  91. The output is sorted by the slowest average example groups.
  92. * Don't show slow examples if there's a failure and both `--fail-fast`
  93. and `--profile` options are used (Paweł Gościcki).
  94. * Rather than always adding `spec` to the load path, add the configured
  95. `--default-path` to the load path (which defaults to `spec`). This
  96. better supports folks who choose to put their specs in a different
  97. directory (John Feminella).
  98. * Add some logic to test time duration precision. Make it a
  99. function of time, dropping precision as the time increases. (Aaron Kromer)
  100. * Add new `backtrace_inclusion_patterns` config option. Backtrace lines
  101. that match one of these patterns will _always_ be included in the
  102. backtrace, even if they match an exclusion pattern, too (Sam Phippen).
  103. * Support ERB trim mode using the `-` when parsing `.rspec` as ERB
  104. (Gabor Garami).
  105. * Give a better error message when let and subject are called without a block.
  106. (Sam Phippen).
  107. * List the precedence of `.rspec-local` in the configuration documentation
  108. (Sam Phippen)
  109. * Support `{a,b}` shell expansion syntax in `--pattern` option
  110. (Konstantin Haase).
  111. * Add cucumber documentation for --require command line option
  112. (Bradley Schaefer)
  113. * Expose configruation options via config:
  114. * `config.libs` returns the libs configured to be added onto the load path
  115. * `full_backtrace?` returns the state of the backtrace cleaner
  116. * `debug?` returns true when the debugger is loaded
  117. * `line_numbers` returns the line numbers we are filtering by (if any)
  118. * `full_description` returns the RegExp used to filter descriptions
  119. (Jon Rowe)
  120. * Add setters for RSpec.world and RSpec.configuration (Alex Soulim)
  121. * Configure ruby's warning behaviour with `--warnings` (Jon Rowe)
  122. * Fix an obscure issue on old versions of `1.8.7` where `Time.dup` wouldn't
  123. allow access to `Time.now` (Jon Rowe)
  124. * Make `shared_examples_for` context aware, so that keys may be safely reused
  125. in multiple contexts without colliding. (Jon Rowe)
  126. * Add a configurable `deprecation_stream` (Jon Rowe)
  127. * Publish deprecations through a formatter (David Chelimsky)
  128. Bug fixes
  129. * Make JSON formatter behave the same when it comes to `--profile` as
  130. the text formatter (Paweł Gościcki).
  131. * Fix named subjects so that if an inner group defines a method that
  132. overrides the named method, `subject` still retains the originally
  133. declared value (Myron Marston).
  134. * Fix random ordering so that it does not cause `rand` in examples in
  135. nested sibling contexts to return the same value (Max Shytikov).
  136. * Use the new `backtrace_inclusion_patterns` config option to ensure
  137. that folks who develop code in a directory matching one of the default
  138. exclusion patterns (e.g. `gems`) still get the normal backtrace
  139. filtering (Sam Phippen).
  140. * Fix ordering of `before` hooks so that `before` hooks declared in
  141. `RSpec.configure` run before `before` hooks declared in a shared
  142. context (Michi Huber and Tejas Dinkar).
  143. * Fix `Example#full_description` so that it gets filled in by the last
  144. matcher description (as `Example#description` already did) when no
  145. doc string has been provided (David Chelimsky).
  146. * Fix the memoized methods (`let` and `subject`) leaking `define_method`
  147. as a `public` method. (Thomas Holmes and Jon Rowe) (#873)
  148. * Fix warnings coming from the test suite. (Pete Higgins)
  149. Deprecations
  150. * Deprecate `Configuration#backtrace_clean_patterns` in favor of
  151. `Configuration#backtrace_exclusion_patterns` for greater consistency
  152. and symmetry with new `backtrace_inclusion_patterns` config option
  153. (Sam Phippen).
  154. * Deprecate `Configuration#requires=` in favor of using ruby's
  155. `require`. Requires specified by the command line can still be
  156. accessed by the `Configuration#require` reader. (Bradley Schaefer)
  157. * Deprecate calling `SharedExampleGroups` defined across sibling contexts
  158. (Jon Rowe)
  159. ### 2.13.1 / 2013-03-12
  160. [full changelog](http://github.com/rspec/rspec-core/compare/v2.13.0...v2.13.1)
  161. Bug fixes
  162. * Use hook classes as proxies rather than extending hook blocks to support
  163. lambdas for before/after/around hooks. (David Chelimsky)
  164. * Fix regression in 2.13.0 that caused confusing behavior when overriding
  165. a named subject with an unnamed subject in an inner group and then
  166. referencing the outer group subject's name. The fix for this required
  167. us to disallow using `super` in a named subject (which is confusing,
  168. anyway -- named subjects create 2 methods, so which method on the
  169. parent example group are you `super`ing to?) but `super` in an unnamed
  170. subject continues to work (Myron Marston).
  171. * Do not allow a referenced `let` or `subject` in `before(:all)` to cause
  172. other `let` declarations to leak across examples (Myron Marston).
  173. * Work around odd ruby 1.9 bug with `String#match` that was triggered
  174. by passing it a regex from a `let` declaration. For more info, see
  175. http://bugs.ruby-lang.org/issues/8059 (Aaron Kromer).
  176. * Add missing `require 'set'` to `base_text_formatter.rb` (Tom
  177. Anderson).
  178. Deprecations
  179. * Deprecate accessing `let` or `subject` declarations in `before(:all)`.
  180. These were not intended to be called in a `before(:all)` hook, as
  181. they exist to define state that is reset between each example, while
  182. `before(:all)` exists to define state that is shared across examples
  183. in an example group (Myron Marston).
  184. ### 2.13.0 / 2013-02-23
  185. [full changelog](http://github.com/rspec/rspec-core/compare/v2.12.2...v2.13.0)
  186. Enhancements
  187. * Allow `--profile` option to take a count argument that
  188. determines the number of slow examples to dump
  189. (Greggory Rothmeier).
  190. * Add `subject!` that is the analog to `let!`. It defines an
  191. explicit subject and sets a `before` hook that will invoke
  192. the subject (Zubin Henner).
  193. * Fix `let` and `subject` declaration so that `super`
  194. and `return` can be used in them, just like in a normal
  195. method. (Myron Marston)
  196. * Allow output colors to be configured individually.
  197. (Charlie Maffitt)
  198. * Always dump slow examples when `--profile` option is given,
  199. even when an example failed (Myron Marston).
  200. Bug fixes
  201. * Don't blow up when dumping error output for instances
  202. of anonymous error classes (Myron Marston).
  203. * Fix default backtrace filters so lines from projects
  204. containing "gems" in the name are not filtered, but
  205. lines from installed gems still are (Myron Marston).
  206. * Fix autotest command so that is uses double quotes
  207. rather than single quotes for windows compatibility
  208. (Jonas Tingeborn).
  209. * Fix `its` so that uses of `subject` in a `before` or `let`
  210. declaration in the parent group continue to reference the
  211. parent group's subject. (Olek Janiszewski)
  212. ### 2.12.2 / 2012-12-13
  213. [full changelog](http://github.com/rspec/rspec-core/compare/v2.12.1...v2.12.2)
  214. Bug fixes
  215. * Fix `RSpec::Core::RakeTask` so that it is compatible with rake 0.8.7
  216. on ruby 1.8.7. We had accidentally broke it in the 2.12 release
  217. (Myron Marston).
  218. * Fix `RSpec::Core::RakeTask` so it is tolerant of the `Rspec` constant
  219. for backwards compatibility (Patrick Van Stee)
  220. ### 2.12.1 / 2012-12-01
  221. [full changelog](http://github.com/rspec/rspec-core/compare/v2.12.0...v2.12.1)
  222. Bug fixes
  223. * Specs are run even if another at\_exit hook calls `exit`. This allows
  224. Test::Unit and RSpec to run together. (Suraj N. Kurapati)
  225. * Fix full doc string concatenation so that it handles the case of a
  226. method string (e.g. "#foo") being nested under a context string
  227. (e.g. "when it is tuesday"), so that we get "when it is tuesday #foo"
  228. rather than "when it is tuesday#foo". (Myron Marston)
  229. * Restore public API I unintentionally broke in 2.12.0:
  230. `RSpec::Core::Formatters::BaseFormatter#format_backtrce(backtrace, example)`
  231. (Myron Marston).
  232. ### 2.12.0 / 2012-11-12
  233. [full changelog](http://github.com/rspec/rspec-core/compare/v2.11.1...v2.12.0)
  234. Enhancements
  235. * Add support for custom ordering strategies for groups and examples.
  236. (Myron Marston)
  237. * JSON Formatter (Alex Chaffee)
  238. * Refactor rake task internals (Sam Phippen)
  239. * Refactor HtmlFormatter (Pete Hodgson)
  240. * Autotest supports a path to Ruby that contains spaces (dsisnero)
  241. * Provide a helpful warning when a shared example group is redefined.
  242. (Mark Burns).
  243. * `--default_path` can be specified as `--default-line`. `--line_number` can be
  244. specified as `--line-number`. Hyphens are more idiomatic command line argument
  245. separators (Sam Phippen).
  246. * A more useful error message is shown when an invalid command line option is
  247. used (Jordi Polo).
  248. * Add `format_docstrings { |str| }` config option. It can be used to
  249. apply formatting rules to example group and example docstrings.
  250. (Alex Tan)
  251. * Add support for an `.rspec-local` options file. This is intended to
  252. allow individual developers to set options in a git-ignored file that
  253. override the common project options in `.rspec`. (Sam Phippen)
  254. * Support for mocha 0.13.0. (Andy Lindeman)
  255. Bug fixes
  256. * Remove override of `ExampleGroup#ancestors`. This is a core ruby method that
  257. RSpec shouldn't override. Instead, define `ExampleGroup#parent_groups`. (Myron
  258. Marston)
  259. * Limit monkey patching of shared example/context declaration methods
  260. (`shared_examples_for`, etc.) to just the objects that need it rather than
  261. every object in the system (Myron Marston).
  262. * Fix Metadata#fetch to support computed values (Sam Goldman).
  263. * Named subject can now be referred to from within subject block in a nested
  264. group (tomykaira).
  265. * Fix `fail_fast` so that it properly exits when an error occurs in a
  266. `before(:all) hook` (Bradley Schaefer).
  267. * Make the order spec files are loaded consistent, regardless of the
  268. order of the files returned by the OS or the order passed at
  269. the command line (Jo Liss and Sam Phippen).
  270. * Ensure instance variables from `before(:all)` are always exposed
  271. from `after(:all)`, even if an error occurs in `before(:all)`
  272. (Sam Phippen).
  273. * `rspec --init` no longer generates an incorrect warning about `--configure`
  274. being deprecated (Sam Phippen).
  275. * Fix pluralization of `1 seconds` (Odin Dutton)
  276. * Fix ANSICON url (Jarmo Pertman)
  277. * Use dup of Time so reporting isn't clobbered by examples that modify Time
  278. without properly restoring it. (David Chelimsky)
  279. Deprecations
  280. * `share_as` is no longer needed. `shared_context` and/or
  281. `RSpec::SharedContext` provide better mechanisms (Sam Phippen).
  282. * Deprecate `RSpec.configuration` with a block (use `RSpec.configure`).
  283. ### 2.11.1 / 2012-07-18
  284. [full changelog](http://github.com/rspec/rspec-core/compare/v2.11.0...v2.11.1)
  285. Bug fixes
  286. * Fix the way we autoload RSpec::Matchers so that custom matchers can be
  287. defined before rspec-core has been configured to definitely use
  288. rspec-expectations. (Myron Marston)
  289. * Fix typo in --help message printed for -e option. (Jo Liss)
  290. * Fix ruby warnings. (Myron Marston)
  291. * Ignore mock expectation failures when the example has already failed.
  292. Mock expectation failures have always been ignored in this situation,
  293. but due to my changes in 27059bf1 it was printing a confusing message.
  294. (Myron Marston).
  295. ### 2.11.0 / 2012-07-07
  296. [full changelog](http://github.com/rspec/rspec-core/compare/v2.10.1...v2.11.0)
  297. Enhancements
  298. * Support multiple `--example` options. (Daniel Doubrovkine @dblock)
  299. * Named subject e.g. `subject(:article) { Article.new }`
  300. * 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/)
  301. for background.
  302. * thanks to Bradley Schaefer for suggesting it and Avdi Grimm for almost
  303. suggesting it.
  304. * `config.mock_with` and `config.expect_with` yield custom config object to a
  305. block if given
  306. * aids decoupling from rspec-core's configuation
  307. * `include_context` and `include_examples` support a block, which gets eval'd
  308. in the current context (vs the nested context generated by `it_behaves_like`).
  309. * Add `config.order = 'random'` to the `spec_helper.rb` generated by `rspec
  310. --init`.
  311. * Delay the loading of DRb (Myron Marston).
  312. * Limit monkey patching of `describe` onto just the objects that need it rather
  313. than every object in the system (Myron Marston).
  314. Bug fixes
  315. * Support alternative path separators. For example, on Windows, you can now do
  316. this: `rspec spec\subdir`. (Jarmo Pertman @jarmo)
  317. * When an example raises an error and an after or around hook does as
  318. well, print out the hook error. Previously, the error was silenced and
  319. the user got no feedback about what happened. (Myron Marston)
  320. * `--require` and `-I` are merged among different configuration sources (Andy
  321. Lindeman)
  322. * Delegate to mocha methods instead of aliasing them in mocha adapter.
  323. ### 2.10.1 / 2012-05-19
  324. [full changelog](http://github.com/rspec/rspec-core/compare/v2.10.0...v2.10.1)
  325. Bug fixes
  326. * `RSpec.reset` properly reinits configuration and world
  327. * Call `to_s` before `split` on exception messages that might not always be
  328. Strings (slyphon)
  329. ### 2.10.0 / 2012-05-03
  330. [full changelog](http://github.com/rspec/rspec-core/compare/v2.9.0...v2.10.0)
  331. Enhancements
  332. * Add `prepend_before` and `append_after` hooks (preethiramdev)
  333. * intended for extension libs
  334. * restores rspec-1 behavior
  335. * Reporting of profiled examples (moro)
  336. * Report the total amount of time taken for the top slowest examples.
  337. * Report what percentage the slowest examples took from the total runtime.
  338. Bug fixes
  339. * Properly parse `SPEC_OPTS` options.
  340. * `example.description` returns the location of the example if there is no
  341. explicit description or matcher-generated description.
  342. * RDoc fixes (Grzegorz Świrski)
  343. * Do not modify example ancestry when dumping errors (Michael Grosser)
  344. ### 2.9.0 / 2012-03-17
  345. [full changelog](http://github.com/rspec/rspec-core/compare/v2.8.0...v2.9.0)
  346. Enhancements
  347. * Support for "X minutes X seconds" spec run duration in formatter. (uzzz)
  348. * Strip whitespace from group and example names in doc formatter.
  349. * Removed spork-0.9 shim. If you're using spork-0.8.x, you'll need to upgrade
  350. to 0.9.0.
  351. Bug fixes
  352. * Restore `--full_backtrace` option
  353. * Ensure that values passed to `config.filter_run` are respected when running
  354. over DRb (using spork).
  355. * Ensure shared example groups are reset after a run (as example groups are).
  356. * Remove `rescue false` from calls to filters represented as Procs
  357. * Ensure `described_class` gets the closest constant (pyromaniac)
  358. * In "autorun", don't run the specs in the `at_exit` hook if there was an
  359. exception (most likely due to a SyntaxError). (sunaku)
  360. * Don't extend groups with modules already used to extend ancestor groups.
  361. * `its` correctly memoizes nil or false values (Yamada Masaki)
  362. ### 2.8.0 / 2012-01-04
  363. [full changelog](http://github.com/rspec/rspec-core/compare/v2.8.0.rc2...v2.8.0)
  364. Bug fixes
  365. * For metadata filtering, restore passing the entire array to the proc, rather
  366. than each item in the array (weidenfreak)
  367. * Ensure each spec file is loaded only once
  368. * Fixes a bug that caused all the examples in a file to be run when
  369. referenced twice with line numbers in a command, e.g.
  370. * `rspec path/to/file:37 path/to/file:42`
  371. ### 2.8.0.rc2 / 2011-12-19
  372. [full changelog](http://github.com/rspec/rspec-core/compare/v2.8.0.rc1...v2.8.0.rc2)
  373. Enhancments
  374. * new `--init` command (Peter Schröder)
  375. * generates `spec/spec_helper.rb`
  376. * deletes obsolete files (on confirmation)
  377. * merged with and deprecates `--configure` command, which generated
  378. `.rspec`
  379. * use `require_relative` when available (Ian Leitch)
  380. * `include_context` and `include_examples` accept params (Calvin Bascom)
  381. * print the time for every example in the html formatter (Richie Vos)
  382. * several tasty refactoring niblets (Sasha)
  383. * `it "does something", :x => [:foo,'bar',/baz/] (Ivan Neverov)
  384. * supports matching n command line tag values with an example or group
  385. ### 2.8.0.rc1 / 2011-11-06
  386. [full changelog](http://github.com/rspec/rspec-core/compare/v2.7.1...v2.8.0.rc1)
  387. Enhancements
  388. * `--order` (Justin Ko)
  389. * run examples in random order: `--order rand`
  390. * specify the seed: `--order rand:123`
  391. * `--seed SEED`
  392. * equivalent of `--order rand:SEED`
  393. * SharedContext supports `let` (David Chelimsky)
  394. * Filter improvements (David Chelimsky)
  395. * override opposing tags from the command line
  396. * override RSpec.configure tags from the command line
  397. * `--line_number 37` overrides all other filters
  398. * `path/to/file.rb:37` overrides all other filters
  399. * refactor: consolidate filter management in a FilterManger object
  400. * Eliminate Ruby warnings (Matijs van Zuijlen)
  401. * Make reporter.report an API (David Chelimsky)
  402. * supports extension tools like interative_rspec
  403. Changes
  404. * change `config.color_enabled` (getter/setter/predicate) to `color` to align
  405. with `--[no]-color` CLI option.
  406. * `color_enabled` is still supported for now, but will likley be deprecated
  407. in a 2.x release so we can remove it in 3.0.
  408. Bug fixes
  409. * Make sure the `bar` in `--tag foo:bar` makes it to DRb (Aaron Gibralter)
  410. * Fix bug where full descriptions of groups nested 3 deep were repeated.
  411. * Restore report of time to run to start after files are loaded.
  412. * fixes bug where run times were cumalitive in spork
  413. * fixes compatibility with time-series metrics
  414. * Don't error out when `config.mock_with` or `expect_with` is re-specifying the
  415. current config (Myron Marston)
  416. * Deprecations
  417. * :alias option on `configuration.add_setting`. Use `:alias_with` on the
  418. original setting declaration instead.
  419. ### 2.7.1 / 2011-10-20
  420. [full changelog](http://github.com/rspec/rspec-core/compare/v2.7.0...v2.7.1)
  421. Bug fixes
  422. * tell autotest the correct place to find the rspec executable
  423. ### 2.7.0 / 2011-10-16
  424. [full changelog](http://github.com/rspec/rspec-core/compare/v2.6.4...v2.7.0)
  425. NOTE: RSpec's release policy dictates that there should not be any backward
  426. incompatible changes in minor releases, but we're making an exception to
  427. release a change to how RSpec interacts with other command line tools.
  428. As of 2.7.0, you must explicity `require "rspec/autorun"` unless you use the
  429. `rspec` command (which already does this for you).
  430. Enhancements
  431. * Add `example.exception` (David Chelimsky)
  432. * `--default_path` command line option (Justin Ko)
  433. * support multiple `--line_number` options (David J. Hamilton)
  434. * also supports `path/to/file.rb:5:9` (runs examples on lines 5 and 9)
  435. * Allow classes/modules to be used as shared example group identifiers (Arthur
  436. Gunn)
  437. * Friendly error message when shared context cannot be found (Sławosz
  438. Sławiński)
  439. * Clear formatters when resetting config (John Bintz)
  440. * Add `xspecify` and xexample as temp-pending methods (David Chelimsky)
  441. * Add `--no-drb` option (Iain Hecker)
  442. * Provide more accurate run time by registering start time before code is
  443. loaded (David Chelimsky)
  444. * reverted in 2.8.0
  445. * Rake task default pattern finds specs in symlinked dirs (Kelly Felkins)
  446. * Rake task no longer does anything to invoke bundler since Bundler already
  447. handles it for us. Thanks to Andre Arko for the tip.
  448. * Add `--failure-exit-code` option (Chris Griego)
  449. Bug fixes
  450. * Include `Rake::DSL` to remove deprecation warnings in Rake > 0.8.7 (Pivotal
  451. Casebook)
  452. * Only eval `let` block once even if it returns `nil` (Adam Meehan)
  453. * Fix `--pattern` option (wasn't being recognized) (David Chelimsky)
  454. * Only implicitly `require "rspec/autorun"` with the `rspec` command (David
  455. Chelimsky)
  456. * Ensure that rspec's `at_exit` defines the exit code (Daniel Doubrovkine)
  457. * Show the correct snippet in the HTML and TextMate formatters (Brian Faherty)
  458. ### 2.6.4 / 2011-06-06
  459. [full changelog](http://github.com/rspec/rspec-core/compare/v2.6.3...v2.6.4)
  460. NOTE: RSpec's release policy dictates that there should not be new
  461. functionality in patch releases, but this minor enhancement slipped in by
  462. accident. As it doesn't add a new API, we decided to leave it in rather than
  463. roll back this release.
  464. Enhancements
  465. * Add summary of commands to run individual failed examples.
  466. Bug fixes
  467. * Support exclusion filters in DRb. (Yann Lugrin)
  468. * Fix --example escaping when run over DRb. (Elliot Winkler)
  469. * Use standard ANSI codes for color formatting so colors work in a wider set of
  470. color schemes.
  471. ### 2.6.3 / 2011-05-24
  472. [full changelog](http://github.com/rspec/rspec-core/compare/v2.6.2...v2.6.3)
  473. Bug fixes
  474. * Explicitly convert exit code to integer, avoiding TypeError when return
  475. value of run is IO object proxied by `DRb::DRbObject` (Julian Scheid)
  476. * Clarify behavior of `--example` command line option
  477. * Build using a rubygems-1.6.2 to avoid downstream yaml parsing error
  478. ### 2.6.2 / 2011-05-21
  479. [full changelog](http://github.com/rspec/rspec-core/compare/v2.6.1...v2.6.2)
  480. Bug fixes
  481. * Warn rather than raise when HOME env var is not defined
  482. * Properly merge command-line exclusions with default :if and :unless (joshcooper)
  483. ### 2.6.1 / 2011-05-19
  484. [full changelog](http://github.com/rspec/rspec-core/compare/v2.6.0...v2.6.1)
  485. Bug fixes
  486. * Don't extend nil when filters are nil
  487. * `require 'rspec/autorun'` when running rcov.
  488. ### 2.6.0 / 2011-05-12
  489. [full changelog](http://github.com/rspec/rspec-core/compare/v2.5.1...v2.6.0)
  490. Enhancements
  491. * `shared_context` (Damian Nurzynski)
  492. * extend groups matching specific metadata with:
  493. * method definitions
  494. * subject declarations
  495. * let/let! declarations
  496. * etc (anything you can do in a group)
  497. * `its([:key])` works for any subject with #[]. (Peter Jaros)
  498. * `treat_symbols_as_metadata_keys_with_true_values` (Myron Marston)
  499. * Print a deprecation warning when you configure RSpec after defining an
  500. example. All configuration should happen before any examples are defined.
  501. (Myron Marston)
  502. * Pass the exit status of a DRb run to the invoking process. This causes specs
  503. run via DRb to not just return true or false. (Ilkka Laukkanen)
  504. * Refactoring of `ConfigurationOptions#parse_options` (Rodrigo Rosenfeld Rosas)
  505. * Report excluded filters in runner output (tip from andyl)
  506. * Clean up messages for filters/tags.
  507. * Restore --pattern/-P command line option from rspec-1
  508. * Support false as well as true in config.full_backtrace= (Andreas Tolf
  509. Tolfsen)
  510. Bug fixes
  511. * Don't stumble over an exception without a message (Hans Hasselberg)
  512. * Remove non-ascii characters from comments that were choking rcov (Geoffrey
  513. Byers)
  514. * Fixed backtrace so it doesn't include lines from before the autorun at_exit
  515. hook (Myron Marston)
  516. * Include RSpec::Matchers when first example group is defined, rather than just
  517. before running the examples. This works around an obscure bug in ruby 1.9
  518. that can cause infinite recursion. (Myron Marston)
  519. * Don't send `example_group_[started|finished]` to formatters for empty groups.
  520. * Get specs passing on jruby (Sidu Ponnappa)
  521. * Fix bug where mixing nested groups and outer-level examples gave
  522. unpredictable :line_number behavior (Artur Małecki)
  523. * Regexp.escape the argument to --example (tip from Elliot Winkler)
  524. * Correctly pass/fail pending block with message expectations
  525. * CommandLine returns exit status (0/1) instead of true/false
  526. * Create path to formatter output file if it doesn't exist (marekj).
  527. ### 2.5.1 / 2011-02-06
  528. [full changelog](http://github.com/rspec/rspec-core/compare/v2.5.0...v2.5.1)
  529. NOTE: this release breaks compatibility with rspec/autotest/bundler
  530. integration, but does so in order to greatly simplify it.
  531. With this release, if you want the generated autotest command to include
  532. 'bundle exec', require Autotest's bundler plugin in a .autotest file in the
  533. project's root directory or in your home directory:
  534. require "autotest/bundler"
  535. Now you can just type 'autotest' on the commmand line and it will work as you expect.
  536. If you don't want 'bundle exec', there is nothing you have to do.
  537. ### 2.5.0 / 2011-02-05
  538. [full changelog](http://github.com/rspec/rspec-core/compare/v2.4.0...v2.5.0)
  539. Enhancements
  540. * Autotest::Rspec2 parses command line args passed to autotest after '--'
  541. * --skip-bundler option for autotest command
  542. * Autotest regexp fixes (Jon Rowe)
  543. * Add filters to html and textmate formatters (Daniel Quimper)
  544. * Explicit passing of block (need for JRuby 1.6) (John Firebaugh)
  545. Bug fixes
  546. * fix dom IDs in HTML formatter (Brian Faherty)
  547. * fix bug with --drb + formatters when not running in drb
  548. * include --tag options in drb args (monocle)
  549. * fix regression so now SPEC_OPTS take precedence over CLI options again (Roman
  550. Chernyatchik)
  551. * only call its(:attribute) once (failing example from Brian Dunn)
  552. * fix bizarre bug where rspec would hang after String.alias :to_int :to_i
  553. (Damian Nurzynski)
  554. Deprecations
  555. * implicit inclusion of 'bundle exec' when Gemfile present (use autotest's
  556. bundler plugin instead)
  557. ### 2.4.0 / 2011-01-02
  558. [full changelog](http://github.com/rspec/rspec-core/compare/v2.3.1...v2.4.0)
  559. Enhancements
  560. * start the debugger on -d so the stack trace is visible when it stops
  561. (Clifford Heath)
  562. * apply hook filtering to examples as well as groups (Myron Marston)
  563. * support multiple formatters, each with their own output
  564. * show exception classes in failure messages unless they come from RSpec
  565. matchers or message expectations
  566. * before(:all) { pending } sets all examples to pending
  567. Bug fixes
  568. * fix bug due to change in behavior of reject in Ruby 1.9.3-dev (Shota
  569. Fukumori)
  570. * fix bug when running in jruby: be explicit about passing block to super (John
  571. Firebaugh)
  572. * rake task doesn't choke on paths with quotes (Janmejay Singh)
  573. * restore --options option from rspec-1
  574. * require 'ostruct' to fix bug with its([key]) (Kim Burgestrand)
  575. * --configure option generates .rspec file instead of autotest/discover.rb
  576. ### 2.3.1 / 2010-12-16
  577. [full changelog](http://github.com/rspec/rspec-core/compare/v2.3.0...v2.3.1)
  578. Bug fixes
  579. * send debugger warning message to $stdout if RSpec.configuration.error_stream
  580. has not been defined yet.
  581. * HTML Formatter _finally_ properly displays nested groups (Jarmo Pertman)
  582. * eliminate some warnings when running RSpec's own suite (Jarmo Pertman)
  583. ### 2.3.0 / 2010-12-12
  584. [full changelog](http://github.com/rspec/rspec-core/compare/v2.2.1...v2.3.0)
  585. Enhancements
  586. * tell autotest to use "rspec2" if it sees a .rspec file in the project's root
  587. directory
  588. * replaces the need for ./autotest/discover.rb, which will not work with
  589. all versions of ZenTest and/or autotest
  590. * config.expect_with
  591. * :rspec # => rspec/expectations
  592. * :stdlib # => test/unit/assertions
  593. * :rspec, :stdlib # => both
  594. Bug fixes
  595. * fix dev Gemfile to work on non-mac-os machines (Lake Denman)
  596. * ensure explicit subject is only eval'd once (Laszlo Bacsi)
  597. ### 2.2.1 / 2010-11-28
  598. [full changelog](http://github.com/rspec/rspec-core/compare/v2.2.0...v2.2.1)
  599. Bug fixes
  600. * alias_method instead of override Kernel#method_missing (John Wilger)
  601. * changed --autotest to --tty in generated command (MIKAMI Yoshiyuki)
  602. * revert change to debugger (had introduced conflict with Rails)
  603. * also restored --debugger/-debug option
  604. ### 2.2.0 / 2010-11-28
  605. [full changelog](http://github.com/rspec/rspec-core/compare/v2.1.0...v2.2.0)
  606. Deprecations/changes
  607. * --debug/-d on command line is deprecated and now has no effect
  608. * win32console is now ignored; Windows users must use ANSICON for color support
  609. (Bosko Ivanisevic)
  610. Enhancements
  611. * When developing locally rspec-core now works with the rspec-dev setup or your
  612. local gems
  613. * Raise exception with helpful message when rspec-1 is loaded alongside rspec-2
  614. (Justin Ko)
  615. * debugger statements _just work_ as long as ruby-debug is installed
  616. * otherwise you get warned, but not fired
  617. * Expose example.metadata in around hooks
  618. * Performance improvments (much faster now)
  619. Bug fixes
  620. * Make sure --fail-fast makes it across drb
  621. * Pass -Ilib:spec to rcov
  622. ### 2.1.0 / 2010-11-07
  623. [full changelog](http://github.com/rspec/rspec-core/compare/v2.0.1...v2.1.0)
  624. Enhancments
  625. * Add skip_bundler option to rake task to tell rake task to ignore the presence
  626. of a Gemfile (jfelchner)
  627. * Add gemfile option to rake task to tell rake task what Gemfile to look for
  628. (defaults to 'Gemfile')
  629. * Allow passing caller trace into Metadata to support extensions (Glenn
  630. Vanderburg)
  631. * Add deprecation warning for Spec::Runner.configure to aid upgrade from
  632. RSpec-1
  633. * Add deprecated Spec::Rake::SpecTask to aid upgrade from RSpec-1
  634. * Add 'autospec' command with helpful message to aid upgrade from RSpec-1
  635. * Add support for filtering with tags on CLI (Lailson Bandeira)
  636. * Add a helpful message about RUBYOPT when require fails in bin/rspec (slyphon)
  637. * Add "-Ilib" to the default rcov options (Tianyi Cui)
  638. * Make the expectation framework configurable (default rspec, of course)
  639. (Justin Ko)
  640. * Add 'pending' to be conditional (Myron Marston)
  641. * Add explicit support for :if and :unless as metadata keys for conditional run
  642. of examples (Myron Marston)
  643. * Add --fail-fast command line option (Jeff Kreeftmeijer)
  644. Bug fixes
  645. * Eliminate stack overflow with "subject { self }"
  646. * Require 'rspec/core' in the Raketask (ensures it required when running rcov)
  647. ### 2.0.1 / 2010-10-18
  648. [full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0...v2.0.1)
  649. Bug fixes
  650. * Restore color when using spork + autotest
  651. * Pending examples without docstrings render the correct message (Josep M.
  652. Bach)
  653. * Fixed bug where a failure in a spec file ending in anything but _spec.rb
  654. would fail in a confusing way.
  655. * Support backtrace lines from erb templates in html formatter (Alex Crichton)
  656. ### 2.0.0 / 2010-10-10
  657. [full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.rc...v2.0.0)
  658. RSpec-1 compatibility
  659. * Rake task uses ENV["SPEC"] as file list if present
  660. Bug fixes
  661. * Bug Fix: optparse --out foo.txt (Leonardo Bessa)
  662. * Suppress color codes for non-tty output (except autotest)
  663. ### 2.0.0.rc / 2010-10-05
  664. [full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.22...v2.0.0.rc)
  665. Enhancements
  666. * implicitly require unknown formatters so you don't have to require the file
  667. explicitly on the commmand line (Michael Grosser)
  668. * add --out/-o option to assign output target
  669. * added fail_fast configuration option to abort on first failure
  670. * support a Hash subject (its([:key]) { should == value }) (Josep M. Bach)
  671. Bug fixes
  672. * Explicitly require rspec version to fix broken rdoc task (Hans de Graaff)
  673. * Ignore backtrace lines that come from other languages, like Java or
  674. Javascript (Charles Lowell)
  675. * Rake task now does what is expected when setting (or not setting)
  676. fail_on_error and verbose
  677. * Fix bug in which before/after(:all) hooks were running on excluded nested
  678. groups (Myron Marston)
  679. * Fix before(:all) error handling so that it fails examples in nested groups,
  680. too (Myron Marston)
  681. ### 2.0.0.beta.22 / 2010-09-12
  682. [full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.20...v2.0.0.beta.22)
  683. Enhancements
  684. * removed at_exit hook
  685. * CTRL-C stops the run (almost) immediately
  686. * first it cleans things up by running the appropriate after(:all) and
  687. after(:suite) hooks
  688. * then it reports on any examples that have already run
  689. * cleaned up rake task
  690. * generate correct task under variety of conditions
  691. * options are more consistent
  692. * deprecated redundant options
  693. * run 'bundle exec autotest' when Gemfile is present
  694. * support ERB in .rspec options files (Justin Ko)
  695. * depend on bundler for development tasks (Myron Marston)
  696. * add example_group_finished to formatters and reporter (Roman Chernyatchik)
  697. Bug fixes
  698. * support paths with spaces when using autotest (Andreas Neuhaus)
  699. * fix module_exec with ruby 1.8.6 (Myron Marston)
  700. * remove context method from top-level
  701. * was conflicting with irb, for example
  702. * errors in before(:all) are now reported correctly (Chad Humphries)
  703. Removals
  704. * removed -o --options-file command line option
  705. * use ./.rspec and ~/.rspec