[Ruby] Add auto-generated rubocop config file (#7637)

* add rubocop to ruby api client

* add new files

* fix ruby generator test case
This commit is contained in:
William Cheng
2018-02-12 14:08:02 +08:00
committed by GitHub
parent 86697fedb2
commit aa6b217bb9
78 changed files with 920 additions and 1025 deletions

View File

@@ -55,7 +55,7 @@ public class RubyClientCodegenTest {
if (file.getName().equals("default_api.rb")) {
apiFileGenerated = true;
// Ruby client should set the path unescaped in the api file
assertTrue(FileUtils.readFileToString(file, StandardCharsets.UTF_8).contains("local_var_path = \"/foo=bar\""));
assertTrue(FileUtils.readFileToString(file, StandardCharsets.UTF_8).contains("local_var_path = '/foo=bar'"));
}
}
if (!apiFileGenerated) {

View File

@@ -501,7 +501,7 @@ paths:
parameters:
- name: username
in: path
description: 'The name that needs to be fetched. Use user1 for testing. '
description: 'The name that needs to be fetched. Use user1 for testing.'
required: true
type: string
responses:

View File

@@ -501,7 +501,7 @@ paths:
parameters:
- name: username
in: path
description: 'The name that needs to be fetched. Use user1 for testing. '
description: 'The name that needs to be fetched. Use user1 for testing.'
required: true
type: string
responses: