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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e027ec32d686c544269730fcd786c1f836aa5cc87e8c17ddab1df1ae16e9cb0
4
- data.tar.gz: 864ad550f87dc57046a6d31797562103ec93ead9c5dbb7f24709cc592888729e
3
+ metadata.gz: cdca2cdf3c50334645858310b5106c168772c3a00bcc02c134c4281c9148c256
4
+ data.tar.gz: e12a3f11dc105b75f8034b99e6c447699b2e2700f88e5e4392adaf5620093320
5
5
  SHA512:
6
- metadata.gz: ffa0ad5dd8cd81c6b24341bc9aedc3e8371e564193b4e487517aab0e606da5220df025de284d45b0986664825aa8416bbfb010ffa7d8f8bd3dcc0cd54bbf6b24
7
- data.tar.gz: 347523bfee226b57c25aa1cf44e9009ebba97a271625e19eeed0bea51fcd67904cb97fb4d6f53e24a61c8bec9a8d5c4a50927817b815eb9c0342e71aa2a5806c
6
+ metadata.gz: 1e4aa432dab33bd61987d4e6a121164c089e4ff015bd1e4452bb1d900df1c375c0b1698c8a9557e9df1c81575646779e26d61036fb4345c6f5e653b972a56158
7
+ data.tar.gz: 3e4f5e618e5745c18ffc59c7c264fcea4d14e6f65c1724fcccf45afb21c5bf9377477f89c27a3285a793b115b5049c05379ffaa7bc5735f5cf02c5b1b1d2e3ba
@@ -10,7 +10,7 @@ GEM
10
10
  actionmailer (4.2.10)
11
11
  actionpack (= 4.2.10)
12
12
  actionview (= 4.2.10)
13
- activejob (= 4.2.10)
13
+ activejob (= 4.2.11)
14
14
  mail (~> 2.5, >= 2.5.4)
15
15
  rails-dom-testing (~> 1.0, >= 1.0.5)
16
16
  actionpack (4.2.10)
@@ -1,7 +1,7 @@
1
1
  module Js
2
2
  module Packer
3
3
  module Rails
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
6
6
  end
7
7
  end
@@ -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: "#{bundle_path(bundle_name)}"
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.3
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: 2018-11-20 00:00:00.000000000 Z
11
+ date: 2019-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties