veritas-sql-generator 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/.gemtest +0 -0
  2. data/.rvmrc +1 -0
  3. data/.travis.yml +8 -0
  4. data/Gemfile +20 -10
  5. data/Guardfile +22 -0
  6. data/README.rdoc +2 -0
  7. data/Rakefile +4 -2
  8. data/TODO +16 -2
  9. data/config/flay.yml +2 -2
  10. data/config/flog.yml +1 -1
  11. data/config/roodi.yml +5 -5
  12. data/config/site.reek +21 -19
  13. data/lib/veritas/sql/generator.rb +25 -2
  14. data/lib/veritas/sql/generator/core_ext/date.rb +20 -0
  15. data/lib/veritas/sql/generator/core_ext/date_time.rb +45 -0
  16. data/lib/veritas/sql/generator/direction.rb +3 -1
  17. data/lib/veritas/sql/generator/function.rb +54 -0
  18. data/lib/veritas/sql/generator/function/aggregate.rb +134 -0
  19. data/lib/veritas/sql/generator/function/connective.rb +53 -0
  20. data/lib/veritas/sql/generator/function/numeric.rb +135 -0
  21. data/lib/veritas/sql/generator/function/predicate.rb +266 -0
  22. data/lib/veritas/sql/generator/function/proposition.rb +38 -0
  23. data/lib/veritas/sql/generator/function/string.rb +29 -0
  24. data/lib/veritas/sql/generator/identifier.rb +2 -1
  25. data/lib/veritas/sql/generator/literal.rb +15 -18
  26. data/lib/veritas/sql/generator/relation.rb +144 -17
  27. data/lib/veritas/sql/generator/relation/binary.rb +16 -64
  28. data/lib/veritas/sql/generator/relation/set.rb +30 -22
  29. data/lib/veritas/sql/generator/relation/unary.rb +131 -78
  30. data/lib/veritas/sql/generator/version.rb +1 -1
  31. data/spec/unit/date/iso8601_spec.rb +23 -0
  32. data/spec/unit/date_time/iso_8601_spec.rb +115 -0
  33. data/spec/unit/veritas/sql/generator/class_methods/parenthesize_spec.rb +18 -0
  34. data/spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_count_spec.rb +16 -0
  35. data/spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_maximum_spec.rb +16 -0
  36. data/spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_mean_spec.rb +16 -0
  37. data/spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_minimum_spec.rb +16 -0
  38. data/spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_standard_deviation_spec.rb +16 -0
  39. data/spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_sum_spec.rb +16 -0
  40. data/spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_variance_spec.rb +16 -0
  41. data/spec/unit/veritas/sql/generator/function/connective/visit_veritas_function_connective_conjunction_spec.rb +20 -0
  42. data/spec/unit/veritas/sql/generator/function/connective/visit_veritas_function_connective_disjunction_spec.rb +20 -0
  43. data/spec/unit/veritas/sql/generator/function/connective/visit_veritas_function_connective_negation_spec.rb +20 -0
  44. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_absolute_spec.rb +15 -0
  45. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_addition_spec.rb +15 -0
  46. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_division_spec.rb +15 -0
  47. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_exponentiation_spec.rb +15 -0
  48. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_modulo_spec.rb +15 -0
  49. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_multiplication_spec.rb +15 -0
  50. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_square_root_spec.rb +15 -0
  51. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_subtraction_spec.rb +15 -0
  52. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_unary_minus_spec.rb +15 -0
  53. data/spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_unary_plus_spec.rb +15 -0
  54. data/spec/unit/veritas/sql/generator/{logic/visit_veritas_logic_predicate_equality_spec.rb → function/predicate/visit_veritas_function_predicate_equality_spec.rb} +5 -5
  55. data/spec/unit/veritas/sql/generator/{logic/visit_veritas_logic_predicate_exclusion_spec.rb → function/predicate/visit_veritas_function_predicate_exclusion_spec.rb} +10 -6
  56. data/spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_greater_than_or_equal_to_spec.rb +15 -0
  57. data/spec/unit/veritas/sql/generator/{logic/visit_veritas_logic_predicate_greater_than_spec.rb → function/predicate/visit_veritas_function_predicate_greater_than_spec.rb} +5 -5
  58. data/spec/unit/veritas/sql/generator/{logic/visit_veritas_logic_predicate_inclusion_spec.rb → function/predicate/visit_veritas_function_predicate_inclusion_spec.rb} +10 -6
  59. data/spec/unit/veritas/sql/generator/{logic/visit_veritas_logic_predicate_inequality_spec.rb → function/predicate/visit_veritas_function_predicate_inequality_spec.rb} +8 -8
  60. data/spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_less_than_or_equal_to_spec.rb +15 -0
  61. data/spec/unit/veritas/sql/generator/{logic/visit_veritas_logic_predicate_less_than_spec.rb → function/predicate/visit_veritas_function_predicate_less_than_spec.rb} +5 -5
  62. data/spec/unit/veritas/sql/generator/function/proposition/visit_veritas_function_proposition_contradiction_spec.rb +15 -0
  63. data/spec/unit/veritas/sql/generator/function/proposition/visit_veritas_function_proposition_tautology_spec.rb +15 -0
  64. data/spec/unit/veritas/sql/generator/function/string/visit_veritas_function_string_length_spec.rb +15 -0
  65. data/spec/unit/veritas/sql/generator/literal/class_methods/dup_frozen_spec.rb +2 -2
  66. data/spec/unit/veritas/sql/generator/relation/binary/base/to_subquery_spec.rb +1 -1
  67. data/spec/unit/veritas/sql/generator/relation/binary/base/{visit_veritas_base_relation_spec.rb → visit_veritas_relation_base_spec.rb} +3 -3
  68. data/spec/unit/veritas/sql/generator/relation/binary/to_s_spec.rb +2 -2
  69. data/spec/unit/veritas/sql/generator/relation/binary/to_subquery_spec.rb +2 -2
  70. data/spec/unit/veritas/sql/generator/relation/binary/visit_veritas_algebra_join_spec.rb +74 -33
  71. data/spec/unit/veritas/sql/generator/relation/binary/visit_veritas_algebra_product_spec.rb +63 -19
  72. data/spec/unit/veritas/sql/generator/relation/class_methods/visit_spec.rb +1 -1
  73. data/spec/unit/veritas/sql/generator/relation/set/class_methods/normalize_operand_headers_spec.rb +35 -0
  74. data/spec/unit/veritas/sql/generator/relation/set/to_s_spec.rb +1 -1
  75. data/spec/unit/veritas/sql/generator/relation/set/to_subquery_spec.rb +4 -4
  76. data/spec/unit/veritas/sql/generator/relation/set/visit_veritas_algebra_difference_spec.rb +83 -30
  77. data/spec/unit/veritas/sql/generator/relation/set/visit_veritas_algebra_intersection_spec.rb +80 -30
  78. data/spec/unit/veritas/sql/generator/relation/set/visit_veritas_algebra_union_spec.rb +80 -30
  79. data/spec/unit/veritas/sql/generator/relation/to_s_spec.rb +50 -0
  80. data/spec/unit/veritas/sql/generator/relation/to_subquery_spec.rb +49 -0
  81. data/spec/unit/veritas/sql/generator/relation/unary/to_s_spec.rb +1 -1
  82. data/spec/unit/veritas/sql/generator/relation/unary/to_subquery_spec.rb +6 -6
  83. data/spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_extension_spec.rb +165 -0
  84. data/spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_projection_spec.rb +84 -29
  85. data/spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_rename_spec.rb +69 -27
  86. data/spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_restriction_spec.rb +64 -22
  87. data/spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_summarization_spec.rb +652 -0
  88. data/spec/unit/veritas/sql/generator/relation/unary/{visit_veritas_base_relation_spec.rb → visit_veritas_relation_base_spec.rb} +4 -4
  89. data/spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_limit_spec.rb +60 -20
  90. data/spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_offset_spec.rb +60 -20
  91. data/spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_order_spec.rb +63 -23
  92. data/spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_reverse_spec.rb +60 -20
  93. data/spec/unit/veritas/sql/generator/relation/visited_spec.rb +1 -1
  94. data/tasks/metrics/ci.rake +7 -0
  95. data/tasks/{quality → metrics}/flay.rake +0 -0
  96. data/tasks/{quality → metrics}/flog.rake +0 -0
  97. data/tasks/{quality → metrics}/heckle.rake +1 -0
  98. data/tasks/{quality → metrics}/metric_fu.rake +3 -0
  99. data/tasks/{quality → metrics}/reek.rake +0 -0
  100. data/tasks/{quality → metrics}/roodi.rake +0 -0
  101. data/tasks/{quality → metrics}/yardstick.rake +0 -0
  102. data/tasks/spec.rake +1 -0
  103. data/veritas-sql-generator.gemspec +82 -114
  104. metadata +137 -125
  105. data/lib/veritas/base_relation.rb +0 -36
  106. data/lib/veritas/sql/generator/logic.rb +0 -349
  107. data/spec/unit/veritas/base_relation/name_spec.rb +0 -45
  108. data/spec/unit/veritas/sql/generator/logic/visit_veritas_logic_connective_conjunction_spec.rb +0 -16
  109. data/spec/unit/veritas/sql/generator/logic/visit_veritas_logic_connective_disjunction_spec.rb +0 -16
  110. data/spec/unit/veritas/sql/generator/logic/visit_veritas_logic_connective_negation_spec.rb +0 -16
  111. data/spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_greater_than_or_equal_to_spec.rb +0 -15
  112. data/spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_less_than_or_equal_to_spec.rb +0 -15
  113. data/spec/unit/veritas/sql/generator/logic/visit_veritas_logic_proposition_contradiction_spec.rb +0 -15
  114. data/spec/unit/veritas/sql/generator/logic/visit_veritas_logic_proposition_tautology_spec.rb +0 -15
  115. data/spec/unit/veritas/sql/generator/relation/binary/class_methods/subquery_spec.rb +0 -42
  116. data/spec/unit/veritas/sql/generator/relation/class_methods/subquery_spec.rb +0 -33
  117. data/tasks/quality/ci.rake +0 -2
