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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0556b3aca73390ddfb2accf543012a9c0cb3f943
4
- data.tar.gz: e2366e4170cbf93e00c3d58f3bc887aa1b5510c7
3
+ metadata.gz: b1b2fd845f974c81c193ab65128205450944af69
4
+ data.tar.gz: 4b31e9277f2c4d97662faaa707b9a40e54f6198c
5
5
  SHA512:
6
- metadata.gz: 07963910e21fe988b4f86a9a8bc7b9569a58d52426ad61bc60df8eae6f6e1a805b18e4f1e4b4fa839a8007560d2a95a444a99a39cfd3387f4568a6196aac558a
7
- data.tar.gz: 24ea3edf97d867dce9bc39ce91443c380c09a915b839619ab15caf274010902cab0d2d251ac4a5cb1411820e12c9bd990b5f1ab21015220135748dd624dd8d04
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
- max_id, count = features.pluck("MAX(id), COUNT(*)").first
28
- "#{name}/#{max_id}-#{count}"
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 = {})
@@ -1,3 +1,3 @@
1
1
  module SpatialFeatures
2
- VERSION = "1.5.5"
2
+ VERSION = "1.5.6"
3
3
  end
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.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-05 00:00:00.000000000 Z
12
+ date: 2016-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails