card-mod-collection 0.15.0 → 0.15.1.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: 4f1fef608d54b9031f5d6184c0c8a9b9c00fd18ef81023695a007c1255c1fead
4
- data.tar.gz: 879867adb8f43b2baa1c4ca3951ee8d033ce77c90e6835607d772a05b03f173c
3
+ metadata.gz: 289355c1c7f6e673e10f4f06f6417f0a66c292037af28b5a069a049d0a4fc703
4
+ data.tar.gz: e8df051725f2eac459cb9437d7cf37d63ae41f609149a6f31637372b56b71fa5
5
5
  SHA512:
6
- metadata.gz: 0aafb06363d4fcf50451b0580b811a971b697f74b2994d3d149522126ab79f271dd2550c10a1157a89571915dd224f43a940c7e45b54d6aaac096e1c33fd82a5
7
- data.tar.gz: 8d5c01287de77db8166125477ced1c518c1491a2ab5a03b8f966ff40a979a8aea1f573372735d182ac41531cd47169246745c005ec90b597f1d8d564c869cc9b
6
+ metadata.gz: 69701f424d8ac4bac44b31115e88b258769004c634883a3a5c12a88232e4bbbdde010843cf33a37a9839af3c107880968f99b2b87a2a0c98d865b4a856ae4038
7
+ data.tar.gz: 43100267717d10576704c189bd2c51fc76c9c3ef3dc7b771eaa2ae80b6ac5258f7ee3e1a3a1eaedee925a7277f483c9fe9913b6d292f8f03d247fcc613501ea3
data/set/all/item.rb CHANGED
@@ -108,7 +108,7 @@ end
108
108
 
109
109
  format do
110
110
  view :count do
111
- card.item_count
111
+ try :count
112
112
  end
113
113
 
114
114
  def nest_item cardish, options={}, &block
@@ -167,6 +167,10 @@ format do
167
167
  end
168
168
 
169
169
  format :html do
170
+ view :count do
171
+ number_with_delimiter try(:count)
172
+ end
173
+
170
174
  def wrap_item rendered, item_view
171
175
  %(<div class="item-#{item_view}">#{rendered}</div>)
172
176
  end
@@ -28,8 +28,8 @@ end
28
28
 
29
29
  # remove item from list
30
30
  # @param cardish [String, Card::Name] item to drop
31
- def drop_item item
32
- item_name = item.cardname
31
+ def drop_item cardish
32
+ item_name = cardish.cardname
33
33
  self.content = (item_names.reject { |i| i == item_name })
34
34
  end
35
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-collection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1.1
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-01-04 00:00:00.000000000 Z
13
+ date: 2023-03-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.105.0
21
+ version: 1.105.1
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.0
28
+ version: 1.105.1
29
29
  description: ''
30
30
  email:
31
31
  - info@decko.org