external_asset_pipeline 0.2.0 → 0.3.0

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
  SHA256:
3
- metadata.gz: 2bfc5bd2d775a6b807db3e067e4fc0a7b890e4802bce439e56fabd5d24c942e3
4
- data.tar.gz: a53ea05568bf8faf693f128a6fa338846ebf07bf8468569aa34001803641be27
3
+ metadata.gz: 547629ac518b2b784df463acc7a930892f395d3d6537e1491a11b149fb12efb7
4
+ data.tar.gz: aa861afcb41156923afa22e359d024f08b264fd8ff30280381f7aeefdfff3f70
5
5
  SHA512:
6
- metadata.gz: aae3b7e92d47fe1f9a5b46ad3896c281e85a44222a010a4ddfc051272a23156b38d30625f2daf1eb50e65c467f9c6a9c108b5d5b86ed01c5b419a645d4444a8a
7
- data.tar.gz: 9c9a0cb5c1c9f08c7fa3383d1dd947bc08bcc64a100eabe993588b54562554cc2b506ea0601616f2ff058cdbe63868594eb721a3043874955a906d556bd2224c
6
+ metadata.gz: ae6bc9ebe73f48d7edb7eab1dc7e07f2318552336a34d9a26bf376f5cdf540da733d94b847d314879e322e0d4f45ed0cf34d30698460cd2dff56b2d92c38657c
7
+ data.tar.gz: 1c9a91b49c48a3d00ac615a81459cdcbdc9dfaf3bedfb5417a298c37df6730a563096c9a24451c8c06e8c1eec3ece10ccf9ccacee62f7a3ff23e6ac86381c61c
@@ -19,7 +19,8 @@ module ExternalAssetPipeline
19
19
  attr_accessor :connect_timeout,
20
20
  :enabled,
21
21
  :host,
22
- :port
22
+ :port,
23
+ :public_origin
23
24
 
24
25
  def initialize
25
26
  @connect_timeout = 0.01
@@ -13,7 +13,7 @@ module ExternalAssetPipeline
13
13
  end
14
14
 
15
15
  def origin
16
- "http://#{@config.host}:#{@config.port}"
16
+ @config.public_origin || "http://#{@config.host}:#{@config.port}"
17
17
  end
18
18
 
19
19
  def running?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExternalAssetPipeline
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: external_asset_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Macklin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -57,8 +57,8 @@ licenses:
57
57
  - MIT
58
58
  metadata:
59
59
  homepage_uri: https://github.com/rails-front-end/external_asset_pipeline
60
- source_code_uri: https://github.com/rails-front-end/external_asset_pipeline/tree/v0.2.0
61
- changelog_uri: https://github.com/rails-front-end/external_asset_pipeline/blob/v0.2.0/CHANGELOG.md
60
+ source_code_uri: https://github.com/rails-front-end/external_asset_pipeline/tree/v0.3.0
61
+ changelog_uri: https://github.com/rails-front-end/external_asset_pipeline/blob/v0.3.0/CHANGELOG.md
62
62
  post_install_message:
63
63
  rdoc_options: []
64
64
  require_paths: