hotspots 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +6 -0
- data/README.markdown +1 -0
- data/Rakefile +1 -1
- data/hotspots.gemspec +14 -12
- data/lib/hotspots/logger.rb +1 -1
- data/lib/hotspots/repository/driver/git.rb +2 -1
- data/lib/hotspots/version.rb +1 -1
- metadata +14 -3
data/CHANGELOG.markdown
CHANGED
data/README.markdown
CHANGED
data/Rakefile
CHANGED
data/hotspots.gemspec
CHANGED
@@ -5,20 +5,22 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
5
5
|
require "hotspots/version"
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
|
-
s.name
|
9
|
-
s.version
|
10
|
-
s.authors
|
11
|
-
s.email
|
12
|
-
s.homepage
|
13
|
-
s.summary
|
14
|
-
s.description
|
8
|
+
s.name = "hotspots"
|
9
|
+
s.version = Hotspots::VERSION
|
10
|
+
s.authors = ["Chirantan Mitra"]
|
11
|
+
s.email = ["chirantan.mitra@gmail.com"]
|
12
|
+
s.homepage = "https://github.com/chiku/hotspots"
|
13
|
+
s.summary = "Find all files that changed over the past in a git repository based on conditions"
|
14
|
+
s.description = <<-EOS
|
15
15
|
Find all files that changed over the past days for a git repository. If the same file is modified over
|
16
16
|
and over again, it may require re-design. Watch out for file changes that don't have a corresponding
|
17
17
|
test change.
|
18
18
|
EOS
|
19
|
-
s.rubyforge_project
|
20
|
-
s.files
|
21
|
-
s.test_files
|
22
|
-
s.executables
|
23
|
-
s.require_paths
|
19
|
+
s.rubyforge_project = "hotspots"
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.test_files = `git ls-files -- {test}/*`.split("\n")
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
23
|
+
s.require_paths = ["lib"]
|
24
|
+
|
25
|
+
s.add_development_dependency "simplecov"
|
24
26
|
end
|
data/lib/hotspots/logger.rb
CHANGED
@@ -9,7 +9,8 @@ module Hotspots
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def pretty_log(options)
|
12
|
-
|
12
|
+
grep_clause = options[:message_filter].empty? ? "" : " --grep \"#{options[:message_filter]}\""
|
13
|
+
command = %Q(git log --pretty="%H" --since #{options[:since_days]}.days.ago#{grep_clause})
|
13
14
|
.tap {|raw| logger.log "<Input> #{raw}"}
|
14
15
|
%x(#{command})
|
15
16
|
.tap {|raw| logger.log raw}
|
data/lib/hotspots/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotspots
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,19 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
13
|
-
dependencies:
|
12
|
+
date: 2012-01-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: simplecov
|
16
|
+
requirement: &16193160 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *16193160
|
14
25
|
description: ! 'Find all files that changed over the past days for a git repository.
|
15
26
|
If the same file is modified over
|
16
27
|
|