Skip to content

Commit

Permalink
fix(logger): add types for crystal 1.13 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Jul 15, 2024
1 parent 84be5bb commit ed03b80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: action-controller
version: 7.4.1
version: 7.4.2
crystal: ">= 1.9.0"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion src/action-controller/logger.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed03b80

Please sign in to comment.