spatial_features 2.4.1 → 2.4.2

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: bb6bfa561f291c96ad983f88e7ce6f13a5961190
4
- data.tar.gz: 4236d1b48756f5d8789b98afbfc1e47215b36423
3
+ metadata.gz: f6acc1a46c7687ff927a94e56123507706058d37
4
+ data.tar.gz: e1f5bf281678659318cb8a809d2c1023248e5a36
5
5
  SHA512:
6
- metadata.gz: fb674ccbed4762a6c12196a9b5e8471b9469aed8e8012490a61d217d445ba70319bdbbe969412d4ab80f09279aaaa0e178eca29f660f4340f85270ca3e319875
7
- data.tar.gz: 4a8d33366da54cc7754308634c87aee43fd3e0b72ba31659548b427f4f959179ca7f1f12bfe61ffd15795a45dfefcf305d272bb31339678b789f2c4dc06141f5
6
+ metadata.gz: f8b977e8bdae0fb80bb20cc72cb12f1b50c879a06106b0238490fc407ce06cc85a77224458c23e94ce716761f8ca8f3caa4423312c34134152518153c421d7c1
7
+ data.tar.gz: 705ab2d9a20c0e78d61d29220e100654d7fcc412880e2e1689ebe1d56b32e49863619db51b50a0842e01a8fe5b017d9c70209c5e351eac9bf35f6adb55bf5b41
@@ -15,7 +15,7 @@ module SpatialFeatures
15
15
  scope :without_features, lambda { joins("LEFT OUTER JOIN features ON features.spatial_model_type = '#{name}' AND features.spatial_model_id = #{table_name}.id").where("features.id IS NULL") }
16
16
 
17
17
  scope :with_spatial_cache, lambda {|klass| joins(:spatial_caches).where(:spatial_caches => { :intersection_model_type => klass }).uniq }
18
- scope :without_spatial_cache, lambda {|klass| joins("LEFT OUTER JOIN #{SpatialCache.table_name} ON spatial_model_id = #{table_name}.id AND spatial_model_type = '#{name}' and intersection_model_type = '#{klass}'").where('spatial_model_id IS NULL') }
18
+ scope :without_spatial_cache, lambda {|klass| joins("LEFT OUTER JOIN #{SpatialCache.table_name} ON #{SpatialCache.table_name}.spatial_model_id = #{table_name}.id AND #{SpatialCache.table_name}.spatial_model_type = '#{name}' and intersection_model_type = '#{klass}'").where("#{SpatialCache.table_name}.spatial_model_id IS NULL") }
19
19
  scope :with_stale_spatial_cache, lambda { joins(:spatial_caches).where("#{table_name}.features_hash != spatial_caches.features_hash").uniq } if has_spatial_features_hash?
20
20
 
21
21
  has_many :spatial_caches, :as => :spatial_model, :dependent => :delete_all, :class_name => 'SpatialCache'
@@ -1,3 +1,3 @@
1
1
  module SpatialFeatures
2
- VERSION = "2.4.1"
2
+ VERSION = "2.4.2"
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: 2.4.1
4
+ version: 2.4.2
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: 2017-02-23 00:00:00.000000000 Z
12
+ date: 2017-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails