1. 06 Mar, 2019 2 commits
  2. 02 Mar, 2019 2 commits
    • 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
  3. 28 Feb, 2019 2 commits
  4. 24 Feb, 2019 1 commit
  5. 21 Feb, 2019 1 commit
  6. 12 Feb, 2019 1 commit
  7. 06 Feb, 2019 1 commit
  8. 01 Feb, 2019 1 commit
    • Paul Yang's avatar
      Use gnu for ruby build because strptime is provided by posix (#5660) · 7d9377e7
      Paul Yang authored
      * Use gnu for ruby build because strptime is provided by posix
      
      * Move option to extconf.rb
      
      * Remove unused code in Rakefile
      
      * Add config files for kokoro test
      
      * Use gnu 11
      
      * Define _XOPEN_SOURCE
      
      * Add gnu11 option
      
      * Remove XOPEN
      
      * Try base_cc_flags
      
      * Try config_options
      
      * Move time.h to top
      
      * Try -D_XOPEN_SOURCE=700
      
      * Define XOPEN_SOURCE directly
      
      * Try extconf.rb
      
      * Try CFLAGS
      
      * Try ext.cross_config_options
      
      * Make mac ruby release job fail on error
      
      * Try again
      
      * Try define _XOPEN_SOURCE in extconf.rb
      
      * Try again
      
      * Define __USE_XOPEN
      
      * Remove 2.6.0
      
      * No mingw
      
      * Throw error on mingw
      
      * Remove XOPEN_SOURCE in upb
      
      * Add back mingw
      
      * Remove comment
      7d9377e7
  9. 17 Jan, 2019 1 commit
  10. 08 Jan, 2019 1 commit
  11. 26 Dec, 2018 1 commit
  12. 21 Dec, 2018 1 commit
  13. 19 Dec, 2018 1 commit
  14. 15 Dec, 2018 2 commits
  15. 23 Oct, 2018 1 commit
  16. 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
  17. 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
  18. 22 Aug, 2018 1 commit
  19. 23 Jul, 2018 1 commit
  20. 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
  21. 12 Jul, 2018 1 commit
  22. 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
  23. 27 Jun, 2018 2 commits
  24. 25 Jun, 2018 1 commit
  25. 20 Feb, 2018 1 commit
  26. 12 Jan, 2018 1 commit
  27. 08 Dec, 2017 1 commit
  28. 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
  29. 26 Oct, 2017 1 commit
    • Paul Yang's avatar
      Reserve unknown in Ruby (#3763) · 23adfeb0
      Paul Yang authored
      * Reserve unknown in ruby
      
      * Revert ruby tests. Wait for cpp impl for conformance test
      
      * Add conformance test for preserving unknown
      
      * Add unknown field conformance test to csharp failure list.
      
      * Fix comments
      
      * Fix comment
      
      * Fix comments
      
      * Fix typo
      
      * Use stringsink_string directly
      
      * Mark hd unused
      
      * Remove unused encodeunknown_handlerfunc
      23adfeb0
  30. 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
  31. 21 Sep, 2017 1 commit
  32. 20 Sep, 2017 3 commits
  33. 13 Sep, 2017 1 commit