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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/class_spec_helper/destroy_classes.rb +3 -1
- data/lib/class_spec_helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2bf5403e75cc7d8a1f0a4e613bb65d256be099de8c9acd252dabd95dcc28dad
|
4
|
+
data.tar.gz: 02556ac69554c2234574d7d5a09f2bc15ee25e2b198064260e0eec49e1d1ba1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|