Skip to content

Commit

Permalink
move rainbow require to bin script
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Feb 17, 2014
1 parent 5edaf42 commit 078e6ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/bugspots
Expand Up @@ -5,6 +5,7 @@ $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)

require 'bugspots'
require 'optparse'
require 'rainbow'
require 'rainbow/ext/string'

ARGV << '--help' if ARGV.empty?
Expand Down
3 changes: 1 addition & 2 deletions lib/bugspots/scanner.rb
@@ -1,4 +1,3 @@
require 'rainbow'
require 'grit'

module Bugspots
Expand All @@ -19,7 +18,7 @@ def self.scan(repo, branch = "master", depth = 500, regex = nil)
commit_list = repo.git.rev_list({:max_count => false, :no_merges => true, :pretty => "raw", :timeout => false}, branch)
Grit::Commit.list_from_string(repo, commit_list).each do |commit|
if commit.message =~ regex
files = commit.stats.files.map {|s| s.first}.select{ |s| tree/s }
files = commit.stats.files.map {|s| s.first}.select{ |s| tree/s }
fixes << Fix.new(commit.short_message, commit.date, files)
end
end
Expand Down

0 comments on commit 078e6ac

Please sign in to comment.