minipack 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/minipack/helper.rb +5 -5
- data/lib/minipack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2593e6271b33d7906571f5cba7293cb33edf060b7c5a971ce3540dd3197160b4
|
4
|
+
data.tar.gz: ce47ddda6fab17f73a1366ce142717181755b8a8d0cfb3b081389eefe5b0d333
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d737b396ff3d9ab05cd0134210ca4c1a27ab4824a7bae100d04ed8fdf0301b2441d4a673664107d96de0216c17bc728d231e89a3ece73c9591868d428f51dafc
|
7
|
+
data.tar.gz: bbfc5c7e17f3a46da117ba0926f2ce5a8e37100e391ce21cae4fa64394ac7ec274698929d8fcfd26699621b9c0d127c718b707d0748fdfd66b66b7a02f8c0580
|
data/CHANGELOG.md
CHANGED
data/lib/minipack/helper.rb
CHANGED
@@ -21,7 +21,7 @@ module Minipack::Helper
|
|
21
21
|
# <script src="/assets/web/pack/orders/app-1016838bab065ae1e314.js"></script>
|
22
22
|
def javascript_bundle_tag(*names, manifest: nil, **options)
|
23
23
|
entries_from_manifest(names, 'js', key: manifest).map { |entry|
|
24
|
-
javascript_include_tag(entry.path, **
|
24
|
+
javascript_include_tag(entry.path, **minipack_options_for(entry, options))
|
25
25
|
}.join("\n").html_safe
|
26
26
|
end
|
27
27
|
|
@@ -42,7 +42,7 @@ module Minipack::Helper
|
|
42
42
|
# <%= javascript_bundles_with_chunks_tag 'map' %>
|
43
43
|
def javascript_bundles_with_chunks_tag(*names, manifest: nil, **options)
|
44
44
|
sources_from_manifest_entrypoints(names, 'js', key: manifest).map { |entry|
|
45
|
-
javascript_include_tag(entry.path, **
|
45
|
+
javascript_include_tag(entry.path, **minipack_options_for(entry, options))
|
46
46
|
}.join("\n").html_safe
|
47
47
|
end
|
48
48
|
|
@@ -58,7 +58,7 @@ module Minipack::Helper
|
|
58
58
|
def stylesheet_bundle_tag(*names, manifest: nil, **options)
|
59
59
|
if Minipack.configuration.extract_css?
|
60
60
|
entries_from_manifest(names, 'css', key: manifest).map { |entry|
|
61
|
-
stylesheet_link_tag(entry.path, **
|
61
|
+
stylesheet_link_tag(entry.path, **minipack_options_for(entry, options))
|
62
62
|
}.join("\n").html_safe
|
63
63
|
end
|
64
64
|
end
|
@@ -79,7 +79,7 @@ module Minipack::Helper
|
|
79
79
|
def stylesheet_bundles_with_chunks_tag(*names, manifest: nil, **options)
|
80
80
|
if Minipack.configuration.extract_css?
|
81
81
|
sources_from_manifest_entrypoints(names, 'css', key: manifest).map { |entry|
|
82
|
-
stylesheet_link_tag(entry.path, **
|
82
|
+
stylesheet_link_tag(entry.path, **minipack_options_for(entry, options))
|
83
83
|
}.join("\n").html_safe
|
84
84
|
end
|
85
85
|
end
|
@@ -115,7 +115,7 @@ module Minipack::Helper
|
|
115
115
|
|
116
116
|
# @param [Minipack::Manifest::Entry] entry
|
117
117
|
# @param [Hash] options
|
118
|
-
def
|
118
|
+
def minipack_options_for(entry, options)
|
119
119
|
return options unless entry.integrity
|
120
120
|
options.merge(integrity: entry.integrity)
|
121
121
|
end
|
data/lib/minipack/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minipack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nobuhiro Nikushi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|