1. 06 Mar, 2019 1 commit
  2. 21 Feb, 2019 1 commit
  3. 06 Feb, 2019 1 commit
  4. 27 Sep, 2018 1 commit
    • Harshit Chopra's avatar
      Adds support for proto2 syntax for Ruby gem. · d0535cc0
      Harshit Chopra authored
      This change only adds basic proto2 support without advanced features
      like extensions, custom options, maps, etc.
      
      The protoc binary now generates ruby code for proto2 syntax.
      However, for now, it is restricted to proto2 files without advanced features
      like extensions, in which case it still errors out.
      
      This change also modifies the DSL to add proto messages to the DescriptorPool.
      There is a new DSL Builder#add_file to create a new FileDescriptor. With this,
      the generated ruby DSL looks something like:
      
      Google::Protobuf::DescriptorPool.generated_pool.build do
        add_file "test.proto" do
          add_message "foo" do
            optional :val, :int32, 1
          end
        end
      end
      d0535cc0
  5. 18 Jul, 2018 1 commit
    • Paul Yang's avatar
      Add continuous test for ruby 2.3, 2.4 and 2.5 (#4829) · 8356d270
      Paul Yang authored
      * Add continuous test for ruby 2.3, 2.4 and 2.5
      
      * Change ruby 2.5 to 2.5.0
      
      * No need to provide argument to rb_funcall when argc is 0
      
      * Fix tests for ruby 2.5
      
      * Use rescue instead of assert_raise to accept subclass of error
      8356d270
  6. 02 Jul, 2018 1 commit
    • Paul Yang's avatar
      Add continuous test for ruby 2.3, 2.4 and 2.5 (#4829) · 78ba021b
      Paul Yang authored
      * Add continuous test for ruby 2.3, 2.4 and 2.5
      
      * Change ruby 2.5 to 2.5.0
      
      * No need to provide argument to rb_funcall when argc is 0
      
      * Fix tests for ruby 2.5
      
      * Use rescue instead of assert_raise to accept subclass of error
      78ba021b
  7. 27 Jun, 2018 1 commit
    • Erik Benoist's avatar
      Adds a base class for all explicitly raised TypeErrors (#4255) · 74f8e242
      Erik Benoist authored
      * This allows for ruby code to catch and handle Protobuf
          TypeErrors separately from the standard Ruby TypeError
      
        * Maintains backwards compatibility by having the new
          Google::Protobuf::TypeError inherit from the base
          TypeError. Any code that was catching TypeError should
          continue to work.
      74f8e242
  8. 20 Sep, 2017 1 commit
  9. 30 Dec, 2016 1 commit
  10. 19 Dec, 2016 1 commit
  11. 21 Jul, 2016 1 commit
  12. 18 May, 2016 2 commits
  13. 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
  14. 19 May, 2015 1 commit
  15. 02 May, 2015 1 commit
  16. 02 Feb, 2015 1 commit
  17. 26 Jan, 2015 2 commits
  18. 15 Jan, 2015 1 commit
  19. 14 Jan, 2015 1 commit
  20. 09 Jan, 2015 1 commit
  21. 07 Jan, 2015 1 commit
  22. 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
  23. 12 Dec, 2014 1 commit
  24. 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