git-age 0.1.4 → 0.1.6
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
- checksums.yaml.gz.sig +0 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/bin/git-age +1 -1
- data/lib/git/age/graph_cli.rb +1 -1
- data/lib/git/age/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0af8c2ed2b23e1c87fb85a906b68e032870c1b8a196185ac599ac34e97491828
|
4
|
+
data.tar.gz: 412ecb46c57e359a4f13800f37df589c6e3e38cf078ed2ec8fe17930e4005b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3642b48474489273d6199776a1a60a4c228d50ddd713f048ee2611c658d7eded9a3a46aa8d331ccbbd874aa1f646f697a310d5f7763ca8b5fddd1661f9febe55
|
7
|
+
data.tar.gz: dcda04fa314058efb654e2e62e8cb6d8de298418a07d3bb43003d9e4fbe96a99835f5960f97ed26b02747ac050975a63c32b2869ef57684323ce949c46a92e32
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -31,7 +31,7 @@ Usage: git-age [options]
|
|
31
31
|
-y, --ytitle=TITLE Y axis title
|
32
32
|
-c, --code=PATTERN Code dir pattern
|
33
33
|
-e, --test=PATTERN Test dir pattern
|
34
|
-
-
|
34
|
+
-p, --type=TYPE Graph type, default to bar
|
35
35
|
-v, --version Show version
|
36
36
|
```
|
37
37
|
|
@@ -59,7 +59,7 @@ $ git-age -o /tmp/data.csv -t 'Test project' -x 'Dates here' -y 'Lines here' -i
|
|
59
59
|
Supported image processors:
|
60
60
|
|
61
61
|
- [graph-cli](https://github.com/mcastorina/graph-cli)
|
62
|
-
Supports bar graphs (`-
|
62
|
+
Supports bar graphs (`-p bar`, default) and line graphs (`-p line`).
|
63
63
|
|
64
64
|
Example image:
|
65
65
|
|
data/bin/git-age
CHANGED
@@ -58,7 +58,7 @@ opts.on('-c', '--code=PATTERN', 'Code dir pattern') do |pattern|
|
|
58
58
|
options.code = pattern
|
59
59
|
end
|
60
60
|
|
61
|
-
opts.on('-
|
61
|
+
opts.on('-p', '--type=TYPE', 'Graph type, defaults to bar') do |type|
|
62
62
|
STDOUT.puts "Using graph type #{type}"
|
63
63
|
options.type = type
|
64
64
|
end
|
data/lib/git/age/graph_cli.rb
CHANGED
@@ -13,7 +13,7 @@ module Git
|
|
13
13
|
type = options.type == 'bar' ? '--bar' : ''
|
14
14
|
STDOUT.puts "Creating image #{options.image} ..."
|
15
15
|
|
16
|
-
cmd = "graph #{input} #{type} -o #{options.image} --title '#{options.title}' --xlabel='#{options.xtitle}' --ylabel='#{options.ytitle}' --xtick-fontsize 5 --time-format-output '%Y-%m
|
16
|
+
cmd = "graph #{input} #{type} -o #{options.image} --title '#{options.title}' --xlabel='#{options.xtitle}' --ylabel='#{options.ytitle}' --xtick-fontsize 5 --time-format-output '%Y-%m' --legend='#{legend}' 2> /dev/null"
|
17
17
|
IO.popen(cmd) do |io|
|
18
18
|
io.read
|
19
19
|
end
|
data/lib/git/age/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|