bf4/metric_fu

View on GitHub
metric_fu.gemspec

Summary

Maintainability
Test Coverage
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require 'metric_fu/version'
require 'metric_fu_requires'

Gem::Specification.new do |s|
  s.name        = "metric_fu"
  s.platform    = Gem::Platform::RUBY
  s.version     = MetricFu::VERSION
  s.summary     = "A fistful of code metrics, with awesome templates and graphs"
  s.email       = "github@benjaminfleischer.com"
  s.homepage    = "https://github.com/metricfu/metric_fu"
  s.description = "Code metrics from Flog, Flay, Saikuro, Churn, Reek, Roodi, Rails' stats task and Rails Best Practices, and optionally RCov"
  s.authors     = ["Jake Scruggs", "Sean Soper", "Andre Arko", "Petrik de Heus", "Grant McInnes", "Nick Quaranto", "Édouard Brière", "Carl Youngblood", "Richard Huang", "Dan Mayer", "Benjamin Fleischer"]
  s.rubyforge_project = 'metric_fu'
  s.required_ruby_version     = ">= 1.8.7"
  s.required_rubygems_version = ">= 1.3.6"
  s.files              = `git ls-files`.split($\)
  s.test_files         =  s.files.grep(%r{^(test|spec|features)/})
  s.default_executable = %q{metric_fu}
  s.executables        =  s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
  s.require_paths = ["lib"]
  s.license     = 'MIT'
  s.has_rdoc = true
  s.extra_rdoc_files = ["HISTORY.md", "CONTRIBUTING.md", "TODO.md", "MIT-LICENSE"]
  s.rdoc_options = ["--main", "README.md"]

  {
    # metric dependencies
    "flay"                  => MetricFu::MetricVersion.flay,
    "churn"                 => MetricFu::MetricVersion.churn,
    "flog"                  => MetricFu::MetricVersion.flog,
    "reek"                  => MetricFu::MetricVersion.reek,
    "cane"                  => MetricFu::MetricVersion.cane,
      # specifying gem dependencies for
      # flay, churn, flog, reek, and cane
      "ruby_parser"           => MetricFu::MetricVersion.ruby_parser,
      "sexp_processor"        => MetricFu::MetricVersion.sexp_processor,
      # reek
      "ruby2ruby"             => MetricFu::MetricVersion.ruby2ruby,
      # cane
      "parallel"              => MetricFu::MetricVersion.parallel,
      # required by main, a churn dependency
      "fattr"                 => ["= 2.2.1"],
      "arrayfields"           => ["= 4.7.4"],
      "map"                   => ["= 6.2.0"],
    "rails_best_practices"  => MetricFu::MetricVersion.rails_best_practices,
    "japgolly-Saikuro"      => MetricFu::MetricVersion.saikuro,
    "metric_fu-roodi"       => MetricFu::MetricVersion.roodi,
    #
    # other dependencies
    # ruby version identification
    'redcard'               => [],
    # syntax highlighting
    "coderay"               => [],
    # default graphing libraries
    "bluff"                 => [],
  }.each do |gem, version|
    if version == []
      s.add_runtime_dependency(gem)
    else
      s.add_runtime_dependency(gem,version)
    end
  end

end