js-packer-rails 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/js/packer/rails/version.rb +1 -1
- data/lib/js/packer/rails/view_helpers.rb +5 -4
- 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: cdca2cdf3c50334645858310b5106c168772c3a00bcc02c134c4281c9148c256
|
4
|
+
data.tar.gz: e12a3f11dc105b75f8034b99e6c447699b2e2700f88e5e4392adaf5620093320
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e4aa432dab33bd61987d4e6a121164c089e4ff015bd1e4452bb1d900df1c375c0b1698c8a9557e9df1c81575646779e26d61036fb4345c6f5e653b972a56158
|
7
|
+
data.tar.gz: 3e4f5e618e5745c18ffc59c7c264fcea4d14e6f65c1724fcccf45afb21c5bf9377477f89c27a3285a793b115b5049c05379ffaa7bc5735f5cf02c5b1b1d2e3ba
|
data/Gemfile.lock
CHANGED
@@ -7,7 +7,7 @@ module Js
|
|
7
7
|
def js_bundle_tag(*sources)
|
8
8
|
sources.uniq.map do |source|
|
9
9
|
bundle_name = js_bundle_name(source)
|
10
|
-
content_tag :script, '', src: "#{
|
10
|
+
content_tag :script, '', src: "#{js_bundle_path(bundle_name)}"
|
11
11
|
end.join("\n").html_safe
|
12
12
|
end
|
13
13
|
|
@@ -22,15 +22,16 @@ module Js
|
|
22
22
|
manifest[source + '.js']
|
23
23
|
end
|
24
24
|
|
25
|
+
def js_bundle_path(bundle_name)
|
26
|
+
"/#{config_bundle_path}/#{bundle_name}"
|
27
|
+
end
|
28
|
+
|
25
29
|
private
|
26
30
|
|
27
31
|
def manifest_path(source)
|
28
32
|
"#{::Rails.root}/#{config_manifest_path}/#{source}.json"
|
29
33
|
end
|
30
34
|
|
31
|
-
def bundle_path(bundle_name)
|
32
|
-
"/#{config_bundle_path}/#{bundle_name}"
|
33
|
-
end
|
34
35
|
|
35
36
|
def config?
|
36
37
|
File.exist?("#{::Rails.root}/config/packer.yml")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: js-packer-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Cieslar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|