Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move rainbow require to bin script

  • Loading branch information...
commit 078e6acbe443883759d2488635ec2a556a35153f 1 parent 5edaf42
@igrigorik authored
Showing with 2 additions and 2 deletions.
  1. +1 −0  bin/bugspots
  2. +1 −2  lib/bugspots/scanner.rb
View
1  bin/bugspots
@@ -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
3  lib/bugspots/scanner.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.