real_data_tests 0.3.16 → 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 -41
- data/lib/real_data_tests/pg_dump_generator.rb +0 -2
- data/lib/real_data_tests/rspec_helper.rb +3 -3
- 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,46 +1,11 @@
|
|
|
1
|
-
## [
|
|
2
|
-
|
|
3
|
-
## [0.3.10] - 2025-01-14
|
|
4
|
-
### Fixed
|
|
5
|
-
- Enhanced SQL statement parsing in native loader
|
|
6
|
-
- Improved handling of complex ON CONFLICT clauses with multiple closing parentheses
|
|
7
|
-
- Fixed spacing issues between VALUES and ON CONFLICT clauses
|
|
8
|
-
- Enhanced regex pattern for more precise conflict clause extraction
|
|
9
|
-
- Added proper statement reassembly for complex SQL structures
|
|
10
|
-
|
|
11
|
-
## [0.3.9] - 2025-01-14
|
|
12
|
-
### Fixed
|
|
13
|
-
- Enhanced SQL statement parsing in native loader
|
|
14
|
-
- Improved handling of complex ON CONFLICT clauses with multiple closing parentheses
|
|
15
|
-
- Fixed spacing issues between VALUES and ON CONFLICT clauses
|
|
16
|
-
- Enhanced regex pattern for more precise conflict clause extraction
|
|
17
|
-
- Added proper statement reassembly for complex SQL structures
|
|
18
|
-
|
|
19
|
-
## [0.3.8] - 2025-01-14
|
|
20
|
-
### Fixed
|
|
21
|
-
- Enhanced SQL statement parsing in native loader
|
|
22
|
-
- Improved handling of complex ON CONFLICT clauses with multiple closing parentheses
|
|
23
|
-
- Fixed spacing issues between VALUES and ON CONFLICT clauses
|
|
24
|
-
- Enhanced regex pattern for more precise conflict clause extraction
|
|
25
|
-
- Added proper statement reassembly for complex SQL structures
|
|
26
|
-
|
|
27
|
-
## [0.3.7] - 2025-01-14
|
|
28
|
-
### Fixed
|
|
29
|
-
- Corrected SQL value handling in native loader
|
|
30
|
-
- Fixed boolean value handling, particularly at the end of VALUES clauses
|
|
31
|
-
- Improved handling of NULL values and numbers
|
|
32
|
-
- Added proper whitespace cleaning for values
|
|
33
|
-
- Enhanced value type detection for correct quoting
|
|
34
|
-
|
|
35
|
-
## [0.3.6] - 2025-01-14
|
|
1
|
+
## [0.3.18] - 2025-02-05
|
|
36
2
|
### Fixed
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
- Enhanced detection and preservation of SQL statement structure
|
|
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
|
|
42
7
|
|
|
43
|
-
## [0.3.5] - 2025-01-14
|
|
8
|
+
## [0.3.5 - 0.3.17] - 2025-01-14
|
|
44
9
|
### Fixed
|
|
45
10
|
- Enhanced SQL statement handling in native loader
|
|
46
11
|
- Added proper UUID value quoting in VALUES clauses
|
|
@@ -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)
|
|
@@ -180,7 +180,7 @@ module RealDataTests
|
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
def execute_insert_block(block, index, total)
|
|
183
|
-
puts "Executing INSERT block #{index}/#{total} for table: #{block.table_name}"
|
|
183
|
+
# puts "Executing INSERT block #{index}/#{total} for table: #{block.table_name}"
|
|
184
184
|
# Don't modify statements that already end with semicolon
|
|
185
185
|
statement = if block.content.strip.end_with?(';')
|
|
186
186
|
block.content
|
|
@@ -202,12 +202,12 @@ module RealDataTests
|
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
def execute_copy_block(block, index, total)
|
|
205
|
-
puts "Executing COPY block #{index}/#{total}"
|
|
205
|
+
# puts "Executing COPY block #{index}/#{total}"
|
|
206
206
|
ActiveRecord::Base.connection.execute(block.content)
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
def execute_regular_block(block, index, total)
|
|
210
|
-
puts "Executing block #{index}/#{total} of type: #{block.type}"
|
|
210
|
+
# puts "Executing block #{index}/#{total} of type: #{block.type}"
|
|
211
211
|
ActiveRecord::Base.connection.execute(block.content)
|
|
212
212
|
end
|
|
213
213
|
|
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
|