Sha256: 4206464fd0b7c62242f984a84550416ee45bfd1da553b1ee1a2254d850aace0e

Contents?: true

Size: 634 Bytes

Versions: 58

Compression:

Stored size: 634 Bytes

Contents

begin
  require 'pathname'
  require 'yardstick'
  require 'yardstick/rake/measurement'
  require 'yardstick/rake/verify'
  require 'yaml'

  config = YAML.load_file(File.expand_path('../../../config/yardstick.yml', __FILE__))

  # yardstick_measure task
  Yardstick::Rake::Measurement.new

  # verify_measurements task
  Yardstick::Rake::Verify.new do |verify|
    verify.threshold = config.fetch('threshold')
  end
rescue LoadError
  %w[ yardstick_measure verify_measurements ].each do |name|
    task name.to_s do
      abort "Yardstick is not available. In order to run #{name}, you must: gem install yardstick"
    end
  end
end

Version data entries

58 entries across 58 versions & 9 rubygems

Version Path
response-0.0.2 tasks/metrics/yardstick.rake
mutant-0.2.20 tasks/metrics/yardstick.rake
mutant-0.2.17 tasks/metrics/yardstick.rake
mutant-0.2.16 tasks/metrics/yardstick.rake
mutant-0.2.15 tasks/metrics/yardstick.rake
mutant-0.2.14 tasks/metrics/yardstick.rake
mutant-0.2.13 tasks/metrics/yardstick.rake
mutant-0.2.12 tasks/metrics/yardstick.rake
mutant-0.2.11 tasks/metrics/yardstick.rake
mutant-0.2.9 tasks/metrics/yardstick.rake
mutant-0.2.8 tasks/metrics/yardstick.rake
mutant-0.2.7 tasks/metrics/yardstick.rake
mutant-0.2.6 tasks/metrics/yardstick.rake
mutant-0.2.5 tasks/metrics/yardstick.rake
mutant-0.2.4 tasks/metrics/yardstick.rake
mutant-0.2.3 tasks/metrics/yardstick.rake
mutant-0.2.2 tasks/metrics/yardstick.rake
mutant-0.2.1 tasks/metrics/yardstick.rake
mutant-0.2.0 tasks/metrics/yardstick.rake
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/virtus-0.5.2/tasks/metrics/yardstick.rake