zillabyte-cli 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,237 +1,223 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zillabyte-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - zillabyte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-27 00:00:00.000000000 Z
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: netrc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.7.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.7.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rest-client
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.6.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.6.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: excon
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.31'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.31'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: terminal-table
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.4'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.4'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: 3.2.11
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: 3.2.11
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: actionpack
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: 3.2.13
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: 3.2.13
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: multi_json
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: '1.0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bundler
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
131
  version: '1.3'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ~>
137
137
  - !ruby/object:Gem::Version
138
138
  version: '1.3'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: colorize
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ~>
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0.6'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ~>
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0.6'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: chronic
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ~>
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0.10'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ~>
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0.10'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: ascii_charts
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ~>
172
172
  - !ruby/object:Gem::Version
173
173
  version: 0.9.1
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ~>
179
179
  - !ruby/object:Gem::Version
180
180
  version: 0.9.1
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: indentation
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - ~>
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0.1'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - ~>
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0.1'
195
- - !ruby/object:Gem::Dependency
196
- name: aws-sdk
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: 1.33.0
202
- type: :runtime
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: 1.33.0
209
195
  - !ruby/object:Gem::Dependency
210
196
  name: time_difference
211
197
  requirement: !ruby/object:Gem::Requirement
212
198
  requirements:
213
- - - ">="
199
+ - - ! '>='
214
200
  - !ruby/object:Gem::Version
215
201
  version: '0'
216
202
  type: :runtime
217
203
  prerelease: false
218
204
  version_requirements: !ruby/object:Gem::Requirement
219
205
  requirements:
220
- - - ">="
206
+ - - ! '>='
221
207
  - !ruby/object:Gem::Version
222
208
  version: '0'
223
209
  - !ruby/object:Gem::Dependency
224
210
  name: mkfifo
225
211
  requirement: !ruby/object:Gem::Requirement
226
212
  requirements:
227
- - - ">="
213
+ - - ! '>='
228
214
  - !ruby/object:Gem::Version
229
215
  version: '0'
230
216
  type: :runtime
231
217
  prerelease: false
232
218
  version_requirements: !ruby/object:Gem::Requirement
233
219
  requirements:
234
- - - ">="
220
+ - - ! '>='
235
221
  - !ruby/object:Gem::Version
236
222
  version: '0'
237
223
  description: The Official Zillabyte CLI Gem
@@ -242,14 +228,7 @@ executables:
242
228
  extensions: []
243
229
  extra_rdoc_files: []
244
230
  files:
245
- - Gemfile
246
- - LICENSE
247
- - README.md
248
231
  - bin/zillabyte
249
- - lib/#zillabyte-cli.rb#
250
- - lib/zillabyte-cli.rb
251
- - lib/zillabyte-cli/version.rb
252
- - lib/zillabyte/api.rb
253
232
  - lib/zillabyte/api/apps.rb
254
233
  - lib/zillabyte/api/base.rb
255
234
  - lib/zillabyte/api/components.rb
@@ -264,16 +243,15 @@ files:
264
243
  - lib/zillabyte/api/settings.rb
265
244
  - lib/zillabyte/api/sources.rb
266
245
  - lib/zillabyte/api/zillalogs.rb
246
+ - lib/zillabyte/api.rb
267
247
  - lib/zillabyte/auth.rb
268
- - lib/zillabyte/cli.rb
269
- - lib/zillabyte/cli/#logs.rb#
270
- - lib/zillabyte/cli/#repl.rb#
271
248
  - lib/zillabyte/cli/apps.rb
272
249
  - lib/zillabyte/cli/auth.rb
273
250
  - lib/zillabyte/cli/base.rb
274
251
  - lib/zillabyte/cli/components.rb
275
252
  - lib/zillabyte/cli/config.rb
276
253
  - lib/zillabyte/cli/counters.rb
254
+ - lib/zillabyte/cli/data.rb
277
255
  - lib/zillabyte/cli/flows.rb
