revolutionhealth-metricks 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.4.2 / 2008-07-01
2
+
3
+ * Changed rcov output directory so that it is no longer 'coverage/unit' but just 'coverage' for better integration with CC.rb
4
+
1
5
  === 0.4.1 / 2008-06-13
2
6
 
3
7
  * Rcov tests now extend beyond one level depth directory by using RcovTask instead of the shell
data/README CHANGED
@@ -1,4 +1,4 @@
1
- Version 0.4.1
1
+ Version 0.4.2
2
2
  http://github.com/revolutionhealth/metricks
3
3
 
4
4
  Metricks is a fork of the metric_fu project and is a set of rake tasks that make it easy to generate metrics reports. It uses Saikuro, Flog, Rcov, and Rails' built-in stats task to create a series of reports. It's designed to integrate easily with CruiseControl.rb by placing files in the Custom Build Artifacts folder.
@@ -7,7 +7,7 @@ begin
7
7
  namespace :metricks do
8
8
 
9
9
  COVERAGE_DIR = File.join(Metricks::BASE_DIRECTORY, 'coverage')
10
- COVERAGE_DATA_FILE = File.join(COVERAGE_DIR, 'coverage.data')
10
+ COVERAGE_DATA_FILE = File.join(Metricks::BASE_DIRECTORY, 'coverage.data')
11
11
 
12
12
  namespace :coverage do
13
13
  rcov_output = COVERAGE_DIR
@@ -16,17 +16,17 @@ begin
16
16
  task(:clean) { rm_f("rcov_tmp", :verbose => false) }
17
17
 
18
18
  desc "RCov task to generate report"
19
- Rcov::RcovTask.new(:unit => :clean) do |t|
20
- FileUtils.mkdir_p(COVERAGE_DIR) unless File.directory?(COVERAGE_DIR)
19
+ Rcov::RcovTask.new(:do => :clean) do |t|
20
+ FileUtils.mkdir_p(Metricks::BASE_DIRECTORY) unless File.directory?(Metricks::BASE_DIRECTORY)
21
21
  t.test_files = FileList['test/**/*_test.rb']
22
22
  t.rcov_opts = ["--sort coverage", "--aggregate '#{COVERAGE_DATA_FILE}'", "--html", "--rails"]
23
- t.output_dir = COVERAGE_DIR + '/unit'
23
+ t.output_dir = COVERAGE_DIR
24
24
  end
25
25
  end
26
26
 
27
27
  desc "Generate and open coverage report"
28
- task :coverage => ['coverage:unit'] do
29
- system("open #{COVERAGE_DIR}/unit/index.html") if PLATFORM['darwin']
28
+ task :coverage => ['coverage:do'] do
29
+ system("open #{COVERAGE_DIR}/index.html") if PLATFORM['darwin']
30
30
  end
31
31
  end
32
32
  rescue LoadError
data/lib/tasks/flog.rake CHANGED
@@ -1,5 +1,5 @@
1
- require 'metricks/md5_tracker'
2
- require 'metricks/flog_reporter'
1
+ require File.join(File.dirname(__FILE__), '..', 'metricks', 'md5_tracker')
2
+ require File.join(File.dirname(__FILE__), '..', 'metricks', 'flog_reporter')
3
3
 
4
4
  begin
5
5
  FLOG_DIR = File.join(Metricks::BASE_DIRECTORY, 'flog')
data/metricks.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "metricks"
3
- s.version = "0.4.1"
4
- s.date = "2008-06-13"
3
+ s.version = "0.4.2"
4
+ s.date = "2008-07-01"
5
5
  s.summary = "Generates project metrics using Flog, RCov, Saikuro and more"
6
6
  s.email = "sean.soper@gmail.com"
7
7
  s.homepage = "http://github.com/revolutionhealth/metricks"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revolutionhealth-metricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Soper
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-13 00:00:00 -07:00
12
+ date: 2008-07-01 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements: []
78
78
 
79
79
  rubyforge_project:
80
- rubygems_version: 1.0.1
80
+ rubygems_version: 1.2.0
81
81
  signing_key:
82
82
  specification_version: 2
83
83
  summary: Generates project metrics using Flog, RCov, Saikuro and more