turbo-sprockets-rails3 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -51,7 +51,7 @@ Fully compatible. Just don't use the experimental `AssetSync.config.manifest = t
51
51
 
52
52
  ### [wicked_pdf](https://github.com/mileszs/wicked_pdf)
53
53
 
54
- Some users have reported that their production server was attempting to compile assets. To solve this, you will need to use the latest code on the `wicked_pdf` master branch by adding the following line to your `Gemfile`:
54
+ Fully compatible. However, you will need to use the latest code on the `wicked_pdf` master branch until a version newer than `0.7.9` is released. Add the following line to your `Gemfile`:
55
55
 
56
56
  ```ruby
57
57
  gem 'wicked_pdf', :github => "mileszs/wicked_pdf"
@@ -2,7 +2,7 @@ require 'sprockets/helpers/rails_helper'
2
2
 
3
3
  module Sprockets
4
4
  module Helpers
5
- RailsHelper.module_eval do
5
+ module RailsHelper
6
6
  def asset_paths
7
7
  @asset_paths ||= begin
8
8
  paths = RailsHelper::AssetPaths.new(config, controller)
@@ -14,29 +14,29 @@ module Sprockets
14
14
  end
15
15
  end
16
16
 
17
- private
18
- def digest_files
19
- Rails.application.config.assets.digest_files
20
- end
21
- end
22
-
23
- RailsHelper::AssetPaths.class_eval do
24
- attr_accessor :digest_files
17
+ AssetPaths.class_eval do
18
+ attr_accessor :digest_files
25
19
 
26
- def digest_for(logical_path)
27
- if digest_assets && digest_files && (digest = digest_files[logical_path])
28
- return digest
29
- end
20
+ def digest_for(logical_path)
21
+ if digest_assets && digest_files && (digest = digest_files[logical_path])
22
+ return digest
23
+ end
30
24
 
31
- if compile_assets
32
- if digest_assets && asset = asset_environment[logical_path]
33
- return asset.digest_path
25
+ if compile_assets
26
+ if digest_assets && asset = asset_environment[logical_path]
27
+ return asset.digest_path
28
+ end
29
+ return logical_path
30
+ else
31
+ raise AssetNotPrecompiledError.new("#{logical_path} isn't precompiled")
34
32
  end
35
- return logical_path
36
- else
37
- raise AssetNotPrecompiledError.new("#{logical_path} isn't precompiled")
38
33
  end
39
34
  end
35
+
36
+ private
37
+ def digest_files
38
+ Rails.application.config.assets.digest_files
39
+ end
40
40
  end
41
41
  end
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module TurboSprockets
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo-sprockets-rails3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-10 00:00:00.000000000 Z
12
+ date: 2012-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sprockets