Permalink
Browse files

move rainbow require to bin script

  • Loading branch information...
1 parent 5edaf42 commit 078e6acbe443883759d2488635ec2a556a35153f @igrigorik committed Feb 17, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −0 bin/bugspots
  2. +1 −2 lib/bugspots/scanner.rb
View
@@ -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?
View
@@ -1,4 +1,3 @@
-require 'rainbow'
require 'grit'
module Bugspots
@@ -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

0 comments on commit 078e6ac

Please sign in to comment.