Closed bkerley closed 11 years ago
This includes and supersedes #27 .
Hi, @bkerley! @bmizerany and I spoke a week ago about maintainership, and we have transitioned Beefcake to the @protobuf-ruby group on GitHub.
I would like to review your pull request, but it looks out of date. Can you rebase?
Hey, so overall this looks OK. Would you be willing to include inline a before-and-after of the generated code or include them in Gist for review? I would like to compare this a bit more precisely.
Without having the diff, I am curious, why not output the messages with a topological sort instead of defining the class specification a priori?
Just force-pushed the rebase, will generate before & after.
https://gist.github.com/bkerley/6284225 contains before and after. The issue this branch fixes is at https://gist.github.com/bkerley/6284225#file-before-riak_kv-pb-rb-L221
Taking a look at the jruby failure on travis: https://travis-ci.org/protobuf-ruby/beefcake/jobs/10417342
Just a few open questions in https://github.com/protobuf-ruby/beefcake/pull/28/files.
Almost ready for submission. Just take care of the last simple remarks, and we're good to merge.
LGTM. Thank you for your work and patience and thoroughness!
This is part of the output of running the generator from 67f4894e4a77bac6e3b5953ca51f2de12127fff7 against https://github.com/basho/riak_pb/blob/master/src/riak_kv.proto :
The issue is that
RpbContent.links
cannot be defined, because it depends on theRpbLink
class that hasn't been read yet.What I'll try and do this week is find a way to create all the classes up front, so they all exist when they try to get tagged in messages.