aboutsummaryrefslogtreecommitdiff
path: root/ruby/src
Commit message (Collapse)AuthorAgeFilesLines
* When initializing a message, skip a field if value is nil (#3693)Zachary Anker2018-06-261-0/+2
|
* Merge pull request #3627 from zanker/zanker/add-submsg-hash-initJoshua Haberman2017-09-211-16/+27
|\ | | | | Allow initializing a chain of protos using only a hash in Ruby
| * Allow initializing a chain of protos using only a hashZachary Anker2017-09-201-16/+27
| |
* | Fixed to_h with repeated messages to return hashes in RubyZachary Anker2017-09-201-1/+13
|/
* Fix hash computation for JRuby's RubyMessageBrendan Ribera2016-09-201-2/+17
| | | | | | | | | | `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.
* Ruby: fixed string freezing for JRuby.Josh Haberman2016-07-254-23/+26
|
* Fixed oneof behavior for enums and fixed JRuby.Josh Haberman2016-05-181-4/+8
|
* Merge pull request #1224 from google/rubysentinelJoshua Haberman2016-02-161-9/+9
|\ | | | | Removed 'optional' from proto3 syntax file.
| * Removed 'optional' from proto3 syntax file.Josh Haberman2016-02-101-9/+9
| |
* | Invoke super implementation instead of raising errorAnders Carling2015-11-231-2/+2
| |
* | Add field name to initialization map exceptionsAnders Carling2015-11-201-2/+2
| |
* | Use same exception class in ruby and jrubyAnders Carling2015-11-201-1/+1
| |
* | Raise NoMethodError for unknown fieldsAnders Carling2015-11-201-0/+12
|/ | | | More informative and more ruby-like
* Merge pull request #338 from skippy/encode-decode-helpersChris Fallin2015-05-154-55/+11
|\ | | | | ruby: Encode decode cleanup and behavior normalization
| * adding and simplifying encoders/decodersAdam Greene2015-05-134-55/+11
| | | | | | | | | | | | * 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
* | make repeated_field quack like an arrayAdam Greene2015-05-142-72/+107
|/
* Merge pull request #334 from skippy/allow-msg-to-accept-nilChris Fallin2015-05-021-5/+10
|\ | | | | ruby: allow a message field to be unset
| * allow a message field to be unsetAdam Greene2015-05-021-5/+10
| |
* | return nil if array index indicie is out of boundsAdam Greene2015-05-012-13/+25
|/ | | | | | | 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
* add jruby support by protobuf-java reflection APIIsaiah Peng2015-03-1018-0/+4467