webpack-assets 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/webpack/assets/version.rb +1 -1
- data/lib/webpack/configuration.rb +3 -0
- data/lib/webpack/view_helpers.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05f9c3f4b95117129a589cae8b77941e76f9d2ea
|
4
|
+
data.tar.gz: aeb32fd997d155e49b38c7821ad77802170824a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73eaaea1d4c2fd0833c63547fd65630ad7d20ba2da6f5d9f02e60a1710c6ec5e7783cd4effc9bb5ccb76fe82a310ddc847bc3b9942b5e56960c67ec1f20a264c
|
7
|
+
data.tar.gz: 3b10916911b57fb434225181aa27328a720b5b72d79b1bcdcaa1a52c23d8dbcb22091c99ea73d4409f0753f2d7d04fdda09c1cdd457b1c4794768d599279b24b
|
data/README.md
CHANGED
data/lib/webpack/view_helpers.rb
CHANGED
@@ -46,7 +46,12 @@ module Webpack
|
|
46
46
|
if Webpack.config.use_server
|
47
47
|
server_url(path)
|
48
48
|
else
|
49
|
-
Webpack.fetch_static_file("#{Webpack.config.static_path}/#{path}")
|
49
|
+
static_file = Webpack.fetch_static_file("#{Webpack.config.static_path}/#{path}")
|
50
|
+
if Webpack.config.cdn_url.present?
|
51
|
+
"//#{Webpack.config.cdn_url}#{static_file}"
|
52
|
+
else
|
53
|
+
static_file
|
54
|
+
end
|
50
55
|
end
|
51
56
|
end
|
52
57
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpack-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Nartimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.4.
|
127
|
+
rubygems_version: 2.4.8
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Webpack Assets for Rails.
|