turbo-sprockets-rails4 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/turbo-sprockets/asset_resolver.rb +3 -3
- data/lib/turbo-sprockets/version.rb +1 -1
- 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: e4a69563910fdfec752f5e1508f6a1a2288b3aac
|
4
|
+
data.tar.gz: b836b88fb397d2910cbec4974f0e96583518b200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba8b1a1bbbed05eed3e3c35aab875be99ab9333a999f52f4794fc6b615ad376ffbf7761eb396fc844b3c9925fdb85b7f91eabfff689a3788917e1a63c872af6
|
7
|
+
data.tar.gz: 86397bb9c7460b46a33a40685307203bdca9fed4ce50fd96fc9a85c39d2de01c464eeea9e1e92c7d7ccfd6cfb2ae86633a5bdb3bda1c08b5a7cd711592563747
|
@@ -8,10 +8,10 @@ module TurboSprockets
|
|
8
8
|
# => lux/checkmark_2x-7177b0151ec35ffb6d.png
|
9
9
|
#
|
10
10
|
def resolve(logical_path)
|
11
|
-
# If
|
12
|
-
# sprockets environment. If
|
11
|
+
# If assets is not nil we're running in development and have access to the
|
12
|
+
# sprockets environment. If assets is nil the sprockets environment
|
13
13
|
# will not be available, so we have to fall back to the asset manifest.
|
14
|
-
if Rails.application.
|
14
|
+
if Rails.application.assets
|
15
15
|
asset = Rails.application.assets.find_asset(logical_path)
|
16
16
|
|
17
17
|
if Rails.application.config.assets.digest
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo-sprockets-rails4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|