contributors 0.1 → 0.1.1

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/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  .rvmrc
2
+ /*.gem
data/README.textile CHANGED
@@ -14,6 +14,16 @@ Use the API:
14
14
 
15
15
  <pre>
16
16
  require "contributors"
17
+
18
+ contributors = Contributors.new
19
+ contributors.results
20
+ # => {"stastny@101ideas.cz" => {:name => "Jakub Stastny aka botanicus", :commits = >3, :LOC = >219}}
21
+
22
+ # You can optionally specify project path and list of ignored patterns thusly:
23
+ contributors = Contributors.new(Dir.pwd, [/^(vendor|gems)\//, /.+\.gem$/])
24
+
25
+ # The Contributors#result method takes an optional argument determining by which field you want to sort the results:
26
+ contributors.resuls(:LOC) # or :commits
17
27
  </pre>
18
28
 
19
29
  Use the "Nake":https://github.com/botanicus/nake tasks:
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"
8
+ s.version = "0.1.1"
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
@@ -20,7 +20,6 @@ class Contributors
20
20
  results[email][:commits] ||= 0
21
21
  results[email][:commits] += 1
22
22
  results[email][:LOC] = loc[email]
23
- p loc
24
23
  results
25
24
  end
26
25
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: contributors
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "0.1"
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jakub Stastny aka botanicus