From ed03b80942fd7de48569af3c00877d6c3bb1459b Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Tue, 16 Jul 2024 08:50:31 +1000 Subject: [PATCH] fix(logger): add types for crystal 1.13 compat --- shard.yml | 2 +- src/action-controller/logger.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shard.yml b/shard.yml index 01c5c8b..9c95a0c 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: action-controller -version: 7.4.1 +version: 7.4.2 crystal: ">= 1.9.0" dependencies: diff --git a/src/action-controller/logger.cr b/src/action-controller/logger.cr index 85ce12b..2938052 100644 --- a/src/action-controller/logger.cr +++ b/src/action-controller/logger.cr @@ -40,7 +40,7 @@ module ActionController value.map(&.to_s) in Hash(String, ::Log::Metadata::Value) value.transform_values(&.to_s) - in Bool, Float32, Float64, Int32, Int64, String, Time, Nil + in Bool, Float32, Float64, Int32, UInt32, Int64, UInt64, String, Time, Nil metadata.raw.as(Bool | Float32 | Float64 | Int32 | Int64 | String | Time | Nil) end end