-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
18 changed files
with
377 additions
and
256 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- development | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
ruby: [ '2.5', '2.6', '2.7.1' ] | ||
|
||
name: Ruby ${{ matrix.ruby }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
|
||
- name: Cache gems | ||
uses: actions/cache@v1 | ||
with: | ||
path: vendor/bundle | ||
key: bundle-use-ruby-${{ runner.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
bundle-use-ruby-${{ runner.os }}-${{ matrix.ruby }}- | ||
- name: Install bundler | ||
run: gem install bundler | ||
|
||
- name: Bundle install | ||
run: | | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
- name: Run specs | ||
run: bundle exec rake spec |
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 |
---|---|---|
@@ -1,151 +1,6 @@ | ||
# Defaults can be found here: https://github.com/bbatsov/rubocop/blob/master/config/default.yml | ||
|
||
# If you don't like these settings, just delete this file :) | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.0 | ||
|
||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
Enabled: true | ||
|
||
# kind_of? is a good way to check a type | ||
Style/ClassCheck: | ||
EnforcedStyle: kind_of? | ||
|
||
# It's better to be more explicit about the type | ||
Style/BracesAroundHashParameters: | ||
Enabled: false | ||
|
||
# specs sometimes have useless assignments, which is fine | ||
Lint/UselessAssignment: | ||
Exclude: | ||
- '**/spec/**/*' | ||
|
||
# We could potentially enable the 2 below: | ||
Layout/IndentHash: | ||
Enabled: false | ||
|
||
Layout/AlignHash: | ||
Enabled: false | ||
|
||
# HoundCI doesn't like this rule | ||
Layout/DotPosition: | ||
Enabled: false | ||
|
||
# We allow !! as it's an easy way to convert ot boolean | ||
Style/DoubleNegation: | ||
Enabled: false | ||
|
||
# Cop supports --auto-correct. | ||
Lint/UnusedBlockArgument: | ||
Enabled: false | ||
|
||
# We want to allow class Fastlane::Class | ||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Max: 60 | ||
|
||
# The %w might be confusing for new users | ||
Style/WordArray: | ||
MinSize: 19 | ||
NewCops: enable | ||
|
||
# raise and fail are both okay | ||
Style/SignalException: | ||
Enabled: false | ||
|
||
# Better too much 'return' than one missing | ||
Style/RedundantReturn: | ||
Enabled: false | ||
|
||
# Having if in the same line might not always be good | ||
Style/IfUnlessModifier: | ||
Enabled: false | ||
|
||
# and and or is okay | ||
Style/AndOr: | ||
Enabled: false | ||
|
||
# Configuration parameters: CountComments. | ||
Metrics/ClassLength: | ||
Max: 350 | ||
|
||
Metrics/CyclomaticComplexity: | ||
Max: 17 | ||
|
||
# Configuration parameters: AllowURI, URISchemes. | ||
Metrics/LineLength: | ||
Max: 370 | ||
|
||
# Configuration parameters: CountKeywordArgs. | ||
Metrics/ParameterLists: | ||
Max: 10 | ||
|
||
Metrics/PerceivedComplexity: | ||
Max: 18 | ||
|
||
# Sometimes it's easier to read without guards | ||
Style/GuardClause: | ||
Enabled: false | ||
|
||
# something = if something_else | ||
# that's confusing | ||
Style/ConditionalAssignment: | ||
Enabled: false | ||
|
||
# Better to have too much self than missing a self | ||
Style/RedundantSelf: | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Max: 60 | ||
|
||
# We're not there yet | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Adds complexity | ||
Style/IfInsideElse: | ||
Enabled: false | ||
|
||
# danger specific | ||
|
||
Style/BlockComments: | ||
Enabled: false | ||
|
||
Layout/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented | ||
|
||
Metrics/BlockLength: | ||
Max: 345 | ||
Exclude: | ||
- "**/*_spec.rb" | ||
|
||
Style/MixinGrouping: | ||
Enabled: false | ||
|
||
Style/FileName: | ||
Enabled: false | ||
|
||
Layout/IndentHeredoc: | ||
Enabled: false | ||
|
||
Style/SpecialGlobalVars: | ||
Enabled: false | ||
|
||
PercentLiteralDelimiters: | ||
PreferredDelimiters: | ||
"%": () | ||
"%i": () | ||
"%q": () | ||
"%Q": () | ||
"%r": "{}" | ||
"%s": () | ||
"%w": () | ||
"%W": () | ||
"%x": () | ||
|
||
Security/YAMLLoad: | ||
Enabled: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
danger-undercover (1.0.0) | ||
danger-plugin-api (~> 1.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.7.0) | ||
public_suffix (>= 2.0.2, < 5.0) | ||
ast (2.4.1) | ||
claide (1.0.3) | ||
claide-plugins (0.9.2) | ||
cork | ||
nap | ||
open4 (~> 1.3) | ||
coderay (1.1.3) | ||
colored2 (3.1.2) | ||
cork (0.3.0) | ||
colored2 (~> 3.1) | ||
danger (8.0.6) | ||
claide (~> 1.0) | ||
claide-plugins (>= 0.9.2) | ||
colored2 (~> 3.1) | ||
cork (~> 0.1) | ||
faraday (>= 0.9.0, < 2.0) | ||
faraday-http-cache (~> 2.0) | ||
git (~> 1.7) | ||
kramdown (~> 2.3) | ||
kramdown-parser-gfm (~> 1.0) | ||
no_proxy_fix | ||
octokit (~> 4.7) | ||
terminal-table (~> 1) | ||
danger-plugin-api (1.0.0) | ||
danger (> 2.0) | ||
diff-lcs (1.4.4) | ||
faraday (1.0.1) | ||
multipart-post (>= 1.2, < 3) | ||
faraday-http-cache (2.2.0) | ||
faraday (>= 0.8) | ||
ffi (1.13.1) | ||
formatador (0.2.5) | ||
git (1.7.0) | ||
rchardet (~> 1.8) | ||
guard (2.16.2) | ||
formatador (>= 0.2.4) | ||
listen (>= 2.7, < 4.0) | ||
lumberjack (>= 1.0.12, < 2.0) | ||
nenv (~> 0.1) | ||
notiffany (~> 0.0) | ||
pry (>= 0.9.12) | ||
shellany (~> 0.0) | ||
thor (>= 0.18.1) | ||
guard-compat (1.2.1) | ||
guard-rspec (4.7.3) | ||
guard (~> 2.1) | ||
guard-compat (~> 1.1) | ||
rspec (>= 2.99.0, < 4.0) | ||
kramdown (2.3.0) | ||
rexml | ||
kramdown-parser-gfm (1.1.0) | ||
kramdown (~> 2.0) | ||
listen (3.2.1) | ||
rb-fsevent (~> 0.10, >= 0.10.3) | ||
rb-inotify (~> 0.9, >= 0.9.10) | ||
lumberjack (1.2.8) | ||
method_source (1.0.0) | ||
multipart-post (2.1.1) | ||
nap (1.1.0) | ||
nenv (0.3.0) | ||
no_proxy_fix (0.1.2) | ||
notiffany (0.1.3) | ||
nenv (~> 0.1) | ||
shellany (~> 0.0) | ||
octokit (4.18.0) | ||
faraday (>= 0.9) | ||
sawyer (~> 0.8.0, >= 0.5.3) | ||
open4 (1.3.4) | ||
parallel (1.19.2) | ||
parser (2.7.2.0) | ||
ast (~> 2.4.1) | ||
pry (0.13.1) | ||
coderay (~> 1.1) | ||
method_source (~> 1.0) | ||
public_suffix (4.0.6) | ||
rainbow (3.0.0) | ||
rake (13.0.1) | ||
rb-fsevent (0.10.4) | ||
rb-inotify (0.10.1) | ||
ffi (~> 1.0) | ||
rchardet (1.8.0) | ||
regexp_parser (1.8.2) | ||
rexml (3.2.4) | ||
rspec (3.9.0) | ||
rspec-core (~> 3.9.0) | ||
rspec-expectations (~> 3.9.0) | ||
rspec-mocks (~> 3.9.0) | ||
rspec-core (3.9.3) | ||
rspec-support (~> 3.9.3) | ||
rspec-expectations (3.9.2) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.9.0) | ||
rspec-mocks (3.9.1) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.9.0) | ||
rspec-support (3.9.3) | ||
rubocop (0.93.1) | ||
parallel (~> 1.10) | ||
parser (>= 2.7.1.5) | ||
rainbow (>= 2.2.2, < 4.0) | ||
regexp_parser (>= 1.8) | ||
rexml | ||
rubocop-ast (>= 0.6.0) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (>= 1.4.0, < 2.0) | ||
rubocop-ast (0.7.1) | ||
parser (>= 2.7.1.5) | ||
ruby-progressbar (1.10.1) | ||
sawyer (0.8.2) | ||
addressable (>= 2.3.5) | ||
faraday (> 0.8, < 2.0) | ||
shellany (0.0.1) | ||
terminal-table (1.8.0) | ||
unicode-display_width (~> 1.1, >= 1.1.1) | ||
thor (1.0.1) | ||
unicode-display_width (1.7.0) | ||
yard (0.9.25) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
bundler | ||
danger-undercover! | ||
guard | ||
guard-rspec | ||
listen | ||
pry | ||
rake | ||
rspec | ||
rubocop | ||
yard | ||
|
||
BUNDLED WITH | ||
2.1.4 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2014-2020 Nimble. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.