- 18 Oct, 2018 1 commit
-
-
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
-
- 08 Oct, 2018 1 commit
-
-
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
-
- 27 Sep, 2018 1 commit
-
-
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
-
- 04 Oct, 2017 1 commit
-
-
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
-