protocolbuffers / protocolbuffers/protobuf
(ruby) Support encoding/decoding textproto format
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 72k
- Forks
- 16.3k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 140
Description
What language does this apply to?
ruby
Describe the problem you are trying to solve.
Want to use a conformance suite from google described in textproto format, but the protobuf ruby build seems not to be able to understand the format.
Describe the solution you'd like
msg = Message.decode_text(bytes)
Message.encode_text(msg)
Additional context
python protobuf supports it via the text_format module. go supports it via Unmarshal. I don't know about the state of other builds.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the proposed Message.decode_text and Message.encode_text entry points, and compare their expected behavior with Python's text_format module and Go's prototext Unmarshal. Use the linked basic.textproto conformance data to verify that Ruby can decode and re-encode textproto messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100