minitest-substitute 1.0.0 → 1.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/CHANGELOG.md +11 -5
- data/README.md +5 -9
- data/lib/minitest/substitute/version.rb +1 -1
- metadata +5 -26
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8d039d7a6420c2f26dd4ac8d2c784c551da02063c1031b1deef94208282e0fd
|
4
|
+
data.tar.gz: 92fdb7f95bbc7964f0896770495f08926619d641a68b4d1eb7c0cdecee4ba49c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 666754cd3d3d459fc317d42dd9f58bd7ba9007fd6bd4047e79a749ee8f745148b3cb9b03de153d530a869252abe90f9f68ab277aacd89e7291eaf1d6f3caf0d9
|
7
|
+
data.tar.gz: 5eb31f70af191e1ae64c35a093e8e6eb09f53b88560b36cb72393252985ed435123da2d11fdcbb395c63d6e48f223f13a551bd78a13519ddea9094a5e36167e9
|
data/CHANGELOG.md
CHANGED
@@ -2,31 +2,37 @@
|
|
2
2
|
|
3
3
|
Nothing so far
|
4
4
|
|
5
|
+
## 1.1.0
|
6
|
+
|
7
|
+
### Changes
|
8
|
+
* Update Ruby to 3.4
|
9
|
+
* Add action for trusted release
|
10
|
+
|
5
11
|
## 1.0.0
|
6
12
|
|
7
|
-
|
13
|
+
### Breaking Changes
|
8
14
|
* Switch from `with` to `substitute` because Rails 7 pollutes `Object` for
|
9
15
|
everybody by introducing `Object#with`. 💣
|
10
16
|
|
11
17
|
## 0.3.0
|
12
18
|
|
13
|
-
|
19
|
+
### Additions
|
14
20
|
* Substition of constants
|
15
21
|
|
16
22
|
## 0.2.1
|
17
23
|
|
18
|
-
|
24
|
+
### Changes
|
19
25
|
* Defer evaluation of the substitution value block for specs
|
20
26
|
|
21
27
|
## 0.2.0
|
22
28
|
|
23
|
-
|
29
|
+
### Additions
|
24
30
|
* Refactor to support class variables as well
|
25
31
|
* Use declared subject as default target for with helper
|
26
32
|
|
27
33
|
## 0.1.0
|
28
34
|
|
29
|
-
|
35
|
+
### Initial Implementation
|
30
36
|
* Require Ruby 3.0
|
31
37
|
* Substitution of instance variables
|
32
38
|
* Substitution of global variables
|
data/README.md
CHANGED
@@ -1,25 +1,21 @@
|
|
1
1
|
[](https://rubygems.org/gems/minitest-substitute)
|
2
2
|
[](https://github.com/svoop/minitest-substitute/actions?workflow=Test)
|
3
3
|
[](https://codeclimate.com/github/svoop/minitest-substitute/)
|
4
|
-
[](https://github.com/sponsors/svoop)
|
5
5
|
|
6
6
|
# Minitest::Substitute
|
7
7
|
|
8
8
|
Simple Minitest helper to replace values such as an instance variable of an object or an environment variable for the duration of a block or a group of tests.
|
9
9
|
|
10
|
-
This comes in very handy when you have to
|
10
|
+
This comes in very handy when you have to deviate from default configuration in order to test some aspects of your code.
|
11
11
|
|
12
12
|
* [Homepage](https://github.com/svoop/minitest-substitute)
|
13
13
|
* [API](https://www.rubydoc.info/gems/minitest-substitute)
|
14
14
|
* Author: [Sven Schwyn - Bitcetera](https://bitcetera.com)
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
This gem is [cryptographically signed](https://guides.rubygems.org/security/#using-gems) in order to assure it hasn't been tampered with. Unless already done, please add the author's public key as a trusted certificate now:
|
16
|
+
Thank you for supporting free and open-source software by sponsoring on [GitHub](https://github.com/sponsors/svoop) or on [Donorbox](https://donorbox.com/bitcetera). Any gesture is appreciated, from a single Euro for a ☕️ cup of coffee to 🍹 early retirement.
|
19
17
|
|
20
|
-
|
21
|
-
gem cert --add <(curl -Ls https://bitcetera.com/downloads/gem-public_cert.pem)
|
22
|
-
```
|
18
|
+
## Install
|
23
19
|
|
24
20
|
Add the following to the <tt>Gemfile</tt> or <tt>gems.rb</tt> of your [Bundler](https://bundler.io) powered Ruby project:
|
25
21
|
|
@@ -30,7 +26,7 @@ gem 'minitest-substitute'
|
|
30
26
|
And then install the bundle:
|
31
27
|
|
32
28
|
```
|
33
|
-
bundle install
|
29
|
+
bundle install
|
34
30
|
```
|
35
31
|
|
36
32
|
Finally, require this gem in your `test_helper.rb` or `spec_helper.rb`:
|
metadata
CHANGED
@@ -1,33 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-substitute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Schwyn
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIC+jCCAeKgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhydWJ5
|
14
|
-
L0RDPWJpdGNldGVyYS9EQz1jb20wHhcNMjMxMTEwMTgyMzM2WhcNMjQxMTA5MTgy
|
15
|
-
MzM2WjAjMSEwHwYDVQQDDBhydWJ5L0RDPWJpdGNldGVyYS9EQz1jb20wggEiMA0G
|
16
|
-
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDcLg+IHjXYaUlTSU7R235lQKD8ZhEe
|
17
|
-
KMhoGlSUonZ/zo1OT3KXcqTCP1iMX743xYs6upEGALCWWwq+nxvlDdnWRjF3AAv7
|
18
|
-
ikC+Z2BEowjyeCCT/0gvn4ohKcR0JOzzRaIlFUVInlGSAHx2QHZ2N8ntf54lu7nd
|
19
|
-
L8CiDK8rClsY4JBNGOgH9UC81f+m61UUQuTLxyM2CXfAYkj/sGNTvFRJcNX+nfdC
|
20
|
-
hM9r2kH1+7wsa8yG7wJ2IkrzNACD8v84oE6qVusN8OLEMUI/NaEPVPbw2LUM149H
|
21
|
-
PVa0i729A4IhroNnFNmw4wOC93ARNbM1+LW36PLMmKjKudf5Exg8VmDVAgMBAAGj
|
22
|
-
OTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSfK8MtR62mQ6oN
|
23
|
-
yoX/VKJzFjLSVDANBgkqhkiG9w0BAQsFAAOCAQEAXhT/LpMArF3JRcZSRkJDY+dU
|
24
|
-
GKCRqOefi2iydqh1yIqXyTA9PGR1w5O6O+WS1FvF+sHCwh8fFjCuStg2L8V2RSeo
|
25
|
-
aDtfZ5s80sL8wRFxg3kek69cBuI6ozU+rf9DaXlMES4i8+zASsdv9Y4a2BsbhEdE
|
26
|
-
9AtuMcWn5a45TOO0S4Q8OuV0v705V38Ow15J2RDRvkFRySt+//8/Vd57XAJxPXU0
|
27
|
-
k/QvZU05f6HMYBrPogJgIzHC/C5N/yeE4BVEuBDn+10Zb1iu3aDk8sd0uMgukCY8
|
28
|
-
TUmlP5A6NeGdeDJIoLgromAKs+nvI7TWzhQq9ODs51XhxgUFRCvBqUTpjTQigw==
|
29
|
-
-----END CERTIFICATE-----
|
30
|
-
date: 2024-03-07 00:00:00.000000000 Z
|
9
|
+
cert_chain: []
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
31
11
|
dependencies:
|
32
12
|
- !ruby/object:Gem::Dependency
|
33
13
|
name: minitest
|
@@ -165,9 +145,9 @@ email:
|
|
165
145
|
executables: []
|
166
146
|
extensions: []
|
167
147
|
extra_rdoc_files:
|
168
|
-
- README.md
|
169
148
|
- CHANGELOG.md
|
170
149
|
- LICENSE.txt
|
150
|
+
- README.md
|
171
151
|
files:
|
172
152
|
- CHANGELOG.md
|
173
153
|
- LICENSE.txt
|
@@ -210,8 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
190
|
- !ruby/object:Gem::Version
|
211
191
|
version: '0'
|
212
192
|
requirements: []
|
213
|
-
rubygems_version: 3.
|
214
|
-
signing_key:
|
193
|
+
rubygems_version: 3.6.9
|
215
194
|
specification_version: 4
|
216
195
|
summary: Substitute values for the duration of a block or a group of tests
|
217
196
|
test_files: []
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
Binary file
|