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.
2020-01-08 10:18:20 -08:00
Mike Moore
565154af78
Remove Ruby to_hash methods
2019-05-22 13:21:51 -06:00
Xiang Dai
e479410564
delete all duplicate empty blanks ( #5758 )
...
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-20 19:28:50 -08:00
Zachary Anker
70544627cb
When initializing a message, skip a field if value is nil ( #3693 )
2018-06-26 20:27:24 -07:00
Joshua Haberman
4fc75296c7
Merge pull request #3627 from zanker/zanker/add-submsg-hash-init
...
Allow initializing a chain of protos using only a hash in Ruby
2017-09-21 15:08:45 -07:00
Zachary Anker
87714836e3
Allow initializing a chain of protos using only a hash
2017-09-20 11:39:46 -07:00
Zachary Anker
83264bd160
Fixed to_h with repeated messages to return hashes in Ruby
2017-09-20 11:38:05 -07:00
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.
2016-09-20 11:07:42 -07:00
Josh Haberman
d07a9963df
Ruby: fixed string freezing for JRuby.
2016-07-25 01:26:14 -07:00
Josh Haberman
2d514ce2d8
Fixed oneof behavior for enums and fixed JRuby.
2016-05-18 15:39:29 -07:00
Joshua Haberman
8fc045d8d2
Merge pull request #1224 from google/rubysentinel
...
Removed 'optional' from proto3 syntax file.
2016-02-16 15:43:21 -08:00
Josh Haberman
69ac430c02
Removed 'optional' from proto3 syntax file.
2016-02-10 14:16:49 -08:00
Anders Carling
3a5f213cca
Invoke super implementation instead of raising error
2015-11-23 14:53:33 +01:00
Anders Carling
0559f3ee9e
Add field name to initialization map exceptions
2015-11-20 21:57:28 +01:00
Anders Carling
8bcd0d7fc7
Use same exception class in ruby and jruby
2015-11-20 21:56:04 +01:00
Anders Carling
0df1e398eb
Raise NoMethodError for unknown fields
...
More informative and more ruby-like
2015-11-20 21:55:18 +01:00
Chris Fallin
a526605aec
Merge pull request #338 from skippy/encode-decode-helpers
...
ruby: Encode decode cleanup and behavior normalization
2015-05-15 10:52:56 -07:00
Adam Greene
cd7ebbe54f
make repeated_field quack like an array
2015-05-14 10:38:11 -07:00
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
2015-05-13 10:03:56 -07:00
Chris Fallin
16a283f794
Merge pull request #334 from skippy/allow-msg-to-accept-nil
...
ruby: allow a message field to be unset
2015-05-02 19:02:08 -07:00
Adam Greene
64678265c5
allow a message field to be unset
2015-05-02 13:48:23 -07:00
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
2015-05-01 22:50:57 -07:00
Isaiah Peng
27e2b57830
add jruby support by protobuf-java reflection API
2015-03-10 23:14:08 +01:00