ui_bibz 3.0.8 → 3.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/ui_bibz/concerns/models/searchable.rb +4 -2
- data/lib/ui_bibz/infos.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: 6f4c4175c6e3db48739cae5571ddf077acdd27b487f22e15ce8b608170cb5f8f
|
4
|
+
data.tar.gz: 82c4fd7abf5d669e7af20c204680772389a56a28380b5c28e5c428d96f693ed7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea5d33e9f0a31632f719e13c41fa2f8fc64dd1a74ee3a8ccb6ea93a697f91a3d885de3299ec806377fbf0127ae91b843b696e127eb84adee488cde4ccda9947f
|
7
|
+
data.tar.gz: 9acaa8a446525e350a768717188e902f18a1046ef5043ada106f38bd00d032e2796425753ca7e203fbf1630096fa2b85a09a7ebeb0e3c6f8bbd48f709298b7de
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ui_bibz (3.0.
|
4
|
+
ui_bibz (3.0.9)
|
5
5
|
will-paginate-i18n
|
6
6
|
will_paginate (~> 3.3.0)
|
7
7
|
will_paginate-bootstrap4
|
@@ -161,7 +161,7 @@ GEM
|
|
161
161
|
rake (13.0.6)
|
162
162
|
regexp_parser (2.1.1)
|
163
163
|
rexml (3.2.5)
|
164
|
-
rubocop (1.22.
|
164
|
+
rubocop (1.22.2)
|
165
165
|
parallel (~> 1.10)
|
166
166
|
parser (>= 3.0.0.0)
|
167
167
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -134,8 +134,10 @@ module UiBibz::Concerns::Models::Searchable
|
|
134
134
|
else
|
135
135
|
key_name = attribute.keys.first.to_s.pluralize
|
136
136
|
attribute.each_value do |value|
|
137
|
-
|
138
|
-
|
137
|
+
Array(value).each do |val|
|
138
|
+
sql_subquery << "lower(CAST(#{key_name}.#{val} AS TEXT)) LIKE :#{key_name}_#{val}_#{i}"
|
139
|
+
sql_attributes = sql_attributes.merge({ "#{key_name}_#{val}_#{i}".to_sym => "%#{pattern}%" })
|
140
|
+
end
|
139
141
|
end
|
140
142
|
end
|
141
143
|
else
|
data/lib/ui_bibz/infos.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ui_bibz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thooams [Thomas HUMMEL]
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|