Skip to content

Commit 7d24acd

Browse files
authored
Merge pull request #54 from clarkedb/develop
v1.1.0
2 parents 3597237 + 7168c85 commit 7d24acd

20 files changed

+107
-66
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
run: bundle exec rubocop --format progress
2727

2828
build:
29-
needs: [ linting ]
29+
needs: [linting]
3030
runs-on: ubuntu-latest
3131
name: build (ruby v${{ matrix.ruby }})
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
ruby: [ '2.5', '2.6', '2.7', '3.0' ]
35+
ruby: ["2.5", "2.6", "2.7", "3.0", "3.1"]
3636

3737
steps:
3838
- uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
88

99
N/A
1010

11+
## [1.1.0](https://github.com/clarkedb/grift/releases/tag/v1.1.0) - 2022-02-03
12+
13+
This version adds support for Ruby 3.1 and updates various dependencies.
14+
15+
### Added
16+
17+
* Support Ruby 3.1
18+
19+
### Updated
20+
21+
* Updates `minitest`
22+
* Updates `minitest-reporters`
23+
* Updates `rubocop`
24+
* Updates `rubocop-minitest`
25+
* Updates `rubocop-performance`
26+
1127
## [1.0.2](https://github.com/clarkedb/grift/releases/tag/v1.0.2) - 2021-11-11
1228

1329
This version fixes a bug that prevented the mocking of methods defined by a class's super class.

Gemfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
grift (1.0.2)
4+
grift (1.1.0)
55

66
GEM
77
remote: https://rubygems.org/
@@ -10,35 +10,35 @@ GEM
1010
ast (2.4.2)
1111
builder (3.2.4)
1212
docile (1.4.0)
13-
minitest (5.14.4)
14-
minitest-reporters (1.4.3)
13+
minitest (5.15.0)
14+
minitest-reporters (1.5.0)
1515
ansi
1616
builder
1717
minitest (>= 5.0)
1818
ruby-progressbar
1919
parallel (1.21.0)
20-
parser (3.0.2.0)
20+
parser (3.1.0.0)
2121
ast (~> 2.4.1)
22-
rainbow (3.0.0)
22+
rainbow (3.1.1)
2323
rake (13.0.6)
24-
regexp_parser (2.1.1)
24+
regexp_parser (2.2.0)
2525
rexml (3.2.5)
26-
rubocop (1.22.3)
26+
rubocop (1.25.1)
2727
parallel (~> 1.10)
28-
parser (>= 3.0.0.0)
28+
parser (>= 3.1.0.0)
2929
rainbow (>= 2.2.2, < 4.0)
3030
regexp_parser (>= 1.8, < 3.0)
3131
rexml
32-
rubocop-ast (>= 1.12.0, < 2.0)
32+
rubocop-ast (>= 1.15.1, < 2.0)
3333
ruby-progressbar (~> 1.7)
3434
unicode-display_width (>= 1.4.0, < 3.0)
35-
rubocop-ast (1.12.0)
35+
rubocop-ast (1.15.1)
3636
parser (>= 3.0.1.1)
37-
rubocop-minitest (0.15.2)
37+
rubocop-minitest (0.17.1)
3838
rubocop (>= 0.90, < 2.0)
3939
rubocop-packaging (0.5.1)
4040
rubocop (>= 0.89, < 2.0)
41-
rubocop-performance (1.12.0)
41+
rubocop-performance (1.13.2)
4242
rubocop (>= 1.7.0, < 2.0)
4343
rubocop-ast (>= 0.4.0)
4444
ruby-progressbar (1.11.0)

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,20 @@ my_mock.mock.results
106106
#=> ['result1', 'result2']
107107
```
108108

109+
## Requirements
110+
111+
Grift supports all Ruby versions >= 2.5 (including 3.1).
112+
109113
## Development
110114

111115
After forking the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
112116

113117
When developing, to install Grift whith your changes onto your local machine, run `bundle exec rake install` . To release a new version, update the version number in `version.rb` , and then run `bundle exec rake release` , which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
114118

119+
### Docs
120+
121+
The docs are generated using YARD. To build the docs, first `gem install yard`. Then run `yardoc` to build the new docs. This is always done before a release to update the docs that get published and made available with the gem.
122+
115123
## Contributing
116124

117125
Bug reports and pull requests are welcome on GitHub at [clarkedb/grift](https://github.com/clarkedb/grift). Before submitting a pull request, see [CONTRIBUTING](.github/CONTRIBUTING.md).

docs/Grift.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>
77
Module: Grift
88

9-
&mdash; Documentation by YARD 0.9.26
9+
&mdash; Documentation by YARD 0.9.27
1010

1111
</title>
1212

@@ -131,7 +131,7 @@ <h2>
131131

132132
</div>
133133
</dt>
134-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.0.2</span><span class='tstring_end'>&#39;</span></span></pre></dd>
134+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.1.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
135135

136136
</dl>
137137

@@ -663,7 +663,7 @@ <h3 class="signature " id="mock-class_method">
663663
</h3><div class="docstring">
664664
<div class="discussion">
665665

666-
<p>Mocks the given method to return the provided value. This is syntactical sugar equivalent to calling `spy_on` and then `mock_return_value`.</p>
666+
<p>Mocks the given method to return the provided value. This is syntactical sugar equivalent to calling spy_on` and then `mock_return_value`.</p>
667667

668668

669669
</div>
@@ -1494,9 +1494,9 @@ <h3 class="signature " id="spy_on-class_method">
14941494
</div>
14951495

14961496
<div id="footer">
1497-
Generated on Thu Nov 11 08:39:35 2021 by
1497+
Generated on Thu Feb 3 20:35:19 2022 by
14981498
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1499-
0.9.26 (ruby-2.7.1).
1499+
0.9.27 (ruby-3.1.0).
15001500
</div>
15011501

15021502
</div>

docs/Grift/Config.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>
77
Module: Grift::Config
88

9-
&mdash; Documentation by YARD 0.9.26
9+
&mdash; Documentation by YARD 0.9.27
1010

1111
</title>
1212

@@ -153,7 +153,7 @@ <h3 class="signature first" id="restricted_methods-class_method">
153153
</h3><div class="docstring">
154154
<div class="discussion">
155155

156-
<p>The restricted methods as a hash organized by class as the key and then the methods in an array as the value. A &#39;*&#39; means all methods are restricted. A &#39;^&#39; preceding a method overrides the wildcard restriction.</p>
156+
<p>The restricted methods as a hash organized by class as the key and then the methods in an array as the value. A ‘*’ means all methods are restricted. A ‘^’ preceding a method overrides the wildcard restriction.</p>
157157

158158

159159
</div>
@@ -215,9 +215,9 @@ <h3 class="signature first" id="restricted_methods-class_method">
215215
</div>
216216

217217
<div id="footer">
218-
Generated on Thu Nov 11 08:39:35 2021 by
218+
Generated on Thu Feb 3 20:35:19 2022 by
219219
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
220-
0.9.26 (ruby-2.7.1).
220+
0.9.27 (ruby-3.1.0).
221221
</div>
222222

223223
</div>

docs/Grift/Error.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>
77
Exception: Grift::Error
88

9-
&mdash; Documentation by YARD 0.9.26
9+
&mdash; Documentation by YARD 0.9.27
1010

1111
</title>
1212

@@ -125,9 +125,9 @@ <h2>Overview</h2><div class="docstring">
125125
</div>
126126

127127
<div id="footer">
128-
Generated on Thu Nov 11 08:39:35 2021 by
128+
Generated on Thu Feb 3 20:35:19 2022 by
129129
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130-
0.9.26 (ruby-2.7.1).
130+
0.9.27 (ruby-3.1.0).
131131
</div>
132132

133133
</div>

docs/Grift/MinitestPlugin.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>
77
Module: Grift::MinitestPlugin
88

9-
&mdash; Documentation by YARD 0.9.26
9+
&mdash; Documentation by YARD 0.9.27
1010

1111
</title>
1212

@@ -88,7 +88,7 @@ <h2>Overview</h2><div class="docstring">
8888

8989
<p>A plugin to clean up mocks after tests in Minitest. It is recommended that you include this plugin to avoid needing to cleanup the mocks after each test.</p>
9090

91-
<p>To setup the plugin for your tests, you should include the following code in your `test_helper`</p>
91+
<p>To setup the plugin for your tests, you should include the following code in your test_helper`</p>
9292

9393
<pre class="code ruby"><code class="ruby"><span class='kw'>class</span> <span class='const'>Minitest</span><span class='op'>::</span><span class='const'>Test</span>
9494
<span class='id identifier rubyid_include'>include</span> <span class='const'><span class='object_link'><a href="../Grift.html" title="Grift (module)">Grift</a></span></span><span class='op'>::</span><span class='const'>MinitestPlugin</span>
@@ -210,9 +210,9 @@ <h3 class="signature first" id="after_teardown-instance_method">
210210
</div>
211211

212212
<div id="footer">
213-
Generated on Thu Nov 11 08:39:35 2021 by
213+
Generated on Thu Feb 3 20:35:19 2022 by
214214
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
215-
0.9.26 (ruby-2.7.1).
215+
0.9.27 (ruby-3.1.0).
216216
</div>
217217

218218
</div>

docs/Grift/MockMethod.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>
77
Class: Grift::MockMethod
88

9-
&mdash; Documentation by YARD 0.9.26
9+
&mdash; Documentation by YARD 0.9.27
1010

1111
</title>
1212

@@ -378,7 +378,7 @@ <h2>
378378

379379

380380
<span class="summary_desc"><div class='inline'>
381-
<p>Clears the mock execution and calls data for this mock, and mocks the method to return `nil`.</p>
381+
<p>Clears the mock execution and calls data for this mock, and mocks the method to return nil`.</p>
382382
</div></span>
383383

384384
</li>
@@ -1104,7 +1104,7 @@ <h3 class="signature " id="mock_reset-instance_method">
11041104
</h3><div class="docstring">
11051105
<div class="discussion">
11061106

1107-
<p>Clears the mock execution and calls data for this mock, and mocks the method to return `nil`.</p>
1107+
<p>Clears the mock execution and calls data for this mock, and mocks the method to return nil`.</p>
11081108

11091109

11101110
</div>
@@ -1416,9 +1416,9 @@ <h3 class="signature " id="to_s-instance_method">
14161416
</div>
14171417

14181418
<div id="footer">
1419-
Generated on Thu Nov 11 08:39:35 2021 by
1419+
Generated on Thu Feb 3 20:35:20 2022 by
14201420
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1421-
0.9.26 (ruby-2.7.1).
1421+
0.9.27 (ruby-3.1.0).
14221422
</div>
14231423

14241424
</div>

docs/Grift/MockMethod/MockExecutions.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>
77
Class: Grift::MockMethod::MockExecutions
88

9-
&mdash; Documentation by YARD 0.9.26
9+
&mdash; Documentation by YARD 0.9.27
1010

1111
</title>
1212

@@ -692,9 +692,9 @@ <h3 class="signature " id="store-instance_method">
692692
</div>
693693

694694
<div id="footer">
695-
Generated on Thu Nov 11 08:39:35 2021 by
695+
Generated on Thu Feb 3 20:35:20 2022 by
696696
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
697-
0.9.26 (ruby-2.7.1).
697+
0.9.27 (ruby-3.1.0).
698698
</div>
699699

700700
</div>

0 commit comments

Comments
 (0)