card-mod-search 0.15.3 → 0.15.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/set/self/search.rb +5 -1
  3. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af9aefa0485b97bd74c01765b986e0d96d83f35da82b001c2d55d5b897cf5712
4
- data.tar.gz: 33c87f3fe7da4656bbd49a73f17f278cc0860c0bc41c946e2e24773fe72956a7
3
+ metadata.gz: 81f0fd061e8ea91faeb80ca28be151c579b478019c438feaa86bce30cc0fc8d7
4
+ data.tar.gz: 6299f0bbc177a93911478e403f9020035cedbe088672f9093aa692d858306359
5
5
  SHA512:
6
- metadata.gz: c5b8a687fa1203af6d80b70ba96370df0e4f559aaf3ad49ed933d5096af77a7260709cbef48be5a0533599c122411755a8a88274d3f9d65d4a0d677af01f4151
7
- data.tar.gz: 1d8645a9720a069d2d426f39e45c24c16a22c4249ba9e0c850d935d78406cfcd6abff00a73b87b7e3edaf494c6aa578264698d500677ec1f5e608ff9021d55de
6
+ metadata.gz: bc9050cdba4815f259b07d46804d5e82cc56a54d0d81c188e4c814b79b68919adb1993f447d55d2cfc220fa7555afd66efeaf7506348b0ebddd03c30817a0068
7
+ data.tar.gz: bb96475db8bfdad2f6c55990e44f222eff96dcacacbd3c6d3b4f697767b4179329a3753a0e7f2c8d54e7b3974a8fd0e311b4bd3a32126e6b0586904a72afa287
data/set/self/search.rb CHANGED
@@ -125,10 +125,14 @@ format :json do
125
125
 
126
126
  def map_goto_items exact, &block
127
127
  goto_names = complete_or_match_search start_only: match_start_only?
128
- goto_names.unshift exact.name if exact.known?
128
+ goto_names.unshift exact.name if go_to_exact_match? exact
129
129
  goto_names.uniq.map(&block)
130
130
  end
131
131
 
132
+ def go_to_exact_match? exact
133
+ exact.known?
134
+ end
135
+
132
136
  def term_param
133
137
  # return nil unless query_params.present?
134
138
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.3
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-03-29 00:00:00.000000000 Z
13
+ date: 2023-04-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,56 +18,56 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.105.3
21
+ version: 1.105.5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.105.3
28
+ version: 1.105.5
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-collection
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.15.3
35
+ version: 0.15.5
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.15.3
42
+ version: 0.15.5
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: card-mod-format
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.15.3
49
+ version: 0.15.5
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.15.3
56
+ version: 0.15.5
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: card-mod-help
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.15.3
63
+ version: 0.15.5
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.15.3
70
+ version: 0.15.5
71
71
  description: ''
72
72
  email:
73
73
  - info@decko.org