aaf-lipstick 4.9.0 → 4.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lipstick/filterable.rb +2 -2
- data/lib/lipstick/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: 16f1df4eb95c635dede6ada287b08b0b6a93588e1086cb7c8f6a4737c93648bf
|
4
|
+
data.tar.gz: a3eff77c5581d1f6ae63551b47c85cf54c54d36c747b040482c59c0fca4a0fda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04f6b7dfef1d996b62b61bf9b61de153c863f26bdd230781970f14b6afed3f1ac3b900f99b15edeee33e3dd672962e453fe2ed81e8e76317e3794004a3efd742
|
7
|
+
data.tar.gz: 0f577db895f363acf4a11ac8400f084ad84605add5760a7a219838adad461a57813812d1b7f1612cfed03106a6f3578ba88f3aee74357e657a9a391dd0a5ccad
|
data/lib/lipstick/filterable.rb
CHANGED
@@ -34,10 +34,10 @@ module Lipstick
|
|
34
34
|
@filterable_fields = fields
|
35
35
|
end
|
36
36
|
|
37
|
-
def filterable_filter(query)
|
37
|
+
def filterable_filter(query, collation = 'utf8_unicode_ci')
|
38
38
|
filter_terms(query).reduce(all) do |scope, term|
|
39
39
|
conds = filterable_fields.map do |f|
|
40
|
-
CollatedArelAttribute.new(arel_table[f],
|
40
|
+
CollatedArelAttribute.new(arel_table[f], collation)
|
41
41
|
.matches(term)
|
42
42
|
end
|
43
43
|
scope.where(conds.reduce { |acc, elem| acc.or(elem) })
|
data/lib/lipstick/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aaf-lipstick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.9.
|
4
|
+
version: 4.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun Mangelsdorf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubis
|