Skip to content

Commit

Permalink
Ensure dirs to flog is an array
Browse files Browse the repository at this point in the history
Conflicts:
	lib/metric_fu/metrics/flay/init.rb
  • Loading branch information
bf4 committed Aug 4, 2013
1 parent 62355a6 commit 69e0547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/metric_fu/metrics/flay/init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ def name
end

def default_run_options
{ :dirs_to_flay => MetricFu::Io::FileSystem.directory('code_dirs'), # was @code_dirs

{ :dirs_to_flay => MetricFu::Io::FileSystem.directory('code_dirs'),
# MetricFu has been setting the minimum score as 100 for
# a long time. This is a really big number, considering
# the default is 16. Setting it to nil to use the Flay default.
Expand Down
2 changes: 1 addition & 1 deletion lib/metric_fu/metrics/flog/flog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Flog < Generator

def emit
files = []
options[:dirs_to_flog].each do |directory|
Array(options[:dirs_to_flog]).each do |directory|
directory = "." if directory=='./'
dir_files = Dir.glob("#{directory}/**/*.rb")
dir_files = remove_excluded_files(dir_files)
Expand Down

0 comments on commit 69e0547

Please sign in to comment.