githubchart 0.0.8 → 0.0.9
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/README.md +2 -0
- data/bin/githubchart +5 -2
- data/lib/githubchart/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ce1b300e2b8d0ee88babf12580e7ae263a6007b
|
|
4
|
+
data.tar.gz: 83ebd68b4ff9988003c4cbac5ba7702e9e4ddbcc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e6e1e7ea6a511bf4ca6bf1956c713c91033852d2d48055fe3ca573fb8014c94511417f047d2bda4b2b18bc9e41d618d80cb64d7ead634daef70abe9a44832f8
|
|
7
|
+
data.tar.gz: a2aeddf4771ee7aa7692a69d057433695bf7a6e719e29e6d74a261a7fdef17fdddbce57eedf5f038e099f4a2665735e5e0840ce425eece123b2db47e47f31d7d
|
data/README.md
CHANGED
|
@@ -20,6 +20,8 @@ Run `githubchart path/to/svg` to generate an SVG. To override the default userna
|
|
|
20
20
|
|
|
21
21
|
GithubChart also allows you to provide input from a file instead of pulling data from Github. You can pass JSON to GithubChart by using `githubchart -i /path/to/file /path/to/svg`, or use '-' to use STDIN. See spec/examples/input.json for example data.
|
|
22
22
|
|
|
23
|
+
If you don't provide a file path, the resulting SVG will be printed to stdout.
|
|
24
|
+
|
|
23
25
|
## Installation
|
|
24
26
|
|
|
25
27
|
gem install githubchart
|
data/bin/githubchart
CHANGED
|
@@ -42,8 +42,11 @@ OptionParser.new do |opts|
|
|
|
42
42
|
end.parse!
|
|
43
43
|
|
|
44
44
|
SVG_Path = ARGV.shift
|
|
45
|
-
fail 'Please provide the target location for the SVG' if SVG_Path.nil?
|
|
46
45
|
|
|
47
46
|
Chart = GithubChart.new(options).svg
|
|
48
47
|
|
|
49
|
-
|
|
48
|
+
if SVG_Path.nil?
|
|
49
|
+
puts Chart
|
|
50
|
+
else
|
|
51
|
+
File.open(SVG_Path, 'w') { |file| file << Chart }
|
|
52
|
+
end
|
data/lib/githubchart/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: githubchart
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Les Aker
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-09-
|
|
11
|
+
date: 2014-09-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: githubstats
|