aboutsummaryrefslogtreecommitdiff
path: root/ruby/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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-102-1/+3
|
* 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
| |
* | Properly support maps in Ruby protoc and another bugfix.Chris Fallin2015-02-121-60/+10
| | | | | | | | | | | | | | | | | | | | Previously, we supported map fields in the Ruby DSL. However, we never connected the final link in the chain and generated `map` DSL commands for map fields in `.proto` files. My apologies -- I had been testing with the DSL directly so I missed this. Also fixed a handlerdata-setup-infinite-loop when a map value field's type is its containing message.
* | 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
| |
* | Two tests for Ruby code generator:Chris Fallin2015-01-143-0/+208
| | | | | | | | | | | | | | | | | | | | | | | | - A golden-file test that ensures protoc produces known-valid output. - A Ruby test that loads that golden file and ensures it actually works with the extension. This split strategy allows us to test end-to-end without needing to integrate the Ruby gem build system and the protoc build system. This is desirable because we do not want a gem build/install to depend on building protoc, and we do not want building protoc to depend on building and testing the gem.
* | 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-122-2/+2
| | | | | | 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-092-0/+671
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.