rspec-support/Changelog.md
Breaking Changes:
RSpec::Support::ObjectFormatter::BigDecimalInspector. (Jon Rowe, rspec/rspec#254)RSpec::Support::RubyFeatures.supports_taint? check. (Jon Rowe, rspec/rspec#255)RSpec::Support::RubyFeatures.kw_arg_separation? check. (Jon Rowe, rspec/rspec#256)RSpec::Support::RubyFeatures.distincts_kw_args_from_positional_hash? check. (Jon Rowe, rspec/rspec#257)Enhancements
anything matchers by hiding the value "anything" is matched
against. (Karl Heitmann, rspec/rspec-mocks#599)Bug Fixes:
RSpec::Support::Ruby.rbx? and
RSpec::Support::Ruby.truffleruby? (Phil Pirozhkov, rspec/rspec-support#486)Bug Fixes:
Bug Fixes:
RSpec::Support::HunkGenerator to autoload rather than manual require, avoids
a load order issue. (Jon Rowe, rspec/rspec#249)Bug Fixes:
RSpec::Support::MethodSignature where positional argument arity confused
a check for keyword arguments, meaning a hash would be wrongly detected as keyword arguments
when it should have been a positional argument. (Malcolm O'Hare, rspec/rspec#121)Bug Fixes:
Bug Fixes:
No changes. Released during the monorepo migration to test release processes, but accidentally contained no changes.
Bug Fixes:
RSpec::Support::CallerFilter#first_non_rspec_line.
(Jon Rowe, rspec/rspec-support#593)Enchancements
RubyFeatures#supports_syntax_suggest?. (Jon Rowe, rspec/rspec-support#571)Bug Fixes:
Bug Fixes:
in_sub_process. (Jon Rowe, rspec/rspec-support#575)Bug Fixes:
RSpec::Support.thread_local_data to be Thread local but not Fiber local.
(Jon Rowe, rspec/rspec-support#581)Full Changelog Enhancements:
RSpec::Support::RubyFeatures.distincts_kw_args_from_positional_hash?
(Jean byroot Boussier, rspec/rspec-support#535)Bug Fixes:
No changes. Released to support other RSpec releases.
Bug Fixes:
Mutex#owned? to allow RSpec::Support::ReentrantMutex to work in
nested Fibers on Ruby 3.0 and later. (Benoit Daloze, rspec/rspec-support#503, rspec/rspec-support#504)end-less methods in RSpec::Support::Source::Token
so that RSpec won't hang when an end-less method raises an error. (Yuji Nakayama, rspec/rspec-support#505)Bug Fixes:
RSpec::Support.define_optimized_require_for_rspec on JRuby
9.1.17.0 (Jon Rowe, rspec/rspec-support#492)Bug Fixes:
No changes. Released to support other RSpec releases.
Bug Fixes:
File.read from breaking source extraction.
(Jon Rowe, rspec/rspec-support#431)Bug Fixes:
Mutex.new for our RSpec::Support:Mutex in order to
allow stubbing Mutex.new. (Jon Rowe, rspec/rspec-support#411)Bug Fixes:
Bug Fixes:
NO CHANGES
Version 3.9.0 was released to allow other RSpec gems to release 3.9.0.
Bug Fixes:
Bug Fixes:
Bug Fixes:
SimpleDelegator based object works regardless of
visibility of the __getobj__ method. (Jon Rowe, rspec/rspec-support#369)Bug Fixes:
Bug Fixes:
SystemStackError
when processing deeply nested example groups. (Craig Bass, rspec/rspec-support#343)Enhancements:
--enable-frozen-string-literal option
on Ruby 2.3+. (Pat Allan, rspec/rspec-support#320)Support.class_of for extracting class of any object.
(Yuji Nakayama, rspec/rspec-support#325)Bug Fixes:
#to_str. (Myron Marston, rspec/rspec-support#317)Enhancements:
Source classes from rspec-core. (Yuji Nakayama, rspec/rspec-support#315)No user-facing changes.
Bug Fixes:
No user facing changes since beta4
Enhancements:
MethodSignature to better support keyword arguments. (rspec/rspec-support#250, Rob Smith).Bug Fixes:
EncodedString to properly handle the behavior of String#split
on JRuby when the string contains invalid bytes. (Jon Rowe, rspec/rspec-support#268)ObjectFormatter so that formatting objects that don't respond to
#inspect (such as BasicObject) does not cause NoMethodError.
(Yuji Nakayama, rspec/rspec-support#269)ObjectFormatter so that formatting recursive array or hash does not
cause SystemStackError. (Yuji Nakayama, rspec/rspec-support#270, rspec/rspec-support#272)No user-facing changes.
Enhancements:
Bug Fixes:
RSpec::Support::RubyFeature.ripper_supported? so it returns
false on Rubinius since the Rubinius team has no plans to support
it. This prevents rspec-core from trying to load and use ripper to
extract failure snippets. (Aaron Stone, rspec/rspec-support#251)Changes:
VersionChecker in favor of ComparableVersion. (Yuji Nakayama, rspec/rspec-support#266)Enhancements:
Delegator based objects (e.g. SimpleDelegator) in
failure messages and diffs. (Andrew Horner, rspec/rspec-support#215)ComparableVersion. (Yuji Nakayama, rspec/rspec-support#245)Ripper support detection. (Yuji Nakayama, rspec/rspec-support#245)Bug Fixes:
attr_writer methods
have no parameters, causing RSpec's verifying doubles to wrongly
fail when mocking or stubbing a writer method on JRuby. (Myron Marston, rspec/rspec-support#225)Enhancements:
Bug Fixes:
FuzzyMatcher so that it checks expected == actual rather than
actual == expected, which avoids errors in situations where the
actual object's == is improperly implemented to assume that only
objects of the same type will be given. This allows rspec-mocks'
anything to match against objects with buggy == definitions.
(Myron Marston, rspec/rspec-support#193)Bug Fixes:
EncodedString#split when encountering an
invalid byte string. (Benjamin Fleischer, rspec/rspec-support#1760)Bug Fixes:
RSpec::CallerFilter to work on Rubinius 2.2.
(Myron Marston, rspec/rspec-support#169)Enhancements:
Bug Fixes:
[] and {} to match when performing fuzzy matching.
(Myron Marston, rspec/rspec-support#157)Bug Fixes:
NoMethodError on 1.8.7 when
verifying against an RSpec matcher. (Myron Marston, rspec/rspec-support#116)Bug Fixes:
RSpec::Support::DirectoryMaker (used by rspec --init and
rails generate rspec:install) so that it detects absolute paths
on Windows properly. (Scott Archer, rspec/rspec-support#107, rspec/rspec-support#108, rspec/rspec-support#109) (Jon Rowe, rspec/rspec-support#110)Bug Fixes:
FuzzyMatcher so that it does not wrongly match a struct against
an array. (Myron Marston, rspec/rspec-support#97)#flatten methods from causing the differ
to hang. (Jon Rowe, rspec/rspec-support#101)Bug Fixes:
FuzzyMatcher so that it does not silence ArgumentError raised
from broken implementations of ==. (Myron Marston, rspec/rspec-support#94)Bug Fixes:
Support#method_handle_for where proxy objects
with method delegated would wrongly not return a method handle.
(Jon Rowe, rspec/rspec-support#90)rspec/support/warnings.rb so it can be loaded and used in
isolation. (Myron Marston, rspec/rspec-support#93)BlockSignature change from 3.0.1 because of a ruby bug that
caused it to change the block's behavior (https://bugs.ruby-lang.org/issues/9967).
(Myron Marston, rspec-mocksrspec/rspec-support#721)BlockSignature so that it correctly differentiates between
required and optional block args. (Myron Marston, rspec-mocksrspec/rspec-support#714)Bug Fixes:
RSpec.warn_with. (Jon Rowe)Initial release.