Joe Bolinger
76685c6fae
Add frozen checks in Ruby ( #5726 )
...
* 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
6 years ago
Joe Bolinger
a6e3ac0db1
Generate extra enum method helpers for Ruby ( #5670 )
...
* 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
6 years ago
Joshua Haberman
3e1bd5b81e
Merge pull request #5014 from Kwizatz/iterator-deprecation-fix
...
Updating Iterators to be compatible with C++17 in MSVC
6 years ago
Paul Yang
f2ef7970fe
Merge pull request #5791 from protocolbuffers/revert-5735-ruby-pkg-namespace
...
Revert "Fix Ruby module name generation when the ruby_package option is used"
6 years ago
Paul Yang
bb211e851e
Revert "Fix Ruby module name generation when the ruby_package option is used ( #5735 )"
...
This reverts commit 9638dcc340
.
6 years ago
Joe Bolinger
9638dcc340
Fix Ruby module name generation when the ruby_package option is used ( #5735 )
...
* fix module name generation and add tests
* fix existing tests
* support both package name styles
6 years ago
Joe Bolinger
7f14ea9f48
Raise error for JSON overflow encoding in Ruby ( #5752 )
...
* add check for overflow
* de-nestify
* break long lines
6 years ago
Joe Bolinger
e780681e35
Allow repeated fields in Ruby to accept multiple arguments on push ( #5736 )
...
* let repeated fields push arrays
* add varargs push
* better test
6 years ago
Peter Ebden
2adde396ed
Fix for construction of messages in the C++ Python implementation. ( #2299 )
...
* Fix construction of messages using the C++ Python implementation when a map field is passed from one message to another.
* Add a test on message map field construction
* python 3 support
* review comments
* add test
* Collapse code into one
6 years ago
Oliver Bristow
0de6577b7d
Add EnumTypeWrapper.__getattr__ to access values ( #5234 )
6 years ago
Hao Nguyen
05e81cb8f4
Merge pull request #5770 from mattpaletta/optional-grpc-thirdparty-docs
...
Added Optional GRPC library to third party docs
6 years ago
Paul Yang
bf32b36ab8
Merge pull request #5765 from BSBandme/integration
...
down integration from internal
6 years ago
Yilun Chong
59f7a859b6
vaccum commit
6 years ago
Yilun Chong
7bcb522287
fix mac python cpp building ( #5786 )
6 years ago
Sydney Acksman
a4c3472ce8
Add some exceptions for MessageParser.ParseFrom ( #5588 )
...
* Fix #5513
* Added tests for invalid lengths when reading strings and bytes.
Added test for reading tags with invalid wire types in unknown field set.
Changed invalid length check in ReadString to match the one in ReadBytes
6 years ago
grindhold
3a538fc91e
pyext: missing cast to constant char* ( #5713 )
...
We need to cast to a constant charpointer here.
6 years ago
Yilun Chong
9fd18ae9a5
fix BUILD for adding any_lite.cc
6 years ago
Yilun Chong
6d29c22a43
fix conformance test for text format
6 years ago
Yilun Chong
af8b91b828
fix csharp by regenerate descriptor
6 years ago
Yilun Chong
89b914f81d
fix macos build for High Sierra ( #5780 )
...
* fix macos build by changing xcode version
* add comments
* fix benchmark build for mac
* fix for gem option and install npm
* add test for node and npm
* fix node
* fix for node
* another attempts to fix node
* another attempts
* clean up
6 years ago
Kent Ross
b6375e03aa
create importable function for defining zlib
6 years ago
Yilun Chong
429d2ae19f
Merge branch 'master' into integration
6 years ago
Yilun Chong
e4e5bc49d7
Fix failure test by regenerating descriptor and revert golden file ( #5762 )
6 years ago
Matthew Paletta
5f470c3992
Added Optional GRPC library to third party docs
6 years ago
Joe Bolinger
bc929a3e82
add eql? method ( #5730 )
6 years ago
Daniel Ruoso
4b389fad57
`Libs` should not include `@PTHREAD_CFLAGS@`
...
That should be only on the CFlags. When using the compiler
as the linker driver, one may want to also call pkg-config to get the
cflags, but when invoking the linker, there should be no compiler flags.
6 years ago
Yilun Chong
d8c2501b43
down integration from internal
6 years ago
dickmao
a7180caf19
protobuf.pc.in does not reflect CXXFLAGS
...
Currently, downstream libraries such as RProtoBuf fail because
`-std=c++11` is required via `configure.ac`, but RProtobuf has no way
of knowing this by consulting `pkg-config --cflags protobuf`.
6 years ago
Xiang Dai
e479410564
delete all duplicate empty blanks ( #5758 )
...
Signed-off-by: Xiang Dai <764524258@qq.com>
6 years ago
Dalvin
c691c4cbfa
Enhance java-lite documentation ( #5743 )
6 years ago
Hao Nguyen
e22907f364
Support rc version in update_version.py ( #5750 )
...
* Support rc version in update_version.py
6 years ago
michaelbausor
3bf05b88ea
PHP: Exclude repeated and map fields from normalization in constructor ( #5723 )
...
* Exclude repeated and map fields from normalization
* Remove erroneous comments
* Remove unnecessary check for map type
* Add support for repeated/map fields, add tests
* Fix wrapper message in repeated/map fields in array constructor
* Address PR comments
* Removed unused code
* Update docs
6 years ago
Paul Yang
95d1552b4a
Merge pull request #5733 from protocolbuffers/revert-5661-nesting
...
Revert "Add stack overflow protection for text format"
6 years ago
Paul Yang
f66c981051
Revert "Add stack overflow protection for text format"
...
This reverts commit 6dcd81093c
.
6 years ago
Sydney Acksman
e7283254d6
Change MessageType != null in IsInitialized to FieldType == Message || Group ( #5688 )
6 years ago
Joe Bolinger
39c0947893
implement to_s for message types ( #5710 )
6 years ago
Yuri Vanin
7fdc45a854
Use cached value for type safety check during unpacking of Any message ( #5698 )
...
This performance optimization allows to skip reflection (in the is() method) when the message has been already unpacked once
6 years ago
Cy
9c1c94f770
Update third party implementation links ( #5702 )
6 years ago
Sydney Acksman
2a05691a53
Refactor how group endings are detected in generated C# code ( #5686 )
...
* Modify how end tags are encounted in merge code (compiler)
* Modify how end tags are encounted in merge code (generated)
* Modify how end tags are encounted in merge code (library)
* Regenerate generated code through generate_descriptor_proto.sh
6 years ago
Greg Engle
de3be6c225
removed dead link to ProtoSharp ( #5610 )
...
I tried finding an active repo on github with no success. The only ProtoSharp I found wasn't related to PB at all.
6 years ago
Joe Bolinger
64eb9b6e85
Add more descriptive error messages to init methods in Ruby ( #5659 )
...
* add more descriptive error messages to init methods
* add type errors test to Makefile.am
6 years ago
Thomas Van Lenten
413c614a94
Document why no enum_extensibility is needed for Swift. ( #5680 )
...
Document why no enum_extensibility is needed for Swift.
6 years ago
Vitaly Buka
6dcd81093c
Add stack overflow protection for text format
...
It already exists for wire and json formats
6 years ago
Vitaly Buka
8bbabb87a2
Parse unknown enum values if target is proto3
6 years ago
Xiang Dai
8df872a500
Remove whitespace following trailing backslash
...
Fix below issue:
src/Makefile.am:210: warning: whitespace following trailing backslash
Signed-off-by: Xiang Dai <764524258@qq.com>
6 years ago
Michael Matthew Mitchell
dface63d71
Swapped libprotoc and libprotobuf
...
libprotobuf being targed before libprotoc was causing Visual Studio to fail in linking protoc.
6 years ago
Peter Sobot
50342e4812
Allowed json_format.ParseDict to parse extensions with scalar types. ( #5609 )
6 years ago
Bhargava Shastry
8532804bad
Fixes warnings in https://github.com/google/oss-fuzz/issues/864#issuecomment-458596374
6 years ago
Ivan Pizhenko
41f94bf372
Fix GetErrno() to be const ( #5595 )
...
* Fix GetErrno() to be const noexcept
* Removed noexcept
6 years ago
Paul Yang
a21caa237a
Default values should also be serialized for json map key/value ( #5643 )
6 years ago