Josh Haberman
2d514ce2d8
Fixed oneof behavior for enums and fixed JRuby.
9 years ago
Josh Haberman
545527e8cf
Ruby oneofs: return default instead of nil for unset fields.
9 years ago
Jisi Liu
5dea2017db
Update version numbers for other languages
9 years ago
Nicolas "Pixel" Noble
edd29498f4
Properly generating well known proto files for the macos build.
9 years ago
Nicolas "Pixel" Noble
236b93937f
Addressing concerns.
9 years ago
Nicolas "Pixel" Noble
1f8b6da920
Few tweaks to the rakefile to permit native gems compilation with the proto files generation.
9 years ago
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.
9 years ago
Josh Haberman
d419ca10b4
Updated upb and simplified ruby code a bit with new upb method.
9 years ago
Josh Haberman
e67ef3d449
Bugfix for JSON error case.
9 years ago
Josh Haberman
800e986012
Remove no longer applicable documentation from README.md.
9 years ago
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)
9 years ago
Josh Haberman
90c7f6e55e
Documented the JSON change and compatibility flags.
9 years ago
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.
9 years ago
Josh Haberman
513875da77
Generate well-known types in Ruby extension and prune unneeded proto2 dependencies.
9 years ago
Josh Haberman
f654d49dd6
Updated upb from latest changes.
9 years ago
Josh Haberman
78da66698b
Changed Ruby to properly camelCase its JSON by default.
9 years ago
Josh Haberman
69ac430c02
Removed 'optional' from proto3 syntax file.
9 years ago
Nicolas "Pixel" Noble
bbb188acdd
Actually enabling cross compilation.
9 years ago
Nicolas "Pixel" Noble
4e141bb3b8
Removing usage of git - not everyone grabs the gem using it.
9 years ago
Josh Haberman
70a4b03086
Add rake-compiler-dock as a dep.
9 years ago
Josh Haberman
af4aa9bd64
Added support for binary gems.
9 years ago
Dongjoon Hyun
7a9040fe7f
Remove redundant `the` in comments.
9 years ago
Josh Haberman
fc7f8d9cd0
Fixed Ruby conformance tests by running them under rvm Ruby.
9 years ago
Josh Haberman
bf50ec4ac9
Added debugging output to debug type= problem on Travis.
9 years ago
Josh Haberman
e891c29f9b
Allow conformance test runner to tolerate crashes, and re-enable conformance tests.
9 years ago
Feng Xiao
8675989bf7
Disable conformance tests for csharp and ruby.
...
The testee program of these two languages crashes on some test input.
9 years ago
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.
9 years ago
Anders Carling
3a5f213cca
Invoke super implementation instead of raising error
9 years ago
Anders Carling
0559f3ee9e
Add field name to initialization map exceptions
9 years ago
Anders Carling
8bcd0d7fc7
Use same exception class in ruby and jruby
9 years ago
Anders Carling
0df1e398eb
Raise NoMethodError for unknown fields
...
More informative and more ruby-like
9 years ago
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
9 years ago
Feng Xiao
1942a2bd2e
Make jruby use Java 3.0.0-alpha-3.
9 years ago
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.
9 years ago
Josh Haberman
d61e6adfcc
Return TypedData_Wrap_Struct directly.
...
Change-Id: I6cf77f01370204ad4bc7b345a040a9a3de1706a0
9 years ago
Josh Haberman
5bdf4a4271
Fixed several Ruby conformance test cases through upb update.
...
Change-Id: Ief77de7134e05e07b1a7e3970d49880c2d5e6fe9
9 years ago
Josh Haberman
c2c43a4917
Fixed lint errors and responded to CR comments.
...
Change-Id: If7b1cc0f03f609a7f43ddafc8509b44207c60910
10 years ago
Josh Haberman
95ee8fb88e
Exclude JRuby from conformance tests for now.
...
Change-Id: Id008ebac5159f773e1bde8b85acb2626cbd16de8
10 years ago
Josh Haberman
181c7f2636
Added Ruby to conformance tests.
...
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
10 years ago
Josh Haberman
a1daeaba80
Conform to C89/C90 variable declaration rules.
...
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
10 years ago
Josh Haberman
8c717ad530
Worked around memory leak bug in Ruby interpreter.
...
Change-Id: I8e2b425f9008e6b82d41d59783bb8b04af1f886f
Fixes: https://github.com/google/protobuf/issues/474 .
10 years ago
Josh Haberman
fb8ed707a2
Update upb to fix two bugs in the Ruby library.
...
Fixes:
https://github.com/google/protobuf/issues/502
https://github.com/google/protobuf/issues/425
10 years ago
Josh Haberman
e3ce451b60
Fixed compiler warnings and added -std=c99.
...
upb no longer requires -std=c99 but the Ruby/C
code still uses C99 features.
10 years ago
Josh Haberman
e8ed021ee7
Updated upb to latest version (C89).
...
Since this version of upb supports C89, all of the
extra compiler flags are no longer required.
10 years ago
Bo Yang
e107e2d68e
Update version number to 3.0.0-alpha-4
10 years ago
teboring
9839c0c2c9
Update version number to 3.0.0-alpha-3
10 years ago
Bo Yang
5db217305f
down-integrate internal changes
10 years ago
Chris Fallin
231886f632
Ruby C extension speedup: don't re-intern constant string needlessly.
...
Also fixed lines with > 80 char length.
10 years ago
Tamir Duberstein
e54c14552f
Don't hardcode bash
10 years ago
Chris Fallin
d326277397
Update MRI C Ruby extension to use new version of upb.
...
- 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.
10 years ago