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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f21f225cf114a1a334e786333cb7a5dcb04a261636590c890b85d3443c9659d3
4
- data.tar.gz: 024b43b99b9b6880730c1a02d799c83fcec5be3a949fd38c5c25a2bf2fdf7d71
3
+ metadata.gz: afa2db23f090493e45cd9becca7395e36e2a6d2720b0cf2687d170d2c88d4455
4
+ data.tar.gz: 267e784a01b732885aef2e00433044ab90ef6d2a9fb77516b55bebb7afdf1007
5
5
  SHA512:
6
- metadata.gz: eceeaed220dae3072480315cb9c2623540231f3c7aca876727681f6511112d95e7a4b0f894800c17db5f79b939410ebac8288adfd88911c1c446e52005e0a3e4
7
- data.tar.gz: dd75263ec204aaef5d544ae7d257b0428f59273046158de7f31d0d54f053ae1065e7a6272ef6335ed5db5eaea217a204ca1d567bd1bded5d957d9e66dde84aba
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RealDataTests
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  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.0
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-05 00:00:00.000000000 Z
11
+ date: 2026-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails