arel 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +1 -0
- data/lib/arel.rb +1 -1
- data/lib/arel/visitors/postgresql.rb +4 -0
- data/spec/visitors/postgres_spec.rb +17 -0
- metadata +4 -3
data/Manifest.txt
CHANGED
data/lib/arel.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Arel
|
4
|
+
module Visitors
|
5
|
+
describe 'the postgres visitor' do
|
6
|
+
before do
|
7
|
+
@visitor = PostgreSQL.new Table.engine
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should produce a lock value' do
|
11
|
+
@visitor.accept(Nodes::Lock.new).should be_like %{
|
12
|
+
FOR UPDATE
|
13
|
+
}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 1
|
10
|
+
version: 2.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Patterson
|
@@ -189,6 +189,7 @@ files:
|
|
189
189
|
- spec/update_manager_spec.rb
|
190
190
|
- spec/visitors/join_sql_spec.rb
|
191
191
|
- spec/visitors/oracle_spec.rb
|
192
|
+
- spec/visitors/postgres_spec.rb
|
192
193
|
- spec/visitors/to_sql_spec.rb
|
193
194
|
has_rdoc: true
|
194
195
|
homepage: http://github.com/rails/arel
|