278
256
  - lib/zillabyte/cli/git.rb
279
257
  - lib/zillabyte/cli/help.rb
@@ -284,7 +262,6 @@ files:
284
262
  - lib/zillabyte/cli/log_formatter.rb
285
263
  - lib/zillabyte/cli/nuke.rb
286
264
  - lib/zillabyte/cli/query.rb
287
- - lib/zillabyte/cli/relations.rb
288
265
  - lib/zillabyte/cli/repl.rb
289
266
  - lib/zillabyte/cli/sources.rb
290
267
  - lib/zillabyte/cli/templates/apps/js/simple_function.js
@@ -292,35 +269,42 @@ files:
292
269
  - lib/zillabyte/cli/templates/apps/python/app.py
293
270
  - lib/zillabyte/cli/templates/apps/python/requirements.txt
294
271
  - lib/zillabyte/cli/templates/apps/python/zillabyte.conf.yaml
295
- - lib/zillabyte/cli/templates/apps/ruby/Gemfile
296
272
  - lib/zillabyte/cli/templates/apps/ruby/app.rb.erb
273
+ - lib/zillabyte/cli/templates/apps/ruby/Gemfile
274
+ - lib/zillabyte/cli/templates/apps/ruby/README.md
297
275
  - lib/zillabyte/cli/templates/apps/ruby/zillabyte.conf.yaml
298
276
  - lib/zillabyte/cli/templates/components/js/simple_function.js
299
277
  - lib/zillabyte/cli/templates/components/js/zillabyte.conf.yaml
300
278
  - lib/zillabyte/cli/templates/components/python/component.py
301
279
  - lib/zillabyte/cli/templates/components/python/requirements.txt
302
280
  - lib/zillabyte/cli/templates/components/python/zillabyte.conf.yaml
303
- - lib/zillabyte/cli/templates/components/ruby/Gemfile
304
281
  - lib/zillabyte/cli/templates/components/ruby/component.rb.erb
282
+ - lib/zillabyte/cli/templates/components/ruby/Gemfile
305
283
  - lib/zillabyte/cli/templates/components/ruby/zillabyte.conf.yaml
306
- - lib/zillabyte/cli/templates/python/#simple_function.py#
284
+ - lib/zillabyte/cli/templates/ruby/Gemfile.lock
307
285
  - lib/zillabyte/cli/version.rb
308
286
  - lib/zillabyte/cli/zillalogs.rb
287
+ - lib/zillabyte/cli.rb
309
288
  - lib/zillabyte/command.rb
310
- - lib/zillabyte/common.rb
311
289
  - lib/zillabyte/common/session.rb
312
290
  - lib/zillabyte/common/tar.rb
291
+ - lib/zillabyte/common.rb
313
292
  - lib/zillabyte/helpers.rb
314
293
  - lib/zillabyte/queries.rb
315
- - lib/zillabyte/runner.rb
316
294
  - lib/zillabyte/runner/app_runner.rb
317
295
  - lib/zillabyte/runner/component_operation.rb
318
296
  - lib/zillabyte/runner/component_runner.rb
319
297
  - lib/zillabyte/runner/multilang_operation.rb
320
298
  - lib/zillabyte/runner/operation.rb
321
- - zillabyte-cli.gemspec
299
+ - lib/zillabyte/runner.rb
300
+ - lib/zillabyte-cli/version.rb
301
+ - lib/zillabyte-cli.rb
302
+ - LICENSE
303
+ - README.md
322
304
  - zillabyte_emails.csv
323
305
  - zillaconf.json
306
+ - Gemfile
307
+ - zillabyte-cli.gemspec
324
308
  homepage: http://www.zillabyte.com
325
309
  licenses:
326
310
  - MIT
@@ -331,17 +315,17 @@ require_paths:
331
315
  - lib
332
316
  required_ruby_version: !ruby/object:Gem::Requirement
333
317
  requirements:
334
- - - ">="
318
+ - - ! '>='
335
319
  - !ruby/object:Gem::Version
336
320
  version: '0'
337
321
  required_rubygems_version: !ruby/object:Gem::Requirement
338
322
  requirements:
339
- - - ">="
323
+ - - ! '>='
340
324
  - !ruby/object:Gem::Version
341
325
  version: '0'
342
326
  requirements: []
343
327
  rubyforge_project:
344
- rubygems_version: 2.2.2
328
+ rubygems_version: 2.0.6
345
329
  signing_key:
346
330
  specification_version: 4
347
331
  summary: The Official Zillabyte CLI Gem
@@ -1,5 +0,0 @@
1
- require "zillabyte-cli/version"
2
- require "zillabyte/api"
3
- require "zillabyte/cli"
4
- require "zillabyte/common"
5
- require "zillabyte/queries"
@@ -1,12 +0,0 @@
1
- require "zillabyte/cli/base"
2
-
3
- # manage custom logs
4
- #
5
- class Zillabyte::Command::Logs < Zillabyte::Command::Base
6
-
7
-
8
-
9
-
10
-
11
-
12
- end
@@ -1,43 +0,0 @@
1
- require "zillabyte/cli/base"
2
- require 'readline'
3
- # REPL console for zillabyte commands
4
- #
5
- class Zillabyte::Command::Repl < Zillabyte::Command::Base
6
-
7
- # repl
8
- #
9
- # start a console session for zillabyte
10
- # --quiet # HIDDEN
11
- # --history HISTORY# HIDDEN hack to allow history for readline
12
- def index
13
- if !options[:quiet]
14
- v = `zillabyte version`
15
- display "\n#{v}Type q,exit or Ctrl+D to quit\n\n"
16
- end
17
- server = `echo $ZILLABYTE_API_HOST` || ""
18
- prompt = ""
19
- if server && server.chomp.length > 0
20
- prompt = "#{server.chomp} "
21
- end
22
- prompt += "zillabyte $ "
23
- if options[:history]
24
- #p options[:history]
25
- history = JSON.parse(options[:history])
26
- history.last(50).each do |his|
27
- # TODO: Handle single quotes ??
28
- Readline::HISTORY << his
29
- end
30
- end
31
- # TODO: Add tab completion for basic commands, app/relation names etc.
32
- while cmd = Readline.readline(prompt, true)
33
- if cmd && cmd.length > 0
34
- if cmd.downcase == "exit" || cmd.downcase == "q"
35
- display "" # TODO Make Ctrl+D print a newline too
36
- return
37
- else
38
- exec "zillabyte #{cmd}; zillabyte repl --quiet --history '#{Readline::HISTORY.to_a.to_json}'"
39
- end
40
- end
41
- end
42
- end
43
- end
@@ -1,27 +0,0 @@
1
- import zillabyte
2
-
3
- def prep(controller):
4
- return
5
-
6
- # This is the heart of your algorithm. It's processed on every
7
- # web page. This algorithm is run in parallel on possibly hundreds
8
- # of machines.
9
- def execute(controller, tup):
10
- if("hello world" in tup.values["html"]):
11
- controller.emit("has_hello_world",{"url":tup.values["url"]})
12
- return
13
-
14
- zillabyte.simple_function(\
15
- # This directive instructs zillabyte to give your function every
16
- # web page in our known universe. Your function will have access
17
- # to two fields: URL and HTML
18
- matches = "select * from web_pa", \
19
-
20
- # This directive tells Zillabyte what kind of data your function
21
- # produces. In this case, we're saying we will emit a tuple that
22
- # is one-column wide and contains the field 'URL'
23
- emits = [["has_hello_world", [{"url":"string"}]]], \
24
-
25
- prepare = prep, \
26
- execute = execute\
27
- )