Sha256: a1dd23d46e3a169ee0b50c1d747df6df05f07c32127d5dccbf2fe089519f2233
Contents?: true
Size: 869 Bytes
Versions: 3
Compression:
Stored size: 869 Bytes
Contents
# encoding: utf-8 namespace :metrics do namespace :yardstick do require 'yardstick/rake/measurement' require 'yardstick/rake/verify' # Enable the legacy parser for JRuby until ripper is fully supported if Devtools.jruby? # Remove when https://github.com/lsegal/yard/issues/681 is resolved # This code first requires ripper, then removes the constant so # that it does not trigger a bug in YARD where if it checks if Ripper # is available and assumes other constants are defined, when JRuby's # implementation does not yet. require 'ripper' Object.send(:remove_const, :Ripper) YARD::Parser::SourceParser.parser_type = :ruby18 end options = Devtools.project.yardstick.options Yardstick::Rake::Measurement.new(:measure, options) Yardstick::Rake::Verify.new(:verify, options) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
devtools-0.1.2 | tasks/metrics/yardstick.rake |
devtools-0.1.1 | tasks/metrics/yardstick.rake |
devtools-0.1.0 | tasks/metrics/yardstick.rake |