githubchart 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ed8c5a0b1b7aacb84b1ccaa16d2424cd8695ceb
4
- data.tar.gz: ff431484f1bf98b862aa125122da4f549bb28e79
3
+ metadata.gz: 2ce1b300e2b8d0ee88babf12580e7ae263a6007b
4
+ data.tar.gz: 83ebd68b4ff9988003c4cbac5ba7702e9e4ddbcc
5
5
  SHA512:
6
- metadata.gz: 911fcd89c2f3e4f4f89a7d038eaf8ad536c14c6318d968e1847ae3254b8940732d81063afbc9c9b18870e641b74b023f90dc553f35137aa9b9106312b8a5931c
7
- data.tar.gz: a4ba22508c1c31dcf1e56f54c396b60e90417d3b6b864582a75b3568f6b42126f6da74158d4e7eeb6557d9a739439eda99f5d52687b7329ac6f6a24ac9e77329
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
- File.open(SVG_Path, 'w') { |file| file << Chart }
48
+ if SVG_Path.nil?
49
+ puts Chart
50
+ else
51
+ File.open(SVG_Path, 'w') { |file| file << Chart }
52
+ end
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Define the version
3
3
  module GithubChart
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.9'
5
5
  end
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.8
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-01 00:00:00.000000000 Z
11
+ date: 2014-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: githubstats