faceted_search 3.5.11 → 3.5.12

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
  SHA256:
3
- metadata.gz: 1ada6583674e8af506d38ff4d6210031a2c26e36b272d81dcfcc294d771c11b8
4
- data.tar.gz: c0ecb0db4418a381bdef93b05e1ea8f69a4b71dcb71c05cc04e5729cb0e41b24
3
+ metadata.gz: 3701076f83d21846f5cc9a52cd74837b34dab72875285698c447bc8adf277c95
4
+ data.tar.gz: b52786bceca2f186bf7e0893d5cb8021465557b4bb4865c6407874850effb249
5
5
  SHA512:
6
- metadata.gz: c5618af51815c11964bcf5e17247000c50856a440b30582451382067f3c987df98258b8eb18a2b2d2e08705038f2c508e440e71a377cda146797b60730943f74
7
- data.tar.gz: f10e4f886e2097bc67175dd95f29af2afc817bd101f5e2f9e9617743068c736b6ceb908d2051d8085a841e37a6e55d8d2132f0119dee3f7d28fa3dae5d086b41
6
+ metadata.gz: 72d6aeebd895a237584c702063e376f486480d349e776afdaa0a4c4732d6d11e9f1d0497a45182d1c2ad7a6351fccc52c126e0242a3a6fd7eea0a18b8ec83812
7
+ data.tar.gz: 633cb87e9a5d78d7efc271c610bab9d76693bb80d055f3cfcbe7a68a8d89e18c9e12bb9b2ca8a2f28fb1e0416cc5d41825270f1c40342e67f079671c90630f80
@@ -4,13 +4,12 @@ module FacetedSearch
4
4
  def source
5
5
  @source ||= begin
6
6
  if @options[:source].present?
7
- @options[:source]
7
+ @options[:source].where("#{field} IS NOT NULL")
8
8
  else
9
9
  results = params_array.compact.blank? ? facets.results : facets.results_except(@name)
10
10
  results.send(:all).where("#{field} IS NOT NULL")
11
11
  end
12
12
  end
13
- @options[:source].where("#{field} IS NOT NULL")
14
13
  end
15
14
 
16
15
  def order
@@ -1,3 +1,3 @@
1
1
  module FacetedSearch
2
- VERSION = '3.5.11'
2
+ VERSION = '3.5.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faceted_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.11
4
+ version: 3.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Levy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-04-14 00:00:00.000000000 Z
13
+ date: 2022-04-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubygems_version: 3.3.7
188
+ rubygems_version: 3.1.6
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Faceted search with Active Record