munge 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/munge/helpers/asset_tags.rb +5 -4
- data/lib/munge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e988722288862121d7457950447fbab2c86f92
|
4
|
+
data.tar.gz: 17714169a9382dfc2ff42b966c3f4650409d0aba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0661b313d6ec45bd7f3b762d31706d9c44b83dc2d29bd1b88792aba609e94073f0d617d2456d0ae2d30de77622a195c813dcfb933e20c8af7e3848e98fa143d
|
7
|
+
data.tar.gz: f2b2b49dd321267749c44c88963ebe92dfe57e64f70e9069579b87fab7774e02670897f1830095ecdbe96e618930e7987a7c07eb8e8abf8bf93daba68cf71465
|
@@ -22,17 +22,18 @@ module Munge
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def inline_stylesheet_tag(basename, options = {})
|
25
|
-
inline_asset_tag_helper(
|
25
|
+
inline_asset_tag_helper(stylesheets_root, basename, :style, options)
|
26
26
|
end
|
27
27
|
|
28
28
|
def inline_javascript_tag(basename, options = {})
|
29
|
-
inline_asset_tag_helper(
|
29
|
+
inline_asset_tag_helper(javascripts_root, basename, :script, options)
|
30
30
|
end
|
31
31
|
|
32
32
|
private
|
33
33
|
|
34
|
-
def inline_asset_tag_helper(
|
35
|
-
|
34
|
+
def inline_asset_tag_helper(asset_root, basename, tag, options)
|
35
|
+
path_to_asset = File.join(asset_root, basename)
|
36
|
+
rendered_asset = render(items[path_to_asset])
|
36
37
|
|
37
38
|
content_tag(tag, rendered_asset, options)
|
38
39
|
end
|
data/lib/munge/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: munge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Ahn
|
@@ -288,7 +288,7 @@ dependencies:
|
|
288
288
|
- - "~>"
|
289
289
|
- !ruby/object:Gem::Version
|
290
290
|
version: '3.4'
|
291
|
-
description: Documentation for this release is located in https://github.com/zachahn/munge/blob/v0.15.
|
291
|
+
description: Documentation for this release is located in https://github.com/zachahn/munge/blob/v0.15.1/README.md
|
292
292
|
email:
|
293
293
|
- zach.ahn@gmail.com
|
294
294
|
executables:
|