card-mod-list 0.11.4 → 0.11.5

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: 5702cda386e80af54da53c86396e368b8e528b4f2088b9d74eaf7cf2a2bc3670
4
- data.tar.gz: 7e337b0c99a1356a1c22971ab958c1118a781e1abc6523d2ae4b283b5415d326
3
+ metadata.gz: e0a4565616097feaeab02c1905fb036df24268fcb2447806810d67b5a0b6538d
4
+ data.tar.gz: e799832034f5c7925e595dd896b9d9040270bc33b24ab4e14a76f0854cf4e998
5
5
  SHA512:
6
- metadata.gz: 9a4fc182585c7ba27650ea0e3ab7c8113a69e75f26fcc526b8962343475ffd7c428822c6d9dec8d494026e12dc30fe4339411ad602df67811680b2037560893e
7
- data.tar.gz: 4db85843f89d5d0d8005fe3cf1633d81181af4990b029d8d90f440d782b58a16afca1e90343c95a74f59d09dcc795f07538443befc056a81030b59545084d77b
6
+ metadata.gz: e860b36b3ec47454e0c96ddeaa6013bf0eb573ee28f1c70ebeee79ce58c8968421abc38c8e83eeaeb8e911d2d2952547d1b79408007e8390ac327b5d758f0214
7
+ data.tar.gz: 05f8146ff7cbe98ac6d2e44c89bbe3be1ef4eaab3de4ea3a25afe4b22581398e418c61ece7d714dc214cf535e6b9c4fc91a1e8e774a2100fd6b103987ec37aa9
@@ -61,8 +61,7 @@ format :html do
61
61
  end
62
62
 
63
63
  def autocomplete_input
64
- items = items_for_input
65
- haml :autocomplete_input, item: items.first, options_card: options_card_name
64
+ haml :autocomplete_input, item: items_for_input.first, options_card: options_card_name
66
65
  end
67
66
 
68
67
  def checkbox_input
@@ -51,6 +51,7 @@ format :html do
51
51
 
52
52
  def filter_card_from_params
53
53
  return unless params[:filter_card]
54
+
54
55
  Card.fetch params[:filter_card], new: {}
55
56
  end
56
57
 
@@ -64,6 +64,7 @@ format :json do
64
64
 
65
65
  def essentials
66
66
  return {} if depth > max_depth
67
+
67
68
  card.item_cards.map do |item|
68
69
  nest item, view: :essentials
69
70
  end
@@ -1,7 +1,7 @@
1
1
  # store items as ids, not names
2
2
 
3
3
  def standardize_item cardish
4
- if (id = Card.fetch_id cardish)
4
+ if (id = Card.id cardish)
5
5
  "~#{id}"
6
6
  else
7
7
  Rails.logger.info "no id for '#{cardish}' added to id pointer"
@@ -7,6 +7,7 @@ add_to_basket :options, "select"
7
7
  add_to_basket :options, "multiselect"
8
8
  add_to_basket :options, "list"
9
9
  add_to_basket :options, "filtered list"
10
+ add_to_basket :options, "autocomplete"
10
11
 
11
12
  def content
12
13
  options.to_pointer_content
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 0.11.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: 2021-05-05 00:00:00.000000000 Z
13
+ date: 2021-05-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,42 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.101.4
21
+ version: 1.101.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.101.4
28
+ version: 1.101.5
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-format
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.11.4
35
+ version: 0.11.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.11.4
42
+ version: 0.11.5
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: card-mod-collection
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.11.4
49
+ version: 0.11.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.11.4
56
+ version: 0.11.5
57
57
  description: ''
58
58
  email:
59
59
  - info@decko.org