lib/raven/okjson.rb in sentry-raven-0.7.1 vs lib/raven/okjson.rb in sentry-raven-0.8.0
- old
+ new
@@ -75,10 +75,11 @@
def valenc(x, visited)
case x
when Hash then objenc(x, visited)
when Array then arrenc(x, visited)
when String then strenc(x)
+ when Symbol then strenc(x.to_s)
when Numeric then numenc(x)
when true then "true"
when false then "false"
when nil then "null"
else
@@ -442,9 +443,10 @@
def keyenc(k)
case k
when String then strenc(k)
+ when Symbol then strenc(k.to_s)
else
strenc(k.inspect)
end
end