* Wed Jan 20 2021 Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.10.1
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.10.0...v3.10.1)
Bug fixes:
* RSpec warning output was missing deprecations from Ruby, these are now included.
(Jon Rowe, #2811)
* Wed Nov 11 2020 Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.10.0
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.9.3...v3.10.0)
Enhancements:
* Memoize `RSpec::Core::Formatters::ExceptionPresenter#exception_lines` to improve performance
with slow exception messages. (Maxime Lapointe, #2743)
* Add configuration for an error exit code (to disambiguate errored builds from failed builds
by exit status). (Dana Sherson, #2749)
* Thu May 07 2020 Stephan Kulow <coolo@suse.com>
- updated to version 3.9.2
see installed Changelog.md
[#]## 3.9.2 / 2020-05-02
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.9.1...v3.9.2)
Bug Fixes:
* Emit a warning when `around` hook is used with `:context` scope
(Phil Pirozhkov, #2687)
* Prevent invalid implementations of `Exception#cause` from being treated as a
valid cause (and causing strange errors) in `RSpec::Core::Formatters::ExceptionPresenter`.
(Jon Rowe, #2703)
* Correctly detect patterns when `rspec_opts` is an array in `RSpec::Core::RakeTask`.
(Marc-André Lafortune, #2704)
* Make `RSpec.clear_examples` reset example counts for example groups. This fixes
an issue with re-running specs not matching ids. (Agis Anastasopoulos, #2723)
* Mon Jan 27 2020 Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.9.1
[#] Bug Fixes:
* Prevent bisect command from blocking when number of specs exceeds
file descriptor limit on OSX or Linux. (Benoit Tigeot, #2669)
* Prevent warnings being issued on Ruby 2.7.0. (Jon Rowe, #2680)
* Tue Nov 12 2019 Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.9.0
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.8.2...v3.9.0)
Enhancements:
* Improve the handling of errors during loading support files, if a file
errors before loading specs, RSpec will now skip loading the specs.
(David Rodríguez, #2568)
* Add support for --example-matches to run examples by regular expression.
(Sam Joseph, Matt Rider, @okothkongo1, #2586)
* Add `did_you_mean` suggestions for file names encountering a `LoadError`
outside of examples. (@obromios, #2601)
* Add a minimalist quick fix style formatter, only outputs failures as
`file:line:message`. (Romain Tartière, #2614)
* Convert string number values to integer when used for `RSpec::Configuration#fail_fast`
(Viktor Fonic, #2634)
* Issue warning when invalid values are used for `RSpec::Configuration#fail_fast`
(Viktor Fonic, #2634)
* Add support for running the Rake task in a clean environment.
(Jon Rowe, #2632)
* Indent messages by there example group / example in the documentation formatter.
(Samuel Williams, #2649)
* Mon Jul 08 2019 Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.8.2
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.8.1...v3.8.2)
Bug Fixes:
* Fix `config.define_derived_metadata` so that cascades are not triggered
until metadata has been assigned to the example or example group
(Myron Marston, #2635).
[#]## 3.8.1 / 2019-06-13
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.8.0...v3.8.1)
Bug Fixes:
* Handle RSpec description(s) with japanese chars in CP932 encoded files.
(Benoit Tigeot, #2575)
* When defining `let` methods that overwrite an existing method, prevent
a warning being issued by removing the old definition. (Jon Rowe, #2593)
* Prevent warning on Ruby 2.6.0-rc1 (Keiji Yoshimi, #2582)
* Fix `config.define_derived_metadata` so that it supports cascades.
(Myron Marston, #2630).
* Sun Aug 05 2018 mschnitzer@suse.com
- updated to version 3.8.0
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.7.1...v3.8.0)
Enhancements:
* Improve shell escaping used by `RSpec::Core::RakeTask` and `--bisect` so
that it works on `Pathname` objects. (Andrew Vit, #2479)
* Nicely format errors encountered while loading files specified
by `--require` option. (Myron Marston, #2504)
* Significantly improve the performance of `--bisect` on platforms that
support forking by replacing the shell-based runner with one that uses
forking so that RSpec and the application environment can be booted only
once, instead of once per spec run. (Myron Marston, #2511)
* Provide a configuration API to pick which bisect runner is used for
`--bisect`. Pick a runner via `config.bisect_runner = :shell` or
`config.bisect_runner = :fork` in a file loaded by a `--require`
option passed at the command line or set in `.rspec`. (Myron Marston, #2511)
* Support the [XDG Base Directory
Specification](https://specifications.freedesktop.org/basedir-spec/latest/)
for the global options file. `~/.rspec` is still supported when no
options file is found in `$XDG_CONFIG_HOME/rspec/options` (Magnus Bergmark, #2538)
* Extract `RSpec.world.prepare_example_filtering` that sets up the
example filtering for custom RSpec runners. (Oleg Pudeyev, #2552)
Bug Fixes:
* Prevent an `ArgumentError` when truncating backtraces with two identical
backtraces. (Systho, #2515, Benoit Tigeot, #2539)
* Tue Jan 09 2018 coolo@suse.com
- updated to version 3.7.1
see installed Changelog.md
* Thu Oct 26 2017 coolo@suse.com
- updated to version 3.7.0
see installed Changelog.md
[#]## Development
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.7.0...master)
[#]## 3.7.0 / 2017-10-17
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0...v3.7.0)
Enhancements:
* Add `-n` alias for `--next-failure`. (Ian Ker-Seymer, #2434)
* Improve compatibility with `--enable-frozen-string-literal` option
on Ruby 2.3+. (Pat Allan, #2425, #2427, #2437)
* Do not run `:context` hooks for example groups that have been skipped.
(Devon Estes, #2442)
* Add `errors_outside_of_examples_count` to the JSON formatter.
(Takeshi Arabiki, #2448)
Bug Fixes:
* Improve compatibility with frozen string literal flag. (#2425, Pat Allan)
* Tue May 23 2017 coolo@suse.com
- updated to version 3.6.0
see installed Changelog.md
[#]## 3.6.0 / 2017-05-04
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0.beta2...v3.6.0)
Enhancements:
* Add seed information to JSON formatter output. (#2388, Mitsutaka Mimura)
* Include example id in the JSON formatter output. (#2369, Xavier Shay)
* Respect changes to `config.output_stream` after formatters have been
setup. (#2401, #2419, Ilya Lavrov)
Bug Fixes:
* Delay formatter loading until the last minute to allow accessing the reporter
without triggering formatter setup. (Jon Rowe, #2243)
* Ensure context hook failures running before an example can access the
reporter. (Jon Jensen, #2387)
* Multiple fixes to allow using the runner multiple times within the same
process: `RSpec.clear_examples` resets the formatter and no longer clears
shared examples, and streams can be used across multiple runs rather than
being closed after the first. (#2368, Xavier Shay)
* Prevent unexpected `example_group_finished` notifications causing an error.
(#2396, VTJamie)
* Fix bugs where `config.when_first_matching_example_defined` hooks would fire
multiple times in some cases. (Yuji Nakayama, #2400)
* Default `last_run_status` to "unknown" when the `status` field in the
persistence file contains an unrecognized value. (#2360, matrinox)
* Prevent `let` from defining an `initialize` method. (#2414, Jon Rowe)
[#]## 3.6.0.beta2 / 2016-12-12
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0.beta1...v3.6.0.beta2)
Enhancements:
* Include count of errors occurring outside examples in default summaries.
(#2351, Jon Rowe)
* Warn when including shared example groups recursively. (#2356, Jon Rowe)
* Improve failure snippet syntax highlighting with CodeRay to highlight
RSpec "keywords" like `expect`. (#2358, Myron Marston)
[#]## 3.6.0.beta1 / 2016-10-09
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.4...v3.6.0.beta1)
Enhancements:
* Warn when duplicate shared examples definitions are loaded due to being
defined in files matching the spec pattern (e.g. `_spec.rb`) (#2278, Devon Estes)
* Improve metadata filtering so that it can match against any object
that implements `===` instead of treating regular expressions as
special. (Myron Marston, #2294)
* Improve `rspec -v` so that it prints out the versions of each part of
RSpec to prevent confusion. (Myron Marston, #2304)
* Add `config.fail_if_no_examples` option which causes RSpec to fail if
no examples are found. (Ewa Czechowska, #2302)
* Nicely format errors encountered while loading spec files.
(Myron Marston, #2323)
* Improve the API for enabling and disabling color output (Josh
Justice, #2321):
* Automatically enable color if the output is a TTY, since color is
nearly always desirable if the output can handle it.
* Introduce new CLI flag to force color on (`--force-color`), even
if the output is not a TTY. `--no-color` continues to work as well.
* Introduce `config.color_mode` for configuring the color from Ruby.
`:automatic` is the default and will produce color if the output is
a TTY. `:on` forces it on and `:off` forces it off.
* Sun Oct 02 2016 coolo@suse.com
- updated to version 3.5.4
see installed Changelog.md
[#]## 3.5.4 / 2016-09-30
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.3...v3.5.4)
Bug Fixes:
* Remove accumulated `ExampleGroup` constants when reseting RSpec,
preventing a memory leak. (TravisSpangle, #2328)
* Sat Sep 03 2016 coolo@suse.com
- updated to version 3.5.3
see installed Changelog.md
[#]## 3.5.3 / 2016-09-02
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.2...v3.5.3)
Bug Fixes:
* When applying shared group metadata to a host group, overwrite
conflicting keys if the value in the host group was inherited from
a parent group instead of being specified at that level.
(Myron Marston, #2307)
* Handle errors in `:suite` hooks and provide the same nicely formatted
output as errors that happen in examples. (Myron Marston, #2316)
* Set the exit status to non-zero when an error occurs in an
`after(:context)` hook. (Myron Marston, #2320)
* Sat Jul 30 2016 coolo@suse.com
- updated to version 3.5.2
see installed Changelog.md
[#]## 3.5.2 / 2016-07-28
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.1...v3.5.2)
Bug Fixes:
* Wait to report `example_finished` until the example's `execution_result`
has been completely filled in. (Myron Marston, #2291)
* Make sure example block is still available when using `duplicate_with`
to clone examples. (bootstraponline, #2298)
* Don't include the default `--pattern` in the Rake task when
`rspec_opts` specifies its own. (Jon Rowe, #2305)
* Fri Jul 08 2016 coolo@suse.com
- updated to version 3.5.1
see installed Changelog.md
[#]## 3.5.1 / 2016-07-06
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0...v3.5.1)
Bug Fixes:
* Ensure that config hooks that are added to existing example groups are
added only once. (Eugene Kenny, #2280)
* Sat Jul 02 2016 coolo@suse.com
- updated to version 3.5.0
see installed Changelog.md
* Thu Mar 10 2016 coolo@suse.com
- updated to version 3.4.4
see installed Changelog.md
* Fri Feb 19 2016 coolo@suse.com
- updated to version 3.4.3
see installed Changelog.md
[#]## Development
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.3...3-4-maintenance)
[#]## 3.4.3 / 2016-02-19
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.2...3.4.3)
Bug Fixes:
* Prevent a `TypeError` from occuring when running via the rake task when
Ruby crashes. (Patrik Wenger, #2161)
* Only consider example and group declaration lines from a specific file
when applying line number filtering, instead of considering all
declaration lines from all spec files. (Myron Marston, #2170)
* Fix failure snippet extraction so that snippets that contain `do-end` style
block and end with `end`-only line can be extracted properly.
(Yuji Nakayama, #2173)
* Wed Jan 27 2016 coolo@suse.com
- updated to version 3.4.2
see installed Changelog.md
[#]## 3.4.2 / 2016-01-26
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.1...v3.4.2)
Bug Fixes:
* Fix `rspec --profile` when an example calls `abort` or `exit`.
(Bradley Schaefer, #2144)
* Fix `--drb` so that when no DRb server is running, it prevents
the DRb connection error from being listed as the cause of all
expectation failures. (Myron Marston, #2156)
* Fix syntax highlighter so that it works when the `coderay` gem is
installed as a rubygem but not already available on your load path
(as happens when you use bundler). (Myron Marston, #2159)
* Mon Nov 23 2015 coolo@suse.com
- updated to version 3.4.1
see installed Changelog.md
[#]## 3.4.1 / 2015-11-18
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.0...v3.4.1)
Bug Fixes:
* Fix backtrace formatter to handle backtraces that are `nil`.
(Myron Marston, #2118)
* Fri Nov 13 2015 coolo@suse.com
- updated to version 3.4.0
see installed Changelog.md
[#]## 3.4.0 / 2015-11-11
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.2...v3.4.0)
Enhancements:
* Combine multiple `--pattern` arguments making them equivalent to
`--pattern=1,2,...,n`. (Jon Rowe, #2002)
* Improve `inspect` and `to_s` output for `RSpec::Core::Example`
objects, replacing Ruby's excessively verbose output. (Gavin Miller, #1922)
* Add `silence_filter_announcements` configuration option.
(David Raffensperger, #2007)
* Add optional `example_finished` notification to the reporter protocol for
when you don't care about the example outcome. (Jon Rowe, #2013)
* Switch `--bisect` to a recursion-based bisection algorithm rather than
a permutation-based one. This better handles cases where an example
depends upon multiple other examples instead of just one and minimizes
the number of runs necessary to determine that an example set cannot be
minimized further. (Simon Coffey, #1997)
* Allow simple filters (e.g. `:symbol` key only) to be triggered by truthey
values. (Tim Mertens, #2035)
* Remove unneeded warning about need for `ansicon` on Windows when using
RSpec's `--color` option. (Ashley Engelund, #2038)
* Add option to configure RSpec to raise errors when issuing warnings.
(Jon Rowe, #2052)
* Append the root `cause` of a failure or error to the printed failure
output when a `cause` is available. (Adam Magan)
* Stop rescuing `NoMemoryError`, `SignalExcepetion`, `Interrupt` and
`SystemExit`. It is dangerous to interfere with these. (Myron Marston, #2063)
* Add `config.project_source_dirs` setting which RSpec uses to determine
if a backtrace line comes from your project source or from some
external library. It defaults to `spec`, `lib` and `app` but can be
configured differently. (Myron Marston, #2088)
* Improve failure line detection so that it looks for the failure line
in any project source directory instead of just in the spec file.
In addition, if no backtrace lines can be found from a project source
file, we fall back to displaying the source of the first backtrace
line. This should virtually eliminate the "Unable to find matching
line from backtrace" messages. (Myron Marston, #2088)
* Add support for `:extra_failure_lines` example metadata that will
be appended to the failure output. (bootstraponline, #2092).
* Add `RSpec::Core::Example#duplicate_with` to produce new examples
with cloned metadata. (bootstraponline, #2098)
* Add `RSpec::Core::Configuration#on_example_group_definition` to register
hooks to be invoked when example groups are created. (bootstraponline, #2094)
* Add `add_example` and `remove_example` to `RSpec::Core::ExampleGroup` to
allow manipulating an example groups examples. (bootstraponline, #2095)
* Display multiline failure source lines in failure output when Ripper is
available (MRI >= 1.9.2, and JRuby >= 1.7.5 && < 9.0.0.0.rc1).
(Yuji Nakayama, #2083)
* Add `max_displayed_failure_line_count` configuration option
(defaults to 10). (Yuji Nakayama, #2083)
* Enhance `fail_fast` option so it can take a number (e.g. `--fail-fast=3`)
to force the run to abort after the specified number of failures.
(Jack Scotti, #2065)
* Syntax highlight the failure snippets in text formatters when `color`
is enabled and the `coderay` gem is installed on a POSIX system.
(Myron Marston, #2109)
Bug Fixes:
* Lock `example_status_persistence_file` when reading from and writing
to it to prevent race conditions when multiple processes try to use
it. (Ben Woosley, #2029)
* Fix regression in 3.3 that caused spec file names with square brackets in
them (such as `1[]_spec.rb`) to not be loaded properly. (Myron Marston, #2041)
* Fix output encoding issue caused by ASCII literal on 1.9.3 (Jon Rowe, #2072)
* Fix requires in `rspec/core/rake_task.rb` to avoid double requires
seen by some users. (Myron Marston, #2101)