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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7abb338afaf060826086af3712bb28c3974918828a7816ad15dea0c4ff2957f8
4
- data.tar.gz: cac6d9b2ba2b387680eb9d1a60e8a26f8469137ed9bc23f008b9aa92947dff87
3
+ metadata.gz: 16f1df4eb95c635dede6ada287b08b0b6a93588e1086cb7c8f6a4737c93648bf
4
+ data.tar.gz: a3eff77c5581d1f6ae63551b47c85cf54c54d36c747b040482c59c0fca4a0fda
5
5
  SHA512:
6
- metadata.gz: c8f9e19c2ad2a9c83129ad54ebccc26de856631569fc5b06ed77f74e60f0fbfbabb863fbb357bb507eab87f112e42c01532a70400c771a906552a827ebb40924
7
- data.tar.gz: 46c9946862a4ba16ed41758895888dc15255658d34604addf1bee22237291c2f5e5af58ff228a278ca0603510faa21cbf973c4a83c3b202cde0780504a422da6
6
+ metadata.gz: 04f6b7dfef1d996b62b61bf9b61de153c863f26bdd230781970f14b6afed3f1ac3b900f99b15edeee33e3dd672962e453fe2ed81e8e76317e3794004a3efd742
7
+ data.tar.gz: 0f577db895f363acf4a11ac8400f084ad84605add5760a7a219838adad461a57813812d1b7f1612cfed03106a6f3578ba88f3aee74357e657a9a391dd0a5ccad
@@ -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], 'utf8_unicode_ci')
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) })
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lipstick
4
- VERSION = '4.9.0'
4
+ VERSION = '4.9.1'
5
5
  end
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.0
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-03-20 00:00:00.000000000 Z
11
+ date: 2023-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis