Sha256: 2bd2638d2f8a504d3d02150b6b6e8a7bd55a35660f18a8897498e0f98a0e990b
Contents?: true
Size: 659 Bytes
Versions: 17
Compression:
Stored size: 659 Bytes
Contents
# encoding: utf-8 begin require 'yardstick/rake/measurement' require 'yardstick/rake/verify' require 'yaml' config = YAML.load_file(File.expand_path('../../../config/yardstick.yml', __FILE__)) namespace :metrics do # yardstick_measure task Yardstick::Rake::Measurement.new # verify_measurements task Yardstick::Rake::Verify.new do |verify| verify.threshold = config.fetch('threshold') end end rescue LoadError %w[ yardstick_measure verify_measurements ].each do |name| task name.to_s do $stderr.puts "Yardstick is not available. In order to run #{name}, you must: gem install yardstick" end end end
Version data entries
17 entries across 17 versions & 5 rubygems