| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
[skip ci]
Change-Id: I1ba6f6372a08b5796570851336e1a548602f60da
|
| |
|
| |
|
|
|
| |
Uses values from the removed `Gemfile.lock` as a baseline for version requirements, though it has been observed to work with the latest versions of all the referenced gems - see https://travis-ci.org/google/protobuf/builds/163625616 for details
|
|
|
| |
Avoid [failures in travis](https://travis-ci.org/google/protobuf/jobs/163611664) under jruby
|
|
|
| |
Proposed fix for #1594
|
|
|
|
|
|
|
|
|
|
| |
`System.identityHashCode` returns a hash that does not consider a
Message's values. This means two Messages with identical values will not
have identical hashCodes.
This patch uses the pattern from RubyMap to combine the hashCodes from
all values in a given message and produce a unique, consistent,
value-based hash.
|
|\
| |
| | |
Fix #2036 (Ruby `hash` broken for Messages with repeated fields.)
|
|\ \ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of shifting/xoring the hash at each field, use the built-in ruby
apis for generating a hash from multiple input values.
Now returns a Fixnum.
|
| |/
|/|
| |
| |
| | |
* add a repeated field to the tested hash
* also assert that two messages with identical values produce identical hashes
|
| |
| |
| | |
Ruby: make sure map parsing frames are GC-rooted.
|
| | |
|
| | |
|
| |
| |
| | |
This will allow loading the extension for Ruby 2.1.10...
|
|\ \
| |/
|/| |
Ruby: added API support for well-known types.
|
| | |
|
| | |
|
| | |
|
|\|
| |
| | |
GA fixes
|
| | |
|
| |\
| | |
| | | |
Ruby: generated foo.proto -> foo_pb.rb instead of foo.rb.
|
| | | |
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| | |
This brings us more into line with other langauges, and makes it more
obvious when we are requiring protobuf generated code.
|
|\ \
| |/
|/| |
Ruby: encode and freeze strings when the are assigned or decoded.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
1. Added ruby22 and jruby tests to jenkins.
2. Added javascript tests to jenkins.
3. Added golang tests to jenkins.
4. Removed ruby19/ruby20 tests from travis. Support for ruby 2.0 has
ended since 2016/02/24.
https://www.ruby-lang.org/en/news/2016/02/24/support-plan-of-ruby-2-0-0-and-2-1/
Change-Id: Ie984b06772335352a4be7067ab2485f923875685
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Few tweaks to the rakefile to permit native gems compilation with the proto files generation.
|
| | |
|
| |
| |
| |
| | |
files generation.
|
|\ \
| |/
|/| |
Added dig and bsearch_index to RepeatedField methods forwarded to array
|
| |
| |
| |
| |
| |
| |
| | |
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.
|