zillabyte-cli 0.9.7 → 0.9.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9c7c75a396bfcb153275388c7530488f56fae64
|
|
4
|
+
data.tar.gz: e5bf3200d93915931c1f3af2855b2fdadf5c7fe8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e4fe6dbbcc54b8de9a5388f92b9df11db40a3dc89c58c5395162018556d537d79f178f9c2e4e6f56ef41fdef7958add28276c8bc570cf749f2994f0eb8ac6e7
|
|
7
|
+
data.tar.gz: 591fe2f011570b0575dc58b9383c49968ecb2ea9d9843bc85fac4ccb874fa4ad404fc1325424cdd586be267200bfde00d8677442254b0ef935e90ac3ed4b549d
|
|
@@ -25,14 +25,17 @@ class Zillabyte::API::Components < Zillabyte::API::Flows
|
|
|
25
25
|
outputs = ""
|
|
26
26
|
|
|
27
27
|
nodes = component["schema"]["nodes"]
|
|
28
|
+
next if nodes.nil?
|
|
28
29
|
nodes.each do |node|
|
|
29
30
|
if node["type"] == "input" or node["type"] == "source"
|
|
30
31
|
inputs += "#{node["name"]}:\n"
|
|
32
|
+
next if node["fields"].nil?
|
|
31
33
|
node["fields"].each do |field|
|
|
32
34
|
inputs += " (#{field.keys[0]}, #{field.values[0].upcase})\n"
|
|
33
35
|
end
|
|
34
36
|
elsif node["type"] == "output" or node["type"] == "sink"
|
|
35
37
|
outputs += "#{node["name"]}:\n"
|
|
38
|
+
next if node["columns"].nil?
|
|
36
39
|
node["columns"].each do |field|
|
|
37
40
|
outputs += " (#{field.keys[0]}, #{field.values[0].upcase})\n"
|
|
38
41
|
end
|
data/lib/zillabyte/cli/flows.rb
CHANGED
|
@@ -535,7 +535,7 @@ class Zillabyte::Command::Flows < Zillabyte::Command::Base
|
|
|
535
535
|
# Otherwise, start our own tcp socket and get the info, print to stdout
|
|
536
536
|
flow_info = Zillabyte::Helpers.get_info(dir, options)
|
|
537
537
|
if options[:pretty]
|
|
538
|
-
puts JSON.pretty_generate(
|
|
538
|
+
puts JSON.pretty_generate(flow_info)
|
|
539
539
|
else
|
|
540
540
|
puts flow_info.to_json
|
|
541
541
|
end
|
|
@@ -623,6 +623,7 @@ class Zillabyte::Command::Flows < Zillabyte::Command::Base
|
|
|
623
623
|
end
|
|
624
624
|
|
|
625
625
|
end
|
|
626
|
+
alias_command "flows:remove", "flows:delete"
|
|
626
627
|
|
|
627
628
|
|
|
628
629
|
|
|
@@ -740,8 +741,8 @@ class Zillabyte::Command::Flows < Zillabyte::Command::Base
|
|
|
740
741
|
else
|
|
741
742
|
error("remote server error (f569)", type)
|
|
742
743
|
end
|
|
743
|
-
|
|
744
744
|
end
|
|
745
|
+
alias_command "kill", "flows:kill"
|
|
745
746
|
|
|
746
747
|
|
|
747
748
|
private
|
data/lib/zillabyte/cli/rpc.rb
CHANGED
|
@@ -3,17 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
require 'zillabyte'
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
name "has_hello_world"
|
|
18
|
-
column "url", :string
|
|
19
|
-
end
|
|
6
|
+
Zillabyte.app("<%= name %>")
|
|
7
|
+
.source("web_pages")
|
|
8
|
+
.each{ |page|
|
|
9
|
+
if page['html'].include? "<%= name %>"
|
|
10
|
+
emit :url => page['url']
|
|
11
|
+
end
|
|
12
|
+
}
|
|
13
|
+
.sink{
|
|
14
|
+
name "<%= name %>"
|
|
15
|
+
column "url", :string
|
|
16
|
+
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zillabyte-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- zillabyte
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|