This repository has been archived by the owner on Sep 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Xenapto/develop
Fix non-rate-limit exception exception
- Loading branch information
Showing
11 changed files
with
110 additions
and
25 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,4 @@ | ||
--- | ||
ruby: | ||
enabled: true | ||
config_file: .rubocop.yml |
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,46 @@ | ||
--- | ||
AllCops: | ||
Exclude: | ||
- 'tmp/**/*' | ||
- 'coverage/**/*' | ||
- 'spec/dummy/**/*' | ||
|
||
#------------------------------------------------------------------------------- | ||
# Project standards | ||
#------------------------------------------------------------------------------- | ||
StringLiterals: | ||
EnforcedStyle: single_quotes | ||
Enabled: true | ||
|
||
DotPosition: | ||
Description: 'Checks the position of the dot in multi-line method calls.' | ||
EnforcedStyle: leading | ||
Enabled: true | ||
|
||
Documentation: | ||
Description: 'Document classes and non-namespace modules.' | ||
Enabled: false | ||
|
||
FileName: | ||
Description: 'Use snake_case for source file names.' | ||
Enabled: true | ||
|
||
Style/SymbolArray: | ||
Description: 'Use %i or %I for arrays of symbols.' | ||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-i' | ||
Enabled: false # Only available in Ruby 2.0+ | ||
|
||
Style/ExtraSpacing: | ||
Description: 'Do not use unnecessary spacing.' | ||
Enabled: true | ||
|
||
Lint/LiteralInInterpolation: | ||
Description: 'Avoid interpolating literals in strings' | ||
AutoCorrect: true | ||
|
||
#------------------------------------------------------------------------------- | ||
# These rules have been relaxed because of existing code | ||
# We should tighten these up over time | ||
#------------------------------------------------------------------------------- | ||
LineLength: | ||
Max: 166 # project standard is 120 |
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,16 @@ | ||
guard :rubocop do | ||
watch(/.+\.rb$/) | ||
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } | ||
end | ||
|
||
guard( | ||
:rspec, | ||
all_after_pass: true, | ||
all_on_start: true, | ||
cmd: 'NO_SIMPLECOV=true bundle exec rspec --fail-fast --format documentation' | ||
) do | ||
watch(%r{spec/.+_spec\.rb$}) | ||
watch(%r{lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { 'spec' } | ||
watch(%r{^spec/support/.+\.rb$}) { 'spec' } | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
require "bundler/gem_tasks" | ||
|
||
require 'bundler/gem_tasks' |
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
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 |
---|---|---|
|
@@ -45,5 +45,4 @@ class RateLimitedTestQueue | |
.to eq(Resque::Plugins::RateLimitedQueue::UnPause) | ||
end | ||
end | ||
|
||
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