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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21f584d48006f4dd826813762553d863b7519ff09687c31be568479088314255
4
- data.tar.gz: f8341d39b57397f66f334e417fe2920453494eeec017bf304426e4929e7b4488
3
+ metadata.gz: 51a45aaff353054d0b59f0f45fe0372189c894755e0bc96999480e7155083661
4
+ data.tar.gz: 56e02eada6cb3ef5228946a62d5d06ecd30d63e4ce2630db7cf7b368c9051f3e
5
5
  SHA512:
6
- metadata.gz: aa03433d73eb577524f195e3ce9491c2e832c5ccd8995df017fef33b1652d98ca56e76bab0586c3286b3e8c764d0cbbc228bc004b943b83d93a90b5a75cc3c0b
7
- data.tar.gz: 8c3192eafac7ea537f5c8924943eb742002ef4bf4bf2388986468ad595c43324c4bbf1b042a80f58cf8cc7f67981ee123485dcf150c7f740788a46750a4649ac
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: "Find #{model.name} by #{columns.join(' OR ')}".tr('_', ' '),
62
+ description: description,
60
63
  example: example,
61
64
  pattern: pattern,
62
65
  finder: finder,
@@ -1,3 +1,3 @@
1
1
  class RailsOmnibar
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_omnibar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janosch Müller