contributors 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.textile +10 -0
- data/contributors.gemspec +1 -1
- data/lib/contributors.rb +0 -1
- metadata +1 -1
data/.gitignore
CHANGED
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