Skip to content

Commit

Permalink
Fix Ruby module name generation when the ruby_package option is used (p…
Browse files Browse the repository at this point in the history
…rotocolbuffers#5735)

* fix module name generation and add tests

* fix existing tests

* support both package name styles
jbolinger authored and TeBoring committed Feb 28, 2019
1 parent c371fa2 commit 0a1ee2b
Showing 3 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
syntax = "proto3";

package one.two.a_three;

option ruby_package = "A::B::C";

message Four {
string a_string = 1;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
syntax = "proto3";

package one.two.a_three.and;

option ruby_package = "AA.BB.CC";

message Four {
string another_string = 1;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
syntax = "proto3";

package one.two.a_three;

message Four {
string a_string = 1;
}

0 comments on commit 0a1ee2b

Please sign in to comment.