aaf-lipstick 3.2.0 → 4.0.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 +3 -3
- data/lib/lipstick/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65aef4573165da6a1a62d6d8c0d02206773bddad
|
4
|
+
data.tar.gz: a87b1cf25fcf9e62ed61894c2b535613a24b72aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 763245f839f4896d8f5377603f82e98442e2ef7fdb79b19b21158d1e739be16649121c6957c4730842f69efba1284d08b983bb6d346df505540707c6fd442f1e
|
7
|
+
data.tar.gz: f5744d6bf50bed44643ab136c3bdf77cbd0c8df8122773582523c31bf6357c21ee1f9f8689665b6730dfd54144386599f0653b4f836a0302e23fba9691e5b3ba
|
data/lib/lipstick/filterable.rb
CHANGED
@@ -16,12 +16,12 @@ module Lipstick
|
|
16
16
|
end
|
17
17
|
|
18
18
|
module VisitCollatedArelAttribute
|
19
|
-
# rubocop:disable
|
19
|
+
# rubocop:disable Naming/MethodName
|
20
20
|
def visit_Lipstick_Filterable_CollatedArelAttribute(object, collector)
|
21
21
|
visit(object.attribute, collector)
|
22
22
|
collector << ' COLLATE ' << object.collation
|
23
23
|
end
|
24
|
-
# rubocop:enable
|
24
|
+
# rubocop:enable Naming/MethodName
|
25
25
|
end
|
26
26
|
|
27
27
|
Arel::Visitors::ToSql.include(VisitCollatedArelAttribute)
|
@@ -33,7 +33,7 @@ module Lipstick
|
|
33
33
|
@filterable_fields = fields
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def filterable_filter(query)
|
37
37
|
filter_terms(query).reduce(all) do |scope, term|
|
38
38
|
conds = filterable_fields.map do |f|
|
39
39
|
CollatedArelAttribute.new(arel_table[f], 'utf8_unicode_ci')
|
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
|
+
version: 4.0.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: 2019-
|
11
|
+
date: 2019-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubis
|