typesensual 0.4.0 → 0.5.1
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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/typesensual/search.rb +3 -1
- data/lib/typesensual/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aee0fc94194e6a777f0f6a9d0b9173e36e38b5f350f63f57264c340ca4657511
|
|
4
|
+
data.tar.gz: f9fb3bf716b3302fa2270f57f77b35ac7853f7bddbc3a9f6c77591e1612f013b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
4
|
+
typesensual (0.5.1)
|
|
5
5
|
activesupport (>= 6.1.5)
|
|
6
6
|
paint (>= 2.0.0)
|
|
7
7
|
typesense (>= 0.13.0)
|
|
@@ -9,7 +9,7 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activesupport (7.0.
|
|
12
|
+
activesupport (7.0.8)
|
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
14
|
i18n (>= 1.6, < 2)
|
|
15
15
|
minitest (>= 5.1)
|
|
@@ -25,7 +25,7 @@ GEM
|
|
|
25
25
|
i18n (1.14.1)
|
|
26
26
|
concurrent-ruby (~> 1.0)
|
|
27
27
|
json (2.6.3)
|
|
28
|
-
minitest (5.
|
|
28
|
+
minitest (5.20.0)
|
|
29
29
|
oj (3.16.1)
|
|
30
30
|
paint (2.3.0)
|
|
31
31
|
parallel (1.23.0)
|
data/lib/typesensual/search.rb
CHANGED
|
@@ -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
|
|
@@ -137,7 +139,7 @@ class Typesensual
|
|
|
137
139
|
include_fields: @include_fields&.join(','),
|
|
138
140
|
exclude_fields: @exclude_fields&.join(','),
|
|
139
141
|
group_by: @group_by&.join(',')
|
|
140
|
-
}.merge(@params).
|
|
142
|
+
}.merge(@params).compact
|
|
141
143
|
end
|
|
142
144
|
|
|
143
145
|
# Load the results from the search query
|
data/lib/typesensual/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2023-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|