gemwork 0.7.0 → 0.7.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: b79d54882c8ba3e77eef98cdad6df5c88b6d61edaecb0ad8e9ab8f14851790d5
4
- data.tar.gz: 4258441d5a3c811aedc907ca079616b2f4359b075c9aab2f08c2c76cc5b516f0
3
+ metadata.gz: fe8acf8b9b48dcfae2a50c4e735355c6a1da0b1845132b119692f6fdadc8455b
4
+ data.tar.gz: b28e8ee7ae469f81295322f228065f9f4e84c17f88748cb1abab3034a7e80f06
5
5
  SHA512:
6
- metadata.gz: 02fccd72d8ab9e66d9ac13437e59d0d2ec60e2ab65e101dc35fb54e16763e0a2cc0b32732b0d2685c2fae3cd48ebc55be4ef615860c8cdb36de2ede2dfa08c46
7
- data.tar.gz: 8a40ad3bbc4c616226ecaa40d0559db60bcf910c4b65c59a7b2c8e9e10be5fbef74669bfe9747d458d0919f836a0e24141086f087232e11db0efa5043f028133
6
+ metadata.gz: 8b3a4c870b3d569d465bf0b1eca85a30b03a4208a07a090e659649422307c3a04edd817aabc2ea0947f24ea2a971bec5da93ad609ae0fdc7417b387ea5a04733
7
+ data.tar.gz: f983ce1ef7d49f57a6927cef0858103ebd92e27b62c98a594864cc4fee961c83104b99d51cb87b2f5caa23f840527779feb2b4455d310993e4b6cc61d4359862
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.7.1] - 2024-11-21
4
+
5
+ - Auto-detect ActiveSupport::TestCase vs Minitest::Spec (rails vs non-rails) in test/support/much_stub.rb.
6
+
3
7
  ## [0.7.0] - 2024-11-21
4
8
 
5
9
  - Update minimum Ruby version from 2.7 -> 3.1
@@ -2,9 +2,18 @@
2
2
 
3
3
  require "much-stub"
4
4
 
5
- # Augment the existing ActiveSupport::TestCase class.
6
- class ActiveSupport::TestCase
7
- after do
8
- MuchStub.unstub!
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
9
18
  end
10
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemwork
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul DobbinSchmaltz