real_data_tests 0.4.0 → 0.4.1
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 -0
- data/lib/real_data_tests/pg_dump_generator.rb +3 -1
- 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: afa2db23f090493e45cd9becca7395e36e2a6d2720b0cf2687d170d2c88d4455
|
|
4
|
+
data.tar.gz: 267e784a01b732885aef2e00433044ab90ef6d2a9fb77516b55bebb7afdf1007
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f042a6324814776aa3f513b0301850e021f8032a5d0740d125ffa11b0b8e778cbdac2cdfb24c6f2364b5d4cde0eda420039eca9a4e264b2c9da6af2a7b03ad3
|
|
7
|
+
data.tar.gz: ffbb471142b577bada70e151cb6cb06a6f460f6f6a4479f33278b98a459fbb3431ce5c55db5e8554682560a15dc355505d10fe3228c37bfd775bd0bcaa916d1d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [0.4.1] - 2026-04-09
|
|
2
|
+
### Fixed
|
|
3
|
+
- Fixed `datetime` microsecond precision loss in `PgDumpGenerator`
|
|
4
|
+
- `datetime` columns previously fell through to the default string conversion (`Time#to_s`), dropping sub-second precision
|
|
5
|
+
- Added explicit `:datetime` handling that emits values via `strftime("%Y-%m-%d %H:%M:%S.%6N UTC")` to preserve microseconds
|
|
6
|
+
|
|
1
7
|
## [0.4.0] - 2026-04-06
|
|
2
8
|
### Added
|
|
3
9
|
- **Bypass Default Scope Support**:
|
|
@@ -151,6 +151,8 @@ module RealDataTests
|
|
|
151
151
|
end
|
|
152
152
|
when :array
|
|
153
153
|
parse_and_format_array(value, column_info[:sql_type])
|
|
154
|
+
when :datetime
|
|
155
|
+
sanitize_string(value.utc.strftime("%Y-%m-%d %H:%M:%S.%6N UTC"))
|
|
154
156
|
else
|
|
155
157
|
if column_info[:array]
|
|
156
158
|
parse_and_format_array(value, column_info[:sql_type])
|
|
@@ -312,4 +314,4 @@ module RealDataTests
|
|
|
312
314
|
options.join(" ")
|
|
313
315
|
end
|
|
314
316
|
end
|
|
315
|
-
end
|
|
317
|
+
end
|
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.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Dias
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|