1. 07 Dec, 2017 1 commit
    • Paul Yang's avatar
      Add discard unknown API in ruby. (#3990) · 0e7b5895
      Paul Yang authored
      * 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
      0e7b5895
  2. 04 Oct, 2017 1 commit
    • Paul Yang's avatar
      Fix ruby segment fault (#3708) · cd5f49d0
      Paul Yang authored
      * 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
      cd5f49d0
  3. 13 Sep, 2017 1 commit
  4. 30 Aug, 2017 1 commit
  5. 30 Aug, 2016 1 commit
  6. 26 Aug, 2016 1 commit
  7. 16 Jul, 2015 1 commit
    • Josh Haberman's avatar
      Added Ruby to conformance tests. · 181c7f26
      Josh Haberman authored
      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
      181c7f26
  8. 10 Jul, 2015 1 commit
    • Josh Haberman's avatar
      Conform to C89/C90 variable declaration rules. · a1daeaba
      Josh Haberman authored
      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
      a1daeaba
  9. 19 May, 2015 1 commit
  10. 13 May, 2015 1 commit
    • Adam Greene's avatar
      adding and simplifying encoders/decoders · d1b52a00
      Adam Greene authored
      * 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
      d1b52a00
  11. 14 Jan, 2015 1 commit
  12. 06 Jan, 2015 1 commit
    • Chris Fallin's avatar
      Support for maps in the MRI C Ruby extension. · fd1a3ff1
      Chris Fallin authored
      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.
      fd1a3ff1
  13. 12 Dec, 2014 1 commit
  14. 10 Dec, 2014 1 commit
    • Chris Fallin's avatar
      Provide a Ruby extension. · 973f4257
      Chris Fallin authored
      This adds a Ruby extension in ruby/ that is based on the 'upb' library
      (now included as a submodule), and adds support for Ruby code generation
      to the protoc compiler.
      973f4257