Commit Graph

6 Commits

Author SHA1 Message Date
ganmacs 0b4fb6a5e2 Move a script which has a pre-requirement to outside of spec
And make it to be execute when using `./tools/run_tests/run_tests.py -l ruby`
2018-06-16 22:38:15 +09:00
apolcyn a9d16ccb3d
Merge pull request #13634 from hassox/ruby-module-name
Updates the ruby generator RubyTypeOf to correctly account for underscores in packages
2018-03-29 16:13:07 -07:00
Daniel Neighman 8b7007ad7b Updates the ruby generator RubyAsType to correctly account for underscores in packages
Prior to this change, when the ruby generator tried to reference an entity that was not part of the same package
(or a direct parent package) and the package contains underscores,
the result would simply uppercase the first character.
It should however uppercase each letter that proceeds an underscore and remove underscores.

i.e.

```
package my_package.service;

import "my_package/data.proto";

service MyService {
  rpc Test (data.Request) returns data.Response {}
}
```

Was

```ruby
   # ...
   rpc :Test, My_package::Data::REquest, My_package::Data::Response
   # ...
```

Should be:

```ruby
   # ...
   rpc :Test, MyPackage::Data::REquest, My_package::Data::Response
   # ...
```
2018-03-26 16:00:05 -07:00
Mehrdad Afshari e0614e75ef Fix run_ruby.sh to pass shellcheck 2017-12-15 13:31:44 -08:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Jan Tattermusch 5c79a3199c cleanup tools/run_tests directory 2016-12-22 10:47:52 +01:00