webpack-assets 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/webpack/assets/version.rb +1 -1
- data/lib/webpack/configuration.rb +2 -2
- data/lib/webpack/view_helpers.rb +2 -2
- 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: 776500726eea9f7d954821d7f7bc7b529248439e
|
4
|
+
data.tar.gz: 53f808bcd6995303e127b3318201f58dc7b37788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4db9dc4eb34bebc0d3bee32a0decbb3607d6c08088b51105685fa025750f4f424f70bd8c89fb0d229625abc03f16c704068761df0e7567c12a825e92295b8c0b
|
7
|
+
data.tar.gz: 574b67198a1678a067b477940437a96da798deffef7b99fbbc72fbeedd52018c9083bf0a290694c558a9d21dc953a2c13cd40f885de1a93105bf6a1ce1b41b31
|
data/README.md
CHANGED
@@ -12,8 +12,8 @@ module Webpack
|
|
12
12
|
# @attribute static_path [String]
|
13
13
|
attr_accessor :static_path
|
14
14
|
|
15
|
-
# @attribute
|
16
|
-
attr_accessor :
|
15
|
+
# @attribute cdn_host [String]
|
16
|
+
attr_accessor :cdn_host
|
17
17
|
|
18
18
|
# @attribute use_server [Boolean]
|
19
19
|
attr_accessor :use_server
|
data/lib/webpack/view_helpers.rb
CHANGED
@@ -47,8 +47,8 @@ module Webpack
|
|
47
47
|
server_url(path)
|
48
48
|
else
|
49
49
|
static_file = Webpack.fetch_static_file("#{Webpack.config.static_path}/#{path}")
|
50
|
-
if Webpack.config.
|
51
|
-
"//#{Webpack.config.
|
50
|
+
if Webpack.config.cdn_host.present?
|
51
|
+
"//#{Webpack.config.cdn_host}#{static_file}"
|
52
52
|
else
|
53
53
|
static_file
|
54
54
|
end
|
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.2.
|
4
|
+
version: 0.2.1
|
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-04-
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|