This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ruby: Update gemspec and add useful metadata files (#1258)
* Ruby: Update gemspec and add useful metadata files
- Loading branch information
Showing
17 changed files
with
373 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/resources/com/google/api/codegen/ruby/gitignore.snip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@snippet generate(metadata) | ||
Gemfile.lock | ||
coverage/* | ||
doc/* | ||
pkg/* | ||
html/* | ||
jsondoc/* | ||
|
||
@# Ignore YARD stuffs | ||
.yardoc | ||
|
||
@# IDE settings | ||
.idea | ||
*.iml | ||
@end |
56 changes: 56 additions & 0 deletions
56
src/main/resources/com/google/api/codegen/ruby/rubocop.yml.snip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
@snippet generate(metadata) | ||
AllCops: | ||
Exclude: | ||
- "{@metadata.identifier}.gemspec" | ||
- "lib/{@metadata.protoPath}/**/*" | ||
# This should be removed in the future after we are sanitizing client files. | ||
- "lib/{@metadata.versionPath}/**/*" | ||
- "Rakefile" | ||
- "test/**/*" | ||
|
||
Documentation: | ||
Enabled: false | ||
|
||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
Style/MethodDefParentheses: | ||
EnforcedStyle: require_no_parentheses | ||
Style/NumericLiterals: | ||
Enabled: false | ||
Style/SpaceAroundOperators: | ||
Enabled: false | ||
Metrics/ClassLength: | ||
Enabled: false | ||
Style/EmptyLines: | ||
Enabled: false | ||
Style/EmptyElse: | ||
Enabled: false | ||
Style/HashSyntax: | ||
Exclude: | ||
- "lib/{@metadata.versionPath}/**/*" | ||
Metrics/LineLength: | ||
Exclude: | ||
- "lib/{@metadata.versionPath}/**/*" | ||
Metrics/CyclomaticComplexity: | ||
Max: 10 | ||
Metrics/PerceivedComplexity: | ||
Max: 10 | ||
Metrics/AbcSize: | ||
Max: 25 | ||
Exclude: | ||
- "lib/{@metadata.versionPath}/**/*" | ||
Metrics/MethodLength: | ||
Max: 20 | ||
Exclude: | ||
- "lib/{@metadata.versionPath}/**/*" | ||
Metrics/ParameterLists: | ||
Enabled: false | ||
Style/RescueModifier: | ||
Enabled: false | ||
Style/ClassVars: | ||
Enabled: false | ||
Style/TrivialAccessors: | ||
Enabled: false | ||
Style/FileName: | ||
Enabled: false | ||
@end |
10 changes: 10 additions & 0 deletions
10
src/main/resources/com/google/api/codegen/ruby/yardopts.snip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@snippet generate(metadata) | ||
--no-private | ||
--title={@metadata.fullName} | ||
--exclude lib/{@metadata.versionPath} | ||
--markup markdown | ||
|
||
./lib/**/*.rb | ||
- | ||
README.md | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/java/com/google/api/codegen/testdata/ruby_doc_gitignore_library.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
============== file: .gitignore ============== | ||
Gemfile.lock | ||
coverage/* | ||
doc/* | ||
pkg/* | ||
html/* | ||
jsondoc/* | ||
|
||
# Ignore YARD stuffs | ||
.yardoc | ||
|
||
# IDE settings | ||
.idea | ||
*.iml |
Oops, something went wrong.