class_spec_helper 1.1.1 → 1.1.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: 77fafc1edfe0284bb0071806d91869a50796b28873c6477efaa8479517f85e51
4
- data.tar.gz: 150badef8cbdd0a239c4d8dd35ccf0c38412111ad1233a75fb6c4a7029280ee4
3
+ metadata.gz: a2bf5403e75cc7d8a1f0a4e613bb65d256be099de8c9acd252dabd95dcc28dad
4
+ data.tar.gz: 02556ac69554c2234574d7d5a09f2bc15ee25e2b198064260e0eec49e1d1ba1a
5
5
  SHA512:
6
- metadata.gz: fb049001110324fbfc49d65f9289ffd9110c232e7590c5866097b7d50f922d4bb9c7cec447b679d22dbaa482f364244ab5156f957fff78be219ef19c0ead3978
7
- data.tar.gz: 23c0f42608ef65be9e75a95234ef7ec4a34881a3f34504cba5350138380d251d858706cd7146a635936763fdbd91577660d2004d926e045e2f5f0db8aeb5d93a
6
+ metadata.gz: c8405baa97a32d70f27c684f58e13315a49f017c0a5f96c3d977dfb354beb8c6cdc08a6180b0c4388f6314838a1137d5c70ff315a27c629730fb20ef43a19403
7
+ data.tar.gz: fb811638184a2abf7ed2cac4417a719ffc43376e69e8f26078bebca0126bd80a83d97a611155094387c53eddb25ec367e1fdae911a6f6673d6c1e421578203c2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.2](https://github.com/craigulliott/class_spec_helper/compare/v1.1.1...v1.1.2) (2023-07-17)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * destroy classes in the reverse order which they were created to make sure nested classes are destroyed in a viable order ([61977da](https://github.com/craigulliott/class_spec_helper/commit/61977da3d0c0a1ff1c02e6a5faaceff0fad6fec1))
9
+
3
10
  ## [1.1.1](https://github.com/craigulliott/class_spec_helper/compare/v1.1.0...v1.1.1) (2023-07-17)
4
11
 
5
12
 
@@ -5,7 +5,9 @@ class ClassSpecHelper
5
5
  # remove any classes (constants) which were
6
6
  # created by the class helper
7
7
  def remove_all_dynamically_created_classes
8
- @classes.each do |fully_qualified_class_name, klass|
8
+ # destroy them in the reverse order which they were created
9
+ @classes.keys.reverse_each do |fully_qualified_class_name|
10
+ klass = @classes[fully_qualified_class_name]
9
11
  # destroy the class by removing the constant
10
12
  destroy_class klass
11
13
  # remove the class from the list of classes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ClassSpecHelper
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: class_spec_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott