hotspots 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +9 -2
- data/Rakefile +27 -11
- data/lib/hotspots/repository/driver/git.rb +5 -5
- data/lib/hotspots/version.rb +1 -1
- metadata +62 -45
data/CHANGELOG.markdown
CHANGED
@@ -1,5 +1,12 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
v0.0.13
|
2
|
+
-------
|
3
|
+
|
4
|
+
* Fix switch 'since' for git 1.7.2.5 (Thanks to Phil Hofmann)
|
5
|
+
* Display a warning and run tests without reporting coverage if simplecov is not present
|
6
|
+
* Change format in verbose mode
|
7
|
+
|
8
|
+
v0.0.12
|
9
|
+
-------
|
3
10
|
|
4
11
|
* Make compatible with ruby 1.8.7
|
5
12
|
|
data/Rakefile
CHANGED
@@ -7,30 +7,46 @@ def load_all_tests
|
|
7
7
|
$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
|
8
8
|
end
|
9
9
|
|
10
|
+
def load_all_source_files
|
11
|
+
Dir[File.join(File.expand_path(File.dirname(__FILE__)), "lib", "**", "*.rb")].each do |file|
|
12
|
+
require file
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
10
16
|
def run_all_tests
|
11
17
|
Dir[File.join(File.expand_path(File.dirname(__FILE__)), "test", "**", "*_test.rb")].each do |file|
|
12
18
|
Rake.run_tests file
|
13
19
|
end
|
14
20
|
end
|
15
21
|
|
22
|
+
def require_simplecov
|
23
|
+
begin
|
24
|
+
require 'simplecov'
|
25
|
+
|
26
|
+
SimpleCov.start do
|
27
|
+
add_filter "/test/"
|
28
|
+
end
|
29
|
+
|
30
|
+
rescue LoadError
|
31
|
+
$stderr.puts <<-EOS
|
32
|
+
|
33
|
+
Could bot generate coverage report since 'simplecov' is unavailable.
|
34
|
+
Please install simplecov and re-run to generate coverage report.
|
35
|
+
[sudo] gem install simplecov
|
36
|
+
|
37
|
+
EOS
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
16
41
|
task :test do
|
17
42
|
load_all_tests
|
18
43
|
run_all_tests
|
19
44
|
end
|
20
45
|
|
21
46
|
task :coverage do
|
22
|
-
|
23
|
-
|
24
|
-
SimpleCov.start do
|
25
|
-
add_filter "/test/"
|
26
|
-
end
|
27
|
-
|
47
|
+
require_simplecov
|
28
48
|
load_all_tests
|
29
|
-
|
30
|
-
Dir[File.join(File.expand_path(File.dirname(__FILE__)), "lib", "**", "*.rb")].each do |file|
|
31
|
-
require file
|
32
|
-
end
|
33
|
-
|
49
|
+
load_all_source_files
|
34
50
|
run_all_tests
|
35
51
|
end
|
36
52
|
|
@@ -10,17 +10,17 @@ module Hotspots
|
|
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
|
14
|
-
tap {|raw| logger.log "<Input
|
13
|
+
command = %Q(git log --pretty="%H" --since="#{options[:since_days]} days ago" #{grep_clause}).
|
14
|
+
tap {|raw| logger.log "<Input>\n#{raw}\n</Input>"}
|
15
15
|
%x(#{command}).
|
16
|
-
tap {|raw| logger.log raw}
|
16
|
+
tap {|raw| logger.log "<Output>\n#{raw}\n</Output>"}
|
17
17
|
end
|
18
18
|
|
19
19
|
def show_one_line_names(options)
|
20
20
|
command = %Q(git show --oneline --name-only #{options[:commit_hash]}).
|
21
|
-
tap {|raw| logger.log "<Input
|
21
|
+
tap {|raw| logger.log "<Input>\n#{raw}\n</Input>"}
|
22
22
|
%x(#{command}).
|
23
|
-
tap {|raw| logger.log "<Output
|
23
|
+
tap {|raw| logger.log "<Output>\n#{raw}\n</Output>"}
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
data/lib/hotspots/version.rb
CHANGED
metadata
CHANGED
@@ -1,54 +1,62 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotspots
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 13
|
9
|
+
version: 0.0.13
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Chirantan Mitra
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
|
17
|
+
date: 2012-08-11 00:00:00 +05:30
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: simplecov
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
22
31
|
type: :development
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
32
|
+
version_requirements: *id001
|
33
|
+
- !ruby/object:Gem::Dependency
|
26
34
|
name: minitest
|
27
|
-
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
37
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
version: "0"
|
33
44
|
type: :development
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
and over again, it may require re-design. Watch out for file changes that don''t
|
40
|
-
have a corresponding
|
41
|
-
|
45
|
+
version_requirements: *id002
|
46
|
+
description: |
|
47
|
+
Find all files that changed over the past days for a git repository. If the same file is modified over
|
48
|
+
and over again, it may require re-design. Watch out for file changes that don't have a corresponding
|
42
49
|
test change.
|
43
50
|
|
44
|
-
|
45
|
-
email:
|
51
|
+
email:
|
46
52
|
- chirantan.mitra@gmail.com
|
47
|
-
executables:
|
53
|
+
executables:
|
48
54
|
- hotspots
|
49
55
|
extensions: []
|
56
|
+
|
50
57
|
extra_rdoc_files: []
|
51
|
-
|
58
|
+
|
59
|
+
files:
|
52
60
|
- .gitignore
|
53
61
|
- CHANGELOG.markdown
|
54
62
|
- Gemfile
|
@@ -71,28 +79,37 @@ files:
|
|
71
79
|
- test/hotspots/options_parser_test.rb
|
72
80
|
- test/hotspots/repository/parser/git_test.rb
|
73
81
|
- test/hotspots/store_test.rb
|
82
|
+
has_rdoc: true
|
74
83
|
homepage: https://github.com/chiku/hotspots
|
75
84
|
licenses: []
|
85
|
+
|
76
86
|
post_install_message:
|
77
87
|
rdoc_options: []
|
78
|
-
|
88
|
+
|
89
|
+
require_paths:
|
79
90
|
- lib
|
80
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
92
|
none: false
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
|
86
|
-
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
segments:
|
97
|
+
- 0
|
98
|
+
version: "0"
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
100
|
none: false
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
segments:
|
105
|
+
- 0
|
106
|
+
version: "0"
|
92
107
|
requirements: []
|
108
|
+
|
93
109
|
rubyforge_project: hotspots
|
94
|
-
rubygems_version: 1.
|
110
|
+
rubygems_version: 1.3.7
|
95
111
|
signing_key:
|
96
112
|
specification_version: 3
|
97
113
|
summary: Find all files that changed over the past in a git repository based on conditions
|
98
114
|
test_files: []
|
115
|
+
|