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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ed9e85daa6d8bc1888dad6a1aff933db2ede977f0611531f63b030ad79e6670
4
- data.tar.gz: 512b2a4590f7eab9ffe19def82fdf80506ec85867dd0f11d246e1cb653f9bffa
3
+ metadata.gz: 9ed1151749f95ad38ec8bfe153c7dec2da008d117d1194ebbb1e258730258420
4
+ data.tar.gz: ccc763c5fc2d04f03a730301ce370d2f4a0ef6ea5995da9122cbe9f29e453cbe
5
5
  SHA512:
6
- metadata.gz: 411ecfc45cea3131670e575593f88de3637e1e8fdd9a699014c1082f17ea2c7692a34f80be728c9a5bbd99e87018e80ca9f010056d0f37425152d3f3f03877a3
7
- data.tar.gz: b84e3c67acb095c515821c27bde118c0106d4a7134d8b4ace2183746c9a84a7e2898b6f45163c9592a4fbb461836c555bad72dcfefd1171c8c99384c4d38e84a
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 improve users' experience by reducing loading times. In other
12
- words, we use a wide variety of asset sources to assemble a ready-for-prime-time
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
@@ -0,0 +1,3 @@
1
+ cardtypes:
2
+ assets:
3
+ - remote_manifest_group
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: { type_id: SetID }, right_id: StyleID }
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 }, right_id: ScriptID).flatten
55
+ Card.search(left: { type: :mod }, right: :script).flatten
61
56
  end
62
57
 
63
58
  def style_outputters
@@ -13,7 +13,7 @@ def referers_responding_to method_name
13
13
  end
14
14
 
15
15
  event :asset_input_changed, :finalize,
16
- on: :save, when: :asset_inputter?, skip: :allowed do
16
+ on: :save, when: :asset_inputter?, changed: :content, skip: :allowed do
17
17
  update_asset_input
18
18
  end
19
19
 
@@ -0,0 +1,5 @@
1
+ - groups.each do |(title, items)|
2
+ %p
3
+ %h5
4
+ =title
5
+ =list_group(items)
@@ -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
@@ -2,8 +2,8 @@ def followable?
2
2
  false
3
3
  end
4
4
 
5
- def ok_to_read
6
- left.ok_to_read
5
+ def ok_to_read?
6
+ left.ok_to_read?
7
7
  end
8
8
 
9
9
  def history?
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.16.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: 2023-11-18 00:00:00.000000000 Z
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.106.0
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.106.0
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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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: '2.5'
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.4.10
174
+ rubygems_version: 3.5.10
173
175
  signing_key:
174
176
  specification_version: 4
175
177
  summary: decko asset pipeline