aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/ext/google/protobuf_c/repeated_field.c
Commit message (Collapse)AuthorAge
* Fix ruby gc_test in ruby 2.4 (#4011)Gravatar Paul Yang2017-12-08
| | | | | | * Fix ruby gc_test in ruby 2.4 * Initialize global variables to Qnil.
* fix #2036: use `rb_hash_*` to accumulate hashesGravatar Brendan Ribera2016-08-30
| | | | | | | Instead of shifting/xoring the hash at each field, use the built-in ruby apis for generating a hash from multiple input values. Now returns a Fixnum.
* Ruby: encode and freeze strings when the are assigned or decoded.Gravatar Josh Haberman2016-07-21
|
* Return TypedData_Wrap_Struct directly.Gravatar Josh Haberman2015-08-20
| | | | Change-Id: I6cf77f01370204ad4bc7b345a040a9a3de1706a0
* Conform to C89/C90 variable declaration rules.Gravatar Josh Haberman2015-07-10
| | | | | | | | | | | | While we are C99 in general, the Ruby build system for building C extensions enables several flags that throw warnings for C89/C90 variable ordering rules. To avoid spewing a million warnings (or trying to specifically override these warnings with command-line flags, which would be tricky and possibly fragile) we conform to Ruby's world of C89/C90. Change-Id: I0e03e62d95068dfdfde112df0fb16a248a2f32a0
* Ruby C extension speedup: don't re-intern constant string needlessly.Gravatar Chris Fallin2015-05-19
| | | | Also fixed lines with > 80 char length.
* make repeated_field quack like an arrayGravatar Adam Greene2015-05-14
|
* return nil if array index indicie is out of boundsGravatar Adam Greene2015-05-01
| | | | | | | ruby arrays don't throw an exception; they return nil. Lets do the same! this fix also includes the ability to use negative array indicies
* add #to_ary to RepeatedFieldGravatar Isaiah Peng2015-02-03
|
* 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'.