use rubocop
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -12,4 +12,5 @@ group :development do
|
|||||||
gem "rcov", :platforms => :mri_18
|
gem "rcov", :platforms => :mri_18
|
||||||
gem "simplecov", :platforms => :mri_19
|
gem "simplecov", :platforms => :mri_19
|
||||||
gem "test-construct"
|
gem "test-construct"
|
||||||
|
gem "rubocop"
|
||||||
end
|
end
|
||||||
|
|||||||
10
Gemfile.lock
10
Gemfile.lock
@@ -1,6 +1,7 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
|
ast (1.1.0)
|
||||||
diff-lcs (1.2.4)
|
diff-lcs (1.2.4)
|
||||||
git (1.2.5)
|
git (1.2.5)
|
||||||
jeweler (1.8.4)
|
jeweler (1.8.4)
|
||||||
@@ -10,6 +11,10 @@ GEM
|
|||||||
rdoc
|
rdoc
|
||||||
json (1.8.0)
|
json (1.8.0)
|
||||||
multi_json (1.7.3)
|
multi_json (1.7.3)
|
||||||
|
parser (2.0.0.beta5)
|
||||||
|
ast (~> 1.0)
|
||||||
|
slop (~> 3.4)
|
||||||
|
rainbow (1.1.4)
|
||||||
rake (10.0.4)
|
rake (10.0.4)
|
||||||
rcov (1.0.0)
|
rcov (1.0.0)
|
||||||
rdoc (4.0.1)
|
rdoc (4.0.1)
|
||||||
@@ -22,10 +27,14 @@ GEM
|
|||||||
rspec-expectations (2.13.0)
|
rspec-expectations (2.13.0)
|
||||||
diff-lcs (>= 1.1.3, < 2.0)
|
diff-lcs (>= 1.1.3, < 2.0)
|
||||||
rspec-mocks (2.13.1)
|
rspec-mocks (2.13.1)
|
||||||
|
rubocop (0.8.3)
|
||||||
|
parser (= 2.0.0.beta5)
|
||||||
|
rainbow (>= 1.1.4)
|
||||||
simplecov (0.7.1)
|
simplecov (0.7.1)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
simplecov-html (~> 0.7.1)
|
simplecov-html (~> 0.7.1)
|
||||||
simplecov-html (0.7.1)
|
simplecov-html (0.7.1)
|
||||||
|
slop (3.4.5)
|
||||||
test-construct (1.2.0)
|
test-construct (1.2.0)
|
||||||
thor (0.18.1)
|
thor (0.18.1)
|
||||||
|
|
||||||
@@ -37,6 +46,7 @@ DEPENDENCIES
|
|||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
rcov
|
rcov
|
||||||
rspec (~> 2.10)
|
rspec (~> 2.10)
|
||||||
|
rubocop
|
||||||
simplecov
|
simplecov
|
||||||
test-construct
|
test-construct
|
||||||
thor (>= 0.14.0)
|
thor (>= 0.14.0)
|
||||||
|
|||||||
10
Rakefile
10
Rakefile
@@ -41,8 +41,16 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
|
|||||||
spec.rcov = true
|
spec.rcov = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :rubocop do
|
||||||
|
system('rubocop')
|
||||||
|
end
|
||||||
|
|
||||||
task :default => :spec
|
task :test do
|
||||||
|
Rake::Task['spec'].execute
|
||||||
|
Rake::Task['rubocop'].execute
|
||||||
|
end
|
||||||
|
|
||||||
|
task :default => :test
|
||||||
|
|
||||||
require 'rdoc/task'
|
require 'rdoc/task'
|
||||||
Rake::RDocTask.new do |rdoc|
|
Rake::RDocTask.new do |rdoc|
|
||||||
|
|||||||
Reference in New Issue
Block a user