Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

None

## [3.1.0](https://github.com/clarkedb/grift/releases/tag/v3.1.0) - 2026-01-03

### Added

- Official support for Ruby 4.0 ([#274](https://github.com/clarkedb/grift/pull/274))

### Fixed

- Migrate rubocop setup to use plugins ([#275](https://github.com/clarkedb/grift/pull/275))
- Use preferred `method_defined?` for style ([#276](https://github.com/clarkedb/grift/pull/276))

## [3.0.0](https://github.com/clarkedb/grift/releases/tag/v3.0.0) - 2024-12-26

### Breaking
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ my_mock.results

## Requirements

Grift supports all Ruby versions >= 2.7 (including 3.4).
Grift supports all Ruby versions >= 2.7 (including 4.x versions).

### Support

For now Grift is not guaranteed to be compatible with [`Ruby::Box`](https://docs.ruby-lang.org/en/master/Ruby/Box.html) introduced in Ruby 4.0.0. Support will be added/guaranteed if it is determined that `Ruby::Box` will move out of the experimental phase.

## Development

Expand Down
8 changes: 4 additions & 4 deletions docs/Grift.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Module: Grift

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -131,7 +131,7 @@ <h2>

</div>
</dt>
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>3.0.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>3.1.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>

</dl>

Expand Down Expand Up @@ -1477,9 +1477,9 @@ <h4 class="tag_title">Examples:</h4>
</div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/Grift/Config.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Module: Grift::Config

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -215,9 +215,9 @@ <h4 class="tag_title">Examples:</h4>
</div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/Grift/Error.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Exception: Grift::Error

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -125,9 +125,9 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/Grift/MinitestPlugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Module: Grift::MinitestPlugin

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -210,9 +210,9 @@ <h3 class="signature first" id="after_teardown-instance_method">
</div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/Grift/MockMethod.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Class: Grift::MockMethod

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -2795,9 +2795,9 @@ <h3 class="signature " id="to_s-instance_method">
</div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/Grift/MockMethod/MockExecutions.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Class: Grift::MockMethod::MockExecutions

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -762,9 +762,9 @@ <h4 class="tag_title">Examples:</h4>
</div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/Grift/MockMethod/MockExecutions/MockArguments.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Class: Grift::MockMethod::MockExecutions::MockArguments

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -1076,9 +1076,9 @@ <h4 class="tag_title">Examples:</h4>
</div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/Grift/MockStore.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
Class: Grift::MockStore

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -946,9 +946,9 @@ <h4 class="tag_title">Examples:</h4>
</div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
8 changes: 4 additions & 4 deletions docs/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Documentation by YARD 0.9.37
Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -52,7 +52,7 @@
<div class="clear"></div>
</div>

<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.37</h1>
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.38</h1>
<div id="listing">
<h1 class="alphaindex">Alphabetic Index</h1>

Expand Down Expand Up @@ -173,9 +173,9 @@ <h2>Namespace Listing A-Z</h2>
</div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
17 changes: 2 additions & 15 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ body {
margin: 0;
padding: 0;
display: flex;
display: -webkit-flex;
display: -ms-flexbox;
}

#nav {
Expand All @@ -28,11 +26,7 @@ body {
height: 100%;
position: relative;
display: flex;
display: -webkit-flex;
display: -ms-flexbox;
flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex: 1 0;
}
#resizer {
position: absolute;
Expand All @@ -45,8 +39,6 @@ body {
}
#main {
flex: 5 1;
-webkit-flex: 5 1;
-ms-flex: 5 1;
outline: none;
position: relative;
background: #fff;
Expand All @@ -56,7 +48,8 @@ body {
}

@media (max-width: 920px) {
.nav_wrap { width: 100%; top: 0; right: 0; overflow: visible; position: absolute; }
body { display: block; }
.nav_wrap { width: 80vw !important; top: 0; right: 0; overflow: visible; position: absolute; }
#resizer { display: none; }
#nav {
z-index: 9999;
Expand Down Expand Up @@ -205,13 +198,9 @@ p.inherited {
width: 100%;
font-size: 1em;
display: flex;
display: -webkit-flex;
display: -ms-flexbox;
}
.box_info dl dt {
flex-shrink: 0;
-webkit-flex-shrink: 1;
-ms-flex-shrink: 1;
width: 100px;
text-align: right;
font-weight: bold;
Expand All @@ -222,8 +211,6 @@ p.inherited {
}
.box_info dl dd {
flex-grow: 1;
-webkit-flex-grow: 1;
-ms-flex: 1;
max-width: 420px;
padding: 6px 0;
padding-right: 20px;
Expand Down
6 changes: 3 additions & 3 deletions docs/file.LICENSE.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
File: LICENSE

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -70,9 +70,9 @@
</div></div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
14 changes: 9 additions & 5 deletions docs/file.README.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
File: README

&mdash; Documentation by YARD 0.9.37
&mdash; Documentation by YARD 0.9.38

</title>

Expand Down Expand Up @@ -60,7 +60,7 @@
<div id="content"><div id='filecontents'>
<h1 id="label-Grift">Grift</h1>

<p><a href="https://rubygems.org/gems/grift"><img src="https://badge.fury.io/rb/grift.svg"></a> <a href="https://github.com/clarkedb/grift/actions?query=workflow%3ACI"><img src="https://github.com/clarkedb/grift/actions/workflows/ci.yml/badge.svg"></a> <a href="https://codecov.io/gh/clarkedb/grift"><img src="https://codecov.io/gh/clarkedb/grift/branch/main/graph/badge.svg"></a></p>
<p><a href="https://rubygems.org/gems/grift"><img src="https://badge.fury.io/rb/grift.svg" alt="gem version"></a> <a href="https://github.com/clarkedb/grift/actions?query=workflow%3ACI"><img src="https://github.com/clarkedb/grift/actions/workflows/ci.yml/badge.svg" alt="build"></a> <a href="https://codecov.io/gh/clarkedb/grift"><img src="https://codecov.io/gh/clarkedb/grift/branch/main/graph/badge.svg" alt="codecov"></a></p>

<p>Mocking and spying in Ruby’s MiniTest framework</p>

Expand Down Expand Up @@ -169,7 +169,11 @@ <h3 id="label-Results">Results</h3>

<h2 id="label-Requirements">Requirements</h2>

<p>Grift supports all Ruby versions &gt;= 2.7 (including 3.4).</p>
<p>Grift supports all Ruby versions &gt;= 2.7 (including 4.x versions).</p>

<h3 id="label-Support">Support</h3>

<p>For now Grift is not guaranteed to be compatible with <a href="https://docs.ruby-lang.org/en/master/Ruby/Box.html"><code>Ruby::Box</code></a> introduced in Ruby 4.0.0. Support will be added/guaranteed if it is determined that <code>Ruby::Box</code> will move out of the experimental phase.</p>

<h2 id="label-Development">Development</h2>

Expand All @@ -187,9 +191,9 @@ <h2 id="label-Contributing">Contributing</h2>
</div></div>

<div id="footer">
Generated on Thu Dec 26 10:01:24 2024 by
Generated on Sat Jan 3 14:56:03 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.3).
0.9.38 (ruby-4.0.0).
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/frames.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Documentation by YARD 0.9.37</title>
<title>Documentation by YARD 0.9.38</title>
</head>
<script type="text/javascript">
var mainUrl = 'index.html';
Expand Down
Loading