activerecord-postgis-adapter 7.1.0 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40546b155985259941dab5c7fef8ec7f0d4959a29087044a133c4918929d7e2f
|
4
|
+
data.tar.gz: b80326260c605d158e4647caa361d07000c622140ae90e505f97a0576f2ce26a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b3aee9a59f53669fe3e44c1f471f30f3e37f20b0a18bb920ac46535e264f573492da49c268d04a037b959517018584aa69c6fe1d9f45b211b3a55ed8d19a1d2
|
7
|
+
data.tar.gz: af501e0d2e9e3cc0990c67812fa9fc1fc2202ba9f15ed5f6a69dfe4e73709ef4cc339c9846ee60a804e6f5f2a5bf754d6f4082508a1cbd17dfa3e7c9f985c5f2
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveRecord
|
4
|
+
module ConnectionAdapters # :nodoc:
|
5
|
+
module PostGIS
|
6
|
+
module DatabaseStatements
|
7
|
+
def truncate_tables(*table_names)
|
8
|
+
table_names -= ["spatial_ref_sys"]
|
9
|
+
super(*table_names)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -12,6 +12,7 @@ require "active_record/connection_adapters/postgresql_adapter"
|
|
12
12
|
require "active_record/connection_adapters/postgis/version"
|
13
13
|
require "active_record/connection_adapters/postgis/column_methods"
|
14
14
|
require "active_record/connection_adapters/postgis/schema_statements"
|
15
|
+
require "active_record/connection_adapters/postgis/database_statements"
|
15
16
|
require "active_record/connection_adapters/postgis/spatial_column_info"
|
16
17
|
require "active_record/connection_adapters/postgis/spatial_table_definition"
|
17
18
|
require "active_record/connection_adapters/postgis/spatial_column"
|
@@ -53,6 +54,7 @@ module ActiveRecord
|
|
53
54
|
DEFAULT_SRID = 0
|
54
55
|
|
55
56
|
include PostGIS::SchemaStatements
|
57
|
+
include PostGIS::DatabaseStatements
|
56
58
|
|
57
59
|
def arel_visitor # :nodoc:
|
58
60
|
Arel::Visitors::PostGIS.new(self)
|
@@ -89,6 +91,14 @@ module ActiveRecord
|
|
89
91
|
end
|
90
92
|
end
|
91
93
|
|
94
|
+
def quote_default_expression(value, column)
|
95
|
+
if column.type == :geography || column.type == :geometry
|
96
|
+
quote(value)
|
97
|
+
else
|
98
|
+
super
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
92
102
|
# PostGIS specific types
|
93
103
|
[
|
94
104
|
:geography,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-postgis-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-08-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -110,6 +110,7 @@ files:
|
|
110
110
|
- lib/active_record/connection_adapters/postgis/arel_tosql.rb
|
111
111
|
- lib/active_record/connection_adapters/postgis/column_methods.rb
|
112
112
|
- lib/active_record/connection_adapters/postgis/create_connection.rb
|
113
|
+
- lib/active_record/connection_adapters/postgis/database_statements.rb
|
113
114
|
- lib/active_record/connection_adapters/postgis/databases.rake
|
114
115
|
- lib/active_record/connection_adapters/postgis/oid/spatial.rb
|
115
116
|
- lib/active_record/connection_adapters/postgis/postgis_database_tasks.rb
|
@@ -142,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
143
|
- !ruby/object:Gem::Version
|
143
144
|
version: '0'
|
144
145
|
requirements: []
|
145
|
-
rubygems_version: 3.
|
146
|
+
rubygems_version: 3.1.4
|
146
147
|
signing_key:
|
147
148
|
specification_version: 4
|
148
149
|
summary: ActiveRecord adapter for PostGIS, based on RGeo.
|