- 06 Mar, 2019 2 commits
-
-
Joshua Haberman authored
This reverts commit 37581380.
-
Joshua Haberman authored
-
- 02 Mar, 2019 2 commits
-
-
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
-
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
-
- 28 Feb, 2019 2 commits
-
-
Joe Bolinger authored
* add check for overflow * de-nestify * break long lines
-
Joe Bolinger authored
* let repeated fields push arrays * add varargs push * better test
-
- 24 Feb, 2019 1 commit
-
-
Joe Bolinger authored
-
- 21 Feb, 2019 1 commit
-
-
Xiang Dai authored
Signed-off-by:
Xiang Dai <764524258@qq.com>
-
- 12 Feb, 2019 1 commit
-
-
Joe Bolinger authored
-
- 06 Feb, 2019 1 commit
-
-
Joe Bolinger authored
* add more descriptive error messages to init methods * add type errors test to Makefile.am
-
- 01 Feb, 2019 1 commit
-
-
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
-
- 17 Jan, 2019 1 commit
-
-
Paul Yang authored
* Fix Any json encoding/decoding for ruby. * Revert unnecessary changes
-
- 08 Jan, 2019 1 commit
-
-
Paul Yang authored
Revert "Revert "Enable the ignore_unknown_field option in the Ruby unmarshal options" (#5511)" (#5533) * Revert "Revert "Enable the ignore_unknown_field option in the Ruby unmarshal options" (#5511)" This reverts commit be1716a6. * Separate ruby conformance test on Mac * Fix shell syntax * Fix test
-
- 26 Dec, 2018 1 commit
-
-
Paul Yang authored
-
- 21 Dec, 2018 1 commit
-
-
Erik Benoist authored
This adds the ability for the MRI Ruby library to optionally pass in a ignore_unknown_fields option when decoding JSON. The functionality was added upstream in upb, this change exposes that option.
-
- 19 Dec, 2018 1 commit
-
-
Hao Nguyen authored
Lower the severity of lower-case ruby enum to warning. Add conformance test for allow_alias with lower_case enums
-
- 15 Dec, 2018 2 commits
-
-
Hao Nguyen authored
-
Hao Nguyen authored
-
- 23 Oct, 2018 1 commit
-
-
micw523 authored
-
- 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
-
- 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
-
- 22 Aug, 2018 1 commit
-
-
Feng Xiao authored
-
- 23 Jul, 2018 1 commit
-
-
Paul Yang authored
* Check the message to be encoded is the wrong type. (#4885) * Change TypeError to ArgumentError
-
- 18 Jul, 2018 1 commit
-
-
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
-
- 12 Jul, 2018 1 commit
-
-
Paul Yang authored
-
- 02 Jul, 2018 1 commit
-
-
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
-
- 27 Jun, 2018 2 commits
-
-
Zachary Anker authored
-
Erik Benoist authored
* This allows for ruby code to catch and handle Protobuf TypeErrors separately from the standard Ruby TypeError * Maintains backwards compatibility by having the new Google::Protobuf::TypeError inherit from the base TypeError. Any code that was catching TypeError should continue to work.
-
- 25 Jun, 2018 1 commit
-
-
Paul Yang authored
* Install rake compiler * Add kokoro config to build ruby gem on linux * Rename from linix to linux * Fix prepare_build.sh name * Clean up * Install bundler * Install bundler * Use c99 in order to build gem on mingw-32 on ruby 2.0.0 See https://github.com/rake-compiler/rake-compiler-dock/issues/4 * Move c99 config to extcofig.rb
-
- 20 Feb, 2018 1 commit
-
-
Ewout authored
This makes it behave the same way as the other implementations. It is also nice to always encode an empty message as {}.
-
- 12 Jan, 2018 1 commit
-
-
Michael Collis authored
-
- 08 Dec, 2017 1 commit
-
-
Paul Yang authored
* Fix ruby gc_test in ruby 2.4 * Initialize global variables to Qnil.
-
- 07 Dec, 2017 1 commit
-
-
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
-
- 26 Oct, 2017 1 commit
-
-
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
-
- 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
-
- 21 Sep, 2017 1 commit
-
-
Zachary Anker authored
-
- 20 Sep, 2017 3 commits
-
-
Zachary Anker authored
-
Zachary Anker authored
-
Zachary Anker authored
-
- 13 Sep, 2017 1 commit
-
-
Aaron Patterson authored
-