rgeo-activerecord 7.0.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.md +9 -0
- data/README.md +9 -3
- data/lib/rgeo/active_record/arel_spatial_queries.rb +4 -1
- data/lib/rgeo/active_record/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c7b07962ae29977cb910485b61f3ed14140f4ed78b00c41f80de7dd0243701e
|
|
4
|
+
data.tar.gz: 4e26185114e01c63c7ba3841fb6231f1fcdc9fa2c67ac4ea72d46123f0ca939f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a0f9e319c6a13c0f710e1776aa2ac0099195be959557030c9e0e74dd29b663a7d5022178a038e36d1b74a0479168d7040c82a21247788c8dbb01e12732d904b
|
|
7
|
+
data.tar.gz: fa3f00279c8abcdcdcc6877156900c4c2f0c9da0f9aa346bd5b08c8498a668d9da64409409871965585a0f66c505d606ed17bf90aefa12095a9769fc80298c0d
|
data/History.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
### 8.0.0 / 2024-09-11
|
|
2
|
+
|
|
3
|
+
* Drop support for legacy dependencies (tagliala)
|
|
4
|
+
* Support ActiveRecord 7.2 (tagliala)
|
|
5
|
+
|
|
6
|
+
### 7.0.1 / 2021-02-23
|
|
7
|
+
|
|
8
|
+
* Fix malformed Arel queries using `as` (ugisozols)
|
|
9
|
+
|
|
1
10
|
### 7.0.0 / 2020-12-15
|
|
2
11
|
|
|
3
12
|
* Update visit_* methods and Arel interface to support RGeo features.
|
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
## RGeo::ActiveRecord
|
|
2
2
|
|
|
3
3
|
[](https://rubygems.org/gems/rgeo-activerecord)
|
|
4
|
-
|
|
5
|
-
[
|
|
5
|
+
[](https://codeclimate.com/github/rgeo/rgeo-activerecord/maintainability)
|
|
6
6
|
|
|
7
7
|
RGeo::ActiveRecord is an optional [RGeo](http://github.com/rgeo/rgeo) module
|
|
8
8
|
providing spatial extensions for ActiveRecord, as well as a set of helpers for
|
|
@@ -29,6 +29,12 @@ Gemfile:
|
|
|
29
29
|
gem 'rgeo-activerecord'
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
Version `8.0+` supports ActiveRecord 7.x with `rgeo` 3.0+
|
|
33
|
+
|
|
34
|
+
Version `7.0+` supports ActiveRecord 5.x, 6.x, and 7.x with `rgeo` 1.0+
|
|
35
|
+
|
|
36
|
+
Version `6.2+` supports ActiveRecord 5.x and 6.x with `rgeo` 1.0+
|
|
37
|
+
|
|
32
38
|
Version `6.1` supports ActiveRecord 5.x and 6.0 with `rgeo` 1.0+.
|
|
33
39
|
|
|
34
40
|
Version `6.0` supports ActiveRecord 5.x with `rgeo` 1.x.
|
|
@@ -73,7 +79,7 @@ Here is an example setup:
|
|
|
73
79
|
```rb
|
|
74
80
|
RGeo::ActiveRecord::SpatialFactoryStore.instance.tap do |config|
|
|
75
81
|
# By default, use the GEOS implementation for spatial columns.
|
|
76
|
-
config.default = RGeo::Geos.
|
|
82
|
+
config.default = RGeo::Geos.factory
|
|
77
83
|
|
|
78
84
|
# But use a geographic implementation for point columns.
|
|
79
85
|
config.register(RGeo::Geographic.spherical_factory(srid: 4326), geo_type: "point")
|
|
@@ -32,7 +32,10 @@ module RGeo
|
|
|
32
32
|
collector << ", " unless index == node.expressions.size - 1
|
|
33
33
|
end
|
|
34
34
|
collector << ")"
|
|
35
|
-
|
|
35
|
+
if node.alias
|
|
36
|
+
collector << " AS "
|
|
37
|
+
visit node.alias, collector
|
|
38
|
+
end
|
|
36
39
|
collector
|
|
37
40
|
end
|
|
38
41
|
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rgeo-activerecord
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Azuma
|
|
8
8
|
- Tee Parham
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|
|
@@ -17,28 +17,28 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - ">="
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '
|
|
20
|
+
version: '7.0'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - ">="
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: '
|
|
27
|
+
version: '7.0'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: rgeo
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
|
32
32
|
- - ">="
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version:
|
|
34
|
+
version: '3.0'
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
39
|
- - ">="
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version:
|
|
41
|
+
version: '3.0'
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: appraisal
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -163,7 +163,7 @@ homepage: https://github.com/rgeo/rgeo-activerecord
|
|
|
163
163
|
licenses:
|
|
164
164
|
- BSD-3-Clause
|
|
165
165
|
metadata: {}
|
|
166
|
-
post_install_message:
|
|
166
|
+
post_install_message:
|
|
167
167
|
rdoc_options: []
|
|
168
168
|
require_paths:
|
|
169
169
|
- lib
|
|
@@ -171,15 +171,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
171
171
|
requirements:
|
|
172
172
|
- - ">="
|
|
173
173
|
- !ruby/object:Gem::Version
|
|
174
|
-
version:
|
|
174
|
+
version: 3.1.0
|
|
175
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements:
|
|
177
177
|
- - ">="
|
|
178
178
|
- !ruby/object:Gem::Version
|
|
179
179
|
version: '0'
|
|
180
180
|
requirements: []
|
|
181
|
-
rubygems_version: 3.
|
|
182
|
-
signing_key:
|
|
181
|
+
rubygems_version: 3.4.19
|
|
182
|
+
signing_key:
|
|
183
183
|
specification_version: 4
|
|
184
184
|
summary: An RGeo module providing spatial extensions to ActiveRecord.
|
|
185
185
|
test_files: []
|