protobuf/ruby/tests
Harshit Chopra d0535cc09e Adds support for proto2 syntax for Ruby gem.
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
2018-09-27 14:21:16 -04:00
..
basic_proto2.rb Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
basic_test_proto2.proto Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
basic_test.proto Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
basic.rb Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
common_tests.rb Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
encode_decode_test.rb Allows the json marshaller to be passed json marshal options (#4252) 2018-05-22 08:14:04 -07:00
gc_test.rb Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
generated_code_proto2_test.rb Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
generated_code_proto2.proto Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
generated_code_test.rb Adopt ruby_package in ruby generated code. (#4627) 2018-05-17 17:11:06 -07:00
generated_code.proto Add discard unknown API in ruby. (#3990) 2017-12-07 14:18:38 -08:00
repeated_field_test.rb Add continuous test for ruby 2.3, 2.4 and 2.5 (#4829) 2018-07-02 15:11:36 -07:00
stress.rb add jruby support by protobuf-java reflection API 2015-03-10 23:14:08 +01:00
test_import_proto2.proto Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
test_import.proto Added unit test for PascalCasing package names in Ruby. 2016-07-25 15:16:23 -07:00
test_ruby_package_proto2.proto Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
test_ruby_package.proto Adopt ruby_package in ruby generated code. (#4627) 2018-05-17 17:11:06 -07:00
well_known_types_test.rb Merge pull request #3847 from FX-HAO/master 2018-07-02 13:56:25 -07:00