1. 14 Aug, 2019 1 commit
    • Joshua Haberman's avatar
      Roll forward Ruby upb changes now that protobuf Ruby build is fixed (#5866) · 63f324a9
      Joshua Haberman authored
      * Rolled forward again with "Updated upb from defcleanup branch..."
      
      Revert "Revert "Updated upb from defcleanup branch and modified Ruby to use it (#5539)" (#5848)"
      
      This reverts commit 1568deab.
      
      * A few more merge fixes.
      
      * Updated for defcleanup2 branch.
      
      * Fixed upb to define upb_decode().
      
      * Fixed names of nested messages.
      
      * Revert submodule.
      
      * Set -std=gnu90 and fixed warnings/errors.
      
      Some of our Kokoro tests seem to run with this level of warnings,
      and the source strives to be gnu90 compatible.  Enforcing it for
      every build removes the possibility of some errors showing up in
      Kokoro/Travis tests only.
      
      * Fixed remaining warnings with gnu90 mode.
      
      I tried to match warning flags with what Ruby appears to do
      in our Kokoro tests.
      
      * Initialize values registered by rb_gc_register_address().
      
      * Fixed subtle GC bug.
      
      We need to initialize this marked value before creating the instance.
      
      * Truly fix the GC bug.
      
      * Updated upb for mktime() fix.
      
      * Removed XOPEN_SOURCE as we are not using strptime().
      
      * Removed fixed tests from the conformance failure list for Ruby.
      
      * Fixed memory error related to oneof def names.
      
      * Picked up new upb changes re: JSON printing.
      
      * Uncomment concurrent decoding test.
      63f324a9
  2. 14 Mar, 2019 1 commit
  3. 06 Mar, 2019 2 commits
  4. 06 Feb, 2019 1 commit
  5. 08 Oct, 2018 1 commit
    • Paul Yang's avatar
      Fix broken ruby test (#5235) · a0da84bf
      Paul Yang authored
      * Replace assert_true/assert_false with assert, because they are not provided in newer version of test/unit
      
      * Use rescue to handle exception subclass
      
      * Commented out the require that caused gc_test failure.
      
      * Commented out test
      
      * Fix typo
      a0da84bf
  6. 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