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 +4 -4
- data/set/all/item.rb +5 -1
- data/set/all/item_assignment.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 289355c1c7f6e673e10f4f06f6417f0a66c292037af28b5a069a049d0a4fc703
|
4
|
+
data.tar.gz: e8df051725f2eac459cb9437d7cf37d63ae41f609149a6f31637372b56b71fa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/set/all/item_assignment.rb
CHANGED
@@ -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
|
32
|
-
item_name =
|
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.
|
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-
|
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.
|
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.
|
28
|
+
version: 1.105.1
|
29
29
|
description: ''
|
30
30
|
email:
|
31
31
|
- info@decko.org
|