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

Version Path
adamantium-0.0.8 tasks/metrics/yardstick.rake
equalizer-0.0.5 tasks/metrics/yardstick.rake
adamantium-0.0.7 tasks/metrics/yardstick.rake
equalizer-0.0.4 tasks/metrics/yardstick.rake
adamantium-0.0.6 tasks/metrics/yardstick.rake
ice_nine-0.7.0 tasks/metrics/yardstick.rake
equalizer-0.0.3 tasks/metrics/yardstick.rake
adamantium-0.0.5 tasks/metrics/yardstick.rake
equalizer-0.0.2 tasks/metrics/yardstick.rake
adamantium-0.0.4 tasks/metrics/yardstick.rake
ice_nine-0.6.0 tasks/metrics/yardstick.rake
abstract_type-0.0.2 tasks/metrics/yardstick.rake
abstract_type-0.0.1 tasks/metrics/yardstick.rake
descendants_tracker-0.0.1 tasks/metrics/yardstick.rake
equalizer-0.0.1 tasks/metrics/yardstick.rake
adamantium-0.0.3 tasks/metrics/yardstick.rake
adamantium-0.0.2 tasks/metrics/yardstick.rake