aboutsummaryrefslogtreecommitdiff
path: root/ruby
Commit message (Collapse)AuthorAgeFilesLines
* Updated version numbers to 3.6.1Adam Cozzette2018-07-271-1/+1
|
* Check the message to be encoded is the wrong type. (#4885) (#4949)Paul Yang2018-07-232-0/+17
| | | | | | * Check the message to be encoded is the wrong type. (#4885) * Change TypeError to ArgumentError
* Add continuous test for ruby 2.3, 2.4 and 2.5 (#4829)Paul Yang2018-07-175-36/+135
| | | | | | | | | | | | * Add continuous test for ruby 2.3, 2.4 and 2.5 * Change ruby 2.5 to 2.5.0 * No need to provide argument to rb_funcall when argc is 0 * Fix tests for ruby 2.5 * Use rescue instead of assert_raise to accept subclass of error
* Build ruby gem on kokoro (#4819)Paul Yang2018-06-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | * Install rake compiler * Add kokoro config to build ruby gem on linux * Rename from linix to linux * Fix prepare_build.sh name * Clean up * Install bundler * Install bundler * Use c99 in order to build gem on mingw-32 on ruby 2.0.0 See https://github.com/rake-compiler/rake-compiler-dock/issues/4 * Move c99 config to extcofig.rb
* Allows the json marshaller to be passed json marshal options (#4252)Erik Benoist2018-05-253-4/+28
|
* Adopt ruby_package in ruby generated code. (#4627)Paul Yang2018-05-253-0/+14
| | | | | | * Adopt ruby_package in ruby generated code. * Add test for ruby_package
* Update version number to 3.6.0Jisi Liu2018-05-141-1/+1
|
* Fix RepeatedField#delete_if (#4292)Stuart Campbell2018-04-302-2/+11
| | | Make RepeatedField#delete_if consistent with Array#delete_if.
* Set ext.no_native = true for non mac platformJisi Liu2018-04-251-0/+6
| | | | | From: https://github.com/rake-compiler/rake-compiler/issues/146#issuecomment-368539245
* Merge branch (#4466)Paul Yang2018-04-021-1/+1
| | | | | | | | * Fix setup.py for windows build. * Bump version number to 3.5.2 * Cat the test-suite.log on errors for presubits
* Merge pull request #4167 from mike9005/patch-1Joshua Haberman2018-03-131-2/+2
|\ | | | | Ruby: Fix scope resolution for MessageExts
| * Fix scope resolution for MessageExts in RubyMichael Collis2018-01-121-2/+2
| |
* | Merge pull request #4291 from google/3.5.xJisi Liu2018-02-262-3/+3
|\ \ | |/ |/| Merge 3.5.x to master
| * Bumping number to fix ruby 2.1 on macJisi Liu2018-01-261-1/+1
| |
| * Update rake file to build of 2.1.6.Jisi Liu2018-01-171-2/+2
| |
| * Support ruby2.5Jisi Liu2018-01-172-3/+3
| |
* | Merge remote-tracking branch 'origin/3.5.x' into masterJisi Liu2018-01-039-14/+181
|\|
| * Update version number to 3.5.1Jisi Liu2017-12-191-1/+1
| |
| * Fix ruby gc_test in ruby 2.4 (#4011)Paul Yang2017-12-083-13/+13
| | | | | | | | | | | | * Fix ruby gc_test in ruby 2.4 * Initialize global variables to Qnil.
| * Add discard unknown API in ruby. (#3990)Paul Yang2017-12-075-0/+167
| | | | | | | | | | | | | | | | | | | | | | | | * Add discard unknown API in ruby. * Add test for oneof message field. * Add TestUnknown to represent unknown field data clearly. * Only serialize the message with unknown fields itself in test. * Move discard_unknown from Message to Google.Protobuf
* | --pre is not necessaryW2017-12-061-4/+0
| | | | | | --pre was not necessary to install google-protobuf when I tried it today (2017-12-06).
* | Merge branch '3.5.x' into 3.5.x-mergeAdam Cozzette2017-11-301-1/+1
|\|
| * Update version number to 3.5.0Jisi Liu2017-11-021-1/+1
| |
* | Merge pull request #2519 from ↵Joshua Haberman2017-11-292-4/+18
|\ \ | |/ |/| | | | | rubynerd-forks/ruby-fix-repeated-message-type-field unwrap descriptor class before comparison of RepeatedField types
| * test for field reassignment@rubynerd2017-10-121-0/+6
| |
| * handle sanity check for repeating enums correctly@rubynerd2016-12-301-3/+11
| |
| * unwrap descriptor class before comparison of RepeatedField types@rubynerd2016-12-191-1/+1
| | | | | | | | | | | | | | self->field_type_class returns the correct Ruby class, get_def_obj returns the Descriptor object used to generate the Ruby class via msgclass, so to compare the two types we get the msgclass from the descriptor.
* | Reserve unknown in Ruby (#3763)Paul Yang2017-10-265-827/+1958
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reserve unknown in ruby * Revert ruby tests. Wait for cpp impl for conformance test * Add conformance test for preserving unknown * Add unknown field conformance test to csharp failure list. * Fix comments * Fix comment * Fix comments * Fix typo * Use stringsink_string directly * Mark hd unused * Remove unused encodeunknown_handlerfunc
* | Merge remote-tracking branch 'origin/3.4.x' into masterJisi Liu2017-10-111-1/+1
|\ \
| * | Bumping minor version for ruby gemsJisi Liu2017-09-151-1/+1
| | |
| * | Bump version for minor releaseJisi Liu2017-09-141-1/+1
| | |
| * | Storing the frame on the map means we don't need the arrayAaron Patterson2017-09-133-14/+9
| | |
| * | Move parse frame array to the Map objectAaron Patterson2017-09-135-23/+42
| | | | | | | | | | | | This makes the frame stack per-parser, and per-thread. Fixes #3250
* | | Fix ruby segment fault (#3708)Paul Yang2017-10-036-9/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix ruby segment fault 1) rb_ary_new cannot be called during allocate function. During allocate fucntion, the containing object hasn't been marked and rb_ary_new may invoke gc to collect containing object. 2) The global map should be marked before allocating it. Otherwise it may be garbage collected. * Add test * Remove commented code * Fix grammer error
* | | Merge pull request #3627 from zanker/zanker/add-submsg-hash-initJoshua Haberman2017-09-215-26/+116
|\ \ \ | | | | | | | | Allow initializing a chain of protos using only a hash in Ruby
| * | | Update message.cZachary Anker2017-09-211-2/+1
| | | |
| * | | Allow initializing a chain of protos using only a hashZachary Anker2017-09-205-26/+117
| | | |
* | | | Update message.cZachary Anker2017-09-201-1/+1
| | | |
* | | | Fixed to_h with repeated messages to return hashes in RubyZachary Anker2017-09-203-3/+22
|/ / /
* | | Storing the frame on the map means we don't need the arrayAaron Patterson2017-08-303-14/+9
| | |
* | | Move parse frame array to the Map objectAaron Patterson2017-08-305-23/+42
|/ / | | | | | | This makes the frame stack per-parser, and per-thread. Fixes #3250
* | Bump gemspec againJisi Liu2017-08-181-1/+1
| |
* | Bump gem version for the next uploadJisi Liu2017-08-171-1/+1
| |
* | Update version number for 3.4.0Jisi Liu2017-07-241-1/+1
| |
* | Merge pull request #2482 from andreaseger/fix_ruby_timestamp_accuracyAdam Cozzette2017-07-062-3/+11
|\ \ | | | | | | [Ruby] fix floating point accuracy problem in Timestamp#to_f
| * | change test for nanosecond accurate timestampsAndreas Eger2017-05-131-2/+5
| | |
| * | fix floating point accuracy problem in Timestamp#to_fAndreas Eger2017-05-132-3/+8
| | | | | | | | | | | | | | | `.quo` return the most exact devision which fixes accuracy problems for the timestamp coercion
* | | Updated upb to fix JSON conformance issues. (#3206)Joshua Haberman2017-06-193-506/+488
| | | | | | | | | | | | | | | | | | * Fixed a bunch of Ruby conformance errors. * Fixed some more Ruby conformance errors in JSON.
* | | Merge pull request #2815 from devwout/ruby_json_emit_defaultsJoshua Haberman2017-05-152-33/+149
|\ \ \ | |/ / |/| | Ruby version optionally emits default values in JSON encoding.
| * | Ruby tests compare parsed JSON instead of raw JSONEwout2017-03-171-12/+89
| | |