spatial_features 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spatial_features/has_spatial_features.rb +2 -2
- 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: b1b2fd845f974c81c193ab65128205450944af69
|
4
|
+
data.tar.gz: 4b31e9277f2c4d97662faaa707b9a40e54f6198c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 944dc0f7f777bac917f94d9fdf5e31d98fe484d3fef6194bd5eb7363b17cd0e65a3434ec0c762c51a93286bb0ca5d786fe538c8160d61adb8aed38e60f119044
|
7
|
+
data.tar.gz: 4a685e2b5d74ae77842dff7f3b8eedd21529a8e71ae72f43a249e187518fd88653a014cd4fc7c1141e8de0d2618710d38a0b577545180c88cee3df0736b54700
|
@@ -24,8 +24,8 @@ module SpatialFeatures
|
|
24
24
|
# NOTE: features are never updated, only deleted and created, therefore we can
|
25
25
|
# tell if they have changed by finding the maximum id and count instead of needing timestamps
|
26
26
|
def features_cache_key
|
27
|
-
|
28
|
-
"#{name}/#{
|
27
|
+
# Do two separate queries because it is much faster for some reason
|
28
|
+
"#{name}/#{features.maximum(:id)}-#{features.count}"
|
29
29
|
end
|
30
30
|
|
31
31
|
def intersecting(other, options = {})
|
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: 1.5.
|
4
|
+
version: 1.5.6
|
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: 2016-02-
|
12
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|