1. 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
  2. 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
  3. 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
  4. 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