| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Ruby: Conform to C89/C90 variable declaration rules.
|
| |
| |
| |
| | |
Change-Id: I6cf77f01370204ad4bc7b345a040a9a3de1706a0
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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: Ief77de7134e05e07b1a7e3970d49880c2d5e6fe9
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
| |
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
|
| |
| |
| |
| |
| |
| | |
* make consistent between mri and jruby
* create a #to_h and have it use symbols for keys
* add #to_json and #to_proto helpers on the Google::Protobuf message classes
|
|/ |
|
|\
| |
| | |
ruby: allow a message field to be unset
|
| | |
|
|/
|
|
|
|
|
| |
ruby arrays don't throw an exception; they return nil. Lets do the
same!
this fix also includes the ability to use negative array indicies
|
|
|
|
| |
Includes repro test case from @wfarr.
|
|\
| |
| | |
Ruby implementation Map#inspect should be consistent with Hash#inspect
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, we supported map fields in the Ruby DSL. However, we never
connected the final link in the chain and generated `map` DSL commands
for map fields in `.proto` files. My apologies -- I had been testing
with the DSL directly so I missed this.
Also fixed a handlerdata-setup-infinite-loop when a map value field's
type is its containing message.
|
|\ \
| |/
|/| |
Updated to latest upb and added test for JSON map operation.
|
| | |
|
|\ \
| |/
|/| |
add #to_ary to RepeatedField
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This adds the Map container and support for parsing and serializing maps
in the protobuf wire format (as defined by the C++ implementation, with
MapEntry submessages in a repeated field). JSON map
serialization/parsing are not yet supported as these will require some
changes to upb as well.
|
|
system. The Ruby module build now uses an amalgamated distribution of
upb, and successfully builds a Ruby gem called 'google-protobuf' with
module 'google/protobuf'.
|