Skip to content

Conversation

@asomers
Copy link
Contributor

@asomers asomers commented Aug 7, 2017

Add IPAddress::IPv4#as_json and IPAddress::IPv6#as_json. If that method
is not defined, then ActiveSupport will create it automatically, but it
overflows the stack due to the way that ipaddress uses #each.

Fixes #89

Add IPAddress::IPv4#as_json and IPAddress::IPv6#as_json.  If that method
is not defined, then ActiveSupport will create it automatically, but it
overflows the stack due to the way that ipaddress uses #each.

Fixes ipaddress-gem#89
@asomers
Copy link
Contributor Author

asomers commented Sep 15, 2017

Ping. Is this PR ok to merge, or would you like me to take a different approach?

@sandstrom
Copy link
Collaborator

I'm trying to get this in. Can you rebase on master?

@asomers
Copy link
Contributor Author

asomers commented Mar 19, 2023

Sorry, but I can't. I haven't used this gem, or indeed any Ruby code, for a long time.

@sandstrom sandstrom changed the title Fix a stack overflow when doing IPAddress.as_json Add support for IPAddress.as_json Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stack overflow doing IPAddress#as_json

2 participants