| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Merge 3.5.x to master
|
| | |
|
| | |
|
| | |
|
|\| |
|
| | |
|
| |
| |
| |
| |
| |
| | |
* Fix ruby gc_test in ruby 2.4
* Initialize global variables to Qnil.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |
| |
| | |
--pre was not necessary to install google-protobuf when I tried it today (2017-12-06).
|
|\| |
|
| | |
|
|\ \
| |/
|/|
| |
| | |
rubynerd-forks/ruby-fix-repeated-message-type-field
unwrap descriptor class before comparison of RepeatedField types
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
self->field_type_class returns the correct Ruby class, get_def_obj
returns the Descriptor object used to generate the Ruby class via
msgclass, so to compare the two types we get the msgclass from the
descriptor.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
|\ \ |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
This makes the frame stack per-parser, and per-thread. Fixes #3250
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
|\ \ \
| | | |
| | | | |
Allow initializing a chain of protos using only a hash in Ruby
|
| | | | |
|
| | | | |
|
| | | | |
|
|/ / / |
|
| | | |
|
|/ /
| |
| |
| | |
This makes the frame stack per-parser, and per-thread. Fixes #3250
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
[Ruby] fix floating point accuracy problem in Timestamp#to_f
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
`.quo` return the most exact devision which fixes accuracy problems for the
timestamp coercion
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Fixed a bunch of Ruby conformance errors.
* Fixed some more Ruby conformance errors in JSON.
|
|\ \ \
| |/ /
|/| | |
Ruby version optionally emits default values in JSON encoding.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Usage: Message.encode_json(m, emit_defaults: true)
Message fields that are nil will still not appear in the encoded JSON.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We have some special code in wrap_memcpy.c to ensure that we use the
2.2.5 version of memcpy, for compatibility with older versions of glibc.
However, we need to make sure we only attempt to do this when we are
actually building with glibc, so that the code can also build
successfully against other libc implementations such as musl.
|
|\ \ \
| | | |
| | | | |
Ruby: fixed Message#to_h for map fields.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|/ / / |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit adds a __wrap_memcpy function and a linker flag to use that
in place of memcpy for our Ruby gem C extension. This allows us to
always use the 2.2.5 version of memcpy, making it possible to use the
gem on distributions with pre-2.14 versions of glibc.
Before this change:
$ objdump -T protobuf_c.so | grep memcpy
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.4 __memcpy_chk
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.14 memcpy
After:
$ objdump -T protobuf_c.so | grep memcpy
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 memcpy
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.4 __memcpy_chk
0000000000042450 g DF .text 0000000000000005 Base __wrap_memcpy
This is based on gRPC's solution to a similar problem:
https://github.com/grpc/grpc/blob/5098508d2d41a116113f7e333c516cd9ef34a943/src/core/lib/support/wrap_memcpy.c
This fixes issue #2783.
|
|\ \
| | |
| | | |
Add Ruby compatibilty test against 3.0.0.
|
| | | |
|