aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby
Commit message (Collapse)AuthorAge
* Fixed lint errors and responded to CR comments.Gravatar Josh Haberman2015-07-17
| | | | Change-Id: If7b1cc0f03f609a7f43ddafc8509b44207c60910
* Exclude JRuby from conformance tests for now.Gravatar Josh Haberman2015-07-17
| | | | Change-Id: Id008ebac5159f773e1bde8b85acb2626cbd16de8
* Added Ruby to conformance tests.Gravatar Josh Haberman2015-07-16
| | | | | | | | | | | | | 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
* Worked around memory leak bug in Ruby interpreter.Gravatar Josh Haberman2015-07-08
| | | | | Change-Id: I8e2b425f9008e6b82d41d59783bb8b04af1f886f Fixes: https://github.com/google/protobuf/issues/474.
* Update upb to fix two bugs in the Ruby library.Gravatar Josh Haberman2015-06-22
| | | | | | Fixes: https://github.com/google/protobuf/issues/502 https://github.com/google/protobuf/issues/425
* Fixed compiler warnings and added -std=c99.Gravatar Josh Haberman2015-06-09
| | | | | upb no longer requires -std=c99 but the Ruby/C code still uses C99 features.
* Updated upb to latest version (C89).Gravatar Josh Haberman2015-06-08
| | | | | Since this version of upb supports C89, all of the extra compiler flags are no longer required.
* Update version number to 3.0.0-alpha-4Gravatar Bo Yang2015-05-29
|
* Update version number to 3.0.0-alpha-3Gravatar teboring2015-05-23
|
* down-integrate internal changesGravatar Bo Yang2015-05-21
|
* Ruby C extension speedup: don't re-intern constant string needlessly.Gravatar Chris Fallin2015-05-19
| | | | Also fixed lines with > 80 char length.
* Merge pull request #387 from cfallin/ruby-upb-updateGravatar Joshua Haberman2015-05-18
|\ | | | | Update MRI C Ruby extension to use new version of upb (with upb_env).
* | Don't hardcode bashGravatar Tamir Duberstein2015-05-15
| |
| * Update MRI C Ruby extension to use new version of upb.Gravatar Chris Fallin2015-05-15
| | | | | | | | | | | | | | | | | | - 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-helpersGravatar Chris Fallin2015-05-15
|\ \ | | | | | | ruby: Encode decode cleanup and behavior normalization
* \ \ Merge pull request #385 from cfallin/travis-refactorGravatar Chris Fallin2015-05-14
|\ \ \ | |_|/ |/| | Refactor Travis tests: split configs and run in parallel.
| * | Refactor Travis tests: split configs and run in parallel.Gravatar Chris Fallin2015-05-14
| | |
* | | make repeated_field quack like an arrayGravatar Adam Greene2015-05-14
|/ /
* | Added Ruby to Travis testing.Gravatar Chris Fallin2015-05-13
| | | | | | | | | | | | | | | | | | - Added RVM-based Ruby test driver that tests MRI and JRuby. - Fixed JRuby compilation (at least in my current setup): force source version to 1.6 (Java 6) to allow generics and annotations. - Modify the skipped JRuby JSON tests so that the exit code is 0 (skip() results in a failing exit code from `rake test`). An upcoming PR should fix JSON under JRuby in general soon.
| * adding and simplifying encoders/decodersGravatar Adam Greene2015-05-13
|/ | | | | | * 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
* Merge pull request #334 from skippy/allow-msg-to-accept-nilGravatar Chris Fallin2015-05-02
|\ | | | | ruby: allow a message field to be unset
| * allow a message field to be unsetGravatar Adam Greene2015-05-02
| |
* | return nil if array index indicie is out of boundsGravatar Adam Greene2015-05-01
|/ | | | | | | 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 lengthGravatar Adam Greene2015-05-01
| | | | | | | | | | 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
* build cleanupsGravatar Adam Greene2015-05-01
| | | | | | * update docs to simplify build steps * Gemfile.lock seemed to have an older version specified * do not check in the pkg dir
* Bump gem version to release bugfix.Gravatar Chris Fallin2015-04-13
|
* Fixed issue #283: crash in JSON handler cleanup.Gravatar Chris Fallin2015-04-13
| | | | Includes repro test case from @wfarr.
* add jruby support by protobuf-java reflection APIGravatar Isaiah Peng2015-03-10
|
* Updated Ruby gem version and added note to ruby/README.md regarding version ↵Gravatar Chris Fallin2015-03-03
| | | | | | number scheme. Change-Id: Idb29077c153530de78ce28c094442aa8f51ddd25
* Bump the version number to 3.0.0-alpha-3-preGravatar Jisi Liu2015-03-02
| | | | Change-Id: I33479e529b060e4fed532a827a386d3baecc835e
* Updated Ruby README with more details on getting started.Gravatar Chris Fallin2015-02-23
| | | | Change-Id: I54df314660cdb861ad8c4da75a08d4cb97faf638
* Update Ruby gem version to 3.0.0.alpha.2.0.Gravatar Chris Fallin2015-02-20
| | | | | | | | This update conforms to our two-numbers-after-alpha scheme that allows us to bump the last number if we need to re-upload a gem. (Rubygems does not allow re-use of a version number once a gem is uploaded.) Change-Id: Ia8e7c129d19800afd66f8052785cf5a00462c7ba
* Updated Ruby README.Gravatar Chris Fallin2015-02-20
| | | | Change-Id: I8c3717f549c9b4e9d07c77ec5875c9cd62b296ac
* Merge pull request #211 from isaiah/map_inspectGravatar Chris Fallin2015-02-17
|\ | | | | Ruby implementation Map#inspect should be consistent with Hash#inspect
| * Google::Protobuf::Map#inspect should be consistent with Hash#inspectGravatar Isaiah Peng2015-02-14
| |
* | Addressed code-review comment.Gravatar Chris Fallin2015-02-13
| |
* | Properly support maps in Ruby protoc and another bugfix.Gravatar Chris Fallin2015-02-12
| | | | | | | | | | | | | | | | | | | | 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-upbGravatar Joshua Haberman2015-02-05
|\ \ | |/ |/| Updated to latest upb and added test for JSON map operation.
| * README.md update for Ruby gem.Gravatar Chris Fallin2015-02-05
| |
* | Merge pull request #190 from isaiah/to_aryGravatar Chris Fallin2015-02-03
|\ \ | | | | | | add #to_ary to RepeatedField
| * | add #to_ary to RepeatedFieldGravatar Isaiah Peng2015-02-03
| | |
| | * Updated to latest upb and added test for JSON map operation.Gravatar Chris Fallin2015-02-02
| |/ |/|
* | Updated based on code-review comments.Gravatar Chris Fallin2015-02-02
| |
* | Updated based on code-review comments.Gravatar Chris Fallin2015-02-02
| |
* | Addressed code-review comments.Gravatar Chris Fallin2015-01-26
| |
* | Addressed code-review comments.Gravatar Chris Fallin2015-01-26
| |
* | Ruby extension: added oneof accessor.Gravatar Chris Fallin2015-01-14
| |
* | Addressed code-review comments.Gravatar Chris Fallin2015-01-14
| |
* | Two tests for Ruby code generator:Gravatar Chris Fallin2015-01-14
| | | | | | | | | | | | | | | | | | | | | | | | - 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.Gravatar Chris Fallin2015-01-14
|/