Permalink
Browse files

Avoid documentation regressions with Yardstick

  • Loading branch information...
1 parent b762fb8 commit eaaa93505cf3d9f4d4d641defc468a4e420ede2c @sferik sferik committed Jan 1, 2014
Showing with 16 additions and 4 deletions.
  1. +3 −3 .gitignore
  2. +2 −0 Gemfile
  3. +11 −1 Rakefile
View
@@ -1,18 +1,18 @@
*.gem
-*.rbc
.bundle
.config
+.rvmrc
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
-doc/
+doc
lib/bundler/man
+measurement
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
-.rvmrc
View
@@ -17,9 +17,11 @@ group :development do
end
group :test do
+ gem 'backports'
gem 'coveralls', :require => false
gem 'rspec', '>= 2.14'
gem 'rubocop', '>= 0.16', :platforms => [:ruby_19, :ruby_20, :ruby_21]
+ gem 'yardstick'
platforms :jruby, :ruby_18 do
gem 'json', '>= 1.8.1'
gem 'mime-types', '~> 1.25'
View
@@ -15,4 +15,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 = 55.4
+end
+
+task :default => [:spec, :rubocop, :verify_measurements]

0 comments on commit eaaa935

Please sign in to comment.