card-mod-assets 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/config/admin.yml +3 -0
- data/lib/card/assets.rb +3 -8
- data/set/abstract/asset_inputter.rb +1 -1
- data/set/abstract/mod_assets/group_list.haml +5 -0
- data/set/abstract/mod_assets.rb +12 -0
- data/set/right/asset_output.rb +2 -2
- data/set/type/mod.rb +0 -8
- metadata +18 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ed1151749f95ad38ec8bfe153c7dec2da008d117d1194ebbb1e258730258420
|
4
|
+
data.tar.gz: ccc763c5fc2d04f03a730301ce370d2f4a0ef6ea5995da9122cbe9f29e453cbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c98decfa9cecdb6c48ab83c0f0b6ef8e33f95f376f47c66aa1d570bd79762b9c01aa823496cd0b638852f161aa75fcec04f51c6d23dfd5365180f18a1bf98881
|
7
|
+
data.tar.gz: e645a2571351d896596471e03682b24a6b89f4ee7badee323081f7e976a2e617612656251f96ba508c22605e89f9518080997aa51b8d679fa7639ddc3476d522
|
data/README.md
CHANGED
@@ -8,9 +8,9 @@ This mod unifies handling of styles (CSS, SCSS, etc) and scripts
|
|
8
8
|
(JavaScript, CoffeeScript, etc).
|
9
9
|
|
10
10
|
For both styles and scripts, the idea is to output optimized files for
|
11
|
-
browser caching and thus
|
12
|
-
|
13
|
-
.js and .css files.
|
11
|
+
browser caching and thus reduce load times. Basically, we use a wide variety
|
12
|
+
of asset sources (cards, mod files, remote urls...) to assemble
|
13
|
+
ready-for-prime-time .js and .css files.
|
14
14
|
|
15
15
|
There are two main kinds of cards in the asset pipeline: inputters (where
|
16
16
|
the code comes from) and outputters (where it ends up).
|
data/config/admin.yml
ADDED
data/lib/card/assets.rb
CHANGED
@@ -7,12 +7,7 @@ class Card
|
|
7
7
|
# FIXME: if we need this (not sure we do? see below), these types should probably
|
8
8
|
# be in a basket so that monkeys can add them.
|
9
9
|
def inputter_types
|
10
|
-
[
|
11
|
-
JavaScriptID,
|
12
|
-
CoffeeScriptID,
|
13
|
-
CssID,
|
14
|
-
ScssID
|
15
|
-
]
|
10
|
+
[JavaScriptID, CoffeeScriptID, CssID, ScssID]
|
16
11
|
end
|
17
12
|
|
18
13
|
def refresh force: false
|
@@ -44,7 +39,7 @@ class Card
|
|
44
39
|
end
|
45
40
|
|
46
41
|
def active_theme_cards
|
47
|
-
style_rule = { left: {
|
42
|
+
style_rule = { left: { type: :set }, right: :style }
|
48
43
|
Card.search(referred_to_by: style_rule).select do |theme|
|
49
44
|
theme.respond_to? :theme_name
|
50
45
|
end
|
@@ -57,7 +52,7 @@ class Card
|
|
57
52
|
end
|
58
53
|
|
59
54
|
def script_outputters
|
60
|
-
Card.search(left: { type: :mod },
|
55
|
+
Card.search(left: { type: :mod }, right: :script).flatten
|
61
56
|
end
|
62
57
|
|
63
58
|
def style_outputters
|
data/set/abstract/mod_assets.rb
CHANGED
@@ -162,4 +162,16 @@ format :html do
|
|
162
162
|
|
163
163
|
remote_items.map { |args| yield args.clone }
|
164
164
|
end
|
165
|
+
|
166
|
+
view :core do
|
167
|
+
groups =
|
168
|
+
card.item_cards.map do |item|
|
169
|
+
[item.cardname.tag, item.input_item_cards.map(&:name)]
|
170
|
+
end
|
171
|
+
if card.remote_group_urls.present?
|
172
|
+
groups << ["group: remote", card.remote_group_urls.map { |remote| remote["src"] }]
|
173
|
+
end
|
174
|
+
|
175
|
+
haml :group_list, groups: groups
|
176
|
+
end
|
165
177
|
end
|
data/set/right/asset_output.rb
CHANGED
data/set/type/mod.rb
CHANGED
@@ -1,10 +1,3 @@
|
|
1
|
-
# TODO: We can't detect file removal for folder group
|
2
|
-
|
3
|
-
include_set List
|
4
|
-
|
5
|
-
def modname
|
6
|
-
codename.to_s.gsub(/^mod_/, "")
|
7
|
-
end
|
8
1
|
|
9
2
|
def ensure_mod_asset_card asset_type
|
10
3
|
asset_card = fetch_mod_assets_card asset_type
|
@@ -14,7 +7,6 @@ def ensure_mod_asset_card asset_type
|
|
14
7
|
end
|
15
8
|
|
16
9
|
private
|
17
|
-
|
18
10
|
def fetch_mod_assets_card asset_type
|
19
11
|
Card.fetch [name, asset_type], new: { type: :list }
|
20
12
|
end
|
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.17.0
|
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:
|
13
|
+
date: 2024-06-12 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.107.0
|
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.107.0
|
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.17.0
|
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.17.0
|
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.17.0
|
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.17.0
|
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.17.0
|
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.17.0
|
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.17.0
|
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.17.0
|
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.17.0
|
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.17.0
|
119
119
|
description: ''
|
120
120
|
email:
|
121
121
|
- info@decko.org
|
@@ -125,6 +125,7 @@ extra_rdoc_files: []
|
|
125
125
|
files:
|
126
126
|
- LICENSE
|
127
127
|
- README.md
|
128
|
+
- config/admin.yml
|
128
129
|
- config/locales/de.yml
|
129
130
|
- config/locales/en.yml
|
130
131
|
- data/real.yml
|
@@ -139,6 +140,7 @@ files:
|
|
139
140
|
- set/abstract/folder_group.rb
|
140
141
|
- set/abstract/local_manifest_group.rb
|
141
142
|
- set/abstract/mod_assets.rb
|
143
|
+
- set/abstract/mod_assets/group_list.haml
|
142
144
|
- set/right/asset_input.rb
|
143
145
|
- set/right/asset_output.rb
|
144
146
|
- set/type/mod.rb
|
@@ -162,14 +164,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
164
|
requirements:
|
163
165
|
- - ">="
|
164
166
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
167
|
+
version: '3.0'
|
166
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
169
|
requirements:
|
168
170
|
- - ">="
|
169
171
|
- !ruby/object:Gem::Version
|
170
172
|
version: '0'
|
171
173
|
requirements: []
|
172
|
-
rubygems_version: 3.
|
174
|
+
rubygems_version: 3.5.10
|
173
175
|
signing_key:
|
174
176
|
specification_version: 4
|
175
177
|
summary: decko asset pipeline
|