assets_precompile_enforcer 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -31,9 +31,9 @@ module Sprockets
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def ensure_asset_will_be_precompiled!(source, ext)
|
34
|
-
return if asset_paths.is_uri?
|
35
|
-
asset_file = asset_paths.rewrite_extension(source, nil, ext)
|
36
|
-
unless asset_environment.send(:
|
34
|
+
return if asset_paths.is_uri?(source)
|
35
|
+
asset_file = asset_environment.resolve(asset_paths.rewrite_extension(source, nil, ext))
|
36
|
+
unless asset_environment.send(:logical_path_for_filename, asset_file, Rails.application.config.assets.precompile)
|
37
37
|
raise AssetPaths::AssetNotPrecompiledError.new("#{asset_file} must be added to config.assets.precompile, " <<
|
38
38
|
"otherwise it won't be precompiled for production!")
|
39
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assets_precompile_enforcer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -43,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
43
43
|
version: '0'
|
44
44
|
segments:
|
45
45
|
- 0
|
46
|
-
hash:
|
46
|
+
hash: -3341127486628414213
|
47
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
48
|
none: false
|
49
49
|
requirements:
|
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
52
|
version: '0'
|
53
53
|
segments:
|
54
54
|
- 0
|
55
|
-
hash:
|
55
|
+
hash: -3341127486628414213
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
58
|
rubygems_version: 1.8.24
|