Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby: fixed Message#to_h for map fields. #2847

Merged
merged 2 commits into from Mar 16, 2017

Conversation

haberman
Copy link
Member

Fixes: #1761

This integrates some of the code from this PR: #396

Copy link

@raggi raggi left a comment

Choose a reason for hiding this comment

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

Just a nit, otherwise LGTM

:map_string_msg => {"a" => TestMessage2.new(:foo => 1),
"b" => TestMessage2.new(:foo => 2)})
expected_result = {
:map_string_int32=>{"a"=>1, "b"=>2},
Copy link

Choose a reason for hiding this comment

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

nit: inconsistent formatting.

@haberman haberman merged commit 2957703 into protocolbuffers:master Mar 16, 2017
@haberman haberman deleted the ruby-toh branch March 16, 2017 21:46
@haberman haberman mentioned this pull request Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants