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. 25 Jul, 2019 1 commit
  3. 17 Jun, 2019 1 commit
  4. 16 Jun, 2019 1 commit
  5. 27 Mar, 2019 1 commit
  6. 26 Mar, 2019 1 commit
  7. 14 Mar, 2019 2 commits
  8. 08 Mar, 2019 1 commit
  9. 07 Mar, 2019 1 commit
  10. 06 Mar, 2019 2 commits
  11. 02 Mar, 2019 3 commits
    • Joe Bolinger's avatar
      Fix Ruby module name generation when the ruby_package option is used (again) (#5794) · ae85b457
      Joe Bolinger authored
      * Revert "Revert "Fix Ruby module name generation when the ruby_package option is used (#5735)""
      
      This reverts commit bb211e85.
      
      * add new files to Makefile.am
      ae85b457
    • Joe Bolinger's avatar
      Add frozen checks in Ruby (#5726) · 76685c6f
      Joe Bolinger authored
      * add frozen checks
      
      * Use rb_check_frozen
      
      * Correct assertion on frozen error message
      
      The second argument for the method assert_raise is the message
      to show when the assertion fails. It does not check the error
      object's message.
      Add an additional assertion that does check the error's message.
      
      * do frozen check first
      76685c6f
    • Joe Bolinger's avatar
      Generate extra enum method helpers for Ruby (#5670) · a6e3ac0d
      Joe Bolinger authored
      * example with extra enum method
      
      * update expected test output
      
      * slight simplification
      
      * add test for generated enum helpers
      
      * move const helpers to c extension
      
      * more explicit test
      
      * more explicit test
      
      * indent
      
      * add foo test
      
      * add check for _const suffix
      a6e3ac0d
  12. 28 Feb, 2019 4 commits
  13. 24 Feb, 2019 1 commit
  14. 12 Feb, 2019 1 commit
  15. 06 Feb, 2019 1 commit
  16. 17 Jan, 2019 1 commit
  17. 16 Jan, 2019 1 commit
    • toc007's avatar
      Ruby nested msg caps (#5564) · dda7ab03
      toc007 authored
      * Ruby nested msg caps
      
      * nested types tests added
      
      * test cases added for RubifyConstant
      
      * extracted NestedMessage to TestNestedMessage
      
      * removed nested tests with leading underscore
      
      * extracted testLowercase to toplevel testLowercaseNested
      dda7ab03
  18. 08 Jan, 2019 1 commit
  19. 03 Jan, 2019 1 commit
    • Paul Yang's avatar
      Add ruby 2.6 test (#5528) · de9e1a04
      Paul Yang authored
      * Add ruby 2.6 test
      
      * Fix broken tests
      
      * Fix compatibility test
      
      * Fix bundler version
      
      * Use new docker image
      
      * Fix broken test
      
      * Use new docker image in ruby26 test
      
      * Install ruby for mac
      de9e1a04
  20. 26 Dec, 2018 1 commit
  21. 21 Dec, 2018 1 commit
  22. 18 Nov, 2018 1 commit
  23. 29 Oct, 2018 1 commit
  24. 18 Oct, 2018 1 commit
    • Paul Yang's avatar
      Add ruby 2.3, 2.4 and 2.5 test for linux. (#5256) · 333b3cea
      Paul Yang authored
      * Add ruby 2.3, 2.4 and 2.5 test for linux.
      
      * Update kokoro files
      
      * Add back commented gc test
      
      * Fix gc_test failure
      
      * Remove unused code
      
      * Update ruby 2.5.0 to 2.5.1
      
      * Update ruby 2.3 to 2.3.8
      
      * Remove useless comment
      333b3cea
  25. 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
  26. 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
  27. 23 Jul, 2018 1 commit
  28. 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
  29. 12 Jul, 2018 1 commit
  30. 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
  31. 27 Jun, 2018 2 commits
  32. 19 Jun, 2018 1 commit