motor-admin 0.2.86 → 0.2.87
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motor/api_query/search.rb +3 -3
- data/lib/motor/version.rb +1 -1
- data/ui/dist/{main-4c76abb31aa349c0fa20.css.gz → main-3c1a4d089c244e3b8d3c.css.gz} +0 -0
- data/ui/dist/main-3c1a4d089c244e3b8d3c.js.gz +0 -0
- data/ui/dist/manifest.json +5 -5
- metadata +4 -4
- data/ui/dist/main-4c76abb31aa349c0fa20.js.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 581e66a6d3d4a1c56dd3aa4e422ac5026be74dccccf72e6873b1856d1f83b292
|
4
|
+
data.tar.gz: 946e05f6c69f295c454d5ddd4a2098a395007c4f382dc3f496ba823a01db65f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c9b4c98d66efce3bdc12d40b065ff01b12afb2861474f883da4aa564a16a6b5b031850a56294ec98fe0cd125480f11df4643100a808e16a217d68754279a3bb
|
7
|
+
data.tar.gz: bda487aab5a06c7a25d38e579faaa6a94cbbdf8119d2b90128d3c40f21593ab79814b154b98eff2f06a0a7b351921851a9be90156e13549157b4b7be911bb06b
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Motor
|
4
4
|
module ApiQuery
|
5
5
|
module Search
|
6
|
-
STRING_COLUMN_TYPES = %i[text string].freeze
|
6
|
+
STRING_COLUMN_TYPES = %i[text string citext].freeze
|
7
7
|
NUMBER_COLUMN_TYPES = %i[integer float].freeze
|
8
8
|
|
9
9
|
module_function
|
@@ -35,11 +35,11 @@ module Motor
|
|
35
35
|
if STRING_COLUMN_TYPES.include?(column_type)
|
36
36
|
arel_table[name].matches("%#{keyword}%")
|
37
37
|
elsif NUMBER_COLUMN_TYPES.include?(column_type)
|
38
|
-
arel_table[name].eq(keyword.to_f)
|
38
|
+
arel_table[name].eq(keyword.to_f) if keyword.match?(/\A\d/)
|
39
39
|
else
|
40
40
|
arel_table[name].eq(keyword)
|
41
41
|
end
|
42
|
-
end
|
42
|
+
end.compact
|
43
43
|
end
|
44
44
|
|
45
45
|
def build_arel_or_query(filter_array)
|
data/lib/motor/version.rb
CHANGED
File without changes
|
Binary file
|
data/ui/dist/manifest.json
CHANGED
@@ -3961,9 +3961,9 @@
|
|
3961
3961
|
"icons/zoom-pan.svg.gz": "icons/zoom-pan.svg.gz",
|
3962
3962
|
"icons/zoom-question.svg": "icons/zoom-question.svg",
|
3963
3963
|
"icons/zoom-question.svg.gz": "icons/zoom-question.svg.gz",
|
3964
|
-
"main-
|
3965
|
-
"main-
|
3966
|
-
"main-
|
3967
|
-
"main.css": "main-
|
3968
|
-
"main.js": "main-
|
3964
|
+
"main-3c1a4d089c244e3b8d3c.css.gz": "main-3c1a4d089c244e3b8d3c.css.gz",
|
3965
|
+
"main-3c1a4d089c244e3b8d3c.js.LICENSE.txt": "main-3c1a4d089c244e3b8d3c.js.LICENSE.txt",
|
3966
|
+
"main-3c1a4d089c244e3b8d3c.js.gz": "main-3c1a4d089c244e3b8d3c.js.gz",
|
3967
|
+
"main.css": "main-3c1a4d089c244e3b8d3c.css",
|
3968
|
+
"main.js": "main-3c1a4d089c244e3b8d3c.js"
|
3969
3969
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motor-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.87
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Matsyburka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-filter
|
@@ -2214,8 +2214,8 @@ files:
|
|
2214
2214
|
- ui/dist/icons/zoom-out.svg.gz
|
2215
2215
|
- ui/dist/icons/zoom-pan.svg.gz
|
2216
2216
|
- ui/dist/icons/zoom-question.svg.gz
|
2217
|
-
- ui/dist/main-
|
2218
|
-
- ui/dist/main-
|
2217
|
+
- ui/dist/main-3c1a4d089c244e3b8d3c.css.gz
|
2218
|
+
- ui/dist/main-3c1a4d089c244e3b8d3c.js.gz
|
2219
2219
|
- ui/dist/manifest.json
|
2220
2220
|
homepage:
|
2221
2221
|
licenses:
|
Binary file
|