-
Notifications
You must be signed in to change notification settings - Fork 242
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 #289 from guard/update_dev_tools
Update dev tools
- Loading branch information
Showing
38 changed files
with
1,035 additions
and
476 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,262 @@ | ||
inherit_from: | ||
.rubocop_todo.yml | ||
|
||
#AllCops: | ||
# Exclude: | ||
# - db/schema.rb | ||
|
||
AccessorMethodName: | ||
Enabled: false | ||
|
||
ActionFilter: | ||
Enabled: false | ||
|
||
Alias: | ||
Enabled: false | ||
|
||
ArrayJoin: | ||
Enabled: false | ||
|
||
AsciiComments: | ||
Enabled: false | ||
|
||
AsciiIdentifiers: | ||
Enabled: false | ||
|
||
Attr: | ||
Enabled: false | ||
|
||
BlockNesting: | ||
Enabled: false | ||
|
||
CaseEquality: | ||
Enabled: false | ||
|
||
CharacterLiteral: | ||
Enabled: false | ||
|
||
ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
ClassLength: | ||
Enabled: false | ||
|
||
ClassVars: | ||
Enabled: false | ||
|
||
CollectionMethods: | ||
PreferredMethods: | ||
find: detect | ||
reduce: inject | ||
collect: map | ||
find_all: select | ||
|
||
ColonMethodCall: | ||
Enabled: false | ||
|
||
CommentAnnotation: | ||
Enabled: false | ||
|
||
CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Delegate: | ||
Enabled: false | ||
|
||
DeprecatedHashMethods: | ||
Enabled: false | ||
|
||
Documentation: | ||
Enabled: false | ||
|
||
DotPosition: | ||
EnforcedStyle: trailing | ||
|
||
DoubleNegation: | ||
Enabled: false | ||
|
||
EachWithObject: | ||
Enabled: false | ||
|
||
EmptyLiteral: | ||
Enabled: false | ||
|
||
Encoding: | ||
Enabled: false | ||
|
||
EvenOdd: | ||
Enabled: false | ||
|
||
FileName: | ||
Enabled: false | ||
|
||
FlipFlop: | ||
Enabled: false | ||
|
||
FormatString: | ||
Enabled: false | ||
|
||
GlobalVars: | ||
Enabled: false | ||
|
||
GuardClause: | ||
Enabled: false | ||
|
||
IfUnlessModifier: | ||
Enabled: false | ||
|
||
IfWithSemicolon: | ||
Enabled: false | ||
|
||
InlineComment: | ||
Enabled: false | ||
|
||
Lambda: | ||
Enabled: false | ||
|
||
LambdaCall: | ||
Enabled: false | ||
|
||
LineEndConcatenation: | ||
Enabled: false | ||
|
||
LineLength: | ||
Max: 80 | ||
|
||
MethodLength: | ||
Enabled: false | ||
|
||
ModuleFunction: | ||
Enabled: false | ||
|
||
NegatedIf: | ||
Enabled: false | ||
|
||
NegatedWhile: | ||
Enabled: false | ||
|
||
Next: | ||
Enabled: false | ||
|
||
NilComparison: | ||
Enabled: false | ||
|
||
Not: | ||
Enabled: false | ||
|
||
NumericLiterals: | ||
Enabled: false | ||
|
||
OneLineConditional: | ||
Enabled: false | ||
|
||
OpMethod: | ||
Enabled: false | ||
|
||
ParameterLists: | ||
Enabled: false | ||
|
||
PercentLiteralDelimiters: | ||
Enabled: false | ||
|
||
PerlBackrefs: | ||
Enabled: false | ||
|
||
PredicateName: | ||
NamePrefixBlacklist: | ||
- is_ | ||
|
||
Proc: | ||
Enabled: false | ||
|
||
RaiseArgs: | ||
Enabled: false | ||
|
||
RegexpLiteral: | ||
Enabled: false | ||
|
||
SelfAssignment: | ||
Enabled: false | ||
|
||
SingleLineBlockParams: | ||
Enabled: false | ||
|
||
SingleLineMethods: | ||
Enabled: false | ||
|
||
SignalException: | ||
Enabled: false | ||
|
||
SpecialGlobalVars: | ||
Enabled: false | ||
|
||
StringLiterals: | ||
EnforcedStyle: double_quotes | ||
|
||
VariableInterpolation: | ||
Enabled: false | ||
|
||
TrailingComma: | ||
Enabled: false | ||
|
||
TrivialAccessors: | ||
Enabled: false | ||
|
||
VariableInterpolation: | ||
Enabled: false | ||
|
||
WhenThen: | ||
Enabled: false | ||
|
||
WhileUntilModifier: | ||
Enabled: false | ||
|
||
WordArray: | ||
Enabled: false | ||
|
||
# Lint | ||
|
||
AmbiguousOperator: | ||
Enabled: false | ||
|
||
AmbiguousRegexpLiteral: | ||
Enabled: false | ||
|
||
AssignmentInCondition: | ||
Enabled: false | ||
|
||
ConditionPosition: | ||
Enabled: false | ||
|
||
DeprecatedClassMethods: | ||
Enabled: false | ||
|
||
ElseLayout: | ||
Enabled: false | ||
|
||
HandleExceptions: | ||
Enabled: false | ||
|
||
InvalidCharacterLiteral: | ||
Enabled: false | ||
|
||
LiteralInCondition: | ||
Enabled: false | ||
|
||
LiteralInInterpolation: | ||
Enabled: false | ||
|
||
Loop: | ||
Enabled: false | ||
|
||
ParenthesesAsGroupedExpression: | ||
Enabled: false | ||
|
||
RequireParentheses: | ||
Enabled: false | ||
|
||
UnderscorePrefixedVariableName: | ||
Enabled: false | ||
|
||
Void: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--color | ||
--require spec_helper |
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,2 @@ | ||
inherit_from: | ||
.hound.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,10 @@ | ||
# This configuration was generated by `rubocop --auto-gen-config` | ||
# on 2014-11-06 03:19:15 +0100 using RuboCop version 0.27.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
Metrics/AbcSize: | ||
Max: 20 |
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
guard :rspec do | ||
watch(%r{^spec/.+_spec\.rb}) | ||
watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { "spec" } | ||
group :specs, halt_on_fail: true do | ||
guard :rspec, cmd: "bundle exec rspec" do | ||
watch(%r{^spec/.+_spec\.rb}) | ||
watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" } | ||
watch("spec/spec_helper.rb") { "spec" } | ||
end | ||
|
||
guard :rubocop do | ||
watch(%r{.+\.rb$}) | ||
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
require 'bundler/gem_tasks' | ||
require "bundler/gem_tasks" | ||
|
||
require 'rspec/core/rake_task' | ||
require "rspec/core/rake_task" | ||
RSpec::Core::RakeTask.new(:spec) | ||
task default: :spec | ||
|
||
namespace :test do | ||
desc "Locally run tests like Travis and HoundCI would" | ||
task :all_versions do | ||
system(*%w(bundle update --quiet)) || abort | ||
system(*%w(bundle exec rubocop -c .hound.yml)) || abort | ||
|
||
gemfiles = Dir["gemfiles/Gemfile.rspec-*"] | ||
|
||
actual_gemfiles = gemfiles.select { |f| /\d\.\d{1,2}$/ =~ f } | ||
actual_gemfiles.each do |gemfile| | ||
STDOUT.puts | ||
STDOUT.puts "----------------------------------------------------- " | ||
STDOUT.puts " >> Running tests using Gemfile: #{gemfile} <<" | ||
STDOUT.puts "----------------------------------------------------- " | ||
ENV["BUNDLE_GEMFILE"] = gemfile | ||
system(*%w(bundle update --quiet)) || abort | ||
system(*%w(bundle exec rspec)) || abort | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
source "https://rubygems.org" | ||
|
||
gemspec path: '../' | ||
|
||
gem 'rspec', '~> 2.99' | ||
|
||
group :test do | ||
gem 'coveralls', require: false | ||
end | ||
|
||
group :tool do | ||
gem 'ruby_gntp', require: false | ||
end |
Oops, something went wrong.