grift 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +11 -4
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile +5 -5
- data/README.md +5 -1
- data/lib/grift/mock_method.rb +1 -1
- data/lib/grift/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e43df3a93829be7aaf802bf4799dd2c12e741bf254e15fd08a7db816278003d4
|
|
4
|
+
data.tar.gz: 5811b46cb932445c62824e87367258563ec7bed4accc78eb04dc8833472662ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2d9170206163bc65f9542c92d5c6d981cf19d89eba2afd86e578ac587fbb800a3a2c63704438dcf4eed3e46a7bf03e9277b32c09dec364860c3d9e4cbcd7f71
|
|
7
|
+
data.tar.gz: 647225ba9c65ecb2707fe1c6eca06fa02c6a8b8e12a4052e6c686e8b6edb58df8c3043cab1a7cb6dda428aa75e36cc9d6c79329a54291e47f58e37c2cd69e132
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
BUNDLE_WITHOUT: development:test
|
|
16
16
|
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v6
|
|
19
19
|
|
|
20
20
|
- name: Set up Ruby 3.3
|
|
21
21
|
uses: ruby/setup-ruby@v1
|
|
@@ -33,10 +33,17 @@ jobs:
|
|
|
33
33
|
strategy:
|
|
34
34
|
fail-fast: false
|
|
35
35
|
matrix:
|
|
36
|
-
ruby:
|
|
36
|
+
ruby:
|
|
37
|
+
- "2.7"
|
|
38
|
+
- "3.0"
|
|
39
|
+
- "3.1"
|
|
40
|
+
- "3.2"
|
|
41
|
+
- "3.3"
|
|
42
|
+
- "3.4"
|
|
43
|
+
- "4.0"
|
|
37
44
|
|
|
38
45
|
steps:
|
|
39
|
-
- uses: actions/checkout@
|
|
46
|
+
- uses: actions/checkout@v6
|
|
40
47
|
- uses: ruby/setup-ruby@v1
|
|
41
48
|
with:
|
|
42
49
|
ruby-version: ${{ matrix.ruby }}
|
|
@@ -47,7 +54,7 @@ jobs:
|
|
|
47
54
|
|
|
48
55
|
- name: Upload coverage to Codecov
|
|
49
56
|
if: always()
|
|
50
|
-
uses: codecov/codecov-action@
|
|
57
|
+
uses: codecov/codecov-action@v5
|
|
51
58
|
with:
|
|
52
59
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
53
60
|
files: ./coverage/.resultset.json
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,17 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
8
8
|
|
|
9
9
|
None
|
|
10
10
|
|
|
11
|
+
## [3.1.0](https://github.com/clarkedb/grift/releases/tag/v3.1.0) - 2026-01-03
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Official support for Ruby 4.0 ([#274](https://github.com/clarkedb/grift/pull/274))
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Migrate rubocop setup to use plugins ([#275](https://github.com/clarkedb/grift/pull/275))
|
|
20
|
+
- Use preferred `method_defined?` for style ([#276](https://github.com/clarkedb/grift/pull/276))
|
|
21
|
+
|
|
11
22
|
## [3.0.0](https://github.com/clarkedb/grift/releases/tag/v3.0.0) - 2024-12-26
|
|
12
23
|
|
|
13
24
|
### Breaking
|
data/Gemfile
CHANGED
|
@@ -11,13 +11,13 @@ group :development, :test do
|
|
|
11
11
|
gem 'minitest', '~> 5.25'
|
|
12
12
|
gem 'minitest-reporters', '~> 1.7'
|
|
13
13
|
gem 'simplecov', '~> 0.22'
|
|
14
|
-
gem 'simplecov-cobertura', '~>
|
|
14
|
+
gem 'simplecov-cobertura', '~> 3.1'
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
group :development, :lint do
|
|
18
18
|
gem 'overcommit', '>= 0.64'
|
|
19
|
-
gem 'rubocop', '~> 1.
|
|
20
|
-
gem 'rubocop-minitest', '~> 0.
|
|
21
|
-
gem 'rubocop-packaging', '~> 0.
|
|
22
|
-
gem 'rubocop-performance', '~> 1.
|
|
19
|
+
gem 'rubocop', '~> 1.82.1'
|
|
20
|
+
gem 'rubocop-minitest', '~> 0.38.2'
|
|
21
|
+
gem 'rubocop-packaging', '~> 0.6.0'
|
|
22
|
+
gem 'rubocop-performance', '~> 1.26.0'
|
|
23
23
|
end
|
data/README.md
CHANGED
|
@@ -122,7 +122,11 @@ my_mock.results
|
|
|
122
122
|
|
|
123
123
|
## Requirements
|
|
124
124
|
|
|
125
|
-
Grift supports all Ruby versions >= 2.7 (including
|
|
125
|
+
Grift supports all Ruby versions >= 2.7 (including 4.x versions).
|
|
126
|
+
|
|
127
|
+
### Support
|
|
128
|
+
|
|
129
|
+
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.
|
|
126
130
|
|
|
127
131
|
## Development
|
|
128
132
|
|
data/lib/grift/mock_method.rb
CHANGED
|
@@ -618,7 +618,7 @@ module Grift
|
|
|
618
618
|
# @return [Boolean]
|
|
619
619
|
#
|
|
620
620
|
def method_defined?
|
|
621
|
-
class_instance.
|
|
621
|
+
class_instance.method_defined?(@method_name, false) ||
|
|
622
622
|
class_instance.private_instance_methods(false).include?(@method_name)
|
|
623
623
|
end
|
|
624
624
|
|
data/lib/grift/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grift
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Clark Brown
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: A gem for simple mocking and spying in Ruby's MiniTest framework.
|
|
14
13
|
email:
|
|
@@ -54,7 +53,6 @@ metadata:
|
|
|
54
53
|
homepage_uri: https://github.com/clarkedb/grift
|
|
55
54
|
rubygems_mfa_required: 'true'
|
|
56
55
|
source_code_uri: https://github.com/clarkedb/grift
|
|
57
|
-
post_install_message:
|
|
58
56
|
rdoc_options: []
|
|
59
57
|
require_paths:
|
|
60
58
|
- lib
|
|
@@ -69,8 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
69
67
|
- !ruby/object:Gem::Version
|
|
70
68
|
version: '0'
|
|
71
69
|
requirements: []
|
|
72
|
-
rubygems_version:
|
|
73
|
-
signing_key:
|
|
70
|
+
rubygems_version: 4.0.3
|
|
74
71
|
specification_version: 4
|
|
75
72
|
summary: Mocking and spying in MiniTest
|
|
76
73
|
test_files: []
|