veritas 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/.travis.yml +10 -4
  2. data/Gemfile +1 -1
  3. data/TODO +10 -0
  4. data/config/flay.yml +1 -1
  5. data/config/flog.yml +1 -1
  6. data/config/roodi.yml +2 -2
  7. data/config/site.reek +2 -1
  8. data/lib/veritas.rb +2 -2
  9. data/lib/veritas/algebra/join.rb +13 -91
  10. data/lib/veritas/algebra/product.rb +4 -1
  11. data/lib/veritas/attribute.rb +1 -1
  12. data/lib/veritas/function/connective/negation.rb +13 -1
  13. data/lib/veritas/function/numeric/absolute.rb +5 -19
  14. data/lib/veritas/function/numeric/unary.rb +3 -0
  15. data/lib/veritas/function/numeric/unary_minus.rb +5 -19
  16. data/lib/veritas/function/numeric/unary_plus.rb +5 -21
  17. data/lib/veritas/function/proposition.rb +3 -28
  18. data/lib/veritas/function/string/length.rb +0 -1
  19. data/lib/veritas/function/unary.rb +47 -0
  20. data/lib/veritas/relation.rb +16 -2
  21. data/lib/veritas/relation/header.rb +48 -41
  22. data/lib/veritas/relation/operation/order/direction.rb +13 -1
  23. data/lib/veritas/relation/operation/order/direction_set.rb +9 -198
  24. data/lib/veritas/relation/operation/reverse.rb +0 -2
  25. data/lib/veritas/support/comparator.rb +1 -1
  26. data/lib/veritas/support/evaluator.rb +3 -0
  27. data/lib/veritas/support/immutable.rb +33 -8
  28. data/lib/veritas/tuple.rb +8 -6
  29. data/lib/veritas/version.rb +1 -1
  30. data/spec/integration/veritas/algebra/projection_spec.rb +1 -1
  31. data/spec/integration/veritas/relation/efficient_enumerable_spec.rb +40 -15
  32. data/spec/rcov.opts +1 -0
  33. data/spec/shared/hash_method_behavior.rb +10 -5
  34. data/spec/spec_helper.rb +1 -1
  35. data/spec/unit/veritas/algebra/extension/class_methods/new_spec.rb +1 -1
  36. data/spec/unit/veritas/algebra/join/class_methods/new_spec.rb +1 -1
  37. data/spec/unit/veritas/algebra/join/each_spec.rb +36 -9
  38. data/spec/unit/veritas/aliasable/inheritable_alias_spec.rb +1 -1
  39. data/spec/unit/veritas/comparator/compare_spec.rb +4 -1
  40. data/spec/unit/veritas/evaluator/context/method_missing_spec.rb +7 -1
  41. data/spec/unit/veritas/function/connective/negation/class_methods/operation_spec.rb +11 -0
  42. data/spec/unit/veritas/function/numeric/absolute/class_methods/operation_spec.rb +11 -0
  43. data/spec/unit/veritas/function/numeric/unary_minus/class_methods/operation_spec.rb +11 -0
  44. data/spec/unit/veritas/function/numeric/unary_plus/class_methods/operation_spec.rb +11 -0
  45. data/spec/unit/veritas/function/unary/callable/call_spec.rb +23 -0
  46. data/spec/unit/veritas/function/unary/callable/included_spec.rb +23 -0
  47. data/spec/unit/veritas/function/unary/inspect_spec.rb +34 -0
  48. data/spec/unit/veritas/immutable/fixtures/classes.rb +3 -3
  49. data/spec/unit/veritas/immutable/module_methods/memoize_spec.rb +20 -10
  50. data/spec/unit/veritas/relation/class_methods/coerce_spec.rb +23 -0
  51. data/spec/unit/veritas/relation/each_spec.rb +1 -1
  52. data/spec/unit/veritas/relation/equal_value_spec.rb +12 -0
  53. data/spec/unit/veritas/relation/header/call_spec.rb +23 -0
  54. data/spec/unit/veritas/relation/header/class_methods/coerce_spec.rb +1 -1
  55. data/spec/unit/veritas/relation/header/class_methods/new_spec.rb +2 -2
  56. data/spec/unit/veritas/relation/header/each_spec.rb +1 -1
  57. data/spec/unit/veritas/relation/header/empty_spec.rb +5 -4
  58. data/spec/unit/veritas/relation/header/intersect_spec.rb +18 -4
  59. data/spec/unit/veritas/relation/operation/binary/class_methods/new_spec.rb +25 -25
  60. data/spec/unit/veritas/relation/operation/order/direction/name_spec.rb +13 -0
  61. data/spec/unit/veritas/relation/operation/order/direction_set/class_methods/new_spec.rb +1 -1
  62. data/spec/unit/veritas/relation/operation/order/direction_set/equal_value_spec.rb +13 -0
  63. data/spec/unit/veritas/tuple/call_spec.rb +25 -0
  64. data/spec/unit/veritas/tuple/class_methods/coerce_spec.rb +1 -1
  65. data/tasks/metrics/ci.rake +2 -2
  66. data/tasks/metrics/flay.rake +1 -1
  67. data/tasks/metrics/flog.rake +5 -3
  68. data/tasks/metrics/heckle.rake +18 -11
  69. data/tasks/metrics/reek.rake +1 -1
  70. data/tasks/spec.rake +23 -14
  71. data/veritas.gemspec +14 -8
  72. metadata +31 -25
  73. data/spec/unit/veritas/relation/header/element_reference_spec.rb +0 -21
  74. data/spec/unit/veritas/relation/operation/order/direction_set/each_spec.rb +0 -32
  75. data/spec/unit/veritas/relation/operation/order/direction_set/empty_spec.rb +0 -21
  76. data/spec/unit/veritas/relation/operation/order/direction_set/union_spec.rb +0 -18
  77. data/spec/unit/veritas/tuple/element_reference_spec.rb +0 -22
