Skip to content

Improve Ruby and Python json object enumeration#61

Merged
ralreegorganon merged 5 commits intomasterfrom
json-object-enumeration
Jul 3, 2014
Merged

Improve Ruby and Python json object enumeration#61
ralreegorganon merged 5 commits intomasterfrom
json-object-enumeration

Conversation

@ralreegorganon
Copy link
Copy Markdown
Member

This cherry-picks 626ea83, ced8d5c and 285f4b4 from #53 , focusing on the json object enumeration problem. This doesn't solve the issues with enumerating arrays, but does deal with enumerating centroid wrapped dictionary/hash types.

CHANGELOG update to follow PR ID generation.

* Cleanup case json in tests
* Fix python key existence check test
* Add ruby json object enumeration test
Comment thread ruby/lib/centroid.rb Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this ever be false? If we're inside of a Config instance, that means the underlying object was a hash, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point--I think this is a bit of a legacy of the way I chopped up the commits from stuff that was attempting to handle arrays as well... and nuking everything but the inside of this statement (assume hash) still passes the tests...

I think I'll nuke it and let the actual array handling stuff add it back if it ends up being needed.

ralreegorganon added a commit that referenced this pull request Jul 3, 2014
Improve Ruby and Python json object enumeration
@ralreegorganon ralreegorganon merged commit b6b9773 into master Jul 3, 2014
@ralreegorganon ralreegorganon deleted the json-object-enumeration branch July 3, 2014 16:24
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.

2 participants