Skip to content

Commit

Permalink
fixed FlogTask for path_expander usage
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/flog/dev/": change = 10664]
  • Loading branch information
zenspider committed May 16, 2016
1 parent aaf0a0a commit b405f03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/flog_task.rb
Expand Up @@ -53,7 +53,11 @@ def define
task name do
require "flog_cli"
flog = FlogCLI.new :continue => true, :quiet => true, :methods => @methods_only
flog.flog(*dirs)

expander = PathExpander.new dirs, "**/*.{rb,rake}"
files = expander.process

flog.flog(*files)

desc, score = flog.send method
desc, score = "total", desc unless score # total only returns a number
Expand Down

0 comments on commit b405f03

Please sign in to comment.