@@ -0,0 +1,25 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+
6
+ [ :call, :[] ].each do |method|
7
+ describe Tuple, "##{method}" do
8
+ subject { object.send(method, attribute) }
9
+
10
+ let(:header) { Relation::Header.new([ [ :id, Integer ] ]) }
11
+ let(:object) { described_class.new(header, [ 1 ]) }
12
+
13
+ context 'with a known attribute' do
14
+ let(:attribute) { header[:id] }
15
+
16
+ it { should == 1 }
17
+ end
18
+
19
+ context 'with an unknown attribute' do
20
+ let(:attribute) { Attribute::Integer.new(:other_id) }
21
+
22
+ specify { expect { subject }.to raise_error(IndexError) }
23
+ end
24
+ end
25
+ end
@@ -20,7 +20,7 @@ describe Tuple, '.coerce' do
20
20
 
21
21
  it { should be_instance_of(object) }
22
22
 
23
- it { should == tuple }
23
+ it { should eql(tuple) }
24
24
  end
25
25
 
26
26
  context 'when the argument is not a Tuple and does not respond to #to_ary' do
@@ -1,7 +1,7 @@
1
1
  desc 'Run metrics with Heckle'
2
- task :ci => [ 'ci:metrics', :heckle ]
2
+ task :ci => %w[ ci:metrics heckle ]
3
3
 
4
4
  namespace :ci do
5
5
  desc 'Run metrics'
6
- task :metrics => [ :verify_measurements, :flog, :flay, :reek, :roodi, 'metrics:all' ]
6
+ task :metrics => %w[ verify_measurements flog flay reek roodi metrics:all ]
7
7
  end
@@ -15,7 +15,7 @@ begin
15
15
  flay = Flay.new(:fuzzy => false, :verbose => false, :mass => 0)
16
16
  flay.process(*files)
17
17
 
18
- max = flay.masses.map { |hash, mass| mass.to_f / flay.hashes[hash].size }.max
18
+ max = (flay.masses.map { |hash, mass| mass.to_f / flay.hashes[hash].size }.max) || 0
19
19
  unless max >= threshold
20
20
  raise "Adjust flay threshold down to #{max}"
21
21
  end
@@ -22,9 +22,11 @@ begin
22
22
  map { |name, score| [ name, score.round_to(1) ] }.
23
23
  sort_by { |name, score| score }
24
24
 
25
- max = totals.last[1]
26
- unless max >= threshold
27
- raise "Adjust flog score down to #{max}"
25
+ if totals.any?
26
+ max = totals.last[1]
27
+ unless max >= threshold
28
+ raise "Adjust flog score down to #{max}"
29
+ end
28
30
  end
29
31
 
30
32
  bad_methods = totals.select { |name, score| score > threshold }
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
6
6
  begin
7
7
  require 'pathname'
8
8
  require 'backports'
9
- require 'backports/basic_object'
9
+ require 'backports/basic_object' unless RUBY_VERSION >= '1.9.2' && (RUBY_PLATFORM.include?('java') || RUBY_ENGINE == 'rbx')
10
10
  require 'active_support/inflector'
11
11
  require 'heckle'
12
12
  require 'mspec'
@@ -27,13 +27,16 @@ begin
27
27
  end
28
28
 
29
29
  desc 'Heckle each module and class'
30
- task :heckle => :verify_rcov do
30
+ task :heckle => :rcov do
31
31
  unless Ruby2Ruby::VERSION == '1.2.2'
32
32
  raise "ruby2ruby version #{Ruby2Ruby::VERSION} may not work properly, 1.2.2 *only* is recommended for use with heckle"
33
33
  end
34
34
 
35
35
  require 'veritas'
36
- root_module = 'Veritas'
36
+
37
+ root_module_regexp = Regexp.union(
38
+ 'Veritas'
39
+ )
37
40
 
38
41
  spec_dir = Pathname('spec/unit')
39
42
 
@@ -63,8 +66,6 @@ begin
63
66
 
64
67
  NameMap::MAP['==']['Veritas::Relation::Operation::Order::Direction'] = 'eql'
65
68
 
66
- NameMap::MAP['|']['Veritas::Relation::Operation::Order::DirectionSet'] = 'union'
67
-
68
69
  %w[
69
70
  Veritas::Function::Connective::Conjunction::Methods
70
71
  Veritas::Function::Connective::Disjunction::Methods
@@ -77,9 +78,6 @@ begin
77
78
 
78
79
  aliases = Hash.new { |h,mod| h[mod] = Hash.new { |h,method| h[method] = method } }
79
80
 
80
- aliases['Veritas::Attribute::Numeric']['range'] = 'size'
81
- aliases['Veritas::Attribute::String']['range'] = 'length'
82
-
83
81
  aliases['Veritas::Aggregate::Minimum::Methods']['min'] = 'minimum'
84
82
  aliases['Veritas::Aggregate::Maximum::Methods']['max'] = 'maximum'
85
83
  aliases['Veritas::Aggregate::Mean::Methods']['avg'] = 'mean'
@@ -87,6 +85,11 @@ begin
87
85
  aliases['Veritas::Aggregate::Variance::Methods']['var'] = 'variance'
88
86
  aliases['Veritas::Aggregate::StandardDeviation::Methods']['stddev'] = 'standard_deviation'
89
87
 
88
+ aliases['Veritas::Attribute::Numeric']['range'] = 'size'
89
+ aliases['Veritas::Attribute::String']['range'] = 'length'
90
+
91
+ aliases['Veritas::Evaluator::Context']['respond_to_missing?'] = 'respond_to?'
92
+
90
93
  aliases['Veritas::Function::Numeric::Addition::Methods']['+'] = 'add'
91
94
  aliases['Veritas::Function::Numeric::Subtraction::Methods']['-'] = 'subtract'
92
95
  aliases['Veritas::Function::Numeric::Multiplication::Methods']['*'] = 'multiply'
@@ -101,13 +104,17 @@ begin
101
104
  aliases['Veritas::Function::Numeric::UnaryPlus::Methods']['+@'] = 'unary_plus'
102
105
  aliases['Veritas::Function::Numeric::UnaryMinus::Methods']['-@'] = 'unary_minus'
103
106
 
107
+ aliases['Veritas::Relation::Header']['[]'] = 'call'
108
+
109
+ aliases['Veritas::Tuple']['[]'] = 'call'
110
+
104
111
  map = NameMap.new
105
112
 
106
113
  heckle_caught_modules = Hash.new { |hash, key| hash[key] = [] }
107
114
  unhandled_mutations = 0
108
115
 
109
116
  ObjectSpace.each_object(Module) do |mod|
110
- next unless mod.name =~ /\A#{root_module}(?::|\z)/
117
+ next unless mod.name =~ /\A#{root_module_regexp}(?::|\z)/
111
118
 
112
119
  spec_prefix = spec_dir.join(mod.name.underscore)
113
120
 
@@ -192,7 +199,7 @@ begin
192
199
  descedant_specs = []
193
200
 
194
201
  ObjectSpace.each_object(Module) do |descedant|
195
- next unless descedant.name =~ /\A#{root_module}(?::|\z)/ && mod >= descedant
202
+ next unless descedant.name =~ /\A#{root_module_regexp}(?::|\z)/ && mod >= descedant
196
203
  descedant_spec_prefix = spec_dir.join(descedant.name.underscore)
197
204
  descedant_specs << descedant_spec_prefix
198
205
 
@@ -208,7 +215,7 @@ begin
208
215
  descedant_specs = []
209
216
 
210
217
  ObjectSpace.each_object(Module) do |descedant|
211
- next unless descedant.name =~ /\A#{root_module}(?::|\z)/ && mod >= descedant
218
+ next unless descedant.name =~ /\A#{root_module_regexp}(?::|\z)/ && mod >= descedant
212
219
  descedant_specs << spec_dir.join(descedant.name.underscore).join('class_methods')
213
220
  end
214
221
 
@@ -4,6 +4,6 @@ begin
4
4
  Reek::Rake::Task.new
5
5
  rescue LoadError
6
6
  task :reek do
7
- abort "Reek is not available. In order to run reek, you must: gem install reek"
7
+ abort 'Reek is not available. In order to run reek, you must: gem install reek'
8
8
  end
9
9
  end
data/tasks/spec.rake CHANGED
@@ -1,37 +1,46 @@
1
1
  spec_defaults = lambda do |spec|
2
- spec.pattern = 'spec/**/*_spec.rb'
3
- spec.libs << 'lib' << 'spec'
4
2
  spec.spec_opts << '--options' << 'spec/spec.opts'
5
3
  end
6
4
 
7
5
  begin
8
6
  require 'spec/rake/spectask'
9
7
 
10
- Spec::Rake::SpecTask.new(:spec, &spec_defaults)
8
+ desc 'Run all specs'
9
+ task :spec => %w[ spec:unit spec:integration ]
10
+
11
+ namespace :spec do
12
+ desc 'Run unit specs'
13
+ Spec::Rake::SpecTask.new(:unit) do |unit|
14
+ spec_defaults.call(unit)
15
+ unit.pattern = 'spec/unit/**/*_spec.rb'
16
+ end
17
+
18
+ desc 'Run integration specs'
19
+ Spec::Rake::SpecTask.new(:integration) do |integration|
20
+ spec_defaults.call(integration)
21
+ integration.pattern = 'spec/integration/**/*_spec.rb'
22
+ end
23
+ end
11
24
  rescue LoadError
12
- task :spec do
13
- abort 'rspec is not available. In order to run spec, you must: gem install rspec'
25
+ %w[ spec spec:unit spec:integration ].each do |name|
26
+ task name do
27
+ abort "rspec is not available. In order to run #{name}, you must: gem install rspec"
28
+ end
14
29
  end
15
30
  end
16
31
 
17
32
  begin
18
33
  require 'rcov'
19
- require 'spec/rake/verify_rcov'
20
34
 
21
35
  Spec::Rake::SpecTask.new(:rcov) do |rcov|
22
36
  spec_defaults.call(rcov)
23
37
  rcov.rcov = true
38
+ rcov.pattern = 'spec/unit/**/*_spec.rb'
24
39
  rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
25
40
  end
26
-
27
- RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
28
- rcov.threshold = 100
29
- end
30
41
  rescue LoadError
31
- %w[ rcov verify_rcov ].each do |name|
32
- task name do
33
- abort "rcov is not available. In order to run #{name}, you must: gem install rcov"
34
- end
42
+ task :rcov do
43
+ abort 'rcov is not available. In order to run rcov, you must: gem install rcov'
35
44
  end
36
45
  end
37
46
 
data/veritas.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "veritas"
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Kubb"]
12
- s.date = "2011-10-04"
12
+ s.date = "2012-03-08"
13
13
  s.description = "Simplifies querying of structured data using relational algebra"
14
14
  s.email = "dan.kubb@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -334,6 +334,7 @@ Gem::Specification.new do |s|
334
334
  "spec/unit/veritas/function/connective/disjunction/methods/or_spec.rb",
335
335
  "spec/unit/veritas/function/connective/inspect_spec.rb",
336
336
  "spec/unit/veritas/function/connective/negation/class_methods/call_spec.rb",
337
+ "spec/unit/veritas/function/connective/negation/class_methods/operation_spec.rb",
337
338
  "spec/unit/veritas/function/connective/negation/inspect_spec.rb",
338
339
  "spec/unit/veritas/function/connective/negation/inverse_spec.rb",
339
340
  "spec/unit/veritas/function/connective/negation/methods/fixtures/classes.rb",
@@ -342,6 +343,7 @@ Gem::Specification.new do |s|
342
343
  "spec/unit/veritas/function/fixtures/classes.rb",
343
344
  "spec/unit/veritas/function/inspect_spec.rb",
344
345
  "spec/unit/veritas/function/numeric/absolute/class_methods/call_spec.rb",
346
+ "spec/unit/veritas/function/numeric/absolute/class_methods/operation_spec.rb",
345
347
  "spec/unit/veritas/function/numeric/absolute/inspect_spec.rb",
346
348
  "spec/unit/veritas/function/numeric/absolute/methods/absolute_spec.rb",
347
349
  "spec/unit/veritas/function/numeric/addition/class_methods/call_spec.rb",
@@ -383,10 +385,12 @@ Gem::Specification.new do |s|
383
385
  "spec/unit/veritas/function/numeric/unary/type_spec.rb",
384
386
  "spec/unit/veritas/function/numeric/unary_minus/class_methods/call_spec.rb",
385
387
  "spec/unit/veritas/function/numeric/unary_minus/class_methods/inverse_spec.rb",
388
+ "spec/unit/veritas/function/numeric/unary_minus/class_methods/operation_spec.rb",
386
389
  "spec/unit/veritas/function/numeric/unary_minus/inspect_spec.rb",
387
390
  "spec/unit/veritas/function/numeric/unary_minus/methods/unary_minus_spec.rb",
388
391
  "spec/unit/veritas/function/numeric/unary_plus/class_methods/call_spec.rb",
389
392
  "spec/unit/veritas/function/numeric/unary_plus/class_methods/inverse_spec.rb",
393
+ "spec/unit/veritas/function/numeric/unary_plus/class_methods/operation_spec.rb",
390
394
  "spec/unit/veritas/function/numeric/unary_plus/inspect_spec.rb",
391
395
  "spec/unit/veritas/function/numeric/unary_plus/methods/unary_plus_spec.rb",
392
396
  "spec/unit/veritas/function/predicate/call_spec.rb",
@@ -502,9 +506,12 @@ Gem::Specification.new do |s|
502
506
  "spec/unit/veritas/function/string/length/type_spec.rb",
503
507
  "spec/unit/veritas/function/type_spec.rb",
504
508
  "spec/unit/veritas/function/unary/call_spec.rb",
509
+ "spec/unit/veritas/function/unary/callable/call_spec.rb",
510
+ "spec/unit/veritas/function/unary/callable/included_spec.rb",
505
511
  "spec/unit/veritas/function/unary/equal_value_spec.rb",
506
512
  "spec/unit/veritas/function/unary/fixtures/classes.rb",
507
513
  "spec/unit/veritas/function/unary/hash_spec.rb",
514
+ "spec/unit/veritas/function/unary/inspect_spec.rb",
508
515
  "spec/unit/veritas/function/unary/invertible/inverse_spec.rb",
509
516
  "spec/unit/veritas/function/unary/rename_spec.rb",
510
517
  "spec/unit/veritas/immutable/class_methods/freeze_object_spec.rb",
@@ -527,6 +534,7 @@ Gem::Specification.new do |s|
527
534
  "spec/unit/veritas/relation/base/eql_spec.rb",
528
535
  "spec/unit/veritas/relation/base/hash_spec.rb",
529
536
  "spec/unit/veritas/relation/base/name_spec.rb",
537
+ "spec/unit/veritas/relation/class_methods/coerce_spec.rb",
530
538
  "spec/unit/veritas/relation/class_methods/new_spec.rb",
531
539
  "spec/unit/veritas/relation/directions_spec.rb",
532
540
  "spec/unit/veritas/relation/each_spec.rb",
@@ -540,11 +548,11 @@ Gem::Specification.new do |s|
540
548
  "spec/unit/veritas/relation/eql_spec.rb",
541
549
  "spec/unit/veritas/relation/equal_value_spec.rb",
542
550
  "spec/unit/veritas/relation/hash_spec.rb",
551
+ "spec/unit/veritas/relation/header/call_spec.rb",
543
552
  "spec/unit/veritas/relation/header/class_methods/coerce_spec.rb",
544
553
  "spec/unit/veritas/relation/header/class_methods/new_spec.rb",
545
554
  "spec/unit/veritas/relation/header/difference_spec.rb",
546
555
  "spec/unit/veritas/relation/header/each_spec.rb",
547
- "spec/unit/veritas/relation/header/element_reference_spec.rb",
548
556
  "spec/unit/veritas/relation/header/empty_spec.rb",
549
557
  "spec/unit/veritas/relation/header/eql_spec.rb",
550
558
  "spec/unit/veritas/relation/header/equal_value_spec.rb",
@@ -598,13 +606,12 @@ Gem::Specification.new do |s|
598
606
  "spec/unit/veritas/relation/operation/order/direction/class_methods/coerce_spec.rb",
599
607
  "spec/unit/veritas/relation/operation/order/direction/eql_spec.rb",
600
608
  "spec/unit/veritas/relation/operation/order/direction/hash_spec.rb",
609
+ "spec/unit/veritas/relation/operation/order/direction/name_spec.rb",
601
610
  "spec/unit/veritas/relation/operation/order/direction/rename_spec.rb",
602
611
  "spec/unit/veritas/relation/operation/order/direction/reverse_spec.rb",
603
612
  "spec/unit/veritas/relation/operation/order/direction_set/attributes_spec.rb",
604
613
  "spec/unit/veritas/relation/operation/order/direction_set/class_methods/coerce_spec.rb",
605
614
  "spec/unit/veritas/relation/operation/order/direction_set/class_methods/new_spec.rb",
606
- "spec/unit/veritas/relation/operation/order/direction_set/each_spec.rb",
607
- "spec/unit/veritas/relation/operation/order/direction_set/empty_spec.rb",
608
615
  "spec/unit/veritas/relation/operation/order/direction_set/eql_spec.rb",
609
616
  "spec/unit/veritas/relation/operation/order/direction_set/equal_value_spec.rb",
610
617
  "spec/unit/veritas/relation/operation/order/direction_set/hash_spec.rb",
@@ -613,7 +620,6 @@ Gem::Specification.new do |s|
613
620
  "spec/unit/veritas/relation/operation/order/direction_set/reverse_spec.rb",
614
621
  "spec/unit/veritas/relation/operation/order/direction_set/sort_tuples_spec.rb",
615
622
  "spec/unit/veritas/relation/operation/order/direction_set/to_ary_spec.rb",
616
- "spec/unit/veritas/relation/operation/order/direction_set/union_spec.rb",
617
623
  "spec/unit/veritas/relation/operation/order/directions_spec.rb",
618
624
  "spec/unit/veritas/relation/operation/order/each_spec.rb",
619
625
  "spec/unit/veritas/relation/operation/order/eql_spec.rb",
@@ -629,9 +635,9 @@ Gem::Specification.new do |s|
629
635
  "spec/unit/veritas/relation/operation/set/header_spec.rb",
630
636
  "spec/unit/veritas/relation/operation/unary/fixtures/classes.rb",
631
637
  "spec/unit/veritas/relation/operation/unary/header_spec.rb",
638
+ "spec/unit/veritas/tuple/call_spec.rb",
632
639
  "spec/unit/veritas/tuple/class_methods/coerce_spec.rb",
633
640
  "spec/unit/veritas/tuple/data_spec.rb",
634
- "spec/unit/veritas/tuple/element_reference_spec.rb",
635
641
  "spec/unit/veritas/tuple/eql_spec.rb",
636
642
  "spec/unit/veritas/tuple/equal_value_spec.rb",
637
643
  "spec/unit/veritas/tuple/extend_spec.rb",
@@ -657,7 +663,7 @@ Gem::Specification.new do |s|
657
663
  ]
