card-mod-assets 0.17.0 → 0.18.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f760d28cbd8816fe77585459f95b1da4b34d22e39dffce3dba02479f9e5ab8e0
|
4
|
+
data.tar.gz: '085c3c9529a70d230f4d285a35ca52c7b92a0c4dde349f193f65fe5eb14e3546'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5f61dda1fce10b16d11c3a703b836a2892ddbdc39743c692b8f7a9a51694f18a4524f83df9ac8cf6473cdd8652cbb1ccd7e524d92e1c44a10b4cac634adfbc4
|
7
|
+
data.tar.gz: efa0c998c16004dd5c7e50d37efb8f076f208d85fc62f807a02534a1d584e3716ec6c42b60c647af3e3187b63a6ecb9236b23ab332e997ba0ed846006808bd50
|
@@ -52,7 +52,7 @@ class DeathToMachines < Cardio::Migration::Transform
|
|
52
52
|
private
|
53
53
|
|
54
54
|
def update_mod_asset_type_id
|
55
|
-
return unless Card::Codename.
|
55
|
+
return unless Card::Codename.exist? "mod_script_assets"
|
56
56
|
|
57
57
|
Card.search type_id: ["in", Card::ModScriptAssetsID, Card::ModStyleAssetsID] do |card|
|
58
58
|
card.update! type_id: Card::ListID,
|
data/lib/card/assets.rb
CHANGED
@@ -20,6 +20,8 @@ class Card
|
|
20
20
|
# (standard_inputters, by contrast, are in code, so this refreshing is
|
21
21
|
# needed eg in development mode to detect changes)
|
22
22
|
inputters += nonstandard_inputters if force
|
23
|
+
Cache.populate_fields inputters, :asset_input, :asset_output
|
24
|
+
Virtual.cache.read_multi(inputters.map { |i| [i, :asset_input].to_name.key })
|
23
25
|
inputters.each(&:refresh_asset)
|
24
26
|
|
25
27
|
generate_asset_output_files if force
|
@@ -66,9 +68,10 @@ class Card
|
|
66
68
|
# MOD+:style and MOD+:script cards, which represent the assets in MOD/assets/style
|
67
69
|
# and MOD/assets/script directories respectively
|
68
70
|
def standard_inputters
|
69
|
-
@
|
70
|
-
Card.search left: { type: :mod }, right_id: [StyleID, ScriptID], return: :
|
71
|
-
@
|
71
|
+
@standard_inputter_names ||=
|
72
|
+
Card.search left: { type: :mod }, right_id: [StyleID, ScriptID], return: :name
|
73
|
+
Cache.populate_names @standard_inputter_names
|
74
|
+
@standard_inputter_names.map(&:card)
|
72
75
|
end
|
73
76
|
|
74
77
|
# standalone cards, NOT in mod assets directories
|
@@ -89,7 +92,7 @@ class Card
|
|
89
92
|
|
90
93
|
# only refresh when cache was cleared
|
91
94
|
def cautious_refresh?
|
92
|
-
return false unless Cache.
|
95
|
+
return false unless Cache.shared_cache
|
93
96
|
return false if Card.cache.read REFRESHED
|
94
97
|
|
95
98
|
Card.cache.write REFRESHED, true
|
data/set/abstract/asset_file.rb
CHANGED
@@ -31,7 +31,7 @@ def update_referers_after_input_changed
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def update_asset_input
|
34
|
-
return unless Codename.
|
34
|
+
return unless Codename.exist? :asset_input
|
35
35
|
# otherwise the migration that adds the asset_input card fails
|
36
36
|
|
37
37
|
Card::Auth.as_bot do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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: 2024-
|
13
|
+
date: 2024-11-22 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.
|
21
|
+
version: 1.108.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.
|
28
|
+
version: 1.108.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: execjs
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,70 +52,70 @@ dependencies:
|
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
55
|
+
version: 0.18.1
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.
|
62
|
+
version: 0.18.1
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: card-mod-format
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.
|
69
|
+
version: 0.18.1
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.
|
76
|
+
version: 0.18.1
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: card-mod-list
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '='
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.
|
83
|
+
version: 0.18.1
|
84
84
|
type: :runtime
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - '='
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.
|
90
|
+
version: 0.18.1
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: card-mod-carrierwave
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - '='
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0.
|
97
|
+
version: 0.18.1
|
98
98
|
type: :runtime
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - '='
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.
|
104
|
+
version: 0.18.1
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: card-mod-content
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - '='
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.
|
111
|
+
version: 0.18.1
|
112
112
|
type: :runtime
|
113
113
|
prerelease: false
|
114
114
|
version_requirements: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - '='
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
118
|
+
version: 0.18.1
|
119
119
|
description: ''
|
120
120
|
email:
|
121
121
|
- info@decko.org
|
@@ -147,7 +147,7 @@ files:
|
|
147
147
|
- set/type/remote_manifest_group.rb
|
148
148
|
homepage: https://decko.org
|
149
149
|
licenses:
|
150
|
-
- GPL-3.0
|
150
|
+
- GPL-3.0-or-later
|
151
151
|
metadata:
|
152
152
|
source_code_uri: https://github.com/decko-commons/decko
|
153
153
|
homepage_uri: https://decko.org
|