typesensual 0.5.0 → 0.5.1

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: dc8cd0a5b5f24e00ac86366e5f12f3e717314791ed421a1864b94204e42445af
4
- data.tar.gz: 226590b10f36c0bb4f4ea583d9080b153629e5359189f4cd2f360da1891cb9b4
3
+ metadata.gz: aee0fc94194e6a777f0f6a9d0b9173e36e38b5f350f63f57264c340ca4657511
4
+ data.tar.gz: f9fb3bf716b3302fa2270f57f77b35ac7853f7bddbc3a9f6c77591e1612f013b
5
5
  SHA512:
6
- metadata.gz: 0cc692009e32572a18a8506abd5125ce3841f6c444ba15b36ed7a5b07afb095ffb03199aece5f755a8c2b72d1df135429daccf956474df9f92f5be51dc99dab0
7
- data.tar.gz: 3c7f8c3081de258e431b9135cc671a6bda03113804e6e48693616f0f492502fb4594ec81e913d708a1af8b6c2c1135b5527dd88f4e8b8541ba7d162b76e882b6
6
+ metadata.gz: 5a01af5c11923882043b88458916c7636089861d046d940d9f384a12a742bd6d3f45c124e2f42620911e2b334b5ebc35bfc25a54d46dc1c6e051cd857025726b
7
+ data.tar.gz: 5e314e0c77449547ecf5dabf9d75aff547999a35533fc7b328f64b3dea6c3d63bb87795f4dc6b2cb99481e6b06b9fe115165db4727484436bb577da47dd3c729
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- typesensual (0.5.0)
4
+ typesensual (0.5.1)
5
5
  activesupport (>= 6.1.5)
6
6
  paint (>= 2.0.0)
7
7
  typesense (>= 0.13.0)
@@ -58,6 +58,8 @@ class Typesensual
58
58
  def filter(filter)
59
59
  if filter.is_a?(Hash)
60
60
  @filter_by += filter.map { |key, value| "#{key}:#{value}" }
61
+ elsif filter.is_a?(Array)
62
+ @filter_by += filter.map(&:to_s)
61
63
  else
62
64
  @filter_by << filter.to_s
63
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Typesensual
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typesensual
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emma Lejeck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-09 00:00:00.000000000 Z
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport