alf-core 0.16.1 → 0.16.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ # 0.16.2 - 2014-07-25
2
+
3
+ * No change in this submodule.
4
+
1
5
  # 0.16.0 / 2014-02-18
2
6
 
3
7
  * Fixed Tuple(), it now accepts no argument and returns an empty tuple.
@@ -4,7 +4,7 @@ module Alf
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 16
7
- TINY = 1
7
+ TINY = 2
8
8
 
9
9
  def self.to_s
10
10
  [ MAJOR, MINOR, TINY ].join('.')
@@ -49,7 +49,9 @@ module Alf
49
49
  end
50
50
 
51
51
  def symbolize(tuple)
52
- tuple = Support.symbolize_keys(tuple) if tuple.keys.any?{|k| String===k }
52
+ if tuple.respond_to?(:keys) && tuple.keys.any?{|k| String===k }
53
+ tuple = Support.symbolize_keys(tuple)
54
+ end
53
55
  tuple
54
56
  end
55
57
 
metadata CHANGED
@@ -1,147 +1,160 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alf-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.16.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Bernard Lambeau
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
12
+ date: 2014-07-25 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rake
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '10.1'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '10.1'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rspec
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
37
  version: '2.14'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - "~>"
43
+ - - ~>
39
44
  - !ruby/object:Gem::Version
40
45
  version: '2.14'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: highline
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
53
  version: '1.6'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - "~>"
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: '1.6'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: ruby_cop
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
69
  version: '1.0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - "~>"
75
+ - - ~>
67
76
  - !ruby/object:Gem::Version
68
77
  version: '1.0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: myrrha
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - "~>"
83
+ - - ~>
74
84
  - !ruby/object:Gem::Version
75
85
  version: '3.0'
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - "~>"
91
+ - - ~>
81
92
  - !ruby/object:Gem::Version
82
93
  version: '3.0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: domain
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - "~>"
99
+ - - ~>
88
100
  - !ruby/object:Gem::Version
89
101
  version: '1.0'
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - "~>"
107
+ - - ~>
95
108
  - !ruby/object:Gem::Version
96
109
  version: '1.0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: path
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - "~>"
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
117
  version: '1.3'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - "~>"
123
+ - - ~>
109
124
  - !ruby/object:Gem::Version
110
125
  version: '1.3'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: sexpr
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - "~>"
131
+ - - ~>
116
132
  - !ruby/object:Gem::Version
117
133
  version: 0.6.0
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - "~>"
139
+ - - ~>
123
140
  - !ruby/object:Gem::Version
124
141
  version: 0.6.0
125
- description: |-
126
- Alf brings the relational algebra both in Shell and in Ruby. In Shell, because
142
+ description: ! 'Alf brings the relational algebra both in Shell and in Ruby. In Shell,
143
+ because
144
+
127
145
  manipulating any relation-like data source should be as straightforward as a
128
- one-liner. In Ruby, because I've never understood why programming languages
146
+
147
+ one-liner. In Ruby, because I''ve never understood why programming languages
148
+
129
149
  provide data structures like arrays, hashes, sets, trees and graphs but not
130
- _relations_... Let's stop the segregation ;-)
150
+
151
+ _relations_... Let''s stop the segregation ;-)'
131
152
  email:
132
153
  - blambeau@gmail.com
133
154
  executables: []
134
155
  extensions: []
135
156
  extra_rdoc_files: []
136
157
  files:
137
- - CHANGELOG.md
138
- - Gemfile
139
- - Gemfile.lock
140
- - LICENCE.md
141
- - Manifest.txt
142
- - README.md
143
- - Rakefile
144
- - TODO.md
145
158
  - examples/functions-as-values.rb
146
159
  - examples/memory_database.rb
147
160
  - examples/operators/autonum.alf
@@ -180,14 +193,12 @@ files:
180
193
  - examples/suppliers_and_parts/parts.rash
181
194
  - examples/suppliers_and_parts/suppliers.rash
182
195
  - examples/suppliers_and_parts/supplies.rash
183
- - lib/alf-core.rb
184
- - lib/alf/adapter.rb
185
- - lib/alf/adapter/connection.rb
186
196
  - lib/alf/adapter/connection/schema_cached.rb
