gemwork 0.7.1 → 0.7.2

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: fe8acf8b9b48dcfae2a50c4e735355c6a1da0b1845132b119692f6fdadc8455b
4
- data.tar.gz: b28e8ee7ae469f81295322f228065f9f4e84c17f88748cb1abab3034a7e80f06
3
+ metadata.gz: 0f1b7a3d5a94aa04a34a32029c783470048b82193b55ec5602c394a838fbe340
4
+ data.tar.gz: de38e3ba487a57e97243988d33f5138dbc1745eb7ca562f107c0b727dc4833e1
5
5
  SHA512:
6
- metadata.gz: 8b3a4c870b3d569d465bf0b1eca85a30b03a4208a07a090e659649422307c3a04edd817aabc2ea0947f24ea2a971bec5da93ad609ae0fdc7417b387ea5a04733
7
- data.tar.gz: f983ce1ef7d49f57a6927cef0858103ebd92e27b62c98a594864cc4fee961c83104b99d51cb87b2f5caa23f840527779feb2b4455d310993e4b6cc61d4359862
6
+ metadata.gz: fc86d2a0a434e2919cc91e266121ab2ee79b65accd00b46856b926dfdfe2f289f13bfbdd562b9d6d680ee1623d40d7799e73b0e215e5a40069122b6cc9dd2059
7
+ data.tar.gz: ebd1c6de8cd02f80696959588898e010d9564ba5defb60a77f7d703d7e8839f0213599bafd0993fd3fcefdd17bae40b5e7c0a43f338731d98a82d240ca4fd227
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.7.2] - 2024-11-22
4
+
5
+ - Remove auto-detect of ActiveSupport::TestCase vs Minitest::Spec in favor of manual selection of test/support/much_stub.rb vs test/support/much_stub-rails.rb. This fixes incorrect auto-detection of "Rails" env in gems that include a Rails test dummy.
6
+
3
7
  ## [0.7.1] - 2024-11-21
4
8
 
5
9
  - Auto-detect ActiveSupport::TestCase vs Minitest::Spec (rails vs non-rails) in test/support/much_stub.rb.
data/README.md CHANGED
@@ -327,7 +327,7 @@ REBUILD_GEMWORK=1 bin/setup
327
327
 
328
328
  ### Testing
329
329
 
330
- To test this gem (gemwork):
330
+ To test this gem:
331
331
 
332
332
  ```bash
333
333
  rake
@@ -346,7 +346,7 @@ npx prettier . --write
346
346
 
347
347
  ### Releases
348
348
 
349
- To release a new version of Gemwork to RubyGems:
349
+ To release a new version of this gem to RubyGems:
350
350
 
351
351
  1. Update the version number in `version.rb`
352
352
  2. Update `CHANGELOG.md`
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "much-stub"
4
+
5
+ # Augment the existing ActiveSupport::TestCase class.
6
+ class ActiveSupport::TestCase
7
+ after do
8
+ MuchStub.unstub!
9
+ end
10
+ end
@@ -2,18 +2,9 @@
2
2
 
3
3
  require "much-stub"
4
4
 
5
- if defined?(ActiveSupport::TestCase)
6
- # Augment the existing ActiveSupport::TestCase class.
7
- class ActiveSupport::TestCase
8
- after do
9
- MuchStub.unstub!
10
- end
11
- end
12
- else
13
- # Augment the existing Minitest::Spec class.
14
- class Minitest::Spec
15
- after do
16
- MuchStub.unstub!
17
- end
5
+ # Augment the existing Minitest::Spec class.
6
+ class Minitest::Spec
7
+ after do
8
+ MuchStub.unstub!
18
9
  end
19
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemwork
4
- VERSION = "0.7.1"
4
+ VERSION = "0.7.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul DobbinSchmaltz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -205,6 +205,7 @@ files:
205
205
  - lib/.DS_Store
206
206
  - lib/gemwork.rb
207
207
  - lib/gemwork/.DS_Store
208
+ - lib/gemwork/test/support/much_stub-rails.rb
208
209
  - lib/gemwork/test/support/much_stub.rb
209
210
  - lib/gemwork/test/support/reporters.rb
210
211
  - lib/gemwork/test/support/simplecov.rb