aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/ext/google
Commit message (Collapse)AuthorAge
* More Ruby-eqsue interfaceGravatar Marcin Wyszynski2016-11-03
|
* fix #2036: use `rb_hash_*` to accumulate hashesGravatar Brendan Ribera2016-08-30
| | | | | | | Instead of shifting/xoring the hash at each field, use the built-in ruby apis for generating a hash from multiple input values. Now returns a Fixnum.
* upb bugfix: JSON map entry keys were passing the wrong closure.Gravatar Josh Haberman2016-08-29
|
* Ruby: make sure map parsing frames are GC-rooted.Gravatar Josh Haberman2016-08-26
|
* Ruby: encode and freeze strings when the are assigned or decoded.Gravatar Josh Haberman2016-07-21
|
* Fix spelling in strings and commentsGravatar Otto Kekäläinen2016-07-03
|
* Fixed oneof behavior for enums and fixed JRuby.Gravatar Josh Haberman2016-05-18
|
* Ruby oneofs: return default instead of nil for unset fields.Gravatar Josh Haberman2016-05-18
|
* Updated upb and simplified ruby code a bit with new upb method.Gravatar Josh Haberman2016-04-22
|
* Bugfix for JSON error case.Gravatar Josh Haberman2016-04-14
|
* Ruby JSON: always accept both camelCase and original field names.Gravatar Josh Haberman2016-04-14
| | | | | | | | For JSON encoding we provide a new option to decide at encode time whether to use camelCase or original proto field names: json = MapMessage.encode_json(m, :preserve_proto_fieldnames => true)
* Updated upb: picked up legacy JSON flags to help Ruby users migrate.Gravatar Josh Haberman2016-04-14
| | | | | | | | | | | | | The flags are: UPB_JSON_ACCEPT_LEGACY_FIELD_NAMES UPB_JSON_WRITE_LEGACY_FIELD_NAMES The first just allows the parser to accept the old field names. The second makes the printer print the old field names. These flags are intended to be temporary, as a migration aid for users.
* Updated upb from latest changes.Gravatar Josh Haberman2016-02-18
|
* Changed Ruby to properly camelCase its JSON by default.Gravatar Josh Haberman2016-02-18
|
* Merge pull request #1144 from dongjoon-hyun/remove_redundant_theGravatar Joshua Haberman2016-02-11
|\ | | | | Remove redundant `the`.
| * Remove redundant `the` in comments.Gravatar Dongjoon Hyun2016-02-03
| |
* | Add field name to initialization map exceptionsGravatar Anders Carling2015-11-20
| |
* | Raise NoMethodError for unknown fieldsGravatar Anders Carling2015-11-20
|/ | | | More informative and more ruby-like
* A very small fix to silence some warnings.Gravatar Josh Haberman2015-09-28
| | | | | | | Also updated the Gemfile.lock since alpha-4 has been pushed to RubyGems. Change-Id: I8ddc5f125f28aa9a33c88dfe48251a75a877e1d3
* Merge pull request #584 from haberman/cwarningsGravatar Joshua Haberman2015-08-21
|\ | | | | Ruby: Conform to C89/C90 variable declaration rules.
| * Return TypedData_Wrap_Struct directly.Gravatar Josh Haberman2015-08-20
| | | | | | | | Change-Id: I6cf77f01370204ad4bc7b345a040a9a3de1706a0
* | Fixed several Ruby conformance test cases through upb update.Gravatar Josh Haberman2015-08-12
| | | | | | | | Change-Id: Ief77de7134e05e07b1a7e3970d49880c2d5e6fe9
* | 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
| * Conform to C89/C90 variable declaration rules.Gravatar Josh Haberman2015-07-10
| | | | | | | | | | | | | | | | | | | | | | | | While we are C99 in general, the Ruby build system for building C extensions enables several flags that throw warnings for C89/C90 variable ordering rules. To avoid spewing a million warnings (or trying to specifically override these warnings with command-line flags, which would be tricky and possibly fragile) we conform to Ruby's world of C89/C90. Change-Id: I0e03e62d95068dfdfde112df0fb16a248a2f32a0
* | 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.
* 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).
| * 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
* | make repeated_field quack like an arrayGravatar Adam Greene2015-05-14
| |
| * 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
* Fixed issue #283: crash in JSON handler cleanup.Gravatar Chris Fallin2015-04-13
| | | | Includes repro test case from @wfarr.
* 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.
* | 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
| |