Zachary Anker
70544627cb
When initializing a message, skip a field if value is nil ( #3693 )
2018-06-26 20:27:24 -07:00
Erik Benoist
74f8e24232
Adds a base class for all explicitly raised TypeErrors ( #4255 )
...
* This allows for ruby code to catch and handle Protobuf
TypeErrors separately from the standard Ruby TypeError
* Maintains backwards compatibility by having the new
Google::Protobuf::TypeError inherit from the base
TypeError. Any code that was catching TypeError should
continue to work.
2018-06-26 20:24:24 -07:00
Adam Cozzette
82d3d7d250
Merge branch '3.6.x' into merge-3-6-x
2018-06-25 13:22:10 -07:00
Paul Yang
f7ada1280f
Build ruby gem on kokoro ( #4819 )
...
* 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
2018-06-25 11:14:49 -07:00
igorpeshansky
944693c44c
Add Google::Protobuf::Any.pack convenience class method. ( #4719 )
2018-06-19 13:26:41 -07:00
Erik Benoist
c19fcee48f
Allows the json marshaller to be passed json marshal options ( #4252 )
2018-05-25 13:03:30 -07:00
Paul Yang
5289ee0c21
Adopt ruby_package in ruby generated code. ( #4627 )
...
* Adopt ruby_package in ruby generated code.
* Add test for ruby_package
2018-05-25 13:02:59 -07:00
Erik Benoist
a8e2359329
Allows the json marshaller to be passed json marshal options ( #4252 )
2018-05-22 08:14:04 -07:00
Paul Yang
9ccc3e536c
Adopt ruby_package in ruby generated code. ( #4627 )
...
* Adopt ruby_package in ruby generated code.
* Add test for ruby_package
2018-05-17 17:11:06 -07:00
Jisi Liu
45eb28b588
Update version number to 3.6.0
2018-05-14 16:06:22 -07:00
Stuart Campbell
05c2d01b61
Fix RepeatedField#delete_if ( #4292 )
...
Make RepeatedField#delete_if consistent with Array#delete_if.
2018-04-30 16:04:13 -07:00
Jisi Liu
9972e1608e
Set ext.no_native = true for non mac platform
...
From:
https://github.com/rake-compiler/rake-compiler/issues/146#issuecomment-368539245
2018-04-25 09:52:30 -07:00
Paul Yang
c931743461
Merge branch ( #4466 )
...
* Fix setup.py for windows build.
* Bump version number to 3.5.2
* Cat the test-suite.log on errors for presubits
2018-04-02 15:55:28 -07:00
Joshua Haberman
4f110257c5
Merge pull request #4167 from mike9005/patch-1
...
Ruby: Fix scope resolution for MessageExts
2018-03-13 13:46:01 -07:00
Jisi Liu
bb40c0c0c4
Merge pull request #4291 from google/3.5.x
...
Merge 3.5.x to master
2018-02-26 10:05:09 -08:00
Jisi Liu
2a8e10257f
Bumping number to fix ruby 2.1 on mac
2018-01-26 15:17:38 -08:00
Jisi Liu
53d907f646
Update rake file to build of 2.1.6.
2018-01-17 17:01:32 -08:00
Jisi Liu
d9f0f0bfac
Support ruby2.5
2018-01-17 15:00:46 -08:00
Michael Collis
2a6eaeb86e
Fix scope resolution for MessageExts in Ruby
2018-01-12 15:16:16 -05:00
Jisi Liu
383a4941d5
Merge remote-tracking branch 'origin/3.5.x' into master
2018-01-03 09:28:40 -08:00
Jisi Liu
050fc9a437
Update version number to 3.5.1
2017-12-19 11:00:33 -08:00
Paul Yang
cf7c15e31a
Fix ruby gc_test in ruby 2.4 ( #4011 )
...
* Fix ruby gc_test in ruby 2.4
* Initialize global variables to Qnil.
2017-12-08 12:38:25 -08:00
Paul Yang
0e7b589566
Add discard unknown API in ruby. ( #3990 )
...
* 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
2017-12-07 14:18:38 -08:00
W
0316ae802d
--pre is not necessary
...
--pre was not necessary to install google-protobuf when I tried it today (2017-12-06).
2017-12-06 18:18:50 +01:00
Adam Cozzette
a27da09339
Merge branch '3.5.x' into 3.5.x-merge
2017-11-30 13:34:51 -08:00
Joshua Haberman
0289dd8f90
Merge pull request #2519 from rubynerd-forks/ruby-fix-repeated-message-type-field
...
unwrap descriptor class before comparison of RepeatedField types
2017-11-29 10:07:35 -08:00
Jisi Liu
97dd175a91
Update version number to 3.5.0
2017-11-02 14:16:22 -07:00
Paul Yang
23adfeb003
Reserve unknown in Ruby ( #3763 )
...
* 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
2017-10-26 14:41:43 -07:00
@rubynerd
1e58006b3c
test for field reassignment
2017-10-12 18:23:01 +01:00
Jisi Liu
de15e73d58
Merge remote-tracking branch 'origin/3.4.x' into master
2017-10-11 14:44:03 -07:00
Paul Yang
cd5f49d094
Fix ruby segment fault ( #3708 )
...
* 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
2017-10-03 17:28:49 -07:00
Joshua Haberman
4fc75296c7
Merge pull request #3627 from zanker/zanker/add-submsg-hash-init
...
Allow initializing a chain of protos using only a hash in Ruby
2017-09-21 15:08:45 -07:00
Zachary Anker
633ef8bde9
Update message.c
2017-09-21 09:26:54 -07:00
Zachary Anker
8eae3fe6e9
Update message.c
2017-09-20 12:45:42 -07:00
Zachary Anker
87714836e3
Allow initializing a chain of protos using only a hash
2017-09-20 11:39:46 -07:00
Zachary Anker
83264bd160
Fixed to_h with repeated messages to return hashes in Ruby
2017-09-20 11:38:05 -07:00
Jisi Liu
2eb1bacc26
Bumping minor version for ruby gems
2017-09-15 13:57:16 -07:00
Jisi Liu
dba647a6b2
Bump version for minor release
2017-09-14 11:12:55 -07:00
Aaron Patterson
a459b224b5
Storing the frame on the map means we don't need the array
2017-09-13 14:28:02 -07:00
Aaron Patterson
c1dd8e85a1
Move parse frame array to the Map object
...
This makes the frame stack per-parser, and per-thread. Fixes #3250
2017-09-13 14:27:52 -07:00
Aaron Patterson
f55c6ec24f
Storing the frame on the map means we don't need the array
2017-08-30 11:38:09 -07:00
Aaron Patterson
d6152dd51c
Move parse frame array to the Map object
...
This makes the frame stack per-parser, and per-thread. Fixes #3250
2017-08-30 11:38:04 -07:00
Jisi Liu
d76e4c7068
Bump gemspec again
2017-08-18 16:18:45 -07:00
Jisi Liu
19266369f0
Bump gem version for the next upload
2017-08-17 13:10:47 -07:00
Jisi Liu
7bb39bef1a
Update version number for 3.4.0
2017-07-24 16:03:49 -07:00
Adam Cozzette
bd5ab154da
Merge pull request #2482 from andreaseger/fix_ruby_timestamp_accuracy
...
[Ruby] fix floating point accuracy problem in Timestamp#to_f
2017-07-06 08:11:50 -07:00
Joshua Haberman
1325588982
Updated upb to fix JSON conformance issues. ( #3206 )
...
* Fixed a bunch of Ruby conformance errors.
* Fixed some more Ruby conformance errors in JSON.
2017-06-19 15:13:24 -07:00
Joshua Haberman
b28617b813
Merge pull request #2815 from devwout/ruby_json_emit_defaults
...
Ruby version optionally emits default values in JSON encoding.
2017-05-15 08:05:27 -07:00
Andreas Eger
78cb804063
change test for nanosecond accurate timestamps
2017-05-13 22:20:45 +02:00
Andreas Eger
ad203bcb2b
fix floating point accuracy problem in Timestamp#to_f
...
`.quo` return the most exact devision which fixes accuracy problems for the
timestamp coercion
2017-05-13 21:38:15 +02:00