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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3366a6575cf61794bc41a2ca9433a336408747a
4
- data.tar.gz: 71bd0f35a619ec2658ca2391047825040716553b
3
+ metadata.gz: e4a69563910fdfec752f5e1508f6a1a2288b3aac
4
+ data.tar.gz: b836b88fb397d2910cbec4974f0e96583518b200
5
5
  SHA512:
6
- metadata.gz: c4bbe01ac60c5e62364849a3cd3acc2206af29dbc8f027ef79ad74f99c3dd9394ee846be993f6c34a7b3e405fa363830f176dcbb66851a97d337b4321268e64a
7
- data.tar.gz: c66deda17dbdd3a0af0791513044db3c26987d146918b53089e889be07595fd48710890b0cc45d1e684a39bd49b8ee5c4a2a434c2fd3c1f3d532dd91ea24d09e
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 compile is true we're running in development and have access to the
12
- # sprockets environment. If compile is false the sprockets environment
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.config.assets.compile
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
@@ -1,3 +1,3 @@
1
1
  module TurboSprockets
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
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.1
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-02 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel