You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IPAddr#to_json remove prefix address with CIDR #503
The JSON gem has no specific support for IpAddr. I suspect this is a change in IpAddr#to_s which is what JSON call when it doesn't know about a particular type.
Activity
Fixed #to_json with prefix address
byroot commentedon Oct 17, 2024
The JSON gem has no specific support for
IpAddr. I suspect this is a change inIpAddr#to_swhich is what JSON call when it doesn't know about a particular type.taketo1113 commentedon Oct 18, 2024
Thanks to reply.
I will create PR to add
IPAddr#to_jsonmethod in ipaddr gem.Becase I think the changing behavior of
IPAddr#to_shas breaking compatibility.see. rails/rails#52365
taketo1113 commentedon Oct 18, 2024
cc: @byroot
I have created PR to add
IPAddr#to_json/as_jsonfor ipaddr gem.ruby/ipaddr#77