codefumes_harvester 0.1.2 → 0.1.3

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/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.1.3 / 09-12-09
2
+
3
+ * Cached commit stats when building Payload hash to prevent Grit::Git::GitTimeout exceptions
4
+ * Documentation updates
5
+
1
6
  == 0.1.2 / 09-10-09
2
7
 
3
8
  * Updated gem summary
File without changes
@@ -110,6 +110,7 @@ module CodeFumesHarvester
110
110
  end
111
111
 
112
112
  commit_list.map do |commit|
113
+ commit_stats = commit.stats
113
114
  {
114
115
  :identifier => commit.sha,
115
116
  :author_name => commit.author.name,
@@ -121,10 +122,10 @@ module CodeFumesHarvester
121
122
  :message => commit.message,
122
123
  :short_message => commit.short_message,
123
124
  :parent_identifiers => commit.parents.map(&:sha).join(','),
124
- :line_additions => commit.stats.additions,
125
- :line_deletions => commit.stats.deletions,
126
- :line_total => commit.stats.deletions,
127
- :affected_file_count => commit.stats.files.count
125
+ :line_additions => commit_stats.additions,
126
+ :line_deletions => commit_stats.deletions,
127
+ :line_total => commit_stats.deletions,
128
+ :affected_file_count => commit_stats.files.count
128
129
  }
129
130
  end.reverse
130
131
  end
@@ -9,7 +9,7 @@ require 'codefumes_harvester/quick_metric'
9
9
  include CodeFumesHarvester
10
10
 
11
11
  module CodeFumesHarvester
12
- VERSION = '0.1.2'
12
+ VERSION = '0.1.3'
13
13
  LIB_ROOT = File.dirname(__FILE__)
14
14
  end
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codefumes_harvester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Kersten
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-09-10 00:00:00 -05:00
13
+ date: 2009-09-12 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency