aboutsummaryrefslogtreecommitdiff
path: root/ruby/Rakefile
Commit message (Collapse)AuthorAgeFilesLines
* Adds support for proto2 syntax for Ruby gem.Harshit Chopra2018-09-271-1/+26
| | | | | | | | | | | | | | | | | | | | | This change only adds basic proto2 support without advanced features like extensions, custom options, maps, etc. The protoc binary now generates ruby code for proto2 syntax. However, for now, it is restricted to proto2 files without advanced features like extensions, in which case it still errors out. This change also modifies the DSL to add proto messages to the DescriptorPool. There is a new DSL Builder#add_file to create a new FileDescriptor. With this, the generated ruby DSL looks something like: Google::Protobuf::DescriptorPool.generated_pool.build do add_file "test.proto" do add_message "foo" do optional :val, :int32, 1 end end end
* Adopt ruby_package in ruby generated code. (#4627)Paul Yang2018-05-171-0/+5
| | | | | | * Adopt ruby_package in ruby generated code. * Add test for ruby_package
* 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
* Update rake file to build of 2.1.6.Jisi Liu2018-01-171-2/+2
|
* Support ruby2.5Jisi Liu2018-01-171-2/+2
|
* Fix ruby segment fault (#3708)Paul Yang2017-10-031-1/+7
| | | | | | | | | | | | | | | | * 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
* Ruby: build packages for Ruby 2.4.Josh Haberman2017-03-151-2/+2
|
* Factored Conformance and Benchmark test messages into shared test schema. ↵Joshua Haberman2016-12-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#1971) * Factored Conformance test messages into shared test schema. * Updated benchmarks to use new proto3 message locations. * Fixed include path. * Conformance: fixed include of Python test messages. * Make maven in Rakefile use --batch-mode. * Revert changes to benchmarks. On second thought I think a separate schema for CPU benchmarking makes sense. * Try regenerating C# protos for new test protos. * Removed benchmark messages from test proto. * Added Jon Skeet's fixes for C#. * Removed duplicate/old test messages C# file. * C# fixes for test schema move. * Fixed C# to use the correct TestAllTypes message. * Fixes for Objective C test schema move. * Added missing EXTRA_DIST file.
* Added unit test for PascalCasing package names in Ruby.Josh Haberman2016-07-251-0/+5
|
* Ruby: generated foo.proto -> foo_pb.rb instead of foo.rb.Josh Haberman2016-07-251-1/+1
| | | | | This brings us more into line with other langauges, and makes it more obvious when we are requiring protobuf generated code.
* Properly generating well known proto files for the macos build.Nicolas "Pixel" Noble2016-05-041-0/+1
|
* Addressing concerns.Nicolas "Pixel" Noble2016-04-301-1/+9
|
* Few tweaks to the rakefile to permit native gems compilation with the proto ↵Nicolas "Pixel" Noble2016-04-291-30/+34
| | | | files generation.
* Generate well-known types in Ruby extension and prune unneeded proto2 ↵Josh Haberman2016-03-031-1/+44
| | | | dependencies.
* Actually enabling cross compilation.Nicolas "Pixel" Noble2016-02-061-1/+7
|
* Added support for binary gems.Josh Haberman2016-02-041-0/+5
|
* return nil if array index indicie is out of boundsAdam Greene2015-05-011-0/+3
| | | | | | | 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
* add jruby support by protobuf-java reflection APIIsaiah Peng2015-03-101-7/+19
|
* Rename protobuf Ruby module to google/protobuf and rework its buildChris Fallin2014-12-121-19/+3
| | | | | | system. The Ruby module build now uses an amalgamated distribution of upb, and successfully builds a Ruby gem called 'google-protobuf' with module 'google/protobuf'.
* Provide a Ruby extension.Chris Fallin2014-12-091-0/+37
This adds a Ruby extension in ruby/ that is based on the 'upb' library (now included as a submodule), and adds support for Ruby code generation to the protoc compiler.