658
664
  s.homepage = "https://github.com/dkubb/veritas"
659
665
  s.require_paths = ["lib"]
660
- s.rubygems_version = "1.8.10"
666
+ s.rubygems_version = "1.8.16"
661
667
  s.summary = "Ruby Relational Algebra"
662
668
 
663
669
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veritas
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Kubb
@@ -15,12 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-04 00:00:00 Z
18
+ date: 2012-03-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :development
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
23
  none: false
25
24
  requirements:
26
25
  - - ~>
@@ -31,12 +30,12 @@ dependencies:
31
30
  - 3
32
31
  - 0
33
32
  version: 2.3.0
34
- version_requirements: *id001
33
+ prerelease: false
34
+ requirement: *id001
35
35
  name: backports
36
36
  - !ruby/object:Gem::Dependency
37
37
  type: :development
38
- prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
41
  - - ~>
@@ -47,12 +46,12 @@ dependencies:
47
46
  - 6
48
47
  - 4
49
48
  version: 1.6.4
50
- version_requirements: *id002
49
+ prerelease: false
50
+ requirement: *id002
51
51
  name: jeweler
52
52
  - !ruby/object:Gem::Dependency
53
53
  type: :development
54
- prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
54
+ version_requirements: &id003 !ruby/object:Gem::Requirement
56
55
  none: false
57
56
  requirements:
58
57
  - - ~>
@@ -63,12 +62,12 @@ dependencies:
63
62
  - 9
64
63
  - 2
65
64
  version: 0.9.2
66
- version_requirements: *id003
65
+ prerelease: false
66
+ requirement: *id003
67
67
  name: rake
68
68
  - !ruby/object:Gem::Dependency
69
69
  type: :development
70
- prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
70
+ version_requirements: &id004 !ruby/object:Gem::Requirement
72
71
  none: false
73
72
  requirements:
74
73
  - - ~>
@@ -79,12 +78,12 @@ dependencies:
79
78
  - 3
80
79
  - 2
81
80
  version: 1.3.2
82
- version_requirements: *id004
81
+ prerelease: false
82
+ requirement: *id004
83
83
  name: rspec
84
84
  - !ruby/object:Gem::Dependency
85
85
  type: :development
86
- prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
86
+ version_requirements: &id005 !ruby/object:Gem::Requirement
88
87
  none: false
89
88
  requirements:
90
89
  - - ~>
@@ -95,7 +94,8 @@ dependencies:
95
94
  - 7
96
95
  - 2
97
96
  version: 0.7.2
98
- version_requirements: *id005
97
+ prerelease: false
98
+ requirement: *id005
99
99
  name: yard
100
100
  description: Simplifies querying of structured data using relational algebra
101
101
  email: dan.kubb@gmail.com
@@ -424,6 +424,7 @@ files:
424
424
  - spec/unit/veritas/function/connective/disjunction/methods/or_spec.rb
425
425
  - spec/unit/veritas/function/connective/inspect_spec.rb
426
426
  - spec/unit/veritas/function/connective/negation/class_methods/call_spec.rb
427
+ - spec/unit/veritas/function/connective/negation/class_methods/operation_spec.rb
427
428
  - spec/unit/veritas/function/connective/negation/inspect_spec.rb
428
429
  - spec/unit/veritas/function/connective/negation/inverse_spec.rb
429
430
  - spec/unit/veritas/function/connective/negation/methods/fixtures/classes.rb
@@ -432,6 +433,7 @@ files:
432
433
  - spec/unit/veritas/function/fixtures/classes.rb
433
434
  - spec/unit/veritas/function/inspect_spec.rb
434
435
  - spec/unit/veritas/function/numeric/absolute/class_methods/call_spec.rb
436
+ - spec/unit/veritas/function/numeric/absolute/class_methods/operation_spec.rb
435
437
  - spec/unit/veritas/function/numeric/absolute/inspect_spec.rb
436
438
  - spec/unit/veritas/function/numeric/absolute/methods/absolute_spec.rb
437
439
  - spec/unit/veritas/function/numeric/addition/class_methods/call_spec.rb
@@ -473,10 +475,12 @@ files:
473
475
  - spec/unit/veritas/function/numeric/unary/type_spec.rb
474
476
  - spec/unit/veritas/function/numeric/unary_minus/class_methods/call_spec.rb
475
477
  - spec/unit/veritas/function/numeric/unary_minus/class_methods/inverse_spec.rb
478
+ - spec/unit/veritas/function/numeric/unary_minus/class_methods/operation_spec.rb
476
479
  - spec/unit/veritas/function/numeric/unary_minus/inspect_spec.rb
477
480
  - spec/unit/veritas/function/numeric/unary_minus/methods/unary_minus_spec.rb
478
481
  - spec/unit/veritas/function/numeric/unary_plus/class_methods/call_spec.rb
479
482
  - spec/unit/veritas/function/numeric/unary_plus/class_methods/inverse_spec.rb
483
+ - spec/unit/veritas/function/numeric/unary_plus/class_methods/operation_spec.rb
480
484
  - spec/unit/veritas/function/numeric/unary_plus/inspect_spec.rb
481
485
  - spec/unit/veritas/function/numeric/unary_plus/methods/unary_plus_spec.rb
482
486
  - spec/unit/veritas/function/predicate/call_spec.rb
@@ -592,9 +596,12 @@ files:
592
596
  - spec/unit/veritas/function/string/length/type_spec.rb
593
597
  - spec/unit/veritas/function/type_spec.rb
594
598
  - spec/unit/veritas/function/unary/call_spec.rb
599
+ - spec/unit/veritas/function/unary/callable/call_spec.rb
600
+ - spec/unit/veritas/function/unary/callable/included_spec.rb
595
601
  - spec/unit/veritas/function/unary/equal_value_spec.rb
596
602
  - spec/unit/veritas/function/unary/fixtures/classes.rb
597
603
  - spec/unit/veritas/function/unary/hash_spec.rb
604
+ - spec/unit/veritas/function/unary/inspect_spec.rb
598
605
  - spec/unit/veritas/function/unary/invertible/inverse_spec.rb
599
606
  - spec/unit/veritas/function/unary/rename_spec.rb
600
607
  - spec/unit/veritas/immutable/class_methods/freeze_object_spec.rb
@@ -617,6 +624,7 @@ files:
617
624
  - spec/unit/veritas/relation/base/eql_spec.rb
618
625
  - spec/unit/veritas/relation/base/hash_spec.rb
