gitstatsakido 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/bin/gitstats +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22a04dab538b15fc7aa448c60b597bdd1bf31346
|
|
4
|
+
data.tar.gz: 926c4a3f58294ea108eb19b7263128e0e1ec84ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16d439889b02c46871e5763075a77ced31c8bffb802939476d64330690c878c35d0ddbfb6414ae1ddf77b65eba9cfac1109676e1b1cdf6419aee50f480516435
|
|
7
|
+
data.tar.gz: 63552f0cb7c501c01ec908d1872968cc4323cf49f0c0aa856da64eb2c6e41c9f6dd73b8104b10422723faba88519812e293a8d216a93acb966a78b4a494e0d26
|
data/bin/gitstats
CHANGED
|
@@ -6,17 +6,17 @@ require 'yaml'
|
|
|
6
6
|
|
|
7
7
|
options = {}
|
|
8
8
|
OptionParser.new do |opts|
|
|
9
|
-
opts.banner =
|
|
9
|
+
opts.banner = " Version 0.1.5 by lei@akidolabs.com\n\nUsage: gitstats [-c ##] [-d ##] [-e (-##|Date)] [-s (-##|Date)]"
|
|
10
10
|
|
|
11
|
-
opts.on("-c", "--commits COMMITS", "list # of commits for each author in descending order") do |c|
|
|
11
|
+
opts.on("-c", "--commits COMMITS", "list # of commits for each author in descending order, ie. 10") do |c|
|
|
12
12
|
options[:commits] = c.to_i
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
opts.on("-d", "--days DAYS", "days of commits to evaluate") do |d|
|
|
15
|
+
opts.on("-d", "--days DAYS", "days of commits to evaluate, ie. 5") do |d|
|
|
16
16
|
options[:days] = d.to_f
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
opts.on("-s", '--startDate DATE_OR_DAYS
|
|
19
|
+
opts.on("-s", '--startDate DATE_OR_DAYS', 'include commits starting on (2016-1-31|-100) date or days previous') do |s|
|
|
20
20
|
if s[0] == '-'
|
|
21
21
|
options[:start] = DateTime.now + s.to_i
|
|
22
22
|
else
|
|
@@ -24,7 +24,7 @@ OptionParser.new do |opts|
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
opts.on("-e", '--endDate DATE_OR_DAYS
|
|
27
|
+
opts.on("-e", '--endDate DATE_OR_DAYS', 'include commits ending on (2016-2-28|-3) date or days previous') do |e|
|
|
28
28
|
if e[0] == '-'
|
|
29
29
|
options[:end] = DateTime.now + e.to_i
|
|
30
30
|
else
|