arel 6.0.0.beta1 → 6.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/.travis.yml +3 -1
- data/Gemfile +2 -9
- data/README.markdown +1 -1
- data/Rakefile +11 -16
- data/arel.gemspec +17 -33
- data/lib/arel.rb +1 -1
- data/lib/arel/nodes.rb +1 -0
- data/lib/arel/nodes/binary.rb +1 -3
- data/lib/arel/nodes/extract.rb +4 -11
- data/lib/arel/nodes/matches.rb +14 -0
- data/lib/arel/predications.rb +88 -61
- data/lib/arel/select_manager.rb +9 -0
- data/lib/arel/visitors/depth_first.rb +5 -0
- data/lib/arel/visitors/dot.rb +2 -0
- data/lib/arel/visitors/informix.rb +1 -1
- data/lib/arel/visitors/mysql.rb +1 -6
- data/lib/arel/visitors/oracle.rb +1 -1
- data/lib/arel/visitors/reduce.rb +4 -4
- data/lib/arel/visitors/to_sql.rb +35 -31
- data/lib/arel/visitors/visitor.rb +19 -12
- data/lib/arel/visitors/where_sql.rb +2 -0
- data/test/attributes/test_attribute.rb +246 -9
- data/test/nodes/test_binary.rb +26 -0
- data/test/nodes/test_extract.rb +8 -0
- data/test/test_select_manager.rb +23 -4
- data/test/visitors/test_bind_visitor.rb +0 -6
- data/test/visitors/test_depth_first.rb +8 -0
- data/test/visitors/test_informix.rb +6 -6
- data/test/visitors/test_oracle.rb +10 -0
- data/test/visitors/test_to_sql.rb +45 -19
- metadata +16 -82
- data/.autotest +0 -26
- data/.gemtest +0 -0
- data/Manifest.txt +0 -135
data/.autotest
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
# require 'autotest/restart'
|
4
|
-
|
5
|
-
ENV['GEM_PATH'] = "tmp/isolate/ruby-1.8"
|
6
|
-
|
7
|
-
module Autotest::Restart
|
8
|
-
Autotest.add_hook :updated do |at, *args|
|
9
|
-
if args.flatten.include? ".autotest" then
|
10
|
-
warn "Detected change to .autotest, restarting"
|
11
|
-
cmd = %w(autotest)
|
12
|
-
cmd << " -v" if $v
|
13
|
-
cmd += ARGV
|
14
|
-
|
15
|
-
exec(*cmd)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
Autotest.add_hook :initialize do |at|
|
21
|
-
at.add_exception 'tmp'
|
22
|
-
at.testlib = "minitest/autorun"
|
23
|
-
|
24
|
-
at.find_directories = ARGV unless ARGV.empty?
|
25
|
-
end
|
26
|
-
|
data/.gemtest
DELETED
File without changes
|
data/Manifest.txt
DELETED
@@ -1,135 +0,0 @@
|
|
1
|
-
.autotest
|
2
|
-
.gemtest
|
3
|
-
.travis.yml
|
4
|
-
Gemfile
|
5
|
-
History.txt
|
6
|
-
MIT-LICENSE.txt
|
7
|
-
Manifest.txt
|
8
|
-
README.markdown
|
9
|
-
Rakefile
|
10
|
-
arel.gemspec
|
11
|
-
lib/arel.rb
|
12
|
-
lib/arel/alias_predication.rb
|
13
|
-
lib/arel/attributes.rb
|
14
|
-
lib/arel/attributes/attribute.rb
|
15
|
-
lib/arel/collectors/bind.rb
|
16
|
-
lib/arel/collectors/plain_string.rb
|
17
|
-
lib/arel/collectors/sql_string.rb
|
18
|
-
lib/arel/compatibility/wheres.rb
|
19
|
-
lib/arel/crud.rb
|
20
|
-
lib/arel/delete_manager.rb
|
21
|
-
lib/arel/expressions.rb
|
22
|
-
lib/arel/factory_methods.rb
|
23
|
-
lib/arel/insert_manager.rb
|
24
|
-
lib/arel/math.rb
|
25
|
-
lib/arel/nodes.rb
|
26
|
-
lib/arel/nodes/and.rb
|
27
|
-
lib/arel/nodes/ascending.rb
|
28
|
-
lib/arel/nodes/binary.rb
|
29
|
-
lib/arel/nodes/count.rb
|
30
|
-
lib/arel/nodes/delete_statement.rb
|
31
|
-
lib/arel/nodes/descending.rb
|
32
|
-
lib/arel/nodes/equality.rb
|
33
|
-
lib/arel/nodes/extract.rb
|
34
|
-
lib/arel/nodes/false.rb
|
35
|
-
lib/arel/nodes/full_outer_join.rb
|
36
|
-
lib/arel/nodes/function.rb
|
37
|
-
lib/arel/nodes/grouping.rb
|
38
|
-
lib/arel/nodes/in.rb
|
39
|
-
lib/arel/nodes/infix_operation.rb
|
40
|
-
lib/arel/nodes/inner_join.rb
|
41
|
-
lib/arel/nodes/insert_statement.rb
|
42
|
-
lib/arel/nodes/join_source.rb
|
43
|
-
lib/arel/nodes/named_function.rb
|
44
|
-
lib/arel/nodes/node.rb
|
45
|
-
lib/arel/nodes/outer_join.rb
|
46
|
-
lib/arel/nodes/over.rb
|
47
|
-
lib/arel/nodes/right_outer_join.rb
|
48
|
-
lib/arel/nodes/select_core.rb
|
49
|
-
lib/arel/nodes/select_statement.rb
|
50
|
-
lib/arel/nodes/sql_literal.rb
|
51
|
-
lib/arel/nodes/string_join.rb
|
52
|
-
lib/arel/nodes/table_alias.rb
|
53
|
-
lib/arel/nodes/terminal.rb
|
54
|
-
lib/arel/nodes/true.rb
|
55
|
-
lib/arel/nodes/unary.rb
|
56
|
-
lib/arel/nodes/unqualified_column.rb
|
57
|
-
lib/arel/nodes/update_statement.rb
|
58
|
-
lib/arel/nodes/values.rb
|
59
|
-
lib/arel/nodes/window.rb
|
60
|
-
lib/arel/nodes/with.rb
|
61
|
-
lib/arel/order_predications.rb
|
62
|
-
lib/arel/predications.rb
|
63
|
-
lib/arel/select_manager.rb
|
64
|
-
lib/arel/table.rb
|
65
|
-
lib/arel/tree_manager.rb
|
66
|
-
lib/arel/update_manager.rb
|
67
|
-
lib/arel/visitors.rb
|
68
|
-
lib/arel/visitors/bind_substitute.rb
|
69
|
-
lib/arel/visitors/bind_visitor.rb
|
70
|
-
lib/arel/visitors/depth_first.rb
|
71
|
-
lib/arel/visitors/dot.rb
|
72
|
-
lib/arel/visitors/ibm_db.rb
|
73
|
-
lib/arel/visitors/informix.rb
|
74
|
-
lib/arel/visitors/mssql.rb
|
75
|
-
lib/arel/visitors/mysql.rb
|
76
|
-
lib/arel/visitors/oracle.rb
|
77
|
-
lib/arel/visitors/postgresql.rb
|
78
|
-
lib/arel/visitors/reduce.rb
|
79
|
-
lib/arel/visitors/sqlite.rb
|
80
|
-
lib/arel/visitors/to_sql.rb
|
81
|
-
lib/arel/visitors/visitor.rb
|
82
|
-
lib/arel/visitors/where_sql.rb
|
83
|
-
lib/arel/window_predications.rb
|
84
|
-
test/attributes/test_attribute.rb
|
85
|
-
test/collectors/test_bind_collector.rb
|
86
|
-
test/collectors/test_sql_string.rb
|
87
|
-
test/helper.rb
|
88
|
-
test/nodes/test_and.rb
|
89
|
-
test/nodes/test_as.rb
|
90
|
-
test/nodes/test_ascending.rb
|
91
|
-
test/nodes/test_bin.rb
|
92
|
-
test/nodes/test_count.rb
|
93
|
-
test/nodes/test_delete_statement.rb
|
94
|
-
test/nodes/test_descending.rb
|
95
|
-
test/nodes/test_distinct.rb
|
96
|
-
test/nodes/test_equality.rb
|
97
|
-
test/nodes/test_extract.rb
|
98
|
-
test/nodes/test_false.rb
|
99
|
-
test/nodes/test_grouping.rb
|
100
|
-
test/nodes/test_infix_operation.rb
|
101
|
-
test/nodes/test_insert_statement.rb
|
102
|
-
test/nodes/test_named_function.rb
|
103
|
-
test/nodes/test_node.rb
|
104
|
-
test/nodes/test_not.rb
|
105
|
-
test/nodes/test_or.rb
|
106
|
-
test/nodes/test_over.rb
|
107
|
-
test/nodes/test_select_core.rb
|
108
|
-
test/nodes/test_select_statement.rb
|
109
|
-
test/nodes/test_sql_literal.rb
|
110
|
-
test/nodes/test_sum.rb
|
111
|
-
test/nodes/test_table_alias.rb
|
112
|
-
test/nodes/test_true.rb
|
113
|
-
test/nodes/test_update_statement.rb
|
114
|
-
test/nodes/test_window.rb
|
115
|
-
test/support/fake_record.rb
|
116
|
-
test/test_attributes.rb
|
117
|
-
test/test_crud.rb
|
118
|
-
test/test_delete_manager.rb
|
119
|
-
test/test_factory_methods.rb
|
120
|
-
test/test_insert_manager.rb
|
121
|
-
test/test_select_manager.rb
|
122
|
-
test/test_table.rb
|
123
|
-
test/test_update_manager.rb
|
124
|
-
test/visitors/test_bind_visitor.rb
|
125
|
-
test/visitors/test_depth_first.rb
|
126
|
-
test/visitors/test_dispatch_contamination.rb
|
127
|
-
test/visitors/test_dot.rb
|
128
|
-
test/visitors/test_ibm_db.rb
|
129
|
-
test/visitors/test_informix.rb
|
130
|
-
test/visitors/test_mssql.rb
|
131
|
-
test/visitors/test_mysql.rb
|
132
|
-
test/visitors/test_oracle.rb
|
133
|
-
test/visitors/test_postgres.rb
|
134
|
-
test/visitors/test_sqlite.rb
|
135
|
-
test/visitors/test_to_sql.rb
|