619
626
  - spec/unit/veritas/relation/base/name_spec.rb
627
+ - spec/unit/veritas/relation/class_methods/coerce_spec.rb
620
628
  - spec/unit/veritas/relation/class_methods/new_spec.rb
621
629
  - spec/unit/veritas/relation/directions_spec.rb
622
630
  - spec/unit/veritas/relation/each_spec.rb
@@ -630,11 +638,11 @@ files:
630
638
  - spec/unit/veritas/relation/eql_spec.rb
631
639
  - spec/unit/veritas/relation/equal_value_spec.rb
632
640
  - spec/unit/veritas/relation/hash_spec.rb
641
+ - spec/unit/veritas/relation/header/call_spec.rb
633
642
  - spec/unit/veritas/relation/header/class_methods/coerce_spec.rb
634
643
  - spec/unit/veritas/relation/header/class_methods/new_spec.rb
635
644
  - spec/unit/veritas/relation/header/difference_spec.rb
636
645
  - spec/unit/veritas/relation/header/each_spec.rb
637
- - spec/unit/veritas/relation/header/element_reference_spec.rb
638
646
  - spec/unit/veritas/relation/header/empty_spec.rb
639
647
  - spec/unit/veritas/relation/header/eql_spec.rb
640
648
  - spec/unit/veritas/relation/header/equal_value_spec.rb
@@ -688,13 +696,12 @@ files:
688
696
  - spec/unit/veritas/relation/operation/order/direction/class_methods/coerce_spec.rb
689
697
  - spec/unit/veritas/relation/operation/order/direction/eql_spec.rb
690
698
  - spec/unit/veritas/relation/operation/order/direction/hash_spec.rb
699
+ - spec/unit/veritas/relation/operation/order/direction/name_spec.rb
691
700
  - spec/unit/veritas/relation/operation/order/direction/rename_spec.rb
692
701
  - spec/unit/veritas/relation/operation/order/direction/reverse_spec.rb
693
702
  - spec/unit/veritas/relation/operation/order/direction_set/attributes_spec.rb
694
703
  - spec/unit/veritas/relation/operation/order/direction_set/class_methods/coerce_spec.rb
695
704
  - spec/unit/veritas/relation/operation/order/direction_set/class_methods/new_spec.rb
696
- - spec/unit/veritas/relation/operation/order/direction_set/each_spec.rb
697
- - spec/unit/veritas/relation/operation/order/direction_set/empty_spec.rb
698
705
  - spec/unit/veritas/relation/operation/order/direction_set/eql_spec.rb
699
706
  - spec/unit/veritas/relation/operation/order/direction_set/equal_value_spec.rb
700
707
  - spec/unit/veritas/relation/operation/order/direction_set/hash_spec.rb
@@ -703,7 +710,6 @@ files:
703
710
  - spec/unit/veritas/relation/operation/order/direction_set/reverse_spec.rb
704
711
  - spec/unit/veritas/relation/operation/order/direction_set/sort_tuples_spec.rb
705
712
  - spec/unit/veritas/relation/operation/order/direction_set/to_ary_spec.rb
706
- - spec/unit/veritas/relation/operation/order/direction_set/union_spec.rb
707
713
  - spec/unit/veritas/relation/operation/order/directions_spec.rb
708
714
  - spec/unit/veritas/relation/operation/order/each_spec.rb
709
715
  - spec/unit/veritas/relation/operation/order/eql_spec.rb
@@ -719,9 +725,9 @@ files:
719
725
  - spec/unit/veritas/relation/operation/set/header_spec.rb
720
726
  - spec/unit/veritas/relation/operation/unary/fixtures/classes.rb
721
727
  - spec/unit/veritas/relation/operation/unary/header_spec.rb
728
+ - spec/unit/veritas/tuple/call_spec.rb
722
729
  - spec/unit/veritas/tuple/class_methods/coerce_spec.rb
723
730
  - spec/unit/veritas/tuple/data_spec.rb
724
- - spec/unit/veritas/tuple/element_reference_spec.rb
725
731
  - spec/unit/veritas/tuple/eql_spec.rb
726
732
  - spec/unit/veritas/tuple/equal_value_spec.rb
727
733
  - spec/unit/veritas/tuple/extend_spec.rb
@@ -773,7 +779,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
773
779
  requirements: []
774
780
 
775
781
  rubyforge_project:
776
- rubygems_version: 1.8.10
782
+ rubygems_version: 1.8.16
777
783
  signing_key:
778
784
  specification_version: 3
779
785
  summary: Ruby Relational Algebra