Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert snake case protos package names to camel case in ruby modules #8265

Merged
merged 3 commits into from
Oct 12, 2016

Conversation

apolcyn
Copy link
Contributor

@apolcyn apolcyn commented Oct 3, 2016

First attempt to fix #8257.

Tested this with example protos files, tweaking the package names to use a similar pattern as used in the issue, and saw this work, but I think the c++ might need some tweaks.

@apolcyn
Copy link
Contributor Author

apolcyn commented Oct 3, 2016

latest commit copies straight from protoc code

@@ -115,6 +115,50 @@ void PrintService(const ServiceDescriptor *service, const grpc::string &package,

} // namespace

grpc::string SnakeCaseToCamelCase(grpc::string input) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably don't need this anymore, now that you have the other implementation.

// foo_bar_baz -> FooBarBaz
std::string PackageToModule(const std::string& name) {
bool next_upper = true;
std::string result;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should all be grpc::string, to be consistent with the rest of the code.

@apolcyn
Copy link
Contributor Author

apolcyn commented Oct 4, 2016

test this please

1 similar comment
@apolcyn
Copy link
Contributor Author

apolcyn commented Oct 6, 2016

test this please

@apolcyn
Copy link
Contributor Author

apolcyn commented Oct 12, 2016

test failures here should be unrelated, merging

@apolcyn apolcyn merged commit 0b1a62c into grpc:v1.0.x Oct 12, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants