alf-shell 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. data/Gemfile +5 -2
  2. data/Gemfile.lock +29 -10
  3. data/bin/alf +2 -0
  4. data/doc/man/alf-explain.man +22 -0
  5. data/doc/man/alf-metadata.man +13 -0
  6. data/doc/man/alf-show.man +16 -0
  7. data/doc/man/alf.man +77 -0
  8. data/doc/man/allbut.man +39 -0
  9. data/doc/man/among.man +25 -0
  10. data/doc/man/avg.man +37 -0
  11. data/doc/man/between.man +24 -0
  12. data/doc/man/concat.man +55 -0
  13. data/doc/man/contradiction.man +26 -0
  14. data/doc/man/count.man +20 -0
  15. data/doc/man/eq.man +29 -0
  16. data/doc/man/extend.man +33 -0
  17. data/doc/man/frame.man +60 -0
  18. data/doc/man/group.man +51 -0
  19. data/doc/man/gt.man +30 -0
  20. data/doc/man/gte.man +30 -0
  21. data/doc/man/intersect.man +54 -0
  22. data/doc/man/join.man +84 -0
  23. data/doc/man/lt.man +30 -0
  24. data/doc/man/lte.man +30 -0
  25. data/doc/man/matching.man +73 -0
  26. data/doc/man/max.man +36 -0
  27. data/doc/man/min.man +36 -0
  28. data/doc/man/minus.man +54 -0
  29. data/doc/man/native.man +32 -0
  30. data/doc/man/neq.man +29 -0
  31. data/doc/man/not_matching.man +51 -0
  32. data/doc/man/page.man +60 -0
  33. data/doc/man/project.man +36 -0
  34. data/doc/man/rank.man +42 -0
  35. data/doc/man/rename.man +29 -0
  36. data/doc/man/restrict.man +38 -0
  37. data/doc/man/stddev.man +37 -0
  38. data/doc/man/sum.man +37 -0
  39. data/doc/man/summarize.man +45 -0
  40. data/doc/man/tautology.man +26 -0
  41. data/doc/man/ungroup.man +30 -0
  42. data/doc/man/union.man +55 -0
  43. data/doc/man/unwrap.man +37 -0
  44. data/doc/man/variance.man +37 -0
  45. data/doc/man/wrap.man +37 -0
  46. data/doc/txt/alf-explain.man +22 -0
  47. data/doc/txt/alf-metadata.man +16 -0
  48. data/doc/txt/alf-show.man +19 -0
  49. data/doc/txt/alf.man +80 -0
  50. data/doc/txt/allbut.txt +31 -0
  51. data/doc/txt/among.txt +20 -0
  52. data/doc/txt/avg.txt +22 -0
  53. data/doc/txt/between.txt +19 -0
  54. data/doc/txt/concat.txt +31 -0
  55. data/doc/txt/contradiction.txt +15 -0
  56. data/doc/txt/count.txt +14 -0
  57. data/doc/txt/eq.txt +19 -0
  58. data/doc/txt/extend.txt +29 -0
  59. data/doc/txt/frame.txt +48 -0
  60. data/doc/txt/group.txt +37 -0
  61. data/doc/txt/gt.txt +20 -0
  62. data/doc/txt/gte.txt +20 -0
  63. data/doc/txt/intersect.txt +42 -0
  64. data/doc/txt/join.txt +65 -0
  65. data/doc/txt/lt.txt +20 -0
  66. data/doc/txt/lte.txt +20 -0
  67. data/doc/txt/matching.txt +54 -0
  68. data/doc/txt/max.txt +21 -0
  69. data/doc/txt/min.txt +21 -0
  70. data/doc/txt/minus.txt +42 -0
  71. data/doc/txt/native.txt +27 -0
  72. data/doc/txt/neq.txt +19 -0
  73. data/doc/txt/not_matching.txt +39 -0
  74. data/doc/txt/page.txt +48 -0
  75. data/doc/txt/project.txt +28 -0
  76. data/doc/txt/rank.txt +34 -0
  77. data/doc/txt/rename.txt +25 -0
  78. data/doc/txt/restrict.txt +26 -0
  79. data/doc/txt/stddev.txt +22 -0
  80. data/doc/txt/sum.txt +22 -0
  81. data/doc/txt/summarize.txt +33 -0
  82. data/doc/txt/tautology.txt +15 -0
  83. data/doc/txt/ungroup.txt +26 -0
  84. data/doc/txt/union.txt +43 -0
  85. data/doc/txt/unwrap.txt +29 -0
  86. data/doc/txt/variance.txt +22 -0
  87. data/doc/txt/wrap.txt +29 -0
  88. data/lib/alf/shell.rb +2 -32
  89. data/lib/alf/shell/alfrc.rb +3 -0
  90. data/lib/alf/shell/command.rb +2 -18
  91. data/lib/alf/shell/command/explain.rb +37 -0
  92. data/lib/alf/shell/command/help.rb +3 -21
  93. data/lib/alf/shell/command/main.rb +20 -78
  94. data/lib/alf/shell/command/metadata.rb +32 -0
  95. data/lib/alf/shell/command/show.rb +17 -5
  96. data/lib/alf/shell/support.rb +21 -13
  97. data/lib/alf/shell/version.rb +1 -1
  98. data/spec/integration/explain/explain.cmd +1 -0
  99. data/spec/integration/explain/explain.stdout +11 -0
  100. data/spec/integration/show/group.alf +2 -0
  101. data/spec/integration/show/show_alf.cmd +1 -0
  102. data/spec/integration/{group/group_0.stdout → show/show_alf.stdout} +0 -0
  103. data/tasks/doc.rake +4 -0
  104. metadata +116 -178
  105. data/doc/commands/exec.md +0 -16
  106. data/doc/commands/help.md +0 -11
  107. data/doc/commands/main.md +0 -33
  108. data/doc/commands/show.md +0 -12
  109. data/doc/operators/non_relational/autonum.md +0 -23
  110. data/doc/operators/non_relational/clip.md +0 -31
  111. data/doc/operators/non_relational/coerce.md +0 -15
  112. data/doc/operators/non_relational/compact.md +0 -20
  113. data/doc/operators/non_relational/defaults.md +0 -32
  114. data/doc/operators/non_relational/generator.md +0 -20
  115. data/doc/operators/non_relational/sort.md +0 -24
  116. data/doc/operators/non_relational/type-safe.md +0 -20
  117. data/doc/operators/relational/extend.md +0 -18
  118. data/doc/operators/relational/frame.md +0 -26
  119. data/doc/operators/relational/group.md +0 -27
  120. data/doc/operators/relational/hierarchize.md +0 -14
  121. data/doc/operators/relational/infer-heading.md +0 -20
  122. data/doc/operators/relational/intersect.md +0 -13
  123. data/doc/operators/relational/join.md +0 -28
  124. data/doc/operators/relational/matching.md +0 -24
  125. data/doc/operators/relational/minus.md +0 -12
  126. data/doc/operators/relational/not-matching.md +0 -20
  127. data/doc/operators/relational/page.md +0 -31
  128. data/doc/operators/relational/project.md +0 -28
  129. data/doc/operators/relational/quota.md +0 -21
  130. data/doc/operators/relational/rank.md +0 -27
  131. data/doc/operators/relational/rename.md +0 -17
  132. data/doc/operators/relational/restrict.md +0 -25
  133. data/doc/operators/relational/summarize.md +0 -25
  134. data/doc/operators/relational/ungroup.md +0 -20
  135. data/doc/operators/relational/union.md +0 -14
  136. data/doc/operators/relational/unwrap.md +0 -20
  137. data/doc/operators/relational/wrap.md +0 -24
  138. data/lib/alf/shell/command/exec.rb +0 -16
  139. data/lib/alf/shell/doc_manager.rb +0 -84
  140. data/lib/alf/shell/ext/signature.rb +0 -45
  141. data/lib/alf/shell/from_argv.rb +0 -84
  142. data/lib/alf/shell/operator.rb +0 -63
  143. data/spec/integration/__database__/group.alf +0 -3
  144. data/spec/integration/alf/alf_e.cmd +0 -1
  145. data/spec/integration/alf/alf_e.stdout +0 -4
  146. data/spec/integration/alf/alf_help.cmd +0 -1
  147. data/spec/integration/alf/alf_help.stdout +0 -76
  148. data/spec/integration/alf/alf_r.cmd +0 -1
  149. data/spec/integration/alf/alf_r.stdout +0 -5
  150. data/spec/integration/autonum/autonum_0.cmd +0 -1
  151. data/spec/integration/autonum/autonum_0.stdout +0 -9
  152. data/spec/integration/autonum/autonum_1.cmd +0 -1
  153. data/spec/integration/autonum/autonum_1.stdout +0 -9
  154. data/spec/integration/clip/clip_0.cmd +0 -1
  155. data/spec/integration/clip/clip_0.stdout +0 -9
  156. data/spec/integration/clip/clip_1.cmd +0 -1
  157. data/spec/integration/clip/clip_1.stdout +0 -9
  158. data/spec/integration/coerce/coerce_1.cmd +0 -1
  159. data/spec/integration/coerce/coerce_1.stdout +0 -5
  160. data/spec/integration/compact/compact_0.cmd +0 -1
  161. data/spec/integration/compact/compact_0.stdout +0 -9
  162. data/spec/integration/defaults/defaults_0.cmd +0 -1
  163. data/spec/integration/defaults/defaults_0.stdout +0 -9
  164. data/spec/integration/defaults/defaults_1.cmd +0 -1
  165. data/spec/integration/defaults/defaults_1.stdout +0 -9
  166. data/spec/integration/defaults/defaults_2.cmd +0 -1
  167. data/spec/integration/defaults/defaults_2.stdout +0 -9
  168. data/spec/integration/extend/extend_0.cmd +0 -1
  169. data/spec/integration/extend/extend_0.stdout +0 -16
  170. data/spec/integration/frame/frame_0.cmd +0 -1
  171. data/spec/integration/frame/frame_0.stdout +0 -6
  172. data/spec/integration/generator/generator_1.cmd +0 -1
  173. data/spec/integration/generator/generator_1.stdout +0 -10
  174. data/spec/integration/generator/generator_2.cmd +0 -1
  175. data/spec/integration/generator/generator_2.stdout +0 -5
  176. data/spec/integration/generator/generator_3.cmd +0 -1
  177. data/spec/integration/generator/generator_3.stdout +0 -5
  178. data/spec/integration/group/group_0.cmd +0 -1
  179. data/spec/integration/group/group_1.cmd +0 -1
  180. data/spec/integration/group/group_1.stdout +0 -32
  181. data/spec/integration/help/help_1.cmd +0 -1
  182. data/spec/integration/help/help_1.stdout +0 -12
  183. data/spec/integration/intersect/intersect_0.cmd +0 -1
  184. data/spec/integration/intersect/intersect_0.stdout +0 -9
  185. data/spec/integration/join/join_0.cmd +0 -1
  186. data/spec/integration/join/join_0.stdout +0 -16
  187. data/spec/integration/matching/matching_0.cmd +0 -1
  188. data/spec/integration/matching/matching_0.stdout +0 -8
  189. data/spec/integration/minus/minus_0.cmd +0 -1
  190. data/spec/integration/minus/minus_0.stdout +0 -4
  191. data/spec/integration/not-matching/not-matching_0.cmd +0 -1
  192. data/spec/integration/not-matching/not-matching_0.stdout +0 -5
  193. data/spec/integration/page/page_0.cmd +0 -1
  194. data/spec/integration/page/page_0.stdout +0 -6
  195. data/spec/integration/project/project_0.cmd +0 -1
  196. data/spec/integration/project/project_0.stdout +0 -9
  197. data/spec/integration/project/project_1.cmd +0 -1
  198. data/spec/integration/project/project_1.stdout +0 -9
  199. data/spec/integration/quota/quota_0.cmd +0 -1
  200. data/spec/integration/quota/quota_0.stdout +0 -16
  201. data/spec/integration/rank/rank_1.cmd +0 -1
  202. data/spec/integration/rank/rank_1.stdout +0 -10
  203. data/spec/integration/rank/rank_2.cmd +0 -1
  204. data/spec/integration/rank/rank_2.stdout +0 -10
  205. data/spec/integration/rank/rank_3.cmd +0 -1
  206. data/spec/integration/rank/rank_3.stdout +0 -10
  207. data/spec/integration/rank/rank_4.cmd +0 -1
  208. data/spec/integration/rank/rank_4.stdout +0 -6
  209. data/spec/integration/rank/rank_5.cmd +0 -1
  210. data/spec/integration/rank/rank_5.stdout +0 -6
  211. data/spec/integration/rename/rename_0.cmd +0 -1
  212. data/spec/integration/rename/rename_0.stdout +0 -9
  213. data/spec/integration/restrict/restrict_0.cmd +0 -1
  214. data/spec/integration/restrict/restrict_0.stdout +0 -6
  215. data/spec/integration/restrict/restrict_1.cmd +0 -1
  216. data/spec/integration/restrict/restrict_1.stdout +0 -6
  217. data/spec/integration/sort/sort_0.cmd +0 -1
  218. data/spec/integration/sort/sort_0.stdout +0 -9
  219. data/spec/integration/sort/sort_1.cmd +0 -1
  220. data/spec/integration/sort/sort_1.stdout +0 -9
  221. data/spec/integration/sort/sort_2.cmd +0 -1
  222. data/spec/integration/sort/sort_2.stdout +0 -9
  223. data/spec/integration/sort/sort_3.cmd +0 -1
  224. data/spec/integration/sort/sort_3.stdout +0 -9
  225. data/spec/integration/summarize/summarize_0.cmd +0 -1
  226. data/spec/integration/summarize/summarize_0.stdout +0 -8
  227. data/spec/integration/union/union_0.cmd +0 -1
  228. data/spec/integration/union/union_0.stdout +0 -9
  229. data/spec/integration/unwrap/unwrap_0.cmd +0 -1
  230. data/spec/integration/unwrap/unwrap_0.stdout +0 -9
  231. data/spec/integration/wrap/wrap_0.cmd +0 -1
  232. data/spec/integration/wrap/wrap_0.stdout +0 -9
  233. data/spec/unit/doc_manager/dynamic.md +0 -1
  234. data/spec/unit/doc_manager/example.md +0 -1
  235. data/spec/unit/doc_manager/example_1.txt +0 -11
  236. data/spec/unit/doc_manager/static.md +0 -1
  237. data/spec/unit/doc_manager/test_call.rb +0 -41
  238. data/spec/unit/ext/signature/test_argv2args.rb +0 -82
  239. data/spec/unit/ext/signature/test_to_shell.rb +0 -103
  240. data/spec/unit/from_argv/test_to_attr_list.rb +0 -30
  241. data/spec/unit/from_argv/test_to_attr_name.rb +0 -27
  242. data/spec/unit/from_argv/test_to_boolean.rb +0 -32
  243. data/spec/unit/from_argv/test_to_heading.rb +0 -37
  244. data/spec/unit/from_argv/test_to_ordering.rb +0 -28
  245. data/spec/unit/from_argv/test_to_predicate.rb +0 -26
  246. data/spec/unit/from_argv/test_to_renaming.rb +0 -23
  247. data/spec/unit/from_argv/test_to_size.rb +0 -32
  248. data/spec/unit/from_argv/test_to_summarization.rb +0 -19
  249. data/spec/unit/from_argv/test_to_tuple_computation.rb +0 -18
  250. data/spec/unit/from_argv/test_to_tuple_expression.rb +0 -38
  251. data/spec/unit/main/test_class_methods.rb +0 -44
  252. data/spec/unit/operator/test_autonum.rb +0 -28
  253. data/spec/unit/operator/test_clip.rb +0 -29
  254. data/spec/unit/operator/test_coerce.rb +0 -22
  255. data/spec/unit/operator/test_compact.rb +0 -16
  256. data/spec/unit/operator/test_defaults.rb +0 -29
  257. data/spec/unit/operator/test_extend.rb +0 -21
  258. data/spec/unit/operator/test_generator.rb +0 -37
  259. data/spec/unit/operator/test_group.rb +0 -32
  260. data/spec/unit/operator/test_infer_heading.rb +0 -16
  261. data/spec/unit/operator/test_intersect.rb +0 -18
  262. data/spec/unit/operator/test_join.rb +0 -18
  263. data/spec/unit/operator/test_matching.rb +0 -18
  264. data/spec/unit/operator/test_minus.rb +0 -18
  265. data/spec/unit/operator/test_not_matching.rb +0 -18
  266. data/spec/unit/operator/test_project.rb +0 -38
  267. data/spec/unit/operator/test_quota.rb +0 -23
  268. data/spec/unit/operator/test_rank.rb +0 -30
  269. data/spec/unit/operator/test_rename.rb +0 -21
  270. data/spec/unit/operator/test_restrict.rb +0 -36
  271. data/spec/unit/operator/test_sort.rb +0 -49
  272. data/spec/unit/operator/test_summarize.rb +0 -30
  273. data/spec/unit/operator/test_ungroup.rb +0 -28
  274. data/spec/unit/operator/test_union.rb +0 -18
  275. data/spec/unit/operator/test_unwrap.rb +0 -28
  276. data/spec/unit/operator/test_wrap.rb +0 -30
@@ -0,0 +1,32 @@
1
+ module Alf
2
+ module Shell
3
+ class Metadata < Shell::Command(__FILE__, __LINE__)
4
+
5
+ options do |opt|
6
+
7
+ opt.on_tail('-h', "--help", "Show help") do
8
+ show_help("alf-metadata")
9
+ end
10
+
11
+ end
12
+
13
+ def run(argv, requester)
14
+ # set requester and parse options
15
+ @requester = requester
16
+ argv = parse_options(argv, :split)
17
+
18
+ operand = compile(argv)
19
+ keys = operand.keys.to_a.map{|k| k.to_a }
20
+ heading = Relation(operand.heading.to_hash.each_pair.map{|k,v|
21
+ {attribute: k, type: v.to_s}
22
+ })
23
+ puts Relation({heading: heading, keys: keys})
24
+ end
25
+
26
+ def compile(argv)
27
+ operand(argv.shift)
28
+ end
29
+
30
+ end # class Metadata
31
+ end # module Shell
32
+ end # module Alf
@@ -1,6 +1,14 @@
1
1
  module Alf
2
2
  module Shell
3
- class Show < Shell::Command()
3
+ class Show < Shell::Command(__FILE__, __LINE__)
4
+
5
+ options do |opt|
6
+
7
+ opt.on_tail('-h', "--help", "Show help") do
8
+ show_help("alf-show")
9
+ end
10
+
11
+ end
4
12
 
5
13
  def run(argv, requester)
6
14
  # set requester and parse options
@@ -11,13 +19,17 @@ module Alf
11
19
  end
12
20
 
13
21
  def compile(argv)
14
- operand = operands(argv.shift, 1).last
15
- unless argv.empty?
16
- operand = Algebra::Sort.new([operand], Shell.from_argv(argv.first, Ordering))
17
- end
22
+ operand = operand(argv.shift)
23
+ operand = sort(operand, argv.first) unless argv.empty?
18
24
  operand
19
25
  end
20
26
 
27
+ private
28
+
29
+ def sort(operand, ordering)
30
+ Algebra::Sort.new([operand], Ordering.coerce(ordering))
31
+ end
32
+
21
33
  end # class Show
22
34
  end # module Shell
23
35
  end # module Alf
@@ -2,26 +2,34 @@ module Alf
2
2
  module Shell
3
3
  module Support
4
4
 
5
+ AlfFile = ->(arg){
6
+ path = Path(arg)
7
+ path.file? and path.ext =~ /^\.?alf$/
8
+ }
9
+
5
10
  def connection
6
11
  requester && requester.connection
7
12
  end
8
13
 
9
- def compiler
10
- @compiler ||= (connection && connection.compiler) || Engine::Compiler.new(nil)
11
- end
12
-
13
- def operands(argv, size = nil)
14
- operands = [ stdin_operand ] + Array(argv)
15
- operands = operands[(operands.size - size)..-1] if size
16
- operands = operands.map{|arg|
17
- arg = connection.relvar(arg) if arg.is_a?(String)
14
+ def operand(arg)
15
+ case arg
16
+ when AlfFile then operand(Path(arg).read)
17
+ when String then connection.relvar(arg)
18
+ when Array then operand(arg.first)
19
+ else
18
20
  Algebra::Operand.coerce(arg)
19
- }
20
- operands
21
+ end
21
22
  end
22
23
 
23
- def stdin_operand
24
- requester.stdin_operand rescue $stdin
24
+ def show_help(who)
25
+ who = "alf-#{who}" if /explain|metadata|show/ =~ who
26
+ if p = Path.backfind("doc/man/#{who}.man")
27
+ exit if system("man #{p}")
28
+ puts Path.backfind("doc/txt/#{who}.txt").read
29
+ else
30
+ puts "Unknown command/operator `#{who}`"
31
+ end
32
+ exit
25
33
  end
26
34
 
27
35
  end # module Support
@@ -3,7 +3,7 @@ module Alf
3
3
  module Version
4
4
 
5
5
  MAJOR = 0
6
- MINOR = 14
6
+ MINOR = 15
7
7
  TINY = 0
8
8
 
9
9
  def self.to_s
@@ -0,0 +1 @@
1
+ alf explain "restrict(suppliers, sid: 'S1')"
@@ -0,0 +1,11 @@
1
+ Logical plan:
2
+
3
+ Alf::Relvar::Virtual ...
4
+ +-- restrict(..., ->(t){ t.sid == "S1" })
5
+ +-- suppliers
6
+
7
+ Physical plan:
8
+
9
+ Filter ..., ->(t){ t.sid == "S1" }
10
+ +-- Leaf
11
+ +-- Alf::Reader::Rash(suppliers.rash)
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env alf
2
+ group(supplies, [:sid], :supplying, :allbut => true)
@@ -0,0 +1 @@
1
+ alf --text show show/group.alf
@@ -0,0 +1,4 @@
1
+ desc "Import documentation from alf-doc"
2
+ task :doc do
3
+ `rm -rf doc && mkdir -p doc && cp -R ../alf-doc/compiled/man doc && cp -R ../alf-doc/compiled/txt doc`
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alf-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-01 00:00:00.000000000 Z
12
+ date: 2013-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: '2.14'
46
+ - !ruby/object:Gem::Dependency
47
+ name: alf-doc
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 0.15.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.15.0
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: highline
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +82,7 @@ dependencies:
66
82
  requirements:
67
83
  - - ~>
68
84
  - !ruby/object:Gem::Version
69
- version: 0.14.0
85
+ version: 0.15.0
70
86
  type: :runtime
71
87
  prerelease: false
72
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +90,7 @@ dependencies:
74
90
  requirements:
75
91
  - - ~>
76
92
  - !ruby/object:Gem::Version
77
- version: 0.14.0
93
+ version: 0.15.0
78
94
  - !ruby/object:Gem::Dependency
79
95
  name: quickl
80
96
  requirement: !ruby/object:Gem::Requirement
@@ -103,50 +119,98 @@ files:
103
119
  - Gemfile
104
120
  - Gemfile.lock
105
121
  - bin/alf
106
- - doc/commands/exec.md
107
- - doc/commands/help.md
108
- - doc/commands/main.md
109
- - doc/commands/show.md
110
- - doc/operators/non_relational/autonum.md
111
- - doc/operators/non_relational/clip.md
112
- - doc/operators/non_relational/coerce.md
113
- - doc/operators/non_relational/compact.md
114
- - doc/operators/non_relational/defaults.md
115
- - doc/operators/non_relational/generator.md
116
- - doc/operators/non_relational/sort.md
117
- - doc/operators/non_relational/type-safe.md
118
- - doc/operators/relational/extend.md
119
- - doc/operators/relational/frame.md
120
- - doc/operators/relational/group.md
121
- - doc/operators/relational/hierarchize.md
122
- - doc/operators/relational/infer-heading.md
123
- - doc/operators/relational/intersect.md
124
- - doc/operators/relational/join.md
125
- - doc/operators/relational/matching.md
126
- - doc/operators/relational/minus.md
127
- - doc/operators/relational/not-matching.md
128
- - doc/operators/relational/page.md
129
- - doc/operators/relational/project.md
130
- - doc/operators/relational/quota.md
131
- - doc/operators/relational/rank.md
132
- - doc/operators/relational/rename.md
133
- - doc/operators/relational/restrict.md
134
- - doc/operators/relational/summarize.md
135
- - doc/operators/relational/ungroup.md
136
- - doc/operators/relational/union.md
137
- - doc/operators/relational/unwrap.md
138
- - doc/operators/relational/wrap.md
122
+ - doc/man/alf-explain.man
123
+ - doc/man/alf-metadata.man
124
+ - doc/man/alf-show.man
125
+ - doc/man/alf.man
126
+ - doc/man/allbut.man
127
+ - doc/man/among.man
128
+ - doc/man/avg.man
129
+ - doc/man/between.man
130
+ - doc/man/concat.man
131
+ - doc/man/contradiction.man
132
+ - doc/man/count.man
133
+ - doc/man/eq.man
134
+ - doc/man/extend.man
135
+ - doc/man/frame.man
136
+ - doc/man/group.man
137
+ - doc/man/gt.man
138
+ - doc/man/gte.man
139
+ - doc/man/intersect.man
140
+ - doc/man/join.man
141
+ - doc/man/lt.man
142
+ - doc/man/lte.man
143
+ - doc/man/matching.man
144
+ - doc/man/max.man
145
+ - doc/man/min.man
146
+ - doc/man/minus.man
147
+ - doc/man/native.man
148
+ - doc/man/neq.man
149
+ - doc/man/not_matching.man
150
+ - doc/man/page.man
151
+ - doc/man/project.man
152
+ - doc/man/rank.man
153
+ - doc/man/rename.man
154
+ - doc/man/restrict.man
155
+ - doc/man/stddev.man
156
+ - doc/man/sum.man
157
+ - doc/man/summarize.man
158
+ - doc/man/tautology.man
159
+ - doc/man/ungroup.man
160
+ - doc/man/union.man
161
+ - doc/man/unwrap.man
162
+ - doc/man/variance.man
163
+ - doc/man/wrap.man
164
+ - doc/txt/alf-explain.man
165
+ - doc/txt/alf-metadata.man
166
+ - doc/txt/alf-show.man
167
+ - doc/txt/alf.man
168
+ - doc/txt/allbut.txt
169
+ - doc/txt/among.txt
170
+ - doc/txt/avg.txt
171
+ - doc/txt/between.txt
172
+ - doc/txt/concat.txt
173
+ - doc/txt/contradiction.txt
174
+ - doc/txt/count.txt
175
+ - doc/txt/eq.txt
176
+ - doc/txt/extend.txt
177
+ - doc/txt/frame.txt
178
+ - doc/txt/group.txt
179
+ - doc/txt/gt.txt
180
+ - doc/txt/gte.txt
181
+ - doc/txt/intersect.txt
182
+ - doc/txt/join.txt
183
+ - doc/txt/lt.txt
184
+ - doc/txt/lte.txt
185
+ - doc/txt/matching.txt
186
+ - doc/txt/max.txt
187
+ - doc/txt/min.txt
188
+ - doc/txt/minus.txt
189
+ - doc/txt/native.txt
190
+ - doc/txt/neq.txt
191
+ - doc/txt/not_matching.txt
192
+ - doc/txt/page.txt
193
+ - doc/txt/project.txt
194
+ - doc/txt/rank.txt
195
+ - doc/txt/rename.txt
196
+ - doc/txt/restrict.txt
197
+ - doc/txt/stddev.txt
198
+ - doc/txt/sum.txt
199
+ - doc/txt/summarize.txt
200
+ - doc/txt/tautology.txt
201
+ - doc/txt/ungroup.txt
202
+ - doc/txt/union.txt
203
+ - doc/txt/unwrap.txt
204
+ - doc/txt/variance.txt
205
+ - doc/txt/wrap.txt
139
206
  - lib/alf/shell/alfrc.rb
140
- - lib/alf/shell/command/exec.rb
207
+ - lib/alf/shell/command/explain.rb
141
208
  - lib/alf/shell/command/help.rb
142
209
  - lib/alf/shell/command/main.rb
210
+ - lib/alf/shell/command/metadata.rb
143
211
  - lib/alf/shell/command/show.rb
144
212
  - lib/alf/shell/command.rb
145
- - lib/alf/shell/doc_manager.rb
146
- - lib/alf/shell/ext/signature.rb
147
- - lib/alf/shell/from_argv.rb
148
213
  - lib/alf/shell/loader.rb
149
- - lib/alf/shell/operator.rb
150
214
  - lib/alf/shell/support.rb
151
215
  - lib/alf/shell/version.rb
152
216
  - lib/alf/shell.rb
@@ -156,7 +220,6 @@ files:
156
220
  - Rakefile
157
221
  - README.md
158
222
  - spec/fixtures/example.alfrc
159
- - spec/integration/__database__/group.alf
160
223
  - spec/integration/__database__/parts.rash
161
224
  - spec/integration/__database__/suppliers.rash
162
225
  - spec/integration/__database__/suppliers_csv.csv
@@ -164,87 +227,18 @@ files:
164
227
  - spec/integration/alf/alf.db
165
228
  - spec/integration/alf/alf_db.cmd
166
229
  - spec/integration/alf/alf_db.stdout
167
- - spec/integration/alf/alf_e.cmd
168
- - spec/integration/alf/alf_e.stdout
169
- - spec/integration/alf/alf_help.cmd
170
- - spec/integration/alf/alf_help.stdout
171
230
  - spec/integration/alf/alf_json.cmd
172
231
  - spec/integration/alf/alf_json.stdout
173
- - spec/integration/alf/alf_r.cmd
174
- - spec/integration/alf/alf_r.stdout
175
232
  - spec/integration/alf/alf_version.cmd
176
233
  - spec/integration/alf/alf_version.stdout
177
234
  - spec/integration/alf/alf_yaml.cmd
178
235
  - spec/integration/alf/alf_yaml.stdout
179
236
  - spec/integration/alf/rel.rash
180
- - spec/integration/autonum/autonum_0.cmd
181
- - spec/integration/autonum/autonum_0.stdout
182
- - spec/integration/autonum/autonum_1.cmd
183
- - spec/integration/autonum/autonum_1.stdout
184
- - spec/integration/clip/clip_0.cmd
185
- - spec/integration/clip/clip_0.stdout
186
- - spec/integration/clip/clip_1.cmd
187
- - spec/integration/clip/clip_1.stdout
188
- - spec/integration/coerce/coerce_1.cmd
189
- - spec/integration/coerce/coerce_1.stdout
190
- - spec/integration/compact/compact_0.cmd
191
- - spec/integration/compact/compact_0.stdout
192
- - spec/integration/defaults/defaults_0.cmd
193
- - spec/integration/defaults/defaults_0.stdout
194
- - spec/integration/defaults/defaults_1.cmd
195
- - spec/integration/defaults/defaults_1.stdout
196
- - spec/integration/defaults/defaults_2.cmd
197
- - spec/integration/defaults/defaults_2.stdout
198
- - spec/integration/extend/extend_0.cmd
199
- - spec/integration/extend/extend_0.stdout
200
- - spec/integration/frame/frame_0.cmd
201
- - spec/integration/frame/frame_0.stdout
202
- - spec/integration/generator/generator_1.cmd
203
- - spec/integration/generator/generator_1.stdout
204
- - spec/integration/generator/generator_2.cmd
205
- - spec/integration/generator/generator_2.stdout
206
- - spec/integration/generator/generator_3.cmd
207
- - spec/integration/generator/generator_3.stdout
208
- - spec/integration/group/group_0.cmd
209
- - spec/integration/group/group_0.stdout
210
- - spec/integration/group/group_1.cmd
211
- - spec/integration/group/group_1.stdout
212
- - spec/integration/help/help_1.cmd
213
- - spec/integration/help/help_1.stdout
214
- - spec/integration/intersect/intersect_0.cmd
215
- - spec/integration/intersect/intersect_0.stdout
216
- - spec/integration/join/join_0.cmd
217
- - spec/integration/join/join_0.stdout
218
- - spec/integration/matching/matching_0.cmd
219
- - spec/integration/matching/matching_0.stdout
220
- - spec/integration/minus/minus_0.cmd
221
- - spec/integration/minus/minus_0.stdout
222
- - spec/integration/not-matching/not-matching_0.cmd
223
- - spec/integration/not-matching/not-matching_0.stdout
224
- - spec/integration/page/page_0.cmd
225
- - spec/integration/page/page_0.stdout
226
- - spec/integration/project/project_0.cmd
227
- - spec/integration/project/project_0.stdout
228
- - spec/integration/project/project_1.cmd
229
- - spec/integration/project/project_1.stdout
230
- - spec/integration/quota/quota_0.cmd
231
- - spec/integration/quota/quota_0.stdout
232
- - spec/integration/rank/rank_1.cmd
233
- - spec/integration/rank/rank_1.stdout
234
- - spec/integration/rank/rank_2.cmd
235
- - spec/integration/rank/rank_2.stdout
236
- - spec/integration/rank/rank_3.cmd
237
- - spec/integration/rank/rank_3.stdout
238
- - spec/integration/rank/rank_4.cmd
239
- - spec/integration/rank/rank_4.stdout
240
- - spec/integration/rank/rank_5.cmd
241
- - spec/integration/rank/rank_5.stdout
242
- - spec/integration/rename/rename_0.cmd
243
- - spec/integration/rename/rename_0.stdout
244
- - spec/integration/restrict/restrict_0.cmd
245
- - spec/integration/restrict/restrict_0.stdout
246
- - spec/integration/restrict/restrict_1.cmd
247
- - spec/integration/restrict/restrict_1.stdout
237
+ - spec/integration/explain/explain.cmd
238
+ - spec/integration/explain/explain.stdout
239
+ - spec/integration/show/group.alf
240
+ - spec/integration/show/show_alf.cmd
241
+ - spec/integration/show/show_alf.stdout
248
242
  - spec/integration/show/show_base.cmd
249
243
  - spec/integration/show/show_base.stdout
250
244
  - spec/integration/show/show_base_sort_1.cmd
@@ -259,73 +253,14 @@ files:
259
253
  - spec/integration/show/show_rash_pretty.stdout
260
254
  - spec/integration/show/show_yaml.cmd
261
255
  - spec/integration/show/show_yaml.stdout
262
- - spec/integration/sort/sort_0.cmd
263
- - spec/integration/sort/sort_0.stdout
264
- - spec/integration/sort/sort_1.cmd
265
- - spec/integration/sort/sort_1.stdout
266
- - spec/integration/sort/sort_2.cmd
267
- - spec/integration/sort/sort_2.stdout
268
- - spec/integration/sort/sort_3.cmd
269
- - spec/integration/sort/sort_3.stdout
270
- - spec/integration/summarize/summarize_0.cmd
271
- - spec/integration/summarize/summarize_0.stdout
272
256
  - spec/integration/test_shell.rb
273
- - spec/integration/union/union_0.cmd
274
- - spec/integration/union/union_0.stdout
275
- - spec/integration/unwrap/unwrap_0.cmd
276
- - spec/integration/unwrap/unwrap_0.stdout
277
- - spec/integration/wrap/wrap_0.cmd
278
- - spec/integration/wrap/wrap_0.stdout
279
257
  - spec/spec_helper.rb
280
258
  - spec/test_shell.rb
281
259
  - spec/unit/alfrc/test_alfrc.rb
282
- - spec/unit/doc_manager/dynamic.md
283
- - spec/unit/doc_manager/example.md
284
- - spec/unit/doc_manager/example_1.txt
285
- - spec/unit/doc_manager/static.md
286
- - spec/unit/doc_manager/test_call.rb
287
- - spec/unit/ext/signature/test_argv2args.rb
288
- - spec/unit/ext/signature/test_to_shell.rb
289
- - spec/unit/from_argv/test_to_attr_list.rb
290
- - spec/unit/from_argv/test_to_attr_name.rb
291
- - spec/unit/from_argv/test_to_boolean.rb
292
- - spec/unit/from_argv/test_to_heading.rb
293
- - spec/unit/from_argv/test_to_ordering.rb
294
- - spec/unit/from_argv/test_to_predicate.rb
295
- - spec/unit/from_argv/test_to_renaming.rb
296
- - spec/unit/from_argv/test_to_size.rb
297
- - spec/unit/from_argv/test_to_summarization.rb
298
- - spec/unit/from_argv/test_to_tuple_computation.rb
299
- - spec/unit/from_argv/test_to_tuple_expression.rb
300
- - spec/unit/main/test_class_methods.rb
301
260
  - spec/unit/main/test_I_option.rb
302
261
  - spec/unit/main/test_r_option.rb
303
262
  - spec/unit/main/test_renderer_option.rb
304
- - spec/unit/operator/test_autonum.rb
305
- - spec/unit/operator/test_clip.rb
306
- - spec/unit/operator/test_coerce.rb
307
- - spec/unit/operator/test_compact.rb
308
- - spec/unit/operator/test_defaults.rb
309
- - spec/unit/operator/test_extend.rb
310
- - spec/unit/operator/test_generator.rb
311
- - spec/unit/operator/test_group.rb
312
- - spec/unit/operator/test_infer_heading.rb
313
- - spec/unit/operator/test_intersect.rb
314
- - spec/unit/operator/test_join.rb
315
- - spec/unit/operator/test_matching.rb
316
- - spec/unit/operator/test_minus.rb
317
- - spec/unit/operator/test_not_matching.rb
318
- - spec/unit/operator/test_project.rb
319
- - spec/unit/operator/test_quota.rb
320
- - spec/unit/operator/test_rank.rb
321
- - spec/unit/operator/test_rename.rb
322
- - spec/unit/operator/test_restrict.rb
323
- - spec/unit/operator/test_sort.rb
324
- - spec/unit/operator/test_summarize.rb
325
- - spec/unit/operator/test_ungroup.rb
326
- - spec/unit/operator/test_union.rb
327
- - spec/unit/operator/test_unwrap.rb
328
- - spec/unit/operator/test_wrap.rb
263
+ - tasks/doc.rake
329
264
  - tasks/gem.rake
330
265
  - tasks/test.rake
331
266
  homepage: http://github.com/alf-tool/alf-shell
@@ -342,13 +277,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
342
277
  version: '0'
343
278
  segments:
344
279
  - 0
345
- hash: 1654527447503089080
280
+ hash: 1197934734732335619
346
281
  required_rubygems_version: !ruby/object:Gem::Requirement
347
282
  none: false
348
283
  requirements:
349
284
  - - ! '>='
350
285
  - !ruby/object:Gem::Version
351
286
  version: '0'
287
+ segments:
288
+ - 0
289
+ hash: 1197934734732335619
352
290
  requirements: []
353
291
  rubyforge_project:
354
292
  rubygems_version: 1.8.25