Joshua Haberman
44bd6bda58
Merge pull request #1821 from haberman/rubyfreezestr
...
Ruby: encode and freeze strings when the are assigned or decoded.
2016-07-25 10:09:15 -07:00
Josh Haberman
d07a9963df
Ruby: fixed string freezing for JRuby.
2016-07-25 01:26:14 -07:00
Feng Xiao
20fbb357d0
Add more tests to jenkins.
...
1. Added ruby22 and jruby tests to jenkins.
2. Added javascript tests to jenkins.
3. Added golang tests to jenkins.
4. Removed ruby19/ruby20 tests from travis. Support for ruby 2.0 has
ended since 2016/02/24.
https://www.ruby-lang.org/en/news/2016/02/24/support-plan-of-ruby-2-0-0-and-2-1/
Change-Id: Ie984b06772335352a4be7067ab2485f923875685
2016-07-21 18:11:12 -07:00
Josh Haberman
ff7f68ae9f
Ruby: encode and freeze strings when the are assigned or decoded.
2016-07-21 11:37:54 -07:00
Feng Xiao
932f94e16e
Update version number to 3.0.0-beta-4
2016-07-13 16:08:47 -07:00
Otto Kekäläinen
3808d091f8
Fix spelling in strings and comments
2016-07-03 15:26:04 +03:00
Josh Haberman
2d514ce2d8
Fixed oneof behavior for enums and fixed JRuby.
2016-05-18 15:39:29 -07:00
Josh Haberman
545527e8cf
Ruby oneofs: return default instead of nil for unset fields.
2016-05-18 10:58:02 -07:00
Jisi Liu
5dea2017db
Update version numbers for other languages
2016-05-10 15:43:39 -07:00
Nicolas "Pixel" Noble
edd29498f4
Properly generating well known proto files for the macos build.
2016-05-04 02:40:25 +02:00
Joshua Haberman
7dda312224
Merge pull request #1473 from nicolasnoble/rake-tweaks
...
Few tweaks to the rakefile to permit native gems compilation with the proto files generation.
2016-05-03 13:10:02 -07:00
Nicolas "Pixel" Noble
236b93937f
Addressing concerns.
2016-04-30 02:15:15 +02:00
Nicolas "Pixel" Noble
1f8b6da920
Few tweaks to the rakefile to permit native gems compilation with the proto files generation.
2016-04-29 20:00:43 +02:00
Adam Cozzette
b53417c735
Merge pull request #1462 from acozzette/ruby-2.3
...
Added dig and bsearch_index to RepeatedField methods forwarded to array
2016-04-28 08:26:26 -07:00
Adam Cozzette
bbb68fe63d
Added dig and bsearch_index to RepeatedField methods forwarded to array
...
This fixes the test_acts_likes_an_array test in RepeatedFieldTest, which
checks that repeated fields respond to the same methods as regular Ruby
arrays. The bsearch_index and dig array methods seem to be new in Ruby
2.3 and so we should support those.
2016-04-27 10:51:22 -07:00
Josh Haberman
d419ca10b4
Updated upb and simplified ruby code a bit with new upb method.
2016-04-22 14:12:10 -07:00
Josh Haberman
e67ef3d449
Bugfix for JSON error case.
2016-04-14 20:27:45 -07:00
Josh Haberman
800e986012
Remove no longer applicable documentation from README.md.
2016-04-14 18:42:22 -07:00
Josh Haberman
194ad621bb
Ruby JSON: always accept both camelCase and original field names.
...
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)
2016-04-14 18:33:17 -07:00
Josh Haberman
90c7f6e55e
Documented the JSON change and compatibility flags.
2016-04-14 12:48:41 -07:00
Josh Haberman
94e54b39c8
Updated upb: picked up legacy JSON flags to help Ruby users migrate.
...
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.
2016-04-14 12:06:09 -07:00
Joshua Haberman
e70f9256af
Merge pull request #1139 from haberman/rubyjsoncamel
...
Changed Ruby to properly camelCase its JSON by default.
2016-03-04 17:31:11 -08:00
Josh Haberman
513875da77
Generate well-known types in Ruby extension and prune unneeded proto2 dependencies.
2016-03-03 14:08:54 -08:00
Josh Haberman
f654d49dd6
Updated upb from latest changes.
2016-02-18 11:48:54 -08:00
Josh Haberman
78da66698b
Changed Ruby to properly camelCase its JSON by default.
2016-02-18 10:50:14 -08:00
Joshua Haberman
8fc045d8d2
Merge pull request #1224 from google/rubysentinel
...
Removed 'optional' from proto3 syntax file.
2016-02-16 15:43:21 -08:00
Joshua Haberman
3ee2e20539
Merge pull request #1144 from dongjoon-hyun/remove_redundant_the
...
Remove redundant `the`.
2016-02-11 17:17:48 -08:00
Joshua Haberman
caf1fb7197
Merge pull request #997 from anderscarling/better_errors
...
ruby: Better exception text for common cases
2016-02-11 12:41:34 -08:00
Josh Haberman
69ac430c02
Removed 'optional' from proto3 syntax file.
2016-02-10 14:16:49 -08:00
Nicolas "Pixel" Noble
bbb188acdd
Actually enabling cross compilation.
2016-02-06 00:55:45 +01:00
Nicolas "Pixel" Noble
4e141bb3b8
Removing usage of git - not everyone grabs the gem using it.
2016-02-06 00:55:28 +01:00
Josh Haberman
70a4b03086
Add rake-compiler-dock as a dep.
2016-02-04 14:18:14 -08:00
Josh Haberman
af4aa9bd64
Added support for binary gems.
2016-02-04 10:44:22 -08:00
Dongjoon Hyun
7a9040fe7f
Remove redundant the
in comments.
2016-02-03 15:27:27 -08:00
Josh Haberman
fc7f8d9cd0
Fixed Ruby conformance tests by running them under rvm Ruby.
2016-01-11 21:16:42 -08:00
Josh Haberman
bf50ec4ac9
Added debugging output to debug type= problem on Travis.
2016-01-11 16:15:46 -08:00
Josh Haberman
e891c29f9b
Allow conformance test runner to tolerate crashes, and re-enable conformance tests.
2016-01-11 16:15:46 -08:00
Feng Xiao
8675989bf7
Disable conformance tests for csharp and ruby.
...
The testee program of these two languages crashes on some test input.
2015-12-21 13:22:21 -08:00
Feng Xiao
aa7e17a6f6
Update version numbers.
...
Version number for beta languages is updated to v3.0.0-beta-2.
Version number for alpha languages is updated to v3.0.0-alpha-5.
2015-12-21 11:31:51 -08:00
Anders Carling
3a5f213cca
Invoke super implementation instead of raising error
2015-11-23 14:53:33 +01:00
Anders Carling
0559f3ee9e
Add field name to initialization map exceptions
2015-11-20 21:57:28 +01:00
Anders Carling
8bcd0d7fc7
Use same exception class in ruby and jruby
2015-11-20 21:56:04 +01:00
Anders Carling
0df1e398eb
Raise NoMethodError for unknown fields
...
More informative and more ruby-like
2015-11-20 21:55:18 +01:00
Josh Haberman
14e2b4fa51
A very small fix to silence some warnings.
...
Also updated the Gemfile.lock since alpha-4 has been
pushed to RubyGems.
Change-Id: I8ddc5f125f28aa9a33c88dfe48251a75a877e1d3
2015-09-28 08:56:14 -07:00
Feng Xiao
1942a2bd2e
Make jruby use Java 3.0.0-alpha-3.
2015-08-26 21:20:59 -07:00
Feng Xiao
ffe9215140
Update version number.
...
Protoc, C++ runtime and Java runtime are updated to v3.0.0-beta-1, other
languages are updated to v3.0.0-alpha-4.
2015-08-26 15:11:43 -07:00
Joshua Haberman
eb65c69e14
Merge pull request #584 from haberman/cwarnings
...
Ruby: Conform to C89/C90 variable declaration rules.
2015-08-21 09:00:40 -07:00
Josh Haberman
d61e6adfcc
Return TypedData_Wrap_Struct directly.
...
Change-Id: I6cf77f01370204ad4bc7b345a040a9a3de1706a0
2015-08-20 16:41:32 -07:00
Josh Haberman
5bdf4a4271
Fixed several Ruby conformance test cases through upb update.
...
Change-Id: Ief77de7134e05e07b1a7e3970d49880c2d5e6fe9
2015-08-12 18:50:15 -07:00
Josh Haberman
c2c43a4917
Fixed lint errors and responded to CR comments.
...
Change-Id: If7b1cc0f03f609a7f43ddafc8509b44207c60910
2015-07-17 16:29:10 -07:00