mwilden-metric_fu 1.1.5 → 1.1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -132,7 +132,7 @@ module MetricFu
132
132
  "--exclude /gems/,/Library/,/usr/,spec,features"],
133
133
  :feature_files => ['features/*.feature'],
134
134
  :cucumber_executable => '/usr/bin/cucumber',
135
- :cucumber_opts => ["--format profile"]}
135
+ :cucumber_opts => ["--format progress"]}
136
136
 
137
137
 
138
138
  @graph_theme = { :colors => %w(orange purple green white red blue pink yellow),
@@ -35,8 +35,12 @@ module MetricFu
35
35
  Dir.mkdir(MetricFu::Rcov.metric_directory)
36
36
  test_files = FileList[*MetricFu.rcov[:test_files]].join(' ')
37
37
  rcov_opts = MetricFu.rcov[:rcov_opts].join(' ')
38
- output = ">> #{MetricFu::Rcov.metric_directory}/rcov.txt"
39
- `rcov #{test_files} #{rcov_opts} #{output}`
38
+ output = "> #{MetricFu::Rcov.metric_directory}/rcov.txt"
39
+ if MetricFu.rcov[:run_cucumber]
40
+ aggregate_file = "#{MetricFu::Rcov.metric_directory}/rcov_aggregate.data"
41
+ rcov_opts << " --aggregate #{aggregate_file}"
42
+ end
43
+ `rcov #{rcov_opts} #{test_files} #{output}`
40
44
 
41
45
  if MetricFu.rcov[:run_cucumber]
42
46
  cucumber_opts = MetricFu.rcov[:cucumber_opts].join(' ')
@@ -57,6 +61,7 @@ module MetricFu
57
61
 
58
62
  def analyze
59
63
  output = File.open(MetricFu::Rcov.metric_directory + '/rcov.txt').read
64
+ output.gsub!(/^\..*\d{3}s\n/m, '') if MetricFu.rcov[:run_cucumber]
60
65
  output = output.split(NEW_FILE_MARKER)
61
66
  # Throw away the first entry - it's the execution time etc.
62
67
  output.shift
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mwilden-metric_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Scruggs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2009-05-16 00:00:00 -07:00
18
+ date: 2009-10-17 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -127,6 +127,8 @@ files:
127
127
  - Manifest.txt
128
128
  has_rdoc: true
129
129
  homepage: http://metric-fu.rubyforge.org/
130
+ licenses: []
131
+
130
132
  post_install_message:
131
133
  rdoc_options:
132
134
  - --main
@@ -148,9 +150,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
150
  requirements: []
149
151
 
150
152
  rubyforge_project:
151
- rubygems_version: 1.2.0
153
+ rubygems_version: 1.3.4
152
154
  signing_key:
153
- specification_version: 2
155
+ specification_version: 3
154
156
  summary: A fistful of code metrics, with awesome templates and graphs
155
157
  test_files:
156
158
  - spec/base/base_template_spec.rb