1. 17 Jun, 2019 1 commit
  2. 27 Mar, 2019 1 commit
  3. 26 Mar, 2019 1 commit
  4. 08 Mar, 2019 1 commit
  5. 07 Mar, 2019 1 commit
  6. 06 Mar, 2019 2 commits
  7. 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
  8. 28 Feb, 2019 2 commits
  9. 24 Feb, 2019 1 commit
  10. 12 Feb, 2019 1 commit
  11. 18 Nov, 2018 1 commit
  12. 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
  13. 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