187
- - lib/alf/adapter/folder.rb
197
+ - lib/alf/adapter/connection.rb
188
198
  - lib/alf/adapter/folder/connection.rb
199
+ - lib/alf/adapter/folder.rb
189
200
  - lib/alf/adapter/fs.rb
190
- - lib/alf/aggregator.rb
201
+ - lib/alf/adapter.rb
191
202
  - lib/alf/aggregator/avg.rb
192
203
  - lib/alf/aggregator/collect.rb
193
204
  - lib/alf/aggregator/concat.rb
@@ -197,12 +208,11 @@ files:
197
208
  - lib/alf/aggregator/stddev.rb
198
209
  - lib/alf/aggregator/sum.rb
199
210
  - lib/alf/aggregator/variance.rb
200
- - lib/alf/algebra.rb
201
- - lib/alf/algebra/operand.rb
211
+ - lib/alf/aggregator.rb
202
212
  - lib/alf/algebra/operand/fake.rb
203
213
  - lib/alf/algebra/operand/named.rb
204
214
  - lib/alf/algebra/operand/proxy.rb
205
- - lib/alf/algebra/operator.rb
215
+ - lib/alf/algebra/operand.rb
206
216
  - lib/alf/algebra/operator/autonum.rb
207
217
  - lib/alf/algebra/operator/clip.rb
208
218
  - lib/alf/algebra/operator/coerce.rb
@@ -230,10 +240,10 @@ files:
230
240
  - lib/alf/algebra/operator/union.rb
231
241
  - lib/alf/algebra/operator/unwrap.rb
232
242
  - lib/alf/algebra/operator/wrap.rb
233
- - lib/alf/algebra/shortcut.rb
243
+ - lib/alf/algebra/operator.rb
234
244
  - lib/alf/algebra/shortcut/allbut.rb
235
245
  - lib/alf/algebra/shortcut/image.rb
236
- - lib/alf/algebra/support.rb
246
+ - lib/alf/algebra/shortcut.rb
237
247
  - lib/alf/algebra/support/binary.rb
238
248
  - lib/alf/algebra/support/classification.rb
239
249
  - lib/alf/algebra/support/compiler.rb
@@ -247,53 +257,54 @@ files:
247
257
  - lib/alf/algebra/support/unary.rb
248
258
  - lib/alf/algebra/support/visitor.rb
249
259
  - lib/alf/algebra/support/with_ordering.rb
250
- - lib/alf/compiler.rb
260
+ - lib/alf/algebra/support.rb
261
+ - lib/alf/algebra.rb
251
262
  - lib/alf/compiler/cog.rb
252
263
  - lib/alf/compiler/default.rb
253
264
  - lib/alf/compiler/plan.rb
254
- - lib/alf/core.rb
265
+ - lib/alf/compiler.rb
255
266
  - lib/alf/core/loader.rb
256
267
  - lib/alf/core/version.rb
257
- - lib/alf/database.rb
268
+ - lib/alf/core.rb
258
269
  - lib/alf/database/connection.rb
259
270
  - lib/alf/database/options.rb
271
+ - lib/alf/database.rb
260
272
  - lib/alf/dsl.rb
261
- - lib/alf/engine.rb
262
273
  - lib/alf/engine/aggregate.rb
263
274
  - lib/alf/engine/autonum.rb
264
275
  - lib/alf/engine/clip.rb
265
276
  - lib/alf/engine/coerce.rb
266
277
  - lib/alf/engine/cog.rb
267
- - lib/alf/engine/compact.rb
268
278
  - lib/alf/engine/compact/set.rb
269
279
  - lib/alf/engine/compact/uniq.rb
280
+ - lib/alf/engine/compact.rb
270
281
  - lib/alf/engine/concat.rb
271
282
  - lib/alf/engine/defaults.rb
272
283
  - lib/alf/engine/filter.rb
273
284
  - lib/alf/engine/generator.rb
274
- - lib/alf/engine/group.rb
275
285
  - lib/alf/engine/group/hash.rb
286
+ - lib/alf/engine/group.rb
276
287
  - lib/alf/engine/hierarchize.rb
277
288
  - lib/alf/engine/infer_heading.rb
278
- - lib/alf/engine/join.rb
279
289
  - lib/alf/engine/join/hash.rb
290
+ - lib/alf/engine/join.rb
280
291
  - lib/alf/engine/leaf.rb
281
- - lib/alf/engine/materialize.rb
282
292
  - lib/alf/engine/materialize/array.rb
283
293
  - lib/alf/engine/materialize/hash.rb
284
- - lib/alf/engine/quota.rb
294
+ - lib/alf/engine/materialize.rb
285
295
  - lib/alf/engine/quota/cesure.rb
286
- - lib/alf/engine/rank.rb
296
+ - lib/alf/engine/quota.rb
287
297
  - lib/alf/engine/rank/cesure.rb
298
+ - lib/alf/engine/rank.rb
288
299
  - lib/alf/engine/rename.rb
289
- - lib/alf/engine/semi.rb
290
300
  - lib/alf/engine/semi/hash.rb
301
+ - lib/alf/engine/semi.rb
291
302
  - lib/alf/engine/set_attr.rb
292
- - lib/alf/engine/sort.rb
293
303
  - lib/alf/engine/sort/in_memory.rb
294
- - lib/alf/engine/summarize.rb
304
+ - lib/alf/engine/sort.rb
295
305
  - lib/alf/engine/summarize/cesure.rb
296
306
  - lib/alf/engine/summarize/hash.rb
307
+ - lib/alf/engine/summarize.rb
297
308
  - lib/alf/engine/support/cesure.rb
298
309
  - lib/alf/engine/take.rb
299
310
  - lib/alf/engine/to_array.rb
@@ -301,25 +312,25 @@ files:
301
312
  - lib/alf/engine/ungroup.rb
302
313
  - lib/alf/engine/unwrap.rb
303
314
  - lib/alf/engine/wrap.rb
315
+ - lib/alf/engine.rb
304
316
  - lib/alf/errors.rb
305
- - lib/alf/ext.rb
306
317
  - lib/alf/ext/domain/heading_based.rb
307
318
  - lib/alf/ext/yaml.rb
319
+ - lib/alf/ext.rb
308
320
  - lib/alf/facade.rb
309
- - lib/alf/lang.rb
310
321
  - lib/alf/lang/functional.rb
311
322
  - lib/alf/lang/object_oriented.rb
312
323
  - lib/alf/lang/oo/aggregation_methods.rb
313
324
  - lib/alf/lang/oo/algebra_methods.rb
314
325
  - lib/alf/lang/oo/rendering_methods.rb
315
- - lib/alf/lang/parser.rb
316
326
  - lib/alf/lang/parser/lispy.rb
317
327
  - lib/alf/lang/parser/safer.rb
328
+ - lib/alf/lang/parser.rb
318
329
  - lib/alf/lang/predicates.rb
319
- - lib/alf/optimizer.rb
330
+ - lib/alf/lang.rb
320
331
  - lib/alf/optimizer/project.rb
321
332
  - lib/alf/optimizer/restrict.rb
322
- - lib/alf/predicate.rb
333
+ - lib/alf/optimizer.rb
323
334
  - lib/alf/predicate/factory.rb
324
335
  - lib/alf/predicate/grammar.rb
325
336
  - lib/alf/predicate/grammar.sexp.yml
@@ -342,29 +353,29 @@ files:
342
353
  - lib/alf/predicate/nodes/or.rb
343
354
  - lib/alf/predicate/nodes/qualified_identifier.rb
344
355
  - lib/alf/predicate/nodes/tautology.rb
345
- - lib/alf/predicate/processors.rb
346
356
  - lib/alf/predicate/processors/qualifier.rb
347
357
  - lib/alf/predicate/processors/renamer.rb
348
358
  - lib/alf/predicate/processors/to_ruby_code.rb
349
- - lib/alf/reader.rb
359
+ - lib/alf/predicate/processors.rb
360
+ - lib/alf/predicate.rb
350
361
  - lib/alf/reader/csv.rb
351
362
  - lib/alf/reader/json.rb
352
363
  - lib/alf/reader/rash.rb
353
364
  - lib/alf/reader/ruby.rb
354
365
  - lib/alf/reader/yaml.rb
366
+ - lib/alf/reader.rb
355
367
  - lib/alf/relation.rb
356
- - lib/alf/relvar.rb
357
368
  - lib/alf/relvar/base.rb
358
369
  - lib/alf/relvar/fake.rb
