rails2_asset_pipeline 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -5,7 +5,7 @@ module Rails2AssetPipeline
|
|
5
5
|
return "/assets/NOT_FOUND" unless data
|
6
6
|
asset = "/assets/#{asset}"
|
7
7
|
|
8
|
-
if Rails2AssetPipeline::STATIC_ENVIRONMENTS.include?(Rails.env)
|
8
|
+
if not Rails2AssetPipeline.dynamic_assets_available or Rails2AssetPipeline::STATIC_ENVIRONMENTS.include?(Rails.env)
|
9
9
|
asset.sub(/(\.[\.a-z]+$)/, "-#{data.digest}\\1")
|
10
10
|
else
|
11
11
|
"#{asset}?#{data.mtime.to_i}"
|
@@ -27,7 +27,7 @@ describe Rails2AssetPipeline::ViewHelpers do
|
|
27
27
|
|
28
28
|
it "returns a path with digest when dynamic loader is not available" do
|
29
29
|
Rails2AssetPipeline.dynamic_assets_available = false
|
30
|
-
pipeline_path("xxx.js").should == "/assets/xxx.js
|
30
|
+
pipeline_path("xxx.js").should == "/assets/xxx-abc.js"
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails2_asset_pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
segments:
|
69
69
|
- 0
|
70
|
-
hash:
|
70
|
+
hash: -1643119190807925392
|
71
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
segments:
|
78
78
|
- 0
|
79
|
-
hash:
|
79
|
+
hash: -1643119190807925392
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
82
|
rubygems_version: 1.8.24
|