Skip to content

Releases: clarkedb/grift

v2.2.0

13 Jan 06:07
dbff7d8
Compare
Choose a tag to compare

This release adds official support for the recently released ruby 3.3.x!

Also please note that you can now become a sponsor of grift through GitHub.

What's Changed

Full Changelog: v2.1.0...v2.2.0

v2.1.0

27 Dec 19:28
5242d64
Compare
Choose a tag to compare

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

Full Changelog: v2.0.1...v2.1.0

v2.0.1

27 Mar 20:42
35212b8
Compare
Choose a tag to compare

This release fixes a couple bugs related to blocks including blocks not being passed on when spying on a method.

What's Changed

Full Changelog: v2.0.0...v2.0.1

v2.0.0

15 Mar 03:52
7ee1cc8
Compare
Choose a tag to compare

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 a Grift::MockMethod::MockExecutions::MockArguments object
  • Migrating to maintain previous behavior just requires appending .args to calls[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

04 Feb 03:51
7d24acd
Compare
Choose a tag to compare

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

11 Nov 15:45
3597237
Compare
Choose a tag to compare

Fixes a minor bug 🐛 that prevented mocking inherited methods like constructors.

What's Changed

Full Changelog: v1.0.1...v1.0.2

v1.0.1

11 Nov 03:13
dd455b5
Compare
Choose a tag to compare

Fixes a major bug 🐛 that prevented most mocking from being feasible.

What's Changed

New Contributors

Full Changelog: v1.0.0...v1.0.1

First Major Version (v1.0.0)

06 Nov 23:22
2afc542
Compare
Choose a tag to compare

This is the first major version! 🥳

Check out the README for usage instructions and a link to the docs. 📚

What's Changed

New Contributors

Full Changelog: https://github.com/clarkedb/grift/commits/v1.0.0

First Release (v0.1.0)

12 Oct 13:48
Compare
Choose a tag to compare

The initial Gem framework for Grift. This Gem is not yet functional.

Available on RubyGems.org