Releases: clarkedb/grift
v2.2.0
v2.1.0
This release adds long-awaited support for definite, finite, self-terminating mocks with new methods added to the Grift API like mock_implementation_once
. ✨
What's Changed
- chore: add ruby 3.2 to ci workflow by @clarkedb in #126
- docs: remove broken download count badge from README by @clarkedb in #127
- feat: add finite return value mocking by @clarkedb in #135
- feat: add finite implementation mocking by @clarkedb in #136
Full Changelog: v2.0.1...v2.1.0
v2.0.1
This release fixes a couple bugs related to blocks including blocks not being passed on when spying on a method.
What's Changed
- docs: fix README code block end by @clarkedb in #74
- fix: raise error when mock_implementation receives no block by @clarkedb in #77
- fix: forward block when spying by @clarkedb in #78
- prep v2.0.1 release by @clarkedb in #79
Full Changelog: v2.0.0...v2.0.1
v2.0.0
Mocking methods with keyword parameters on Ruby 3.x is now full supported.
Breaking
To support keyword arguments, records of call arguments are no longer stored in simple arrays but in a custom Enumerable. This changes the way that your tests will interact with mock calls:
- When before
calls
returned an array, it returns aGrift::MockMethod::MockExecutions::MockArguments
object - Migrating to maintain previous behavior just requires appending
.args
tocalls[i]
Note: This version drops support for Ruby 2.5 and 2.6 in keeping with Ruby version maintenance
What's Changed
- feat: add rubocop pre-commit hook by @clarkedb in #56
- build(deps-dev): bump rubocop-minitest from 0.17.1 to 0.17.2 by @dependabot in #57
- ops: add codecov upload to ci by @clarkedb in #58
- Add overcommit in dev and codecov in CI by @clarkedb in #59
- fix: rubocop not using extensions by @clarkedb in #62
- build(deps-dev): bump rubocop-performance from 1.13.2 to 1.13.3 by @dependabot in #63
- feat: support mocking private methods by @clarkedb in #68
- fix: keep ancestor definition on inherited method unmock by @clarkedb in #69
- build(deps-dev): bump rubocop from 1.25.1 to 1.26.0 by @dependabot in #71
- build(deps-dev): bump rubocop-minitest from 0.17.2 to 0.18.0 by @dependabot in #70
- fix: cannot watch methods with kwargs in ruby 3 by @clarkedb in #72
- prep v2.0.0 release by @clarkedb in #73
Full Changelog: v1.1.0...v2.0.0
v1.1.0
Now with support for Ruby 3.1! ✨
What's Changed
- build(deps-dev): bump rubocop-minitest from 0.15.2 to 0.16.0 by @dependabot in #36
- build(deps-dev): bump rubocop-minitest from 0.16.0 to 0.17.0 by @dependabot in #38
- build(deps-dev): bump minitest from 5.14.4 to 5.15.0 by @dependabot in #39
- build(deps-dev): bump rubocop-performance from 1.12.0 to 1.13.0 by @dependabot in #40
- build(deps-dev): bump rubocop from 1.22.3 to 1.24.0 by @dependabot in #41
- build(deps-dev): bump rubocop from 1.24.0 to 1.24.1 by @dependabot in #43
- build(deps-dev): bump rubocop-performance from 1.13.0 to 1.13.1 by @dependabot in #42
- build(deps-dev): bump rubocop-performance from 1.13.1 to 1.13.2 by @dependabot in #45
- build(deps-dev): bump minitest-reporters from 1.4.3 to 1.5.0 by @dependabot in #44
- build(deps-dev): bump rubocop-minitest from 0.17.0 to 0.17.1 by @dependabot in #47
- build(deps-dev): bump rubocop from 1.24.1 to 1.25.1 by @clarkedb in #50
- feat: use SpecReporter in test run by @clarkedb in #51
- feat: add support for ruby 3.1 by @clarkedb in #52
- prep v1.1.0 release by @clarkedb in #53
- v1.1.0 by @clarkedb in #54
Full Changelog: v1.0.2...v1.1.0
v1.0.2
v1.0.1
Fixes a major bug 🐛 that prevented most mocking from being feasible.
What's Changed
- build(deps-dev): bump rubocop-performance from 1.11.5 to 1.12.0 by @dependabot in #26
- build(deps): bump rake from 12.3.3 to 13.0.6 by @dependabot in #27
- fix: config yaml paths by @clarkedb in #28
- release: prep v1.0.1 by @clarkedb in #29
- v1.0.1 by @clarkedb in #30
New Contributors
- @dependabot made their first contribution in #26
Full Changelog: v1.0.0...v1.0.1
First Major Version (v1.0.0)
This is the first major version! 🥳
Check out the README for usage instructions and a link to the docs. 📚
What's Changed
- v0.1.0 by @clarkedb in #1
- feat: add basic spy / mock by @clarkedb in #9
- ops: add CI for tests by @clarkedb in #12
- feat: add mock implementation by @clarkedb in #13
- feat: unmock on minitest hooks by @clarkedb in #17
- feat: restrict methods and duplicate mocks by @clarkedb in #20
- ops: add dependabot by @clarkedb in #21
- ops: rubocop layout / style / naming / lint by @clarkedb in #22
- docs: add initial yard docs by @clarkedb in #23
- release: v1.0.0 prep by @clarkedb in #24
- v1.0.0 by @clarkedb in #25
New Contributors
Full Changelog: https://github.com/clarkedb/grift/commits/v1.0.0
First Release (v0.1.0)
The initial Gem framework for Grift. This Gem is not yet functional.
Available on RubyGems.org