Permalink
Browse files

Fixes for RCov

  • Loading branch information...
1 parent d9288e5 commit e0da9d4adeb3b5691b7488ea5a9b9f4cb762c3bf @iain committed Oct 22, 2010
Showing with 25 additions and 6 deletions.
  1. +20 −0 bin/metrical
  2. +5 −6 metrical.gemspec
View
@@ -3,9 +3,29 @@ require 'rubygems'
require 'json'
require 'metric_fu'
+# Required for RCOV
+require 'active_support'
+require 'active_support/core_ext'
+
# Load default configuration
MetricFu::Configuration.run {}
+# RCov fixes (should be okay for everybody)
+test_files = Dir['{spec,test}/**/*_{spec,test}.rb']
+MetricFu::Configuration.run do |config|
+ config.rcov[:test_files] = test_files
+ config.rcov[:rcov_opts] = [
+ "--sort coverage",
+ "--no-html",
+ "--text-coverage",
+ "--no-color",
+ "--profile",
+ "--exclude-only '.*'",
+ '--include-file "\Aapp,\Alib"'
+ ]
+ config.rcov[:rcov_opts] << "-Ispec" if File.exist?("spec")
+end
+
# Load local metrics settings
file = File.join(Dir.pwd, '.metrics')
load file if File.exist?(file)
View
@@ -1,8 +1,8 @@
Gem::Specification.new do |s|
s.name = "metrical"
- s.version = "0.0.2"
- s.summary = "Run MetricFu on any project easisly"
+ s.version = "0.0.3"
+ s.summary = "Run metric_fu without making it a project dependency"
s.email = "iain@iain.nl"
s.homepage = "http://github.com/iain/metrical/"
s.description = "MetricFu is awesome! The only problem is that it's kinda obtrusive. Metrical provides a executable so you can run metric fu on any project without making changes to the project."
@@ -11,9 +11,8 @@ Gem::Specification.new do |s|
s.has_rdoc = true
s.rdoc_options = ["--main", "README.rdoc"]
s.extra_rdoc_files = []
- s.executables = ["metrical"]
+ s.executables = ["metrical"]
- s.add_dependency "metric_fu", "~> 1.3.0"
- s.add_dependency "reek", ">= 1.2.7"
- s.add_dependency "roodi", ">= 2.1.0"
+ s.add_dependency "metric_fu", "~> 1.5.1"
+ s.add_dependency "activesupport"
end

0 comments on commit e0da9d4

Please sign in to comment.