grapht 0.1.7 → 0.1.8
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/grapht +7 -1
- data/grapht.gemspec +2 -2
- data/lib/grapht/shell.rb +2 -2
- data/lib/grapht/version.rb +1 -1
- data/script/grapht.coffee +3 -3
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28b0d92ac5111da4102fa9375ed2ff8cd031c36f
|
4
|
+
data.tar.gz: 92e20cc9d8968b744a9e07764620541f5070fc23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0c14b3abd8022f504200a9c64a4de95291ec02c57dfa482165868179ab897309e1b37105e2ab2281e780cf7a7b40f18176cbb7698ecd514d470947b776fc4e2
|
7
|
+
data.tar.gz: abf23e58cacfa00294bc257a3bbf57d9778ec88b8d5cb76b7a47679f7aa8fa2ed195827cc21e93c77c05fa35a62d9f268f0400d40bf5ac4b30270ba572793249
|
data/bin/grapht
CHANGED
@@ -8,7 +8,13 @@ if [ $? -ne 0 ]; then
|
|
8
8
|
fi
|
9
9
|
|
10
10
|
if [ "$#" -ge 1 ]; then
|
11
|
-
|
11
|
+
if [ ! -t 0 ]; then
|
12
|
+
phantomjs $script $@ < /dev/stdin
|
13
|
+
else
|
14
|
+
echo "ERROR:"
|
15
|
+
echo "-- grapht was called without STDIN data."
|
16
|
+
exit 1
|
17
|
+
fi
|
12
18
|
else
|
13
19
|
echo "ERROR:"
|
14
20
|
echo "-- grapht was called with unknown arguments:"
|
data/grapht.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'grapht/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "grapht"
|
8
8
|
spec.version = Grapht::VERSION
|
9
|
-
spec.authors = ["Tim Lowrimore"]
|
10
|
-
spec.email = ["tim@plia.com"]
|
9
|
+
spec.authors = ["Tim Lowrimore", "Josh Lewis"]
|
10
|
+
spec.email = ["tim@plia.com", "josh@plia.com"]
|
11
11
|
spec.description = %q{Grapht is a server-side graphing library built on PhantomJS and utilizing D3.js. Grapht provides a CLI for simple Bash scripting. It also profides a light-weight Ruby API to make service-level integration simple.}
|
12
12
|
spec.summary = %q{Grapht is a server-side graphing library built on PhantomJS and utilizing D3.js.}
|
13
13
|
spec.homepage = "https://github.com/trade-informatics/grapht"
|
data/lib/grapht/shell.rb
CHANGED
@@ -11,8 +11,8 @@ module Grapht
|
|
11
11
|
options = *options.select { |k,v| ALLOWED_OPTIONS.include? k }.flatten
|
12
12
|
|
13
13
|
out, err, status =
|
14
|
-
Open3.capture3 CMD, type, *options, stdin_data: json_data
|
15
|
-
|
14
|
+
Open3.capture3 CMD, type, *options, stdin_data: json_data
|
15
|
+
|
16
16
|
raise Grapht::Shell::Error, err unless status.success?
|
17
17
|
out
|
18
18
|
end
|
data/lib/grapht/version.rb
CHANGED
data/script/grapht.coffee
CHANGED
@@ -79,10 +79,10 @@ fns =
|
|
79
79
|
|
80
80
|
readDataIn: ->
|
81
81
|
try
|
82
|
-
if fs.
|
83
|
-
|
82
|
+
if (data = fs.read('/dev/stdin')).length
|
83
|
+
data
|
84
84
|
else
|
85
|
-
|
85
|
+
fns.logError('No graph data was received!')
|
86
86
|
|
87
87
|
catch err
|
88
88
|
@logError err
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grapht
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Lowrimore
|
8
|
+
- Josh Lewis
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
12
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
@@ -57,6 +58,7 @@ description: Grapht is a server-side graphing library built on PhantomJS and uti
|
|
57
58
|
Ruby API to make service-level integration simple.
|
58
59
|
email:
|
59
60
|
- tim@plia.com
|
61
|
+
- josh@plia.com
|
60
62
|
executables:
|
61
63
|
- grapht
|
62
64
|
extensions: []
|