forty_facets 0.1.8.9 → 0.1.9.0

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: ce24e462cc7ee4e339d052120807239c0e4406faa14c2be784ae41548bcbc18a
4
- data.tar.gz: ab5d0fa8bf95ca88d5071ae74084bf56c3baae9c4a9af40dbd10fd5bf6f29132
3
+ metadata.gz: ad48e8c4f2338a87b29236fd94806a15f82da882ab7c754407cdb1795f608d15
4
+ data.tar.gz: e19407ae762c613e784f8ebfb9e802d4398aa38520ef3b942016d50926cf70ca
5
5
  SHA512:
6
- metadata.gz: 3e49b4403a1be6a802f1f9e492ca8753a64ee0d1bc5f39b1c254880b3f75baf7e52448cc81e7f530c37e59a6a5c9e5067fcb537bbe9a7b99fd0f7753c96c90b3
7
- data.tar.gz: 585d41f4b4b55c09c8af4a51ac755951174c67e528187910e025d001fa147d2e3dd3752c1e2856d04f66c50ac6c09a7fba888363d2d5b2f456003fb0fb3265db
6
+ metadata.gz: 9165e142d34aac61ce38eaac7efa70db5172496494e48082b5a9882345ba113850f2bda7ff066c2d7df76557555e59acf0b7286dd6f1e5d6b1e4d2eeb4473ee1
7
+ data.tar.gz: 005ef2414ddcadcf8c53d176f887386c17de905cf6f27a2ca03b9b90f5b326020cfce26fb062475ffdddf62c6f1a30e4ab79924f36c474fd47e308042a2d9ca7
@@ -2,7 +2,7 @@ module FortyFacets
2
2
  class ScopeFilterDefinition < FilterDefinition
3
3
  class ScopeFilter < Filter
4
4
  def active?
5
- definition.options[:pass_value] ? value.present? : '1'
5
+ definition.options[:pass_value] ? value.present? : value == '1'
6
6
  end
7
7
 
8
8
  def selected
@@ -28,7 +28,7 @@ module FortyFacets
28
28
  search_instance.class.new_unwrapped(new_params, search_instance.root)
29
29
  end
30
30
 
31
- def add(value = nil)
31
+ def add(value = '1')
32
32
  new_params = search_instance.params || {}
33
33
  new_params[definition.request_param] = value
34
34
  search_instance.class.new_unwrapped(new_params, search_instance.root)
@@ -38,7 +38,5 @@ module FortyFacets
38
38
  def build_filter(search_instance, value)
39
39
  ScopeFilter.new(self, search_instance, value)
40
40
  end
41
-
42
41
  end
43
42
  end
44
-
@@ -1,3 +1,3 @@
1
1
  module FortyFacets
2
- VERSION = "0.1.8.9"
2
+ VERSION = "0.1.9.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forty_facets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.9
4
+ version: 0.1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Axel Tetzlaff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2018-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler