rack-less 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/less/request.rb +3 -3
- data/lib/rack/less/version.rb +1 -1
- metadata +1 -1
data/lib/rack/less/request.rb
CHANGED
@@ -14,7 +14,7 @@ module Rack::Less
|
|
14
14
|
include Rack::Less::Options
|
15
15
|
|
16
16
|
CSS_PATH_REGEX = /\A.*\/(\w+)\.(\w+)\Z/
|
17
|
-
CSS_PATH_FORMATS = ['css']
|
17
|
+
CSS_PATH_FORMATS = ['.css']
|
18
18
|
|
19
19
|
# The HTTP request method. This is the standard implementation of this
|
20
20
|
# method but is respecified here due to libraries that attempt to modify
|
@@ -33,11 +33,11 @@ module Rack::Less
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def path_resource_name
|
36
|
-
path_info
|
36
|
+
File.basename(path_info, path_resource_format)
|
37
37
|
end
|
38
38
|
|
39
39
|
def path_resource_format
|
40
|
-
|
40
|
+
File.extname(path_info)
|
41
41
|
end
|
42
42
|
|
43
43
|
# The Rack::Less::Source that the request is for
|
data/lib/rack/less/version.rb
CHANGED