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.
@@ -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 =~ CSS_PATH_REGEX ? path_info.match(CSS_PATH_REGEX)[1] : nil
36
+ File.basename(path_info, path_resource_format)
37
37
  end
38
38
 
39
39
  def path_resource_format
40
- path_info =~ CSS_PATH_REGEX ? path_info.match(CSS_PATH_REGEX)[2] : nil
40
+ File.extname(path_info)
41
41
  end
42
42
 
43
43
  # The Rack::Less::Source that the request is for
@@ -3,7 +3,7 @@ module RackLess
3
3
 
4
4
  MAJOR = 1
5
5
  MINOR = 1
6
- TINY = 0
6
+ TINY = 1
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-less
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding