alf 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +22 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +9 -10
- data/alf.gemspec +3 -3
- data/alf.noespec +5 -4
- data/doc/commands/show.md +1 -1
- data/doc/operators/relational/heading.md +20 -0
- data/doc/operators/relational/join.md +4 -3
- data/doc/operators/relational/matching.md +7 -3
- data/doc/operators/relational/restrict.md +2 -2
- data/examples/hitradio/compact.rb +48 -0
- data/examples/hitradio/compare1.rb +28 -0
- data/examples/hitradio/gz_reader.rb +23 -0
- data/examples/hitradio/hitradio-1.alf +1 -0
- data/examples/hitradio/hitradio.log +25080 -0
- data/examples/hitradio/hitradio.mar +25081 -0
- data/examples/hitradio/hitradio.mar.gz +0 -0
- data/examples/hitradio/hitradio.rash +25080 -0
- data/examples/hitradio/mar_reader.rb +18 -0
- data/lib/alf/aggregator/aggregators.rb +28 -0
- data/lib/alf/aggregator/aggregators.rbc +2640 -0
- data/lib/alf/aggregator/base.rbc +1055 -0
- data/lib/alf/aggregator/class_methods.rb +1 -1
- data/lib/alf/aggregator/class_methods.rbc +830 -0
- data/lib/alf/buffer/sorted.rbc +715 -0
- data/lib/alf/command/class_methods.rbc +453 -0
- data/lib/alf/command/doc_manager.rbc +1604 -0
- data/lib/alf/command/exec.rbc +408 -0
- data/lib/alf/command/help.rbc +764 -0
- data/lib/alf/command/main.rb +37 -5
- data/lib/alf/command/main.rbc +3612 -0
- data/lib/alf/command/show.rb +37 -5
- data/lib/alf/command/show.rbc +1327 -0
- data/lib/alf/environment/base.rbc +459 -0
- data/lib/alf/environment/class_methods.rbc +1110 -0
- data/lib/alf/environment/explicit.rb +2 -2
- data/lib/alf/environment/explicit.rbc +601 -0
- data/lib/alf/environment/folder.rb +2 -2
- data/lib/alf/environment/folder.rbc +942 -0
- data/lib/alf/errors.rb +4 -0
- data/lib/alf/errors.rbc +155 -0
- data/lib/alf/extra/csv.rb +5 -2
- data/lib/alf/extra/csv.rbc +2021 -0
- data/lib/alf/extra/logs.rbc +1957 -0
- data/lib/alf/extra/sequel.rbc +1417 -0
- data/lib/alf/extra/yaml.rbc +435 -0
- data/lib/alf/extra.rbc +101 -0
- data/lib/alf/iterator/base.rbc +437 -0
- data/lib/alf/iterator/class_methods.rbc +518 -0
- data/lib/alf/iterator/proxy.rbc +599 -0
- data/lib/alf/lispy/instance_methods.rbc +2535 -0
- data/lib/alf/loader.rb +2 -1
- data/lib/alf/loader.rbc +85 -0
- data/lib/alf/operator/base.rbc +860 -0
- data/lib/alf/operator/binary.rbc +595 -0
- data/lib/alf/operator/cesure.rbc +883 -0
- data/lib/alf/operator/class_methods.rbc +1915 -0
- data/lib/alf/operator/experimental.rbc +200 -0
- data/lib/alf/operator/non_relational/autonum.rbc +587 -0
- data/lib/alf/operator/non_relational/clip.rbc +522 -0
- data/lib/alf/operator/non_relational/coerce.rbc +596 -0
- data/lib/alf/operator/non_relational/compact.rbc +1283 -0
- data/lib/alf/operator/non_relational/defaults.rbc +733 -0
- data/lib/alf/operator/non_relational/generator.rbc +1015 -0
- data/lib/alf/operator/non_relational/sort.rbc +665 -0
- data/lib/alf/operator/nullary.rbc +404 -0
- data/lib/alf/operator/relational/extend.rbc +616 -0
- data/lib/alf/operator/relational/group.rbc +968 -0
- data/lib/alf/operator/relational/heading.rb +30 -0
- data/lib/alf/operator/relational/heading.rbc +657 -0
- data/lib/alf/operator/relational/intersect.rbc +969 -0
- data/lib/alf/operator/relational/join.rbc +1708 -0
- data/lib/alf/operator/relational/matching.rbc +1047 -0
- data/lib/alf/operator/relational/minus.rbc +965 -0
- data/lib/alf/operator/relational/not_matching.rbc +1047 -0
- data/lib/alf/operator/relational/project.rbc +669 -0
- data/lib/alf/operator/relational/quota.rbc +1193 -0
- data/lib/alf/operator/relational/rank.rbc +1217 -0
- data/lib/alf/operator/relational/rename.rbc +496 -0
- data/lib/alf/operator/relational/restrict.rbc +611 -0
- data/lib/alf/operator/relational/summarize.rbc +1922 -0
- data/lib/alf/operator/relational/ungroup.rbc +643 -0
- data/lib/alf/operator/relational/union.rbc +846 -0
- data/lib/alf/operator/relational/unwrap.rbc +540 -0
- data/lib/alf/operator/relational/wrap.rbc +560 -0
- data/lib/alf/operator/shortcut.rbc +809 -0
- data/lib/alf/operator/signature.rbc +4640 -0
- data/lib/alf/operator/transform.rbc +484 -0
- data/lib/alf/operator/unary.rbc +629 -0
- data/lib/alf/reader/alf_file.rbc +464 -0
- data/lib/alf/reader/base.rbc +1613 -0
- data/lib/alf/reader/class_methods.rb +1 -1
- data/lib/alf/reader/class_methods.rbc +1099 -0
- data/lib/alf/reader/rash.rbc +583 -0
- data/lib/alf/relation/class_methods.rbc +674 -0
- data/lib/alf/relation/instance_methods.rb +7 -0
- data/lib/alf/relation/instance_methods.rbc +2107 -0
- data/lib/alf/renderer/base.rbc +936 -0
- data/lib/alf/renderer/class_methods.rbc +875 -0
- data/lib/alf/renderer/rash.rb +16 -2
- data/lib/alf/renderer/rash.rbc +802 -0
- data/lib/alf/renderer/text.rb +54 -16
- data/lib/alf/renderer/text.rbc +5530 -0
- data/lib/alf/tools/coerce.rbc +352 -0
- data/lib/alf/tools/miscellaneous.rb +8 -1
- data/lib/alf/tools/miscellaneous.rbc +1497 -0
- data/lib/alf/tools/to_lispy.rbc +2618 -0
- data/lib/alf/tools/to_ruby_literal.rbc +344 -0
- data/lib/alf/tools/tuple_handle.rbc +738 -0
- data/lib/alf/types/attr_list.rbc +1535 -0
- data/lib/alf/types/attr_name.rbc +781 -0
- data/lib/alf/types/boolean.rbc +365 -0
- data/lib/alf/types/heading.rb +16 -1
- data/lib/alf/types/heading.rbc +1778 -0
- data/lib/alf/types/ordering.rbc +2228 -0
- data/lib/alf/types/renaming.rbc +1064 -0
- data/lib/alf/types/summarization.rbc +1394 -0
- data/lib/alf/types/tuple_computation.rbc +1061 -0
- data/lib/alf/types/tuple_expression.rbc +1016 -0
- data/lib/alf/types/tuple_predicate.rbc +1349 -0
- data/lib/alf/version.rb +1 -1
- data/lib/alf/version.rbc +350 -0
- data/lib/alf.rb +13 -5
- data/lib/alf.rbc +3884 -0
- data/spec/integration/command/alf/alf_help.stdout +8 -6
- data/spec/integration/command/help/help_1.stdout +3 -1
- data/spec/integration/command/show/show_base.cmd +1 -1
- data/spec/integration/command/show/show_base_sort_1.cmd +1 -0
- data/spec/integration/command/show/show_base_sort_1.stdout +9 -0
- data/spec/integration/command/show/show_base_sort_2.cmd +1 -0
- data/spec/integration/command/show/show_base_sort_2.stdout +9 -0
- data/spec/integration/command/show/show_ff.cmd +1 -0
- data/spec/integration/command/show/show_ff.stdout +10 -0
- data/spec/integration/command/show/show_rash_pretty.cmd +1 -0
- data/spec/integration/command/show/show_rash_pretty.stdout +30 -0
- data/spec/integration/test_alf.rbc +1098 -0
- data/spec/integration/test_command.rbc +1832 -0
- data/spec/integration/test_examples.rbc +559 -0
- data/spec/integration/test_semantics.rbc +991 -0
- data/spec/regression/alf_file/test___FILE__.rbc +524 -0
- data/spec/regression/heading/test_heading_with_date.rbc +381 -0
- data/spec/regression/lispy/test_compile.rbc +404 -0
- data/spec/regression/logs/test_path_attribute.rbc +687 -0
- data/spec/regression/relation/test_relation_allbut_all.rbc +468 -0
- data/spec/regression/relation/test_relation_with_date.rbc +381 -0
- data/spec/regression/restrict/test_restrict_with_keywords.rbc +628 -0
- data/spec/shared/a_value.rbc +337 -0
- data/spec/shared/an_operator_class.rbc +908 -0
- data/spec/spec_helper.rbc +453 -0
- data/spec/unit/assumptions/test_file.rbc +668 -0
- data/spec/unit/assumptions/test_instance_eval.rbc +654 -0
- data/spec/unit/assumptions/test_scoping.rbc +755 -0
- data/spec/unit/assumptions/test_set.rbc +1928 -0
- data/spec/unit/command/doc_manager/test_call.rbc +1537 -0
- data/spec/unit/csv/test_reader.rbc +2228 -0
- data/spec/unit/csv/test_renderer.rbc +2426 -0
- data/spec/unit/environment/test_explicit.rbc +464 -0
- data/spec/unit/environment/test_folder.rb +2 -2
- data/spec/unit/environment/test_folder.rbc +1304 -0
- data/spec/unit/lispy/test_relation.rbc +1477 -0
- data/spec/unit/lispy/test_run.rbc +1735 -0
- data/spec/unit/lispy/test_tuple.rbc +1686 -0
- data/spec/unit/logs/test_reader.rb +6 -4
- data/spec/unit/logs/test_reader.rbc +1807 -0
- data/spec/unit/operator/non_relational/compact/test_buffer_based.rbc +1127 -0
- data/spec/unit/operator/non_relational/compact/test_sort_based.rbc +1127 -0
- data/spec/unit/operator/non_relational/test_autonum.rbc +1969 -0
- data/spec/unit/operator/non_relational/test_clip.rbc +1850 -0
- data/spec/unit/operator/non_relational/test_coerce.rbc +1290 -0
- data/spec/unit/operator/non_relational/test_compact.rbc +1382 -0
- data/spec/unit/operator/non_relational/test_defaults.rbc +2319 -0
- data/spec/unit/operator/non_relational/test_generator.rbc +2361 -0
- data/spec/unit/operator/non_relational/test_sort.rbc +2583 -0
- data/spec/unit/operator/relational/join/test_hash_based.rbc +2481 -0
- data/spec/unit/operator/relational/matching/test_hash_based.rbc +2458 -0
- data/spec/unit/operator/relational/not_matching/test_hash_based.rbc +1632 -0
- data/spec/unit/operator/relational/summarize/test_hash_based.rbc +1990 -0
- data/spec/unit/operator/relational/summarize/test_sort_based.rbc +1990 -0
- data/spec/unit/operator/relational/test_extend.rbc +1300 -0
- data/spec/unit/operator/relational/test_group.rbc +2142 -0
- data/spec/unit/operator/relational/test_intersect.rbc +2069 -0
- data/spec/unit/operator/relational/test_join.rbc +1282 -0
- data/spec/unit/operator/relational/test_minus.rbc +1995 -0
- data/spec/unit/operator/relational/test_project.rbc +2870 -0
- data/spec/unit/operator/relational/test_quota.rbc +1788 -0
- data/spec/unit/operator/relational/test_rank.rbc +2079 -0
- data/spec/unit/operator/relational/test_rename.rbc +1158 -0
- data/spec/unit/operator/relational/test_restrict.rbc +2305 -0
- data/spec/unit/operator/relational/test_summarize.rbc +2570 -0
- data/spec/unit/operator/relational/test_ungroup.rbc +1425 -0
- data/spec/unit/operator/relational/test_union.rbc +1089 -0
- data/spec/unit/operator/relational/test_unwrap.rbc +1176 -0
- data/spec/unit/operator/relational/test_wrap.rbc +1203 -0
- data/spec/unit/operator/signature/test_collect_on.rbc +1989 -0
- data/spec/unit/operator/signature/test_initialize.rbc +544 -0
- data/spec/unit/operator/signature/test_install.rbc +1671 -0
- data/spec/unit/operator/signature/test_option_parser.rbc +1348 -0
- data/spec/unit/operator/signature/test_parse_args.rbc +1908 -0
- data/spec/unit/operator/signature/test_parse_argv.rbc +2878 -0
- data/spec/unit/operator/signature/test_to_lispy.rbc +3305 -0
- data/spec/unit/operator/signature/test_to_shell.rbc +3327 -0
- data/spec/unit/operator/test_non_relational.rbc +571 -0
- data/spec/unit/operator/test_relational.rb +2 -1
- data/spec/unit/operator/test_relational.rbc +758 -0
- data/spec/unit/reader/test_alf_file.rbc +1107 -0
- data/spec/unit/reader/test_initialize.rbc +1774 -0
- data/spec/unit/reader/test_rash.rbc +1127 -0
- data/spec/unit/relation/test_coerce.rbc +2320 -0
- data/spec/unit/relation/test_inspect.rbc +502 -0
- data/spec/unit/relation/test_relops.rbc +1585 -0
- data/spec/unit/relation/test_to_a.rbc +1112 -0
- data/spec/unit/renderer/test_initialize.rbc +1766 -0
- data/spec/unit/sequel/test_environment.rbc +1723 -0
- data/spec/unit/test_aggregator.rb +38 -1
- data/spec/unit/test_aggregator.rbc +4358 -0
- data/spec/unit/test_environment.rbc +1271 -0
- data/spec/unit/test_lispy.rbc +879 -0
- data/spec/unit/test_operator.rbc +531 -0
- data/spec/unit/test_reader.rb +6 -2
- data/spec/unit/test_reader.rbc +1249 -0
- data/spec/unit/test_relation.rbc +2588 -0
- data/spec/unit/test_renderer.rb +12 -1
- data/spec/unit/test_renderer.rbc +2011 -0
- data/spec/unit/text/test_cell.rb +1 -0
- data/spec/unit/text/test_cell.rbc +1532 -0
- data/spec/unit/text/test_row.rbc +847 -0
- data/spec/unit/text/test_table.rbc +978 -0
- data/spec/unit/tools/test_coalesce.rbc +456 -0
- data/spec/unit/tools/test_coerce.rbc +279 -0
- data/spec/unit/tools/test_to_lispy.rbc +5711 -0
- data/spec/unit/tools/test_to_ruby_literal.rbc +272 -0
- data/spec/unit/tools/test_tools.rbc +672 -0
- data/spec/unit/tools/test_tuple_handle.rbc +1591 -0
- data/spec/unit/tools/test_tuple_heading.rb +20 -0
- data/spec/unit/tools/test_tuple_heading.rbc +821 -0
- data/spec/unit/tools/test_varargs.rbc +495 -0
- data/spec/unit/types/heading/test_union.rb +21 -0
- data/spec/unit/types/heading/test_union.rbc +1043 -0
- data/spec/unit/types/test_attr_list.rbc +4481 -0
- data/spec/unit/types/test_attr_name.rbc +1872 -0
- data/spec/unit/types/test_heading.rbc +1735 -0
- data/spec/unit/types/test_ordering.rbc +3695 -0
- data/spec/unit/types/test_renaming.rbc +2426 -0
- data/spec/unit/types/test_summarization.rbc +2538 -0
- data/spec/unit/types/test_tuple_computation.rbc +2340 -0
- data/spec/unit/types/test_tuple_expression.rbc +2285 -0
- data/spec/unit/types/test_tuple_predicate.rbc +3168 -0
- data/tasks/gh-pages.rake +1 -1
- metadata +529 -125
data/lib/alf/errors.rb
ADDED
data/lib/alf/errors.rbc
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
!RBIX
|
2
|
+
11817445442317083511
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
28
|
13
|
+
99
|
14
|
+
7
|
15
|
+
0
|
16
|
+
65
|
17
|
+
49
|
18
|
+
1
|
19
|
+
2
|
20
|
+
13
|
21
|
+
99
|
22
|
+
12
|
23
|
+
7
|
24
|
+
2
|
25
|
+
12
|
26
|
+
7
|
27
|
+
3
|
28
|
+
12
|
29
|
+
65
|
30
|
+
12
|
31
|
+
49
|
32
|
+
4
|
33
|
+
4
|
34
|
+
15
|
35
|
+
49
|
36
|
+
2
|
37
|
+
0
|
38
|
+
15
|
39
|
+
2
|
40
|
+
11
|
41
|
+
I
|
42
|
+
6
|
43
|
+
I
|
44
|
+
0
|
45
|
+
I
|
46
|
+
0
|
47
|
+
I
|
48
|
+
0
|
49
|
+
n
|
50
|
+
p
|
51
|
+
5
|
52
|
+
x
|
53
|
+
3
|
54
|
+
Alf
|
55
|
+
x
|
56
|
+
11
|
57
|
+
open_module
|
58
|
+
x
|
59
|
+
15
|
60
|
+
__module_init__
|
61
|
+
M
|
62
|
+
1
|
63
|
+
n
|
64
|
+
n
|
65
|
+
x
|
66
|
+
3
|
67
|
+
Alf
|
68
|
+
i
|
69
|
+
28
|
70
|
+
5
|
71
|
+
66
|
72
|
+
99
|
73
|
+
7
|
74
|
+
0
|
75
|
+
45
|
76
|
+
1
|
77
|
+
2
|
78
|
+
65
|
79
|
+
49
|
80
|
+
3
|
81
|
+
3
|
82
|
+
15
|
83
|
+
1
|
84
|
+
15
|
85
|
+
99
|
86
|
+
7
|
87
|
+
4
|
88
|
+
45
|
89
|
+
0
|
90
|
+
5
|
91
|
+
65
|
92
|
+
49
|
93
|
+
3
|
94
|
+
3
|
95
|
+
15
|
96
|
+
1
|
97
|
+
11
|
98
|
+
I
|
99
|
+
4
|
100
|
+
I
|
101
|
+
0
|
102
|
+
I
|
103
|
+
0
|
104
|
+
I
|
105
|
+
0
|
106
|
+
n
|
107
|
+
p
|
108
|
+
6
|
109
|
+
x
|
110
|
+
5
|
111
|
+
Error
|
112
|
+
x
|
113
|
+
13
|
114
|
+
StandardError
|
115
|
+
n
|
116
|
+
x
|
117
|
+
10
|
118
|
+
open_class
|
119
|
+
x
|
120
|
+
18
|
121
|
+
NoSuchDatasetError
|
122
|
+
n
|
123
|
+
p
|
124
|
+
5
|
125
|
+
I
|
126
|
+
2
|
127
|
+
I
|
128
|
+
2
|
129
|
+
I
|
130
|
+
f
|
131
|
+
I
|
132
|
+
3
|
133
|
+
I
|
134
|
+
1c
|
135
|
+
x
|
136
|
+
47
|
137
|
+
/home/blambeau/work/devel/alf/lib/alf/errors.rb
|
138
|
+
p
|
139
|
+
0
|
140
|
+
x
|
141
|
+
13
|
142
|
+
attach_method
|
143
|
+
p
|
144
|
+
3
|
145
|
+
I
|
146
|
+
0
|
147
|
+
I
|
148
|
+
1
|
149
|
+
I
|
150
|
+
1c
|
151
|
+
x
|
152
|
+
47
|
153
|
+
/home/blambeau/work/devel/alf/lib/alf/errors.rb
|
154
|
+
p
|
155
|
+
0
|
data/lib/alf/extra/csv.rb
CHANGED
@@ -30,7 +30,10 @@ module Alf
|
|
30
30
|
# Returns a CSV instance bound to a given io and options
|
31
31
|
#
|
32
32
|
def get_csv(io)
|
33
|
-
get_csv_class
|
33
|
+
csv_class = get_csv_class
|
34
|
+
def_opts = csv_class.const_get(:DEFAULT_OPTIONS)
|
35
|
+
csv_opts = options.delete_if{|k,v| !def_opts.has_key?(k)}
|
36
|
+
csv_class.new(io, csv_opts)
|
34
37
|
end
|
35
38
|
|
36
39
|
end # module Commons
|
@@ -101,4 +104,4 @@ module Alf
|
|
101
104
|
end # class Reader
|
102
105
|
|
103
106
|
end # module CSV
|
104
|
-
end # module Alf
|
107
|
+
end # module Alf
|