hotspots 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,9 @@
1
+ v0.0.11
2
+ -------
3
+
4
+ * Default task is to run coverage report
5
+ * Tolerate git versions that bomb when --grep option is empty
6
+
1
7
  v0.0.10
2
8
  -------
3
9
 
data/README.markdown CHANGED
@@ -57,6 +57,7 @@ Running tests
57
57
  Clone the repository and run the following command from the repository.
58
58
 
59
59
  ``` script
60
+ gem install simplecov
60
61
  rake
61
62
  ```
62
63
 
data/Rakefile CHANGED
@@ -34,4 +34,4 @@ task :coverage do
34
34
  run_all_tests
35
35
  end
36
36
 
37
- task :default => [:test]
37
+ task :default => [:coverage]
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 = "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
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 = "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"]
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
@@ -25,7 +25,7 @@ module Hotspots
25
25
  end
26
26
 
27
27
  def format(message)
28
- "\n<#{Time.now}> #{message}"
28
+ "<#{Time.now}> #{message}\n"
29
29
  end
30
30
  end
31
31
  end
@@ -9,7 +9,8 @@ module Hotspots
9
9
  end
10
10
 
11
11
  def pretty_log(options)
12
- command = %Q(git log --pretty="%H" --since #{options[:since_days]}.days.ago --grep "#{options[:message_filter]}")
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}
@@ -1,3 +1,3 @@
1
1
  module Hotspots
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
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.10
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-08 00:00:00.000000000 Z
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