359
370
  - lib/alf/relvar/read_only.rb
360
371
  - lib/alf/relvar/virtual.rb
361
- - lib/alf/renderer.rb
372
+ - lib/alf/relvar.rb
362
373
  - lib/alf/renderer/csv.rb
363
374
  - lib/alf/renderer/json.rb
364
375
  - lib/alf/renderer/rash.rb
365
376
  - lib/alf/renderer/text.rb
366
377
  - lib/alf/renderer/yaml.rb
367
- - lib/alf/support.rb
378
+ - lib/alf/renderer.rb
368
379
  - lib/alf/support/coerce.rb
369
380
  - lib/alf/support/config.rb
370
381
  - lib/alf/support/csv_utils.rb
@@ -377,8 +388,8 @@ files:
377
388
  - lib/alf/support/to_ruby_literal.rb
378
389
  - lib/alf/support/tree.rb
379
390
  - lib/alf/support/tuple_scope.rb
391
+ - lib/alf/support.rb
380
392
  - lib/alf/tuple.rb
381
- - lib/alf/types.rb
382
393
  - lib/alf/types/attr_list.rb
383
394
  - lib/alf/types/attr_name.rb
384
395
  - lib/alf/types/boolean.rb
@@ -393,12 +404,14 @@ files:
393
404
  - lib/alf/types/tuple_computation.rb
394
405
  - lib/alf/types/tuple_expression.rb
395
406
  - lib/alf/types/type_check.rb
396
- - lib/alf/update.rb
407
+ - lib/alf/types.rb
397
408
  - lib/alf/update/deleter.rb
398
409
  - lib/alf/update/inserter.rb
399
410
  - lib/alf/update/updater.rb
400
- - lib/alf/viewpoint.rb
411
+ - lib/alf/update.rb
401
412
  - lib/alf/viewpoint/metadata.rb
413
+ - lib/alf/viewpoint.rb
414
+ - lib/alf-core.rb
402
415
  - tasks/clean.rake
403
416
  - tasks/gem.rake
404
417
  - tasks/gh-pages.rake
@@ -406,27 +419,39 @@ files:
406
419
  - tasks/regression_test.rake
407
420
  - tasks/unit_test.rake
408
421
  - tasks/yard.rake
422
+ - Rakefile
423
+ - CHANGELOG.md
424
+ - Gemfile
425
+ - Gemfile.lock
426
+ - LICENCE.md
427
+ - Manifest.txt
428
+ - README.md
429
+ - TODO.md
409
430
  homepage: http://blambeau.github.com/alf
410
431
  licenses: []
411
- metadata: {}
412
432
  post_install_message:
413
433
  rdoc_options: []
414
434
  require_paths:
415
435
  - lib
416
436
  required_ruby_version: !ruby/object:Gem::Requirement
437
+ none: false
417
438
  requirements:
418
- - - ">="
439
+ - - ! '>='
419
440
  - !ruby/object:Gem::Version
420
441
  version: '0'
442
+ segments:
443
+ - 0
444
+ hash: -3263790518548564068
421
445
  required_rubygems_version: !ruby/object:Gem::Requirement
446
+ none: false
422
447
  requirements:
423
- - - ">="
448
+ - - ! '>='
424
449
  - !ruby/object:Gem::Version
425
450
  version: '0'
426
451
  requirements: []
427
452
  rubyforge_project:
428
- rubygems_version: 2.2.2
453
+ rubygems_version: 1.8.25
429
454
  signing_key:
430
- specification_version: 4
455
+ specification_version: 3
431
456
  summary: Relational Algebra at your fingertips
432
457
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: d36db649022c56e56432929eddeabe19c4e395ca
4
- data.tar.gz: 515f75988ce494972a210fb2af70a45aad33705f
5
- SHA512:
6
- metadata.gz: d636536c6e5f3536bbbbddf41242b49e0c6d587fb9a7ad272cc41b079a31897b55e45075a1cd90176d25801f4f63d85dc451a9d449fc374f04083dc546293853
7
- data.tar.gz: 28a6dc24c75ba0f2b21a966fc9bc63f9c6203c6c775f0c7df6814857f45d71f57d82dfed7f6d57392d220b9e768600257478ba9b7bc30474976327bdd2fa8499