aboutsummaryrefslogtreecommitdiff
path: root/ruby/tests/basic.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #334 from skippy/allow-msg-to-accept-nilChris Fallin2015-05-021-0/+2
|\ | | | | ruby: allow a message field to be unset
| * allow a message field to be unsetAdam Greene2015-05-021-0/+2
| |
* | return nil if array index indicie is out of boundsAdam Greene2015-05-011-4/+39
|/ | | | | | | 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 size alias for lengthAdam Greene2015-05-011-2/+12
| | | | | | | | | | 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
* Fixed issue #283: crash in JSON handler cleanup.Chris Fallin2015-04-131-0/+24
| | | | Includes repro test case from @wfarr.
* add jruby support by protobuf-java reflection APIIsaiah Peng2015-03-101-0/+2
|
* Merge pull request #211 from isaiah/map_inspectChris Fallin2015-02-171-1/+1
|\ | | | | Ruby implementation Map#inspect should be consistent with Hash#inspect
| * Google::Protobuf::Map#inspect should be consistent with Hash#inspectIsaiah Peng2015-02-141-1/+1
| |
* | Merge pull request #189 from cfallin/update-ruby-upbJoshua Haberman2015-02-051-0/+8
|\ \ | |/ |/| Updated to latest upb and added test for JSON map operation.
| * Updated to latest upb and added test for JSON map operation.Chris Fallin2015-02-021-0/+8
| |
* | Merge pull request #190 from isaiah/to_aryChris Fallin2015-02-031-1/+2
|\ \ | |/ |/| add #to_ary to RepeatedField
| * add #to_ary to RepeatedFieldIsaiah Peng2015-02-031-1/+2
| |
* | Ruby extension: added oneof accessor.Chris Fallin2015-01-141-0/+6
| |
* | Addressed code-review comments.Chris Fallin2015-01-141-1/+6
| |
* | Support oneofs in MRI Ruby C extension.Chris Fallin2015-01-141-0/+92
|/
* Line-wraps at 80 chars.Chris Fallin2015-01-131-13/+18
|
* Support for maps in the MRI C Ruby extension.Chris Fallin2015-01-061-2/+256
| | | | | | | | This adds the Map container and support for parsing and serializing maps in the protobuf wire format (as defined by the C++ implementation, with MapEntry submessages in a repeated field). JSON map serialization/parsing are not yet supported as these will require some changes to upb as well.
* Rename protobuf Ruby module to google/protobuf and rework its buildChris Fallin2014-12-121-1/+1
| | | | | | 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'.
* Provide a Ruby extension.Chris Fallin2014-12-091-0/+633
This adds a Ruby extension in ruby/ that is based on the 'upb' library (now included as a submodule), and adds support for Ruby code generation to the protoc compiler.