activerecord-sqlite-types 0.3.2 → 0.3.3

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: ba116b2d6eb2d1ec8bd7a45f7ddea108241bc6a24b54b821d5e8479fe6f5956b
4
- data.tar.gz: 5f0dd9b8076ffd7e9b574bb3d4147dbd0c989aa732f68f3698c301621266ae02
3
+ metadata.gz: 81175508913f3b2ce7a13f10d48dd86bfa7c040bd77945af0c1b14c95468847d
4
+ data.tar.gz: 01fe17d2fbc47bde9745418246959cfe376e1a454bd6448b723ec2a2f09b5974
5
5
  SHA512:
6
- metadata.gz: 9c58b690d17aed8285a37cb34a81904f4db0b7ca49a7af68d0f37d07c09921eb462b8ead91541af2b97e2c971d1bfd75860f46cc8f7c684f7bf68b2bb4bf6c9c
7
- data.tar.gz: e494e9daacd4f12171a3ab6f31af9c031e9498da594d7089b348ff8bc71a87658375771fe56e32b69c33376e5378bd1b5add815d319815675487f98ae88e61f1
6
+ metadata.gz: be09ffdd30ac8794d139836d669a2f410caad99abf4e247b95684876c767a413e769840953cd8d13cdfd09a318f5b46e055830a87b9b46780a1d636a22a8eebc
7
+ data.tar.gz: 64b75feb538d840a567201e486e4685a9fbf0483e9fa9cc514a2f75bad8a2677a15386dadf8163d2fe999f3779506059d64c2a39ad76ba99b5c0aa9059262f3f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.3] - 2026-05-14
4
+
5
+ ### Fixed
6
+
7
+ - Canonicalize `IpAddress` string serialization to match `IPAddr` values in Active Record lookup and query paths
8
+
3
9
  ## [0.3.2] - 2026-05-14
4
10
 
5
11
  ### Fixed
@@ -9,8 +9,8 @@ module SQLiteTypes
9
9
  when ::IPAddr
10
10
  serialize_ipaddr(value)
11
11
  when ::String
12
- ::IPAddr.new(value)
13
- value
12
+ ipaddr = ::IPAddr.new(value)
13
+ value.include?("/") ? value : serialize_ipaddr(ipaddr)
14
14
  else
15
15
  raise ArgumentError, "Invalid IP address: #{value}"
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module SQLiteTypes
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-sqlite-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojtek Wrona