rails_omnibar 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/rails_omnibar/command/search.rb +4 -1
- data/lib/rails_omnibar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51a45aaff353054d0b59f0f45fe0372189c894755e0bc96999480e7155083661
|
4
|
+
data.tar.gz: 56e02eada6cb3ef5228946a62d5d06ecd30d63e4ce2630db7cf7b368c9051f3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06c94701ded26b104edde38007ad68faad933c83970cf2773cf0f3fb184dee815c7613f1b1e7dacfc98ee17635accc957680047af2247f848fafb5c31b75cca1
|
7
|
+
data.tar.gz: 338394d0233ae22eda5e3e226c1e93b595c8edc535cc22eb5f5d48fb086030f2d561adeee283440cd030146a59a6ce3fe5e8aed6a983fed38fc17cd5b52fda57
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [1.5.1] - 2024-01-25
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- help entries for search items with custom finders
|
12
|
+
|
7
13
|
## [1.5.0] - 2024-01-25
|
8
14
|
|
9
15
|
### Added
|
@@ -37,6 +37,9 @@ class RailsOmnibar
|
|
37
37
|
columns.present? || raise(ArgumentError, 'columns: must be given')
|
38
38
|
columns.each { |c| c.in?(model.column_names) || raise(ArgumentError, "bad column #{c}") }
|
39
39
|
|
40
|
+
description = "Find #{model.name}"
|
41
|
+
description += " by #{columns.join(' OR ')}" unless finder
|
42
|
+
|
40
43
|
# default finder, uses LIKE/ILIKE for non-id columns
|
41
44
|
finder ||= ->(q) do
|
42
45
|
return model.none if q.blank?
|
@@ -56,7 +59,7 @@ class RailsOmnibar
|
|
56
59
|
end
|
57
60
|
|
58
61
|
super(
|
59
|
-
description:
|
62
|
+
description: description,
|
60
63
|
example: example,
|
61
64
|
pattern: pattern,
|
62
65
|
finder: finder,
|