spatial_features 2.6.2 → 2.6.3
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/app/models/feature.rb +4 -0
- data/lib/spatial_features/has_spatial_features.rb +2 -3
- data/lib/spatial_features/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8920e2ab520f59f4dc451b6f37df68fe53a7d5de
|
4
|
+
data.tar.gz: 81ea657e62042570045d3fb7ffb5cd8a3738d387
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d4187a0dbf6dd5974f770a7397c8ad8ddf354342f97da2ed10f84d19120fa9dd51437371e13fa98f796e86f3c92f1beda74c38dfc724b4e59419106c8d3c2c
|
7
|
+
data.tar.gz: 79023ebeea75cc8527992bb0f562349bc5b54569c08d8068e6d7dd8006381f80baf8f7a5182db8520abda42e6f86c846dcc16d7d11530f8cf14b605ec0541cba
|
data/app/models/feature.rb
CHANGED
@@ -40,7 +40,7 @@ module SpatialFeatures
|
|
40
40
|
# tell if they have changed by finding the maximum id and count instead of needing timestamps
|
41
41
|
def features_cache_key
|
42
42
|
# Do two separate queries because it is much faster for some reason
|
43
|
-
"#{name}/#{features.
|
43
|
+
"#{name}/#{features.cache_key}"
|
44
44
|
end
|
45
45
|
|
46
46
|
def intersecting(other, options = {})
|
@@ -165,8 +165,7 @@ module SpatialFeatures
|
|
165
165
|
end
|
166
166
|
|
167
167
|
def features_cache_key
|
168
|
-
|
169
|
-
"#{self.class.name}/#{self.id}-#{max_id}-#{count}"
|
168
|
+
"#{self.class.name}/#{self.id}-#{features.cache_key}"
|
170
169
|
end
|
171
170
|
|
172
171
|
def polygons?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spatial_features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Wallace
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|