bundler+metric_fu customs configuration (not rails) - after changingdefault folder, still creating t

P

Pablo Q.

[Note: parts of this message were removed to make it a legal post.]

Hi folks,

I'm trying to configure the rake file in order to change the default folder
for metric_fu.

I would like to have all the output results in a single folder. I would to
change the default folder "tmp/metric_fu".

The project uses bundler. The problem is that after doing the changes in the
configuration metric_fu still generating the tmp folder.

Here's the configuration done for bundler:

*my_project.gem_spec*

*# -*- encoding: utf-8 -*-*
*$:.push File.expand_path("../lib", __FILE__)*
*require "my_project/version"*
*
*
*Gem::Specification.new do |s|*
* s.name = "my_project"*
* s.version = MyProject::VERSION*
* s.platform = Gem::platform::RUBY*
* s.authors = ["Pablo Quiros"]*
* s.email = ["(e-mail address removed)"]*
* s.homepage = "http://rubygems.org/gems/my_project"*
* s.summary = %q{bla bla}*
* s.description = %q{bla bla}*
*
*
* s.rubyforge_project = "my_project"*
*
*
* s.require_paths = ["lib"]*
*
*
* s.add_development_dependency "rspec"*
* s.add_development_dependency "rspec-core"*
*
*
* s.add_development_dependency "metric_fu"*
* s.add_development_dependency "reek"*
* s.add_development_dependency "roodi"*
* s.add_development_dependency "googlecharts"*
*
*
* *
*end*

*Rakefile*

*require 'bundler'*
*Bundler::GemHelper.install_tasks*
*require 'metric_fu'*
*
*
*ROOT = File.dirname(__FILE__)*
*ROOT_METRIC_FU = ROOT + '/metric_fu'*
*
*
*MetricFu::Configuration.run do |config|*
* config.base_directory = ROOT_METRIC_FU*
* config.scratch_directory = "#{ROOT_METRIC_FU}/data/scratch"*
* config.output_directory = "#{ROOT_METRIC_FU}/reports"*
* config.data_directory = "#{ROOT_METRIC_FU}/data/_data"*
* config.metrics = [:churn, :flog, :flay, :reek, :roodi, :rcov, :saikuro]
*
*end*

I'm calling rake like this: "bundle exec rake metrics:all"

Here's the folder structure after calling metrics_fu. In bold is the folder
generated after changing default path values.

my_project/
|-- Gemfile
|-- Gemfile.lock
|-- Rakefile
|-- my_project.gemspec
|-- lib
| |-- my_project
| | `-- version.rb
| `-- my_projectr.rb
|-- metric_fu
| |-- data
| | |-- _data
| | | `-- 20101105.yml
| | `-- scratch
| | |-- churn
| | |-- flay
| | |-- flog
| | |-- rcov
| | | `-- rcov.txt
| | |-- reek
| | |-- roodi
| | `-- saikuro
| |-- report.yml
| `-- reports
| |-- bluff-min.js
| |-- churn.html
| |-- excanvas.js
| |-- flay.html
| |-- flay.js
| |-- flog.html
| |-- flog.js
| |-- index.html
| |-- js-class.js
| |-- rails_best_practices.js
| |-- rcov.html
| |-- rcov.js
| |-- reek.html
| |-- reek.js
| |-- roodi.html
| |-- roodi.js
| `-- saikuro.html
|-- spec
*`-- tmp*
* `-- metric_fu*
* `-- scratch*
* `-- saikuro*
* |-- index_cyclo.html*
* `-- lib*
* |-- ift_ll2_retriever*
* | `-- version.rb_cyclo.html*
* `-- ift_ll2_retriever.rb_cyclo.html*

Thanks!
 

Members online

Forum statistics

Threads
473,981
Messages
2,570,187
Members
46,730
Latest member
AudryNolan

Latest Threads

Top