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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05f9c3f4b95117129a589cae8b77941e76f9d2ea
4
- data.tar.gz: aeb32fd997d155e49b38c7821ad77802170824a0
3
+ metadata.gz: 776500726eea9f7d954821d7f7bc7b529248439e
4
+ data.tar.gz: 53f808bcd6995303e127b3318201f58dc7b37788
5
5
  SHA512:
6
- metadata.gz: 73eaaea1d4c2fd0833c63547fd65630ad7d20ba2da6f5d9f02e60a1710c6ec5e7783cd4effc9bb5ccb76fe82a310ddc847bc3b9942b5e56960c67ec1f20a264c
7
- data.tar.gz: 3b10916911b57fb434225181aa27328a720b5b72d79b1bcdcaa1a52c23d8dbcb22091c99ea73d4409f0753f2d7d04fdda09c1cdd457b1c4794768d599279b24b
6
+ metadata.gz: 4db9dc4eb34bebc0d3bee32a0decbb3607d6c08088b51105685fa025750f4f424f70bd8c89fb0d229625abc03f16c704068761df0e7567c12a825e92295b8c0b
7
+ data.tar.gz: 574b67198a1678a067b477940437a96da798deffef7b99fbbc72fbeedd52018c9083bf0a290694c558a9d21dc953a2c13cd40f885de1a93105bf6a1ce1b41b31
data/README.md CHANGED
@@ -61,7 +61,7 @@ Optional settings:
61
61
  end
62
62
  ```
63
63
 
64
- - `cdn_url` - the base CDN URL (used only in `webpack_static_file_url` for now).
64
+ - `cdn_host` - the CDN host (used only in `webpack_static_file_url` for now).
65
65
 
66
66
  View helpers:
67
67
 
@@ -1,5 +1,5 @@
1
1
  module Webpack
2
2
  module Assets
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
@@ -12,8 +12,8 @@ module Webpack
12
12
  # @attribute static_path [String]
13
13
  attr_accessor :static_path
14
14
 
15
- # @attribute cdn_url [String]
16
- attr_accessor :cdn_url
15
+ # @attribute cdn_host [String]
16
+ attr_accessor :cdn_host
17
17
 
18
18
  # @attribute use_server [Boolean]
19
19
  attr_accessor :use_server
@@ -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.cdn_url.present?
51
- "//#{Webpack.config.cdn_url}#{static_file}"
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.0
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-28 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack