shellvis 0.1.0
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 +7 -0
- data/lib/shellvis.rb +14 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7c260011d65caa1f55bee7a24f77d6e3358c3e50
|
4
|
+
data.tar.gz: 3251e8f769e9812b5b9729b218292ea61e6df091
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 35ee2dda9934a57d264508716fbd0d138fc5784afb87a7f2c874b41f4fd903fde2737144d53531ad5f03b044ed316338edd8ab445422c273ae9a19820e0ead59
|
7
|
+
data.tar.gz: 858b0861cdcebcf089156ba785cccae144206bd2d554f07723b91138c547a7d1ca05c17643fdf956a66935d46d09c3cd7c5abb5d6fbb258d36c421e8e1e7beac
|
data/lib/shellvis.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'net/http'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
class Shellvis
|
5
|
+
def self.visualize(data, id=nil)
|
6
|
+
uri = URI.parse('http://localhost:3384/visualize')
|
7
|
+
request_data = {'libraryLanguage': 'ruby', 'libraryVersion': '0.1.0', 'data': data.to_json()}
|
8
|
+
if id
|
9
|
+
request_data['id'] = id
|
10
|
+
end
|
11
|
+
response = Net::HTTP.post_form(uri, request_data)
|
12
|
+
response.body
|
13
|
+
end
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shellvis
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jean-Marc Skopek
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Easily visualize data from your ruby code
|
14
|
+
email: jeanmarc@skopek.ca
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/shellvis.rb
|
20
|
+
homepage: http://rubygems.org/gems/shellvis
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.5.1
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Easily visualize data from your ruby code
|
44
|
+
test_files: []
|