aboutsummaryrefslogtreecommitdiff
path: root/ruby/lib/google
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3847 from FX-HAO/masterJoshua Haberman2018-07-021-0/+6
|\ | | | | Google::Protobuf::Struct can access a missing key (#3846)
| * Google::Protobuf::Struct can access a missing key (#3846)parker2017-11-171-0/+6
| |
* | Adds a base class for all explicitly raised TypeErrors (#4255)Erik Benoist2018-06-261-0/+1
| | | | | | | | | | | | | | | | | | * This allows for ruby code to catch and handle Protobuf TypeErrors separately from the standard Ruby TypeError * Maintains backwards compatibility by having the new Google::Protobuf::TypeError inherit from the base TypeError. Any code that was catching TypeError should continue to work.
* | Add Google::Protobuf::Any.pack convenience class method. (#4719)igorpeshansky2018-06-191-0/+6
| |
* | Allows the json marshaller to be passed json marshal options (#4252)Erik Benoist2018-05-222-4/+4
| |
* | Fix RepeatedField#delete_if (#4292)Stuart Campbell2018-04-301-2/+2
|/ | | Make RepeatedField#delete_if consistent with Array#delete_if.
* fix floating point accuracy problem in Timestamp#to_fAndreas Eger2017-05-131-1/+1
| | | | | `.quo` return the most exact devision which fixes accuracy problems for the timestamp coercion
* Ruby: removed redundant RepeatedField#slice. (#2449)Joshua Haberman2016-12-071-1/+1
|
* Fixing regular expression...Nicolas Noble2016-08-231-1/+1
| | | This will allow loading the extension for Ruby 2.1.10...
* Ruby: added custom Struct exception type and fixed Makefile.am.Josh Haberman2016-08-011-11/+17
|
* Ruby: added API support for well-known types.Josh Haberman2016-07-281-0/+206
|
* Fix spelling in strings and commentsOtto Kekäläinen2016-07-031-1/+1
|
* Added dig and bsearch_index to RepeatedField methods forwarded to arrayAdam Cozzette2016-04-271-2/+2
| | | | | | | 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.
* Added support for binary gems.Josh Haberman2016-02-041-1/+5
|
* Fixed lint errors and responded to CR comments.Josh Haberman2015-07-171-1/+1
| | | | Change-Id: If7b1cc0f03f609a7f43ddafc8509b44207c60910
* Added Ruby to conformance tests.Josh Haberman2015-07-161-0/+9
| | | | | | | | | | | | | 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
* Merge pull request #338 from skippy/encode-decode-helpersChris Fallin2015-05-152-0/+78
|\ | | | | ruby: Encode decode cleanup and behavior normalization
| * adding and simplifying encoders/decodersAdam Greene2015-05-132-0/+78
| | | | | | | | | | | | * 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-141-2/+150
|/
* add size alias for lengthAdam Greene2015-05-012-0/+42
| | | | | | | | | | starting to make `RepeatedField` quack like an array additional changes: * make sure gemspec gets all ruby code files * add homepage in gem spec removes one of the warnings, and the gem spec authors are pushing everyone to include a homepage in the gem * remove excess whitespace in test suite to bring formatting inline with the rest of the file
* add jruby support by protobuf-java reflection APIIsaiah Peng2015-03-101-1/+6
|
* Rename protobuf Ruby module to google/protobuf and rework its buildChris Fallin2014-12-121-0/+31
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'.