real_data_tests 0.3.17 → 0.3.18
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 +6 -1
- data/lib/real_data_tests/pg_dump_generator.rb +0 -2
- data/lib/real_data_tests/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 753cb1dee0fe489a7d6d98b9149133c816330cc532acd853c597ea89a0ff0e91
|
|
4
|
+
data.tar.gz: 85563e1219d79d1ded8abc3bae060cb4703d751b77aa8d75ac9e035c352a29f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 965fcf6c738a84e783273fa93b9068046f4e45e9b4a52182d7a00385cffb2be1595206af5d141799265e25f45fdd679573ce194a4f231d05bc2d1e76737cebf6
|
|
7
|
+
data.tar.gz: db13e4b4fccf2f2eb513ff9d67d2ade07a146a4c9b7925181a93ffb3730925e88fbba1eed65396a3872ebfff33d07c2bd7a492de1a26e921e08be117b4f17fb3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
## [
|
|
1
|
+
## [0.3.18] - 2025-02-05
|
|
2
|
+
### Fixed
|
|
3
|
+
- Fixed cross-model circular dependency handling in PgDumpGenerator
|
|
4
|
+
- The `prevent_circular_dependency` method previously only worked for self-referential associations (e.g., `ServiceRate → ServiceRate`) due to a guard clause (`assoc.klass == model`) in `build_dependency_graph`
|
|
5
|
+
- Removed the self-referential constraint so `prevent_circular_dependency` now correctly breaks cycles between different models (e.g., `Organization → User → Organization`)
|
|
6
|
+
- This bug was latent and became visible in Ruby 3.2.10 due to changes in hash/set iteration ordering that altered association traversal order
|
|
2
7
|
|
|
3
8
|
## [0.3.5 - 0.3.17] - 2025-01-14
|
|
4
9
|
### Fixed
|
|
@@ -38,8 +38,6 @@ module RealDataTests
|
|
|
38
38
|
direct_dependencies = model.reflect_on_all_associations(:belongs_to)
|
|
39
39
|
.reject(&:polymorphic?) # Skip polymorphic associations
|
|
40
40
|
.reject do |assoc|
|
|
41
|
-
# Skip self-referential associations that are configured to prevent circular deps
|
|
42
|
-
assoc.klass == model &&
|
|
43
41
|
RealDataTests.configuration.current_preset.prevent_reciprocal?(model, assoc.name)
|
|
44
42
|
end
|
|
45
43
|
.map(&:klass)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: real_data_tests
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Dias
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|