miyucy
3881f49ce9
Add size to Map class ( #8068 )
3 years ago
Jason Lunn
b5687819a6
Fix a test regression observed after branch update
3 years ago
Jason Lunn
a09c8e1c79
Fix logic to decouple from the order of fields.keySet
3 years ago
Jason Lunn
3581d85ced
Update JRuby to leverage pure-Ruby DSL.
...
JRuby unit and conformance test fixes.
3 years ago
Rob Widmer
1d39f78818
Fix jruby support to handle messages nested more than 1 level deep
4 years ago
Rob Widmer
53be4109c0
Fixed spelling error in JRuby Protobuf class
4 years ago
Rob Widmer
7b1d6abbe4
Fix some more failing tests
4 years ago
Rob Widmer
8313e577e5
Fix ruby gem to work with JRuby
4 years ago
listonjesse
2ae7cf0e03
Auxillary -> Auxiliary
5 years ago
Brian Wignall
a104dffcb6
Fix typos ( #7050 )
...
Uses https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines to find likely typos, with https://github.com/bwignall/typochecker to help automate the checking.
5 years ago
Mike Moore
565154af78
Remove Ruby to_hash methods
6 years ago
Xiang Dai
e479410564
delete all duplicate empty blanks ( #5758 )
...
Signed-off-by: Xiang Dai <764524258@qq.com>
6 years ago
Zachary Anker
70544627cb
When initializing a message, skip a field if value is nil ( #3693 )
7 years ago
Zachary Anker
87714836e3
Allow initializing a chain of protos using only a hash
7 years ago
Zachary Anker
83264bd160
Fixed to_h with repeated messages to return hashes in Ruby
7 years ago
Brendan Ribera
525c6327ab
Fix hash computation for JRuby's RubyMessage
...
`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.
8 years ago
Brendan Ribera
05aa0df532
Fix hash computation for JRuby's RubyMessage
...
`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.
8 years ago
Josh Haberman
d07a9963df
Ruby: fixed string freezing for JRuby.
8 years ago
Josh Haberman
2d514ce2d8
Fixed oneof behavior for enums and fixed JRuby.
9 years ago
Josh Haberman
69ac430c02
Removed 'optional' from proto3 syntax file.
9 years ago
Anders Carling
3a5f213cca
Invoke super implementation instead of raising error
9 years ago
Anders Carling
0559f3ee9e
Add field name to initialization map exceptions
9 years ago
Anders Carling
8bcd0d7fc7
Use same exception class in ruby and jruby
9 years ago
Anders Carling
0df1e398eb
Raise NoMethodError for unknown fields
...
More informative and more ruby-like
9 years ago
Adam Greene
cd7ebbe54f
make repeated_field quack like an array
10 years ago
Adam Greene
d1b52a00e0
adding and simplifying encoders/decoders
...
* 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
10 years ago
Adam Greene
64678265c5
allow a message field to be unset
10 years ago
Adam Greene
d55733c76e
return nil if array index indicie is out of bounds
...
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
10 years ago
Isaiah Peng
27e2b57830
add jruby support by protobuf-java reflection API
10 years ago