Akihito Nakano
|
afb238814d
|
[Ruby] Abstract Ruby Codegen (#562)
* Add AbstractRubyCodegen
* Refactor constructor
* Move escapeReservedWord() to AbstractRubyCodegen
* Move getTypeDeclaration() to AbstractRubyCodegen
* Move toDefaultValue() to AbstractRubyCodegen
* Move toVarName() to AbstractRubyCodegen
* Move toParamName() to AbstractRubyCodegen
* Move toOperationId() to AbstractRubyCodegen
* Move escapeQuotationMark() to AbstractRubyCodegen
* Move escapeUnsafeCharacters() to AbstractRubyCodegen
* Use super.escapeReservedWord()
* RubyClientCodegen extends AbstractRubyCodegen
* Add the differences with AbstractRubyCodegen to "reservedWords"
* cliOptions.clear() is not a language specific matter
- Rails, Sinatra requires cliOptions.clear()
- Ruby client doesn't requires that
* Remove duplicated statements with AbstractRubyCodegen
* Remove duplicated methods with AbstractRubyCodegen
* Merge toVarName() into AbstractRubyCodegen
* Merge getTypeDeclaration() into AbstractRubyCodegen
* Merge toDefaultValue() into AbstractRubyCodegen
* Update Ruby related samples
- bin/ruby-client-petstore.sh
- bin/ruby-on-rails-server-petstore.sh
- bin/ruby-sinatra-server-petstore.sh
* Remove unnecessary 'import'
* Avoid unnecessary HTML escaping
|
2018-07-17 09:08:42 +08:00 |
|