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
Ruby: Update gemspec and add useful metadata files #1258
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
11 changes: 11 additions & 0 deletions
11
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,11 @@ | ||
@snippet generate(metadata) | ||
Gemfile.lock | ||
coverage/* | ||
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
doc/* | ||
pkg/* | ||
html/* | ||
jsondoc/* | ||
|
||
# Ignore YARD stuffs | ||
.yardoc | ||
@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
9 changes: 9 additions & 0 deletions
9
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,9 @@ | ||
============== file: .gitignore ============== | ||
Gemfile.lock | ||
coverage/* | ||
doc/* | ||
pkg/* | ||
html/* | ||
jsondoc/* | ||
|
||
.yardoc |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as spam.
Sorry, something went wrong.