- 18 Nov, 2018 1 commit
-
-
Toby Hsieh authored
* Fix most of the unused variable warnings in Ruby tests * Add encoded_field_b back in tests/common_tests.rb
-
- 27 Sep, 2018 1 commit
-
-
Harshit Chopra authored
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
-
- 25 May, 2018 1 commit
-
-
Paul Yang authored
* Adopt ruby_package in ruby generated code. * Add test for ruby_package
-
- 18 May, 2018 1 commit
-
-
Paul Yang authored
* Adopt ruby_package in ruby generated code. * Add test for ruby_package
-
- 25 Jul, 2016 2 commits
-
-
Josh Haberman authored
-
Josh Haberman authored
This brings us more into line with other langauges, and makes it more obvious when we are requiring protobuf generated code.
-
- 14 Jan, 2015 1 commit
-
-
Chris Fallin authored
- A golden-file test that ensures protoc produces known-valid output. - A Ruby test that loads that golden file and ensures it actually works with the extension. This split strategy allows us to test end-to-end without needing to integrate the Ruby gem build system and the protoc build system. This is desirable because we do not want a gem build/install to depend on building protoc, and we do not want building protoc to depend on building and testing the gem.
-