rails2_asset_pipeline 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -11,7 +11,7 @@ module Rails2AssetPipeline
|
|
11
11
|
ignored_folders = Rails2AssetPipeline::ViewHelpers.ignored_folders
|
12
12
|
source_is_relative = (
|
13
13
|
source.is_a?(String) and
|
14
|
-
source =~ /^[
|
14
|
+
source =~ /^[\w\-]+(\/|\.|$)/ and # xxx or xxx.js or xxx/yyy, not /xxx or http://
|
15
15
|
not (ignored_folders and ignored_folders.include?(args[1]))
|
16
16
|
)
|
17
17
|
|
@@ -88,6 +88,12 @@ describe Rails2AssetPipeline::ViewHelpers do
|
|
88
88
|
@compute_public_path.should == ["/assets/xxx.js?123456", "a", "b"]
|
89
89
|
end
|
90
90
|
|
91
|
+
it "converts relative paths with extension and non-word characters" do
|
92
|
+
env["xx_-x.js"] = env["xxx.js"]
|
93
|
+
compute_public_path("xx_-x.js", "a", "b").should == :super
|
94
|
+
@compute_public_path.should == ["/assets/xx_-x.js?123456", "a", "b"]
|
95
|
+
end
|
96
|
+
|
91
97
|
it "converts relative paths without extension" do
|
92
98
|
compute_public_path("xxx", "a", "js").should == :super
|
93
99
|
@compute_public_path.should == ["/assets/xxx.js?123456", "a", "js"]
|
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.10
|
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: -812946428814795684
|
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: -812946428814795684
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
82
|
rubygems_version: 1.8.24
|