aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #4816 from hrsht/hrsht/zanker-proto2Joshua Haberman2018-09-271-1/+47
|\ | | | | Basic Proto2 support for Ruby gem
| * Adds support for proto2 syntax for Ruby gem.Harshit Chopra2018-09-271-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | When running unit tests, read reference files in text modeStephen Oberholtzer2018-07-191-2/+2
|/ | | | | This should put an end to all of the reports of unit test failures on Windows machines.
* Ruby: generated foo.proto -> foo_pb.rb instead of foo.rb.Josh Haberman2016-07-251-2/+2
| | | | | This brings us more into line with other langauges, and makes it more obvious when we are requiring protobuf generated code.
* Integrated internal changes from GoogleAdam Cozzette2016-06-291-17/+3
| | | | This includes all internal changes from around May 20 to now.
* Modified FindRubyTestDir to use GOOGLE_THIRD_PARTY_PROTOBUFAustin Schuh2015-06-101-0/+4
|
* When doing make distcheck, a src/google/protobuf/compiler/ruby is created toBo Yang2015-05-261-3/+3
| | | | | put built libraries. This directory hides the one that contains ruby_generated_code.proto and ruby_generated_code.rb.
* Copy two data files from ruby/tests to src/google/compiler/ruby. Tests in ↵Bo Yang2015-05-251-7/+7
| | | | src/google/compiler/ruby depend on these two files, but they were missed in language distributions other than ruby
* Fix golden-file Ruby test to work with out-of-tree builds.Chris Fallin2015-01-141-33/+36
|
* Two tests for Ruby code generator:Chris Fallin2015-01-141-0/+116
- 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.