spatial_features 1.3.7 → 1.3.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 436fef303733276633ff5c6055541d20d1139d0e
4
- data.tar.gz: cfddf894cb3a79e5beb9662069e7210a6c43035d
3
+ metadata.gz: 1a7122350d682567036a4ced4d0f02fa1e24f6fe
4
+ data.tar.gz: 3a30f1f18b42f0aa5d76dcd695a985ed38ab7eb8
5
5
  SHA512:
6
- metadata.gz: a36136f66dc0c2a7c9c419ed3d7cab05f21c8abeacb6e58995e3bef4410ca6664b2886a7ab1849ec308a1b2d4b69740d143ad360bf0905a3b5e78620bb1c114f
7
- data.tar.gz: 0fe23f41fb24a53e30859653c807fca288173d8172245d0cd58c1be493a9999b4adc1fee79a6d595dc5a7ca3f47c914f4d78a3a2b16b69dacf501edde0b7f162
6
+ metadata.gz: fdc7be6e44faccb577d56ba0a15b3bb85061b6166e2108f95e98815ed7b0cda516c973ececc0894bb533a92f6458ca584c4692777e0df873a22af33b351c4054
7
+ data.tar.gz: 82076004699c948c14209121a93fd4b5131da27438e9369fa40e02b7dfebfa5783304365bc87f6cfde9f53298fd9ea0803560c27a8619bc2d4b49c1a14141df6
@@ -4,7 +4,7 @@ module SpatialFeatures
4
4
  def self.venn_polygons(*scopes)
5
5
  options = scopes.extract_options!
6
6
  scope = scopes.collect do |scope|
7
- scope.klass.from(scope, scope.klass.table_name).joins(:features).where('features.feature_type = ?', 'polygon').select("features.geom AS the_geom").to_sql
7
+ scope.joins(:features).where('features.feature_type = ?', 'polygon').except(:select).select("features.geom AS the_geom").to_sql
8
8
  end.join(' UNION ')
9
9
 
10
10
  sql = "
@@ -34,7 +34,7 @@ module SpatialFeatures
34
34
 
35
35
  # Join with the original polygons so we can determine which original polygons each venn polygon came from
36
36
  scope = scopes.collect do |scope|
37
- scope.klass.from(scope, scope.klass.table_name).joins(:features).where('features.feature_type = ?', 'polygon').select("#{scope.klass.table_name}.id, features.spatial_model_type AS type, features.geom").to_sql
37
+ scope.joins(:features).where('features.feature_type = ?', 'polygon').except(:select).select("#{scope.klass.table_name}.id, features.spatial_model_type AS type, features.geom").to_sql
38
38
  end.join(' UNION ')
39
39
  sql <<
40
40
  "INNER JOIN (#{scope}) AS scope
@@ -1,3 +1,3 @@
1
1
  module SpatialFeatures
2
- VERSION = "1.3.7"
2
+ VERSION = "1.3.8"
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.3.7
4
+ version: 1.3.8
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: 2015-07-09 00:00:00.000000000 Z
12
+ date: 2015-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails