asset_host_selection 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asset_host_selection.rb +3 -1
- data/test/asset_host_selection_test.rb +6 -0
- 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: 79e63e7d28d60eedcff353ca2c58bf345abb8ef5
|
4
|
+
data.tar.gz: 951dd3b9968b288e7809e50386fe0f6b58db4cb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb6e0da5c4d927bf350c08cbbc3b7d0887b9d9372d054e997f8e018b41e1227dd11b8871c697ec5b64ec00f7ed11e220f55f74580f8ead01f855c5bb678f361b
|
7
|
+
data.tar.gz: 200e3bdd4a76a17689156ab020206aa0f630168a37ec3133e019db5fcdda58bb04f8a78a504330efbb836948338d3cb65e59fdc4cd90ea3c2e6be21e79a4cdbd
|
data/lib/asset_host_selection.rb
CHANGED
@@ -47,7 +47,9 @@ module AssetHostSelection
|
|
47
47
|
@selector = selector
|
48
48
|
end
|
49
49
|
|
50
|
-
def call(source, request)
|
50
|
+
def call(source, request = nil)
|
51
|
+
return unless request # rails 4 does not pass request in during asset compilation
|
52
|
+
|
51
53
|
asset_provider = @selector.select(request)
|
52
54
|
host = asset_provider.host if asset_provider
|
53
55
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asset_host_selection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Chapweske
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-01-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|