Skip to content

v1.4.0

Compare
Choose a tag to compare
@kylekthompson kylekthompson released this 02 Nov 12:18
· 17 commits to main since this release
67de03a

Permit implementations to splat their parameters if unused

When writing mocks and passing those to an implementation, often the mocking library will define the methods as def foo(*args, **kwargs, &block) such that they can inspect the arguments and assert upon them later. With this change, parameters that are not directly used by the implemented method can be splatted. When calling the implementation through the interface, types of course will still be strictly checked as they are today. This loosens the strictness of Strict::Interface slightly in the regard that the method does not have to be an exact match, but rather must be able to be safely called by the interface instance.

What's Changed

Full Changelog: v1.3.1...v1.4.0