mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-03-25 08:45:54 +00:00
Add Yardstick
This commit is contained in:
parent
a4443c04f5
commit
300f73d018
3 changed files with 16 additions and 3 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1,9 +1,10 @@
|
|||
*.rbc
|
||||
.bundle
|
||||
.DS_Store
|
||||
.bundle
|
||||
.yardoc
|
||||
Gemfile.lock
|
||||
coverage
|
||||
doc
|
||||
Gemfile.lock
|
||||
measurement
|
||||
pkg
|
||||
rdoc
|
||||
|
|
|
|||
2
Gemfile
2
Gemfile
|
|
@ -4,11 +4,13 @@ gem 'jruby-openssl', :platforms => :jruby
|
|||
gem 'rake'
|
||||
|
||||
group :test do
|
||||
gem 'backports'
|
||||
gem 'coveralls', :require => false
|
||||
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
|
||||
gem 'rspec', '>= 2.14'
|
||||
gem 'rubocop', '>= 0.19', :platforms => [:ruby_19, :ruby_20, :ruby_21]
|
||||
gem 'simplecov', :require => false
|
||||
gem 'yardstick'
|
||||
end
|
||||
|
||||
gemspec
|
||||
|
|
|
|||
12
Rakefile
12
Rakefile
|
|
@ -14,4 +14,14 @@ rescue LoadError
|
|||
end
|
||||
end
|
||||
|
||||
task :default => [:spec, :rubocop]
|
||||
require 'yardstick/rake/measurement'
|
||||
Yardstick::Rake::Measurement.new do |measurement|
|
||||
measurement.output = 'measurement/report.txt'
|
||||
end
|
||||
|
||||
require 'yardstick/rake/verify'
|
||||
Yardstick::Rake::Verify.new do |verify|
|
||||
verify.threshold = 47
|
||||
end
|
||||
|
||||
task :default => [:spec, :rubocop, :verify_measurements]
|
||||
|
|
|
|||
Loading…
Reference in a new issue