contributors 0.1.1 → 0.1.2

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/contributors.gemspec CHANGED
@@ -5,7 +5,7 @@ require "base64"
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "contributors"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
  s.authors = ["Jakub Stastny aka botanicus"]
10
10
  s.homepage = "http://github.com/botanicus/contributors"
11
11
  s.summary = "API for getting info about contributors of a project which is in Git."
data/lib/contributors.rb CHANGED
@@ -19,7 +19,7 @@ class Contributors
19
19
  results[email][:name] = name
20
20
  results[email][:commits] ||= 0
21
21
  results[email][:commits] += 1
22
- results[email][:LOC] = loc[email]
22
+ results[email][:LOC] = loc[email] || 0
23
23
  results
24
24
  end
25
25
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: contributors
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jakub Stastny aka botanicus
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain:
12
- date: 2011-03-07 00:00:00 +00:00
12
+ date: 2011-03-13 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15