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: ecc6f0386c996c8abb9e98134eb079ecaab042f3
4
- data.tar.gz: 396dca4273f2e3497a6e3ed33392e5e89569dffc
3
+ metadata.gz: b9c7c75a396bfcb153275388c7530488f56fae64
4
+ data.tar.gz: e5bf3200d93915931c1f3af2855b2fdadf5c7fe8
5
5
  SHA512:
6
- metadata.gz: 6aaeb947d5589b824cf6b62fd8816fcf11e765f9fc7867a823d1189884ac2d4365aa0004f75fd799a03a88abe346ca2cf4a854104dab5858a2b132e278857b42
7
- data.tar.gz: 15bddb92cbcb9ffc5457e0ff4ce6e2a2f7bec77f5c3f3b45d74b08bac81127d8166b8b89b2f83e33fd37c3ff851bb31d00ae14f7977b9796d13c926c85024d54
6
+ metadata.gz: 6e4fe6dbbcc54b8de9a5388f92b9df11db40a3dc89c58c5395162018556d537d79f178f9c2e4e6f56ef41fdef7958add28276c8bc570cf749f2994f0eb8ac6e7
7
+ data.tar.gz: 591fe2f011570b0575dc58b9383c49968ecb2ea9d9843bc85fac4ccb874fa4ad404fc1325424cdd586be267200bfde00d8677442254b0ef935e90ac3ed4b549d
@@ -1,5 +1,5 @@
1
1
  module Zillabyte
2
2
  module CLI
3
- VERSION = "0.9.7"
3
+ VERSION = "0.9.9"
4
4
  end
5
5
  end
@@ -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
@@ -64,6 +64,8 @@ class Zillabyte::Command::Components < Zillabyte::Command::Flows
64
64
  # add_git_remote(name, remote)
65
65
 
66
66
  end
67
+ alias_command "component:init", "components:init"
68
+ alias_command "comp:init", "components:init"
67
69
 
68
70
 
69
71
  # components
@@ -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(JSON.parse(flow_info))
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
@@ -103,6 +103,7 @@ class Zillabyte::Command::RPC < Zillabyte::Command::Flows
103
103
  end
104
104
  alias_command "execute", "rpc:start"
105
105
  alias_command "executes", "rpc:start"
106
+ alias_command "rpc", "rpc:start"
106
107
 
107
108
 
108
109
  # rpc:results ID RUN_ID
@@ -3,17 +3,14 @@
3
3
 
4
4
  require 'zillabyte'
5
5
 
6
- app = Zillabyte.app("<%= name %>")
7
-
8
- stream = app.source("web_pages")
9
-
10
- stream.each do |page|
11
- if page['html'].include? "hello world"
12
- emit :url => page['url']
13
- end
14
- end
15
-
16
- stream.sink do
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.7
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-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake