| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
This fixes the test_acts_likes_an_array test in RepeatedFieldTest, which
checks that repeated fields respond to the same methods as regular Ruby
arrays. The bsearch_index and dig array methods seem to be new in Ruby
2.3 and so we should support those.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
For JSON encoding we provide a new option to decide at
encode time whether to use camelCase or original proto field
names:
json = MapMessage.encode_json(m, :preserve_proto_fieldnames => true)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The flags are:
UPB_JSON_ACCEPT_LEGACY_FIELD_NAMES
UPB_JSON_WRITE_LEGACY_FIELD_NAMES
The first just allows the parser to accept the old field names.
The second makes the printer print the old field names.
These flags are intended to be temporary, as a migration aid
for users.
|
|\
| |
| | |
Changed Ruby to properly camelCase its JSON by default.
|
| |
| |
| |
| | |
dependencies.
|
| | |
|
|/ |
|
|\
| |
| | |
Removed 'optional' from proto3 syntax file.
|
|\ \
| | |
| | | |
Remove redundant `the`.
|
|\ \ \
| | | |
| | | | |
ruby: Better exception text for common cases
|
| |_|/
|/| | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/| |
|
| | |
|
| | |
|
| |
| |
| |
| | |
tests.
|
| |
| |
| |
| | |
The testee program of these two languages crashes on some test input.
|
| |
| |
| |
| |
| | |
Version number for beta languages is updated to v3.0.0-beta-2.
Version number for alpha languages is updated to v3.0.0-alpha-5.
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
More informative and more ruby-like
|
|
|
|
|
|
|
| |
Also updated the Gemfile.lock since alpha-4 has been
pushed to RubyGems.
Change-Id: I8ddc5f125f28aa9a33c88dfe48251a75a877e1d3
|
| |
|
|
|
|
|
| |
Protoc, C++ runtime and Java runtime are updated to v3.0.0-beta-1, other
languages are updated to v3.0.0-alpha-4.
|
|\
| |
| | |
Ruby: Conform to C89/C90 variable declaration rules.
|
| |
| |
| |
| | |
Change-Id: I6cf77f01370204ad4bc7b345a040a9a3de1706a0
|
| |
| |
| |
| | |
Change-Id: Ief77de7134e05e07b1a7e3970d49880c2d5e6fe9
|
| |
| |
| |
| | |
Change-Id: If7b1cc0f03f609a7f43ddafc8509b44207c60910
|
| |
| |
| |
| | |
Change-Id: Id008ebac5159f773e1bde8b85acb2626cbd16de8
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This involved fixing a few important bugs in the
Ruby implementation -- mostly cases of mixing
upb field types and descriptor types (upb field
types do not distinguish between int/sint/fixed/sfixed
like descriptor types do).
Also added protobuf-specific exceptions so parse
errors can be caught specifically.
Change-Id: Ib49d3db976900b2c6f3455c8b88af52cfb86e036
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
While we are C99 in general, the Ruby build system
for building C extensions enables several flags that
throw warnings for C89/C90 variable ordering rules.
To avoid spewing a million warnings (or trying to
specifically override these warnings with command-line
flags, which would be tricky and possibly fragile)
we conform to Ruby's world of C89/C90.
Change-Id: I0e03e62d95068dfdfde112df0fb16a248a2f32a0
|
|/
|
|
|
| |
Change-Id: I8e2b425f9008e6b82d41d59783bb8b04af1f886f
Fixes: https://github.com/google/protobuf/issues/474.
|
|
|
|
|
|
| |
Fixes:
https://github.com/google/protobuf/issues/502
https://github.com/google/protobuf/issues/425
|
|
|
|
|
| |
upb no longer requires -std=c99 but the Ruby/C
code still uses C99 features.
|
|
|
|
|
| |
Since this version of upb supports C89, all of the
extra compiler flags are no longer required.
|
| |
|
| |
|
| |
|
|
|
|
| |
Also fixed lines with > 80 char length.
|
|\
| |
| | |
Update MRI C Ruby extension to use new version of upb (with upb_env).
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Alter encode/decode paths to use the `upb_env` (environment)
abstraction.
- Update upb amalgamation to upstream `93791bfe`.
- Fix a compilation warning (void*->char* cast).
- Modify build flags so that upb doesn't produce warnings -- the Travis
build logs were pretty cluttered previously.
|
|\ \
| | |
| | | |
ruby: Encode decode cleanup and behavior normalization
|