forked from metricfu/metric_fu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metric_fu.gemspec
63 lines (59 loc) · 2.6 KB
/
metric_fu.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- 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 = "[email protected]"
s.homepage = "http://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.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.license = 'MIT'
{
# 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