@@ -11,7 +11,7 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
11
11
  let(:age) { Attribute::Integer.new(:age, :required => false) }
12
12
  let(:header) { [ id, name, age ] }
13
13
  let(:body) { [ [ 1, 'Dan Kubb', 35 ] ].each }
14
- let(:base_relation) { BaseRelation.new(relation_name, header, body) }
14
+ let(:base_relation) { Relation::Base.new(relation_name, header, body) }
15
15
  let(:order) { operand.reverse }
16
16
  let(:object) { described_class.new }
17
17
 
@@ -21,7 +21,7 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
21
21
  it_should_behave_like 'a generated SQL SELECT query'
22
22
 
23
23
  its(:to_s) { should eql('SELECT "id", "name", "age" FROM "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
24
- its(:to_subquery) { should eql('SELECT * FROM "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
24
+ its(:to_subquery) { should eql('(SELECT * FROM "users" ORDER BY "id" DESC, "name" DESC, "age" DESC)') }
25
25
  end
26
26
 
27
27
  context 'when the operand is a projection' do
@@ -29,8 +29,17 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
29
29
 
30
30
  it_should_behave_like 'a generated SQL SELECT query'
31
31
 
32
- its(:to_s) { should eql('SELECT DISTINCT "id", "name" FROM "users" ORDER BY "id" DESC, "name" DESC') }
33
- its(:to_subquery) { should eql('SELECT DISTINCT "id", "name" FROM "users" ORDER BY "id" DESC, "name" DESC') }
32
+ its(:to_s) { should eql('SELECT DISTINCT "id", "name" FROM "users" ORDER BY "id" DESC, "name" DESC') }
33
+ its(:to_subquery) { should eql('(SELECT DISTINCT "id", "name" FROM "users" ORDER BY "id" DESC, "name" DESC)') }
34
+ end
35
+
36
+ context 'when the operand is an extension' do
37
+ let(:operand) { base_relation.extend { |r| r.add(:one, 1) }.order }
38
+
39
+ it_should_behave_like 'a generated SQL SELECT query'
40
+
41
+ its(:to_s) { should eql('SELECT "id", "name", "age", 1 AS "one" FROM "users" ORDER BY "id" DESC, "name" DESC, "age" DESC, "one" DESC') }
42
+ its(:to_subquery) { should eql('(SELECT *, 1 AS "one" FROM "users" ORDER BY "id" DESC, "name" DESC, "age" DESC, "one" DESC)') }
34
43
  end
35
44
 
36
45
  context 'when the operand is a rename' do
@@ -38,17 +47,48 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
38
47
 
39
48
  it_should_behave_like 'a generated SQL SELECT query'
40
49
 
41
- its(:to_s) { should eql('SELECT "id" AS "user_id", "name", "age" FROM "users" ORDER BY "user_id" DESC, "name" DESC, "age" DESC') }
42
- its(:to_subquery) { should eql('SELECT "id" AS "user_id", "name", "age" FROM "users" ORDER BY "user_id" DESC, "name" DESC, "age" DESC') }
50
+ its(:to_s) { should eql('SELECT "id" AS "user_id", "name", "age" FROM "users" ORDER BY "user_id" DESC, "name" DESC, "age" DESC') }
51
+ its(:to_subquery) { should eql('(SELECT "id" AS "user_id", "name", "age" FROM "users" ORDER BY "user_id" DESC, "name" DESC, "age" DESC)') }
43
52
  end
44
53
 
45
54
  context 'when the operand is a restriction' do
46
- let(:operand) { base_relation.order.restrict { |r| r[:id].eq(1) } }
55
+ let(:operand) { base_relation.restrict { |r| r[:id].eq(1) }.order }
47
56
 
48
57
  it_should_behave_like 'a generated SQL SELECT query'
49
58
 
50
59
  its(:to_s) { should eql('SELECT "id", "name", "age" FROM "users" WHERE "id" = 1 ORDER BY "id" DESC, "name" DESC, "age" DESC') }
51
- its(:to_subquery) { should eql('SELECT * FROM "users" WHERE "id" = 1 ORDER BY "id" DESC, "name" DESC, "age" DESC') }
60
+ its(:to_subquery) { should eql('(SELECT * FROM "users" WHERE "id" = 1 ORDER BY "id" DESC, "name" DESC, "age" DESC)') }
61
+ end
62
+
63
+ context 'when the operand is a summarization' do
64
+ context 'summarize per table dee' do
65
+ let(:summarize_per) { TABLE_DEE }
66
+ let(:operand) { base_relation.summarize(summarize_per) { |r| r.add(:count, r[:id].count) }.order }
67
+
68
+ it_should_behave_like 'a generated SQL SELECT query'
69
+
70
+ its(:to_s) { should eql('SELECT COUNT ("id") AS "count" FROM "users" ORDER BY "count" DESC') }
71
+ its(:to_subquery) { should eql('(SELECT COUNT ("id") AS "count" FROM "users" ORDER BY "count" DESC)') }
72
+ end
73
+
74
+ context 'summarize per table dum' do
75
+ let(:summarize_per) { TABLE_DUM }
76
+ let(:operand) { base_relation.summarize(summarize_per) { |r| r.add(:count, r[:id].count) }.order }
77
+
78
+ it_should_behave_like 'a generated SQL SELECT query'
79
+
80
+ its(:to_s) { should eql('SELECT COUNT ("id") AS "count" FROM "users" HAVING FALSE ORDER BY "count" DESC') }
81
+ its(:to_subquery) { should eql('(SELECT COUNT ("id") AS "count" FROM "users" HAVING FALSE ORDER BY "count" DESC)') }
82
+ end
83
+
84
+ context 'summarize by a subset of the operand header' do
85
+ let(:operand) { base_relation.summarize([ :id, :name ]) { |r| r.add(:count, r[:age].count) }.order }
86
+
87
+ it_should_behave_like 'a generated SQL SELECT query'
88
+
89
+ its(:to_s) { should eql('SELECT "id", "name", COUNT ("age") AS "count" FROM "users" GROUP BY "id", "name" HAVING COUNT (*) > 0 ORDER BY "id" DESC, "name" DESC, "count" DESC') }
90
+ its(:to_subquery) { should eql('(SELECT "id", "name", COUNT ("age") AS "count" FROM "users" GROUP BY "id", "name" HAVING COUNT (*) > 0 ORDER BY "id" DESC, "name" DESC, "count" DESC)') }
91
+ end
52
92
  end
53
93
 
54
94
  context 'when the operand is ordered' do
@@ -57,7 +97,7 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
57
97
  it_should_behave_like 'a generated SQL SELECT query'
58
98
 
59
99
  its(:to_s) { should eql('SELECT "id", "name", "age" FROM "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
60
- its(:to_subquery) { should eql('SELECT * FROM "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
100
+ its(:to_subquery) { should eql('(SELECT * FROM "users" ORDER BY "id" DESC, "name" DESC, "age" DESC)') }
61
101
  end
62
102
 
63
103
  context 'when the operand is reversed' do
@@ -66,7 +106,7 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
66
106
  it_should_behave_like 'a generated SQL SELECT query'
67
107
 
68
108
  its(:to_s) { should eql('SELECT "id", "name", "age" FROM "users" ORDER BY "id", "name", "age"') }
69
- its(:to_subquery) { should eql('SELECT * FROM "users" ORDER BY "id", "name", "age"') }
109
+ its(:to_subquery) { should eql('(SELECT * FROM "users" ORDER BY "id", "name", "age")') }
70
110
  end
71
111
 
72
112
  context 'when the operand is limited' do
@@ -75,7 +115,7 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
75
115
  it_should_behave_like 'a generated SQL SELECT query'
76
116
 
77
117
  its(:to_s) { should eql('SELECT "id", "name", "age" FROM (SELECT * FROM "users" ORDER BY "id", "name", "age" LIMIT 1) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
78
- its(:to_subquery) { should eql('SELECT * FROM (SELECT * FROM "users" ORDER BY "id", "name", "age" LIMIT 1) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
118
+ its(:to_subquery) { should eql('(SELECT * FROM (SELECT * FROM "users" ORDER BY "id", "name", "age" LIMIT 1) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC)') }
79
119
  end
80
120
 
81
121
  context 'when the operand is an offset' do
@@ -84,7 +124,7 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
84
124
  it_should_behave_like 'a generated SQL SELECT query'
85
125
 
86
126
  its(:to_s) { should eql('SELECT "id", "name", "age" FROM (SELECT * FROM "users" ORDER BY "id", "name", "age" OFFSET 1) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
87
- its(:to_subquery) { should eql('SELECT * FROM (SELECT * FROM "users" ORDER BY "id", "name", "age" OFFSET 1) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
127
+ its(:to_subquery) { should eql('(SELECT * FROM (SELECT * FROM "users" ORDER BY "id", "name", "age" OFFSET 1) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC)') }
88
128
  end
89
129
 
90
130
  context 'when the operand is a difference' do
@@ -92,8 +132,8 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
92
132
 
93
133
  it_should_behave_like 'a generated SQL SELECT query'
94
134
 
95
- its(:to_s) { should eql('SELECT "id", "name", "age" FROM ((SELECT * FROM "users") EXCEPT (SELECT * FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
96
- its(:to_subquery) { should eql('SELECT * FROM ((SELECT * FROM "users") EXCEPT (SELECT * FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
135
+ its(:to_s) { should eql('SELECT "id", "name", "age" FROM ((SELECT "id", "name", "age" FROM "users") EXCEPT (SELECT "id", "name", "age" FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
136
+ its(:to_subquery) { should eql('(SELECT * FROM ((SELECT "id", "name", "age" FROM "users") EXCEPT (SELECT "id", "name", "age" FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC)') }
97
137
  end
98
138
 
99
139
  context 'when the operand is an intersection' do
@@ -101,8 +141,8 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
101
141
 
102
142
  it_should_behave_like 'a generated SQL SELECT query'
103
143
 
104
- its(:to_s) { should eql('SELECT "id", "name", "age" FROM ((SELECT * FROM "users") INTERSECT (SELECT * FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
105
- its(:to_subquery) { should eql('SELECT * FROM ((SELECT * FROM "users") INTERSECT (SELECT * FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
144
+ its(:to_s) { should eql('SELECT "id", "name", "age" FROM ((SELECT "id", "name", "age" FROM "users") INTERSECT (SELECT "id", "name", "age" FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
145
+ its(:to_subquery) { should eql('(SELECT * FROM ((SELECT "id", "name", "age" FROM "users") INTERSECT (SELECT "id", "name", "age" FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC)') }
106
146
  end
107
147
 
108
148
  context 'when the operand is a union' do
@@ -110,8 +150,8 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
110
150
 
111
151
  it_should_behave_like 'a generated SQL SELECT query'
112
152
 
113
- its(:to_s) { should eql('SELECT "id", "name", "age" FROM ((SELECT * FROM "users") UNION (SELECT * FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
114
- its(:to_subquery) { should eql('SELECT * FROM ((SELECT * FROM "users") UNION (SELECT * FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
153
+ its(:to_s) { should eql('SELECT "id", "name", "age" FROM ((SELECT "id", "name", "age" FROM "users") UNION (SELECT "id", "name", "age" FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
154
+ its(:to_subquery) { should eql('(SELECT * FROM ((SELECT "id", "name", "age" FROM "users") UNION (SELECT "id", "name", "age" FROM "users")) AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC)') }
115
155
  end
116
156
 
117
157
  context 'when the operand is a join' do
@@ -119,7 +159,7 @@ describe SQL::Generator::Relation::Unary, '#visit_veritas_relation_operation_rev
119
159
 
120
160
  it_should_behave_like 'a generated SQL SELECT query'
121
161
 
122
- its(:to_s) { should eql('SELECT "id", "name", "age" FROM (SELECT * FROM "users" NATURAL JOIN "users") AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
123
- its(:to_subquery) { should eql('SELECT * FROM (SELECT * FROM "users" NATURAL JOIN "users") AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
162
+ its(:to_s) { should eql('SELECT "id", "name", "age" FROM (SELECT * FROM "users" AS "left" NATURAL JOIN "users" AS "right") AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC') }
163
+ its(:to_subquery) { should eql('(SELECT * FROM (SELECT * FROM "users" AS "left" NATURAL JOIN "users" AS "right") AS "users" ORDER BY "id" DESC, "name" DESC, "age" DESC)') }
124
164
  end
125
165
  end
@@ -10,7 +10,7 @@ describe SQL::Generator::Relation, '#visited?' do
10
10
  let(:age) { Attribute::Integer.new(:age, :required => false) }
11
11
  let(:header) { [ id, name, age ] }
12
12
  let(:body) { [ [ 1, 'Dan Kubb', 35 ] ].each }
13
- let(:base_relation) { BaseRelation.new('users', header, body) }
13
+ let(:base_relation) { Relation::Base.new('users', header, body) }
14
14
  let(:object) { described_class.new }
15
15
 
16
16
  context 'when name is nil' do
@@ -0,0 +1,7 @@
1
+ desc 'Run metrics with Heckle'
2
+ task :ci => [ 'ci:metrics', :heckle ]
3
+
4
+ namespace :ci do
5
+ desc 'Run metrics'
6
+ task :metrics => [ :verify_measurements, :flog, :flay, :reek, :roodi, 'metrics:all' ]
7
+ end
File without changes
File without changes
@@ -5,6 +5,7 @@ $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
5
5
 
6
6
  begin
7
7
  require 'pathname'
8
+ require 'backports'
8
9
  require 'active_support/inflector'
9
10
  require 'heckle'
10
11
  require 'mspec'
@@ -2,6 +2,9 @@ begin
2
2
  require 'metric_fu'
3
3
  require 'json'
4
4
 
5
+ # XXX: temporary hack until metric_fu is fixed
6
+ MetricFu::Saikuro.class_eval { include FileUtils }
7
+
5
8
  MetricFu::Configuration.run do |config|
6
9
  config.rcov = {
7
10
  :environment => 'test',
File without changes
File without changes
@@ -35,4 +35,5 @@ rescue LoadError
35
35
  end
36
36
  end
37
37
 
38
+ task :test => :spec
38
39
  task :default => :spec
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{veritas-sql-generator}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Dan Kubb"]
12
- s.date = %q{2011-04-22}
11
+ s.authors = [%q{Dan Kubb}]
12
+ s.date = %q{2011-06-01}
13
13
  s.description = %q{Generate SQL from a veritas relation}
14
14
  s.email = %q{dan.kubb@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -18,7 +18,11 @@ Gem::Specification.new do |s|
18
18
  "TODO"
19
19
  ]
20
20
  s.files = [
21
+ ".gemtest",
22
+ ".rvmrc",
23
+ ".travis.yml",
21
24
  "Gemfile",
25
+ "Guardfile",
22
26
  "LICENSE",
23
27
  "README.rdoc",
24
28
  "Rakefile",
@@ -29,13 +33,20 @@ Gem::Specification.new do |s|
29
33
  "config/site.reek",
30
34
  "config/yardstick.yml",
31
35
  "lib/veritas-sql-generator.rb",
32
- "lib/veritas/base_relation.rb",
33
36
  "lib/veritas/sql/generator.rb",
34
37
  "lib/veritas/sql/generator/attribute.rb",
38
+ "lib/veritas/sql/generator/core_ext/date.rb",
39
+ "lib/veritas/sql/generator/core_ext/date_time.rb",
35
40
  "lib/veritas/sql/generator/direction.rb",
41
+ "lib/veritas/sql/generator/function.rb",
42
+ "lib/veritas/sql/generator/function/aggregate.rb",
43
+ "lib/veritas/sql/generator/function/connective.rb",
44
+ "lib/veritas/sql/generator/function/numeric.rb",
45
+ "lib/veritas/sql/generator/function/predicate.rb",
46
+ "lib/veritas/sql/generator/function/proposition.rb",
47
+ "lib/veritas/sql/generator/function/string.rb",
36
48
  "lib/veritas/sql/generator/identifier.rb",
37
49
  "lib/veritas/sql/generator/literal.rb",
38
- "lib/veritas/sql/generator/logic.rb",
39
50
  "lib/veritas/sql/generator/relation.rb",
40
51
  "lib/veritas/sql/generator/relation/base.rb",
41
52
  "lib/veritas/sql/generator/relation/binary.rb",
@@ -49,10 +60,43 @@ Gem::Specification.new do |s|
49
60
  "spec/shared/idempotent_method_behavior.rb",
50
61
  "spec/spec.opts",
51
62
  "spec/spec_helper.rb",
52
- "spec/unit/veritas/base_relation/name_spec.rb",
63
+ "spec/unit/date/iso8601_spec.rb",
64
+ "spec/unit/date_time/iso_8601_spec.rb",
53
65
  "spec/unit/veritas/sql/generator/attribute/visit_veritas_attribute_spec.rb",
66
+ "spec/unit/veritas/sql/generator/class_methods/parenthesize_spec.rb",
54
67
  "spec/unit/veritas/sql/generator/direction/visit_veritas_relation_operation_order_ascending_spec.rb",
55
68
  "spec/unit/veritas/sql/generator/direction/visit_veritas_relation_operation_order_descending_spec.rb",
69
+ "spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_count_spec.rb",
70
+ "spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_maximum_spec.rb",
71
+ "spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_mean_spec.rb",
72
+ "spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_minimum_spec.rb",
73
+ "spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_standard_deviation_spec.rb",
74
+ "spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_sum_spec.rb",
75
+ "spec/unit/veritas/sql/generator/function/aggregate/visit_veritas_aggregate_variance_spec.rb",
76
+ "spec/unit/veritas/sql/generator/function/connective/visit_veritas_function_connective_conjunction_spec.rb",
77
+ "spec/unit/veritas/sql/generator/function/connective/visit_veritas_function_connective_disjunction_spec.rb",
78
+ "spec/unit/veritas/sql/generator/function/connective/visit_veritas_function_connective_negation_spec.rb",
79
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_absolute_spec.rb",
80
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_addition_spec.rb",
81
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_division_spec.rb",
82
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_exponentiation_spec.rb",
83
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_modulo_spec.rb",
84
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_multiplication_spec.rb",
85
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_square_root_spec.rb",
86
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_subtraction_spec.rb",
87
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_unary_minus_spec.rb",
88
+ "spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_unary_plus_spec.rb",
89
+ "spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_equality_spec.rb",
90
+ "spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_exclusion_spec.rb",
91
+ "spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_greater_than_or_equal_to_spec.rb",
92
+ "spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_greater_than_spec.rb",
93
+ "spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_inclusion_spec.rb",
94
+ "spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_inequality_spec.rb",
95
+ "spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_less_than_or_equal_to_spec.rb",
96
+ "spec/unit/veritas/sql/generator/function/predicate/visit_veritas_function_predicate_less_than_spec.rb",
97
+ "spec/unit/veritas/sql/generator/function/proposition/visit_veritas_function_proposition_contradiction_spec.rb",
98
+ "spec/unit/veritas/sql/generator/function/proposition/visit_veritas_function_proposition_tautology_spec.rb",
99
+ "spec/unit/veritas/sql/generator/function/string/visit_veritas_function_string_length_spec.rb",
56
100
  "spec/unit/veritas/sql/generator/identifier/visit_identifier_spec.rb",
57
101
  "spec/unit/veritas/sql/generator/literal/class_methods/dup_frozen_spec.rb",
58
102
  "spec/unit/veritas/sql/generator/literal/visit_class_spec.rb",
@@ -65,41 +109,31 @@ Gem::Specification.new do |s|
65
109
  "spec/unit/veritas/sql/generator/literal/visit_string_spec.rb",
66
110
  "spec/unit/veritas/sql/generator/literal/visit_time_spec.rb",
67
111
  "spec/unit/veritas/sql/generator/literal/visit_true_class_spec.rb",
68
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_connective_conjunction_spec.rb",
69
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_connective_disjunction_spec.rb",
70
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_connective_negation_spec.rb",
71
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_equality_spec.rb",
72
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_exclusion_spec.rb",
73
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_greater_than_or_equal_to_spec.rb",
74
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_greater_than_spec.rb",
75
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_inclusion_spec.rb",
76
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_inequality_spec.rb",
77
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_less_than_or_equal_to_spec.rb",
78
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_less_than_spec.rb",
79
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_proposition_contradiction_spec.rb",
80
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_proposition_tautology_spec.rb",
81
112
  "spec/unit/veritas/sql/generator/relation/binary/base/to_subquery_spec.rb",
82
- "spec/unit/veritas/sql/generator/relation/binary/base/visit_veritas_base_relation_spec.rb",
83
- "spec/unit/veritas/sql/generator/relation/binary/class_methods/subquery_spec.rb",
113
+ "spec/unit/veritas/sql/generator/relation/binary/base/visit_veritas_relation_base_spec.rb",
84
114
  "spec/unit/veritas/sql/generator/relation/binary/to_s_spec.rb",
85
115
  "spec/unit/veritas/sql/generator/relation/binary/to_subquery_spec.rb",
86
116
  "spec/unit/veritas/sql/generator/relation/binary/visit_veritas_algebra_join_spec.rb",
87
117
  "spec/unit/veritas/sql/generator/relation/binary/visit_veritas_algebra_product_spec.rb",
88
- "spec/unit/veritas/sql/generator/relation/class_methods/subquery_spec.rb",
89
118
  "spec/unit/veritas/sql/generator/relation/class_methods/visit_spec.rb",
90
119
  "spec/unit/veritas/sql/generator/relation/name_spec.rb",
120
+ "spec/unit/veritas/sql/generator/relation/set/class_methods/normalize_operand_headers_spec.rb",
91
121
  "spec/unit/veritas/sql/generator/relation/set/to_s_spec.rb",
92
122
  "spec/unit/veritas/sql/generator/relation/set/to_subquery_spec.rb",
93
123
  "spec/unit/veritas/sql/generator/relation/set/visit_veritas_algebra_difference_spec.rb",
94
124
  "spec/unit/veritas/sql/generator/relation/set/visit_veritas_algebra_intersection_spec.rb",
95
125
  "spec/unit/veritas/sql/generator/relation/set/visit_veritas_algebra_union_spec.rb",
126
+ "spec/unit/veritas/sql/generator/relation/to_s_spec.rb",
96
127
  "spec/unit/veritas/sql/generator/relation/to_sql_spec.rb",
128
+ "spec/unit/veritas/sql/generator/relation/to_subquery_spec.rb",
97
129
  "spec/unit/veritas/sql/generator/relation/unary/to_s_spec.rb",
98
130
  "spec/unit/veritas/sql/generator/relation/unary/to_subquery_spec.rb",
131
+ "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_extension_spec.rb",
99
132
  "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_projection_spec.rb",
100
133
  "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_rename_spec.rb",
101
134
  "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_restriction_spec.rb",
102
- "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_base_relation_spec.rb",
135
+ "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_summarization_spec.rb",
136
+ "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_base_spec.rb",
103
137
  "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_limit_spec.rb",
104
138
  "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_offset_spec.rb",
105
139
  "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_order_spec.rb",
@@ -109,114 +143,48 @@ Gem::Specification.new do |s|
109
143
  "spec/unit/veritas/sql/generator/visitor/class_methods/handler_for_spec.rb",
110
144
  "spec/unit/veritas/sql/generator/visitor/visit_spec.rb",
111
145
  "spec/unit/veritas/sql/generator/visitor/visited_spec.rb",
112
- "tasks/quality/ci.rake",
113
- "tasks/quality/flay.rake",
114
- "tasks/quality/flog.rake",
115
- "tasks/quality/heckle.rake",
116
- "tasks/quality/metric_fu.rake",
117
- "tasks/quality/reek.rake",
118
- "tasks/quality/roodi.rake",
119
- "tasks/quality/yardstick.rake",
146
+ "tasks/metrics/ci.rake",
147
+ "tasks/metrics/flay.rake",
148
+ "tasks/metrics/flog.rake",
149
+ "tasks/metrics/heckle.rake",
150
+ "tasks/metrics/metric_fu.rake",
151
+ "tasks/metrics/reek.rake",
152
+ "tasks/metrics/roodi.rake",
153
+ "tasks/metrics/yardstick.rake",
120
154
  "tasks/spec.rake",
121
155
  "tasks/yard.rake",
122
156
  "veritas-sql-generator.gemspec"
123
157
  ]
124
158
  s.homepage = %q{https://github.com/dkubb/veritas-sql-generator}
125
- s.require_paths = ["lib"]
126
- s.rubygems_version = %q{1.7.2}
159
+ s.require_paths = [%q{lib}]
160
+ s.rubygems_version = %q{1.8.5}
127
161
  s.summary = %q{Relational algebra SQL generator}
128
- s.test_files = [
129
- "spec/shared/command_method_behavior.rb",
130
- "spec/shared/generated_sql_behavior.rb",
131
- "spec/shared/idempotent_method_behavior.rb",
132
- "spec/spec_helper.rb",
133
- "spec/unit/veritas/base_relation/name_spec.rb",
134
- "spec/unit/veritas/sql/generator/attribute/visit_veritas_attribute_spec.rb",
135
- "spec/unit/veritas/sql/generator/direction/visit_veritas_relation_operation_order_ascending_spec.rb",
136
- "spec/unit/veritas/sql/generator/direction/visit_veritas_relation_operation_order_descending_spec.rb",
137
- "spec/unit/veritas/sql/generator/identifier/visit_identifier_spec.rb",
138
- "spec/unit/veritas/sql/generator/literal/class_methods/dup_frozen_spec.rb",
139
- "spec/unit/veritas/sql/generator/literal/visit_class_spec.rb",
140
- "spec/unit/veritas/sql/generator/literal/visit_date_spec.rb",
141
- "spec/unit/veritas/sql/generator/literal/visit_date_time_spec.rb",
142
- "spec/unit/veritas/sql/generator/literal/visit_enumerable_spec.rb",
143
- "spec/unit/veritas/sql/generator/literal/visit_false_class_spec.rb",
144
- "spec/unit/veritas/sql/generator/literal/visit_nil_class_spec.rb",
145
- "spec/unit/veritas/sql/generator/literal/visit_numeric_spec.rb",
146
- "spec/unit/veritas/sql/generator/literal/visit_string_spec.rb",
147
- "spec/unit/veritas/sql/generator/literal/visit_time_spec.rb",
148
- "spec/unit/veritas/sql/generator/literal/visit_true_class_spec.rb",
149
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_connective_conjunction_spec.rb",
150
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_connective_disjunction_spec.rb",
151
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_connective_negation_spec.rb",
152
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_equality_spec.rb",
153
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_exclusion_spec.rb",
154
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_greater_than_or_equal_to_spec.rb",
155
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_greater_than_spec.rb",
156
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_inclusion_spec.rb",
157
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_inequality_spec.rb",
158
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_less_than_or_equal_to_spec.rb",
159
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_predicate_less_than_spec.rb",
160
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_proposition_contradiction_spec.rb",
161
- "spec/unit/veritas/sql/generator/logic/visit_veritas_logic_proposition_tautology_spec.rb",
162
- "spec/unit/veritas/sql/generator/relation/binary/base/to_subquery_spec.rb",
163
- "spec/unit/veritas/sql/generator/relation/binary/base/visit_veritas_base_relation_spec.rb",
164
- "spec/unit/veritas/sql/generator/relation/binary/class_methods/subquery_spec.rb",
165
- "spec/unit/veritas/sql/generator/relation/binary/to_s_spec.rb",
166
- "spec/unit/veritas/sql/generator/relation/binary/to_subquery_spec.rb",
167
- "spec/unit/veritas/sql/generator/relation/binary/visit_veritas_algebra_join_spec.rb",
168
- "spec/unit/veritas/sql/generator/relation/binary/visit_veritas_algebra_product_spec.rb",
169
- "spec/unit/veritas/sql/generator/relation/class_methods/subquery_spec.rb",
170
- "spec/unit/veritas/sql/generator/relation/class_methods/visit_spec.rb",
171
- "spec/unit/veritas/sql/generator/relation/name_spec.rb",
172
- "spec/unit/veritas/sql/generator/relation/set/to_s_spec.rb",
173
- "spec/unit/veritas/sql/generator/relation/set/to_subquery_spec.rb",
174
- "spec/unit/veritas/sql/generator/relation/set/visit_veritas_algebra_difference_spec.rb",
175
- "spec/unit/veritas/sql/generator/relation/set/visit_veritas_algebra_intersection_spec.rb",
176
- "spec/unit/veritas/sql/generator/relation/set/visit_veritas_algebra_union_spec.rb",
177
- "spec/unit/veritas/sql/generator/relation/to_sql_spec.rb",
178
- "spec/unit/veritas/sql/generator/relation/unary/to_s_spec.rb",
179
- "spec/unit/veritas/sql/generator/relation/unary/to_subquery_spec.rb",
180
- "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_projection_spec.rb",
181
- "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_rename_spec.rb",
182
- "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_algebra_restriction_spec.rb",
183
- "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_base_relation_spec.rb",
184
- "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_limit_spec.rb",
185
- "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_offset_spec.rb",
186
- "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_order_spec.rb",
187
- "spec/unit/veritas/sql/generator/relation/unary/visit_veritas_relation_operation_reverse_spec.rb",
188
- "spec/unit/veritas/sql/generator/relation/visit_spec.rb",
189
- "spec/unit/veritas/sql/generator/relation/visited_spec.rb",
190
- "spec/unit/veritas/sql/generator/visitor/class_methods/handler_for_spec.rb",
191
- "spec/unit/veritas/sql/generator/visitor/visit_spec.rb",
192
- "spec/unit/veritas/sql/generator/visitor/visited_spec.rb"
193
- ]
194
162
 
195
163
  if s.respond_to? :specification_version then
196
164
  s.specification_version = 3
197
165
 
198
166
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
199
- s.add_runtime_dependency(%q<veritas>, ["= 0.0.3"])
200
- s.add_development_dependency(%q<backports>, ["~> 2.1.0"])
201
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
202
- s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
167
+ s.add_runtime_dependency(%q<veritas>, ["= 0.0.4"])
168
+ s.add_development_dependency(%q<backports>, ["~> 2.2.1"])
169
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
170
+ s.add_development_dependency(%q<rake>, ["~> 0.9.0"])
203
171
  s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
204
- s.add_development_dependency(%q<yard>, ["~> 0.6.8"])
172
+ s.add_development_dependency(%q<yard>, ["~> 0.7.1"])
205
173
  else
206
- s.add_dependency(%q<veritas>, ["= 0.0.3"])
207
- s.add_dependency(%q<backports>, ["~> 2.1.0"])
208
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
209
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
174
+ s.add_dependency(%q<veritas>, ["= 0.0.4"])
175
+ s.add_dependency(%q<backports>, ["~> 2.2.1"])
176
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
177
+ s.add_dependency(%q<rake>, ["~> 0.9.0"])
210
178
  s.add_dependency(%q<rspec>, ["~> 1.3.2"])
211
- s.add_dependency(%q<yard>, ["~> 0.6.8"])
179
+ s.add_dependency(%q<yard>, ["~> 0.7.1"])
212
180
  end
213
181
  else
214
- s.add_dependency(%q<veritas>, ["= 0.0.3"])
215
- s.add_dependency(%q<backports>, ["~> 2.1.0"])
216
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
217
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
182
+ s.add_dependency(%q<veritas>, ["= 0.0.4"])
183
+ s.add_dependency(%q<backports>, ["~> 2.2.1"])
184
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
185
+ s.add_dependency(%q<rake>, ["~> 0.9.0"])
218
186
  s.add_dependency(%q<rspec>, ["~> 1.3.2"])
219
- s.add_dependency(%q<yard>, ["~> 0.6.8"])
187
+ s.add_dependency(%q<yard>, ["~> 0.7.1"])
220
188
  end
221
189
  end
222
190