minitest-substitute 1.0.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f8802ed1f575511d0d40b4c9c6aa83ac9e0438a4e516a3e9d371d64cbeec44c
4
- data.tar.gz: 94dab332d69b4340512030e332d20b68975a80b0860f7e8cdb72334c25cfd076
3
+ metadata.gz: 1b7ba9902a4f3dacf1d9a7cfebb9e8fd3ee09b7ef0c4db7d4ec81bb8e0cf0b44
4
+ data.tar.gz: dcc01e4c1dafb7799024d7d1187f3ac2d23dbaed1e5321f378bc1b29ac90f37f
5
5
  SHA512:
6
- metadata.gz: 9ebd589721d0d15745712e3b280cf395bce7d185ccdbe9fc728213c87a7991d7b8ba442e853ce7932e673bc6693e98b6712b3bf75878ce240b6eeb7298ae0a97
7
- data.tar.gz: fc1cb86a0d3f3123afcde191b906c154044975f4fe95eb8b0f9af0639aa27c822da7377f36e0213fcc380d2b776ed00c5db5bace1a46c6945e994ca61928f7a2
6
+ metadata.gz: 445f1c1a58e72914dfe5aa326b64f7294f1393f03582c0e271f5b3589983a78e906b2fd7a045fd7030da7df2770f11da26d062f2144c4897ceb603d644c3238e
7
+ data.tar.gz: ee9d4ea8bd77b4e576c2cf3bf881eb266cbd82e771330d9375dfef8221743d2abf6d94c110748989265f96224bb76e4c169af6c1c475e508881ef7bd0b530901
data/CHANGELOG.md CHANGED
@@ -2,31 +2,42 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 1.1.1
6
+
7
+ ### Changes
8
+ * Update Ruby to 4.0
9
+
10
+ ## 1.1.0
11
+
12
+ ### Changes
13
+ * Update Ruby to 3.4
14
+ * Add action for trusted release
15
+
5
16
  ## 1.0.0
6
17
 
7
- #### Breaking Changes
18
+ ### Breaking Changes
8
19
  * Switch from `with` to `substitute` because Rails 7 pollutes `Object` for
9
20
  everybody by introducing `Object#with`. 💣
10
21
 
11
22
  ## 0.3.0
12
23
 
13
- #### Additions
24
+ ### Additions
14
25
  * Substition of constants
15
26
 
16
27
  ## 0.2.1
17
28
 
18
- #### Changes
29
+ ### Changes
19
30
  * Defer evaluation of the substitution value block for specs
20
31
 
21
32
  ## 0.2.0
22
33
 
23
- #### Additions
34
+ ### Additions
24
35
  * Refactor to support class variables as well
25
36
  * Use declared subject as default target for with helper
26
37
 
27
38
  ## 0.1.0
28
39
 
29
- #### Initial Implementation
40
+ ### Initial Implementation
30
41
  * Require Ruby 3.0
31
42
  * Substitution of instance variables
32
43
  * Substitution of global variables
data/README.md CHANGED
@@ -1,25 +1,21 @@
1
1
  [![Version](https://img.shields.io/gem/v/minitest-substitute.svg?style=flat)](https://rubygems.org/gems/minitest-substitute)
2
2
  [![Tests](https://img.shields.io/github/actions/workflow/status/svoop/minitest-substitute/test.yml?style=flat&label=tests)](https://github.com/svoop/minitest-substitute/actions?workflow=Test)
3
3
  [![Code Climate](https://img.shields.io/codeclimate/maintainability/svoop/minitest-substitute.svg?style=flat)](https://codeclimate.com/github/svoop/minitest-substitute/)
4
- [![Donorbox](https://img.shields.io/badge/donate-on_donorbox-yellow.svg)](https://donorbox.org/bitcetera)
4
+ [![GitHub Sponsors](https://img.shields.io/github/sponsors/svoop.svg)](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 derive from default configuration in order to test some aspects of your code.
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
- ## Install
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 --trust-policy MediumSecurity
29
+ bundle install
34
30
  ```
35
31
 
36
32
  Finally, require this gem in your `test_helper.rb` or `spec_helper.rb`:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minitest
4
4
  module Substitute
5
- VERSION = '1.0.0'
5
+ VERSION = '1.1.1'
6
6
  end
7
7
  end
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.0.0
4
+ version: 1.1.1
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.5.6
214
- signing_key:
193
+ rubygems_version: 4.0.3
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