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: fcaaf2a57395c122e6541b1e40bd416f5f31fd1e512c250e5222ec5bb3feb650
4
- data.tar.gz: 2772452b3ea880ecab759cb5add73d2ed22a89a78e12eae087aff60a061a8f20
3
+ metadata.gz: 40546b155985259941dab5c7fef8ec7f0d4959a29087044a133c4918929d7e2f
4
+ data.tar.gz: b80326260c605d158e4647caa361d07000c622140ae90e505f97a0576f2ce26a
5
5
  SHA512:
6
- metadata.gz: 743b335ad32f5d872eebd7c512d7557102ed137664e4336a8c26154fe5f3b2bc3ded2b8e0ebe73195e05e8bb9affb538f7dde93e2aa095b142078e464c2fed98
7
- data.tar.gz: 8cfc035141871044857863337a94f4c854423afc784f305853cd1a838dde14ec729a941c50a14edc5841829e8c21ce8c4f04c1826611ecb853d8239fb95401f4
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
@@ -3,7 +3,7 @@
3
3
  module ActiveRecord
4
4
  module ConnectionAdapters
5
5
  module PostGIS
6
- VERSION = "7.1.0"
6
+ VERSION = "7.1.1"
7
7
  end
8
8
  end
9
9
  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.0
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-03-28 00:00:00.000000000 Z
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.0.8
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.