- Rubocop offenses resolved
- Sorbet signatures added to
RSpec::Sorbet::Doubles
- Added
RSpec::Sorbet.reset!
to restore handlers to previous state - Added fix to prevent
SystemStackError
by keeping track of when handlers have been configured. (thanks @alex-tan) - Added logic to pass type error onwards to existing inline type error handler.
- Slimmed down Gem RBIs to minimum needed for
srb tc
to pass in development.
- Support
T.nilable(T.class_of(...))
among others (thanks @deecewan)
- Allow specification of a custom validation handler (thanks @bmalinconico)
- Make sorbet a development dependency
- Reduce gem size by excluding RBIs from gem build
- [BUGFIX] Fix processing T.let type mismatch messages when there are digits in module name
- Fixed issues around union types referencing typed enumerables.
- Added support
T.class_of
.
- Non-verifying double support improved.
- Added support for
T.cast
.
- Added support for
T.let
referencingT.nilable
types.
- Added ability to allow any kind of double (Class, Instance, Object).
RSpec::Sorbet.allow_instance_doubles!
has been renamed toRSpec::Sorbet.allow_doubles!
, an alias remains for backwards compatibility for the time being.
- Fix call check when opts contains :message instead of :pretty_message.
- Added support for verifying
T::Enumerable
types.
- Add basic
instance_double
verification to help check the type of an instance double.
- Initial release
- Supports just allowing instance doubles for now