aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/ext/google/protobuf_c/protobuf.h
Commit message (Collapse)AuthorAge
* Add discard unknown API in ruby. (#3990)Gravatar Paul Yang2017-12-07
| | | | | | | | | | | | * Add discard unknown API in ruby. * Add test for oneof message field. * Add TestUnknown to represent unknown field data clearly. * Only serialize the message with unknown fields itself in test. * Move discard_unknown from Message to Google.Protobuf
* Reserve unknown in Ruby (#3763)Gravatar Paul Yang2017-10-26
| | | | | | | | | | | | | | | | | | | | | | | | * Reserve unknown in ruby * Revert ruby tests. Wait for cpp impl for conformance test * Add conformance test for preserving unknown * Add unknown field conformance test to csharp failure list. * Fix comments * Fix comment * Fix comments * Fix typo * Use stringsink_string directly * Mark hd unused * Remove unused encodeunknown_handlerfunc
* Fix ruby segment fault (#3708)Gravatar Paul Yang2017-10-03
| | | | | | | | | | | | | | | | * Fix ruby segment fault 1) rb_ary_new cannot be called during allocate function. During allocate fucntion, the containing object hasn't been marked and rb_ary_new may invoke gc to collect containing object. 2) The global map should be marked before allocating it. Otherwise it may be garbage collected. * Add test * Remove commented code * Fix grammer error
* Storing the frame on the map means we don't need the arrayGravatar Aaron Patterson2017-08-30
|
* Move parse frame array to the Map objectGravatar Aaron Patterson2017-08-30
| | | | This makes the frame stack per-parser, and per-thread. Fixes #3250
* Ruby: fixed Message#to_h for map fields.Gravatar Josh Haberman2017-03-14
|
* Ruby: make sure map parsing frames are GC-rooted.Gravatar Josh Haberman2016-08-26
|
* Ruby: encode and freeze strings when the are assigned or decoded.Gravatar Josh Haberman2016-07-21
|
* Ruby JSON: always accept both camelCase and original field names.Gravatar Josh Haberman2016-04-14
| | | | | | | | For JSON encoding we provide a new option to decide at encode time whether to use camelCase or original proto field names: json = MapMessage.encode_json(m, :preserve_proto_fieldnames => true)
* Changed Ruby to properly camelCase its JSON by default.Gravatar Josh Haberman2016-02-18
|
* Added Ruby to conformance tests.Gravatar Josh Haberman2015-07-16
| | | | | | | | | | | | | This involved fixing a few important bugs in the Ruby implementation -- mostly cases of mixing upb field types and descriptor types (upb field types do not distinguish between int/sint/fixed/sfixed like descriptor types do). Also added protobuf-specific exceptions so parse errors can be caught specifically. Change-Id: Ib49d3db976900b2c6f3455c8b88af52cfb86e036
* Ruby C extension speedup: don't re-intern constant string needlessly.Gravatar Chris Fallin2015-05-19
| | | | Also fixed lines with > 80 char length.
* Merge pull request #387 from cfallin/ruby-upb-updateGravatar Joshua Haberman2015-05-18
|\ | | | | Update MRI C Ruby extension to use new version of upb (with upb_env).
| * Update MRI C Ruby extension to use new version of upb.Gravatar Chris Fallin2015-05-15
| | | | | | | | | | | | | | | | | | - Alter encode/decode paths to use the `upb_env` (environment) abstraction. - Update upb amalgamation to upstream `93791bfe`. - Fix a compilation warning (void*->char* cast). - Modify build flags so that upb doesn't produce warnings -- the Travis build logs were pretty cluttered previously.
* | Merge pull request #338 from skippy/encode-decode-helpersGravatar Chris Fallin2015-05-15
|\ \ | |/ |/| ruby: Encode decode cleanup and behavior normalization
* | make repeated_field quack like an arrayGravatar Adam Greene2015-05-14
| |
| * adding and simplifying encoders/decodersGravatar Adam Greene2015-05-13
|/ | | | | | * make consistent between mri and jruby * create a #to_h and have it use symbols for keys * add #to_json and #to_proto helpers on the Google::Protobuf message classes
* Updated based on code-review comments.Gravatar Chris Fallin2015-02-02
|
* Addressed code-review comments.Gravatar Chris Fallin2015-01-14
|
* Support oneofs in MRI Ruby C extension.Gravatar Chris Fallin2015-01-14
|
* Addressed code-review comments.Gravatar Chris Fallin2015-01-09
|
* Addressed code-review comments.Gravatar Chris Fallin2015-01-06
|
* Support for maps in the MRI C Ruby extension.Gravatar Chris Fallin2015-01-06
| | | | | | | | This adds the Map container and support for parsing and serializing maps in the protobuf wire format (as defined by the C++ implementation, with MapEntry submessages in a repeated field). JSON map serialization/parsing are not yet supported as these will require some changes to upb as well.
* Rename protobuf Ruby module to google/protobuf and rework its buildGravatar Chris Fallin2014-12-12
system. The Ruby module build now uses an amalgamated distribution of upb, and successfully builds a Ruby gem called 'google-protobuf' with module 'google/protobuf'.