process_settings 0.19.3 → 0.19.4

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: '0094001e9bab0e6c2be4f5cdd677f4de41f4db2de23c4ecdee7947dba8405945'
4
- data.tar.gz: e76072c9d0ad84513208c42af7a8c90893ac8d9fd79575bffcb9a5ba82abbfc3
3
+ metadata.gz: e070efd3c6c720c5c32a039cd1997fceb2f527daefaa7aea4fb4116a542f3400
4
+ data.tar.gz: c2ed0b9dc4bb85f093df508580f2f98744837120f4bcdcc6e6f415349f24c10a
5
5
  SHA512:
6
- metadata.gz: 0a274fb3866b91f8f51fea48633aa5fc1a08e72c9d6a49e9eca9ad94024319f74b0abf0d4aeb62a247018671f3c2c8ded0639e69aa494e408aafc886b4949c3a
7
- data.tar.gz: b6fe8b7c3b92f785822fd7a91be4680d6f1715f393362c74ccd80c03f0691e122c48aac5a0719c013f1c2cc3aed111ca953b8b4265de63ef371b165ca5868090
6
+ metadata.gz: 81694c41b4686cb3e533827337e0f344d2372d8396fcc95ed01ea4a160a9fd7baaf8487eb22dffc5859910ead7740fef6badf4ecb0d553192d69b6c78ceacc88
7
+ data.tar.gz: 693a1121602581e6afd0d951f83d31b3ea8016152655afa3a4cac9b957ad0df187b54adee327c3a59964b939cbea1a74f403ba2ac28ac326f1d638832b7304bd
@@ -60,12 +60,18 @@ module ProcessSettings
60
60
 
61
61
  class << self
62
62
  def included(including_klass)
63
- including_klass.define_method(:teardown) do
64
- ProcessSettings.instance = initial_instance
65
- end
63
+ # Prepend the teardown method in case the test class has already defined one.
64
+ including_klass.prepend(TeardownProcessSettings)
66
65
  end
67
66
  end
68
67
  end
68
+
69
+ module TeardownProcessSettings
70
+ def teardown
71
+ ProcessSettings.instance = initial_instance
72
+ super
73
+ end
74
+ end
69
75
  end
70
76
 
71
77
  Helpers = RSpec::Helpers # for backward-compatibility
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ProcessSettings
4
- VERSION = '0.19.3'
4
+ VERSION = '0.19.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: process_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca