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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25f673749fbc6937969b76dc5e6067a6b93d36db
4
- data.tar.gz: 662c67d7e42c7a62ce0a2759c31de3c9f61911a0
3
+ metadata.gz: 24e988722288862121d7457950447fbab2c86f92
4
+ data.tar.gz: 17714169a9382dfc2ff42b966c3f4650409d0aba
5
5
  SHA512:
6
- metadata.gz: 96c0ad09cbe74495f54bb76a9c1f2db9449362cb2e521331b2408c20f2572d091d07077ee3f59522c4b0e430e8702f9845ee5cb2c9aac0bb5adc60e027de4ef2
7
- data.tar.gz: 86d863d8c3cc7ceb8022097fbdee9dc87851376d842f77499627aa2aa54119c15a2f7e96bb95d456cbf27f82809f030fb3edd8b9d6ae1eb2017b280edb4a1032
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(:stylesheet_path, basename, :style, options)
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(:javascript_path, basename, :script, options)
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(asset_path_method, basename, tag, options)
35
- rendered_asset = render(send(asset_path_method, basename))
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
@@ -1,3 +1,3 @@
1
1
  module Munge
2
- VERSION = "0.15.0".freeze
2
+ VERSION = "0.15.1".freeze
3
3
  end
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.0
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.0/README.md
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: