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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66662fd858549aae454abda8d2a3f7b033263d95f24f9be49f6d556affbce2b7
4
- data.tar.gz: 2600474115778fe4b20329ef6318c4ad5acba15127e6c06405cb5465a6bcfc45
3
+ metadata.gz: 581e66a6d3d4a1c56dd3aa4e422ac5026be74dccccf72e6873b1856d1f83b292
4
+ data.tar.gz: 946e05f6c69f295c454d5ddd4a2098a395007c4f382dc3f496ba823a01db65f0
5
5
  SHA512:
6
- metadata.gz: ef4fbaa29b7a180e4d1654147fb339d3cee60c6be1af09a33fc96e31fc3f5f4ecf274827b001b53aa88e6898b58f02fad28f454eeb0607f79396bc4d19cf9a93
7
- data.tar.gz: ea77d31c186b8ca9c9472b131fd91e2518e67f6f223c72f4de9c90ede4e00108382056bc2677bf1cc52b616bf7f4953b9c330fca89cb2a0ef66ffc7f1e3e9fcc
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Motor
4
- VERSION = '0.2.86'
4
+ VERSION = '0.2.87'
5
5
  end
@@ -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-4c76abb31aa349c0fa20.css.gz": "main-4c76abb31aa349c0fa20.css.gz",
3965
- "main-4c76abb31aa349c0fa20.js.LICENSE.txt": "main-4c76abb31aa349c0fa20.js.LICENSE.txt",
3966
- "main-4c76abb31aa349c0fa20.js.gz": "main-4c76abb31aa349c0fa20.js.gz",
3967
- "main.css": "main-4c76abb31aa349c0fa20.css",
3968
- "main.js": "main-4c76abb31aa349c0fa20.js"
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.86
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-09 00:00:00.000000000 Z
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-4c76abb31aa349c0fa20.css.gz
2218
- - ui/dist/main-4c76abb31aa349c0fa20.js.gz
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: