Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Yardstick
  • Loading branch information
sferik committed Dec 31, 2013
1 parent 125d2f1 commit 2a7298a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
@@ -1,9 +1,11 @@
*.gem
*.rbc
*~
.bundle
.rvmrc
.yardoc
Gemfile.lock
coverage/*
doc/*
log/*
measurement/*
pkg/*
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -39,8 +39,8 @@ Ideally, a bug report should include a pull request with failing specs.
7. Run `open coverage/index.html`. If your changes are not completely covered
by your tests, return to step 3.
8. Add documentation for your feature or bug fix.
9. Run `bundle exec rake yard`. If your changes are not 100% documented, go
back to step 8.
9. Run `bundle exec rake verify_measurements`. If your changes are not 100%
documented, go back to step 8.
10. Add, commit, and push your changes.
11. [Submit a pull request.][pr]

Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -15,12 +15,14 @@ group :development do
end

group :test do
gem 'backports'
gem 'coveralls', :require => false
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
gem 'rspec', '>= 2.11'
gem 'rubocop', '>= 0.16', :platforms => [:ruby_19, :ruby_20, :ruby_21]
gem 'simplecov', :require => false
gem 'webmock'
gem 'yardstick'
end

platforms :rbx do
Expand Down
12 changes: 11 additions & 1 deletion Rakefile
Expand Up @@ -29,4 +29,14 @@ end
require 'yard'
YARD::Rake::YardocTask.new

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 = 55.7
end

task :default => [:spec, :rubocop, :verify_measurements]

0 comments on commit 2a7298a

Please sign in to comment.