aboutsummaryrefslogtreecommitdiff
path: root/ruby/ext
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed compiler warnings and added -std=c99.Josh Haberman2015-06-092-10/+7
| | | | | upb no longer requires -std=c99 but the Ruby/C code still uses C99 features.
* Updated upb to latest version (C89).Josh Haberman2015-06-084-5473/+5849
| | | | | Since this version of upb supports C89, all of the extra compiler flags are no longer required.
* Ruby C extension speedup: don't re-intern constant string needlessly.Chris Fallin2015-05-197-29/+45
| | | | Also fixed lines with > 80 char length.
* Merge pull request #387 from cfallin/ruby-upb-updateJoshua Haberman2015-05-186-749/+1408
|\ | | | | Update MRI C Ruby extension to use new version of upb (with upb_env).
| * Update MRI C Ruby extension to use new version of upb.Chris Fallin2015-05-156-749/+1408
| | | | | | | | | | | | | | | | | | - Alter encode/decode paths to use the `upb_env` (environment) abstraction. - Update upb amalgamation to upstream `93791bfe`. - Fix a compilation warning (void*->char* cast). - Modify build flags so that upb doesn't produce warnings -- the Travis build logs were pretty cluttered previously.
* | Merge pull request #338 from skippy/encode-decode-helpersChris Fallin2015-05-154-59/+32
|\ \ | |/ |/| ruby: Encode decode cleanup and behavior normalization
| * adding and simplifying encoders/decodersAdam Greene2015-05-134-59/+32
| | | | | | | | | | | | * 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-49/+80
|/
* Merge pull request #334 from skippy/allow-msg-to-accept-nilChris Fallin2015-05-021-1/+3
|\ | | | | ruby: allow a message field to be unset
| * allow a message field to be unsetAdam Greene2015-05-021-1/+3
| |
* | return nil if array index indicie is out of boundsAdam Greene2015-05-011-6/+14
|/ | | | | | | 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
* Fixed issue #283: crash in JSON handler cleanup.Chris Fallin2015-04-131-1/+1
| | | | Includes repro test case from @wfarr.
* 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
| |
* | Addressed code-review comment.Chris Fallin2015-02-131-0/+4
| |
* | Properly support maps in Ruby protoc and another bugfix.Chris Fallin2015-02-121-13/+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-052-104/+552
|\ \ | |/ |/| 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-022-104/+552
| |
* | Merge pull request #190 from isaiah/to_aryChris Fallin2015-02-031-31/+28
|\ \ | |/ |/| add #to_ary to RepeatedField
| * add #to_ary to RepeatedFieldIsaiah Peng2015-02-031-31/+28
| |
* | Updated based on code-review comments.Chris Fallin2015-02-021-2/+1
| |
* | Updated based on code-review comments.Chris Fallin2015-02-023-16/+51
| |
* | Addressed code-review comments.Chris Fallin2015-01-262-12/+26
| |
* | Addressed code-review comments.Chris Fallin2015-01-263-7/+12
| |
* | Ruby extension: added oneof accessor.Chris Fallin2015-01-142-1/+47
| |
* | Addressed code-review comments.Chris Fallin2015-01-144-58/+65
| |
* | Support oneofs in MRI Ruby C extension.Chris Fallin2015-01-147-233/+1748
|/
* Addressed code-review comments.Chris Fallin2015-01-122-23/+14
|
* Update upb amalgamation.Chris Fallin2015-01-092-400/+747
|
* Addressed code-review comments.Chris Fallin2015-01-096-135/+72
|
* Addressed code-review comments.Chris Fallin2015-01-066-32/+59
|
* Support for maps in the MRI C Ruby extension.Chris Fallin2015-01-0611-161/+1617
| | | | | | | | 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-1211-32/+17528
| | | | | | 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-098-0/+4207
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.