rgeo-activerecord 7.0.0 → 8.0.0

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: 9c1442b0141a1655c582e412962a3328b702e52da302e3a4874a3d22ee3f8fbc
4
- data.tar.gz: 86933cf076e3c728ea34d3918bff61f56baef30c7e31dce99e56093a2049a5cd
3
+ metadata.gz: 6c7b07962ae29977cb910485b61f3ed14140f4ed78b00c41f80de7dd0243701e
4
+ data.tar.gz: 4e26185114e01c63c7ba3841fb6231f1fcdc9fa2c67ac4ea72d46123f0ca939f
5
5
  SHA512:
6
- metadata.gz: d4b10c1f4ab732aa52545bce0f920fd36511e68c4c560b5f29f3b5907243e82cc8723bb54abd7ce1277a1857d2783749e0d1bc8a452117d4b9b7f5f6da1262ea
7
- data.tar.gz: 46b20c80597ca7dd822987fcf2592c56d68c0f413684eb5e87de012a5139f77a8b6ded059553001b5791c7f6be867a9897b01b4aca4ef5dda361d4259482d79b
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
  [![Gem version](https://img.shields.io/gem/v/rgeo-activerecord)](https://rubygems.org/gems/rgeo-activerecord)
4
- [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/rgeo/rgeo-activerecord/Tests)](https://github.com/rgeo/rgeo-activerecord/actions?query=workflow%3A%22Tests%22)
5
- [![Code Climate](https://codeclimate.com/github/rgeo/rgeo-activerecord.png)](https://codeclimate.com/github/rgeo/rgeo-activerecord)
4
+ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/rgeo/rgeo-activerecord/test.yml?branch=master)
5
+ [![Maintainability](https://api.codeclimate.com/v1/badges/a2c8d3082dbc1b223cd2/maintainability)](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.factory_generator
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
- collector << " AS #{visit(node.alias, collector)}" if node.alias
35
+ if node.alias
36
+ collector << " AS "
37
+ visit node.alias, collector
38
+ end
36
39
  collector
37
40
  end
38
41
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RGeo
4
4
  module ActiveRecord
5
- VERSION = "7.0.0"
5
+ VERSION = "8.0.0"
6
6
  end
7
7
  end
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: 7.0.0
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: 2020-12-18 00:00:00.000000000 Z
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: '5.0'
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: '5.0'
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: 1.0.0
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: 1.0.0
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: 2.3.0
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.0.8
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: []