rack-lesscss 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/rack-lesscss.rb +3 -3
  2. metadata +3 -3
data/lib/rack-lesscss.rb CHANGED
@@ -2,13 +2,13 @@ require 'less'
2
2
 
3
3
  module Rack
4
4
  class LessCss
5
-
5
+
6
6
  def initialize(app, opts)
7
7
  @app = app
8
8
  @less_path = opts[:less_path] or raise ArgumentError, "You must specify :less_path option (path to directory containing .less files)"
9
9
  css_route = opts[:css_route] || "/stylesheets"
10
10
  css_route = css_route[0..-2] if css_route[-1] == "/"
11
- @css_route_regexp = /#{Regexp.escape(css_route)}\/([^\.]+)\.css/
11
+ @css_route_regexp = /#{Regexp.escape(css_route)}\/(.+)\.css/
12
12
  end
13
13
 
14
14
  def call(env)
@@ -25,7 +25,7 @@ module Rack
25
25
  end
26
26
  @app.call(env)
27
27
  end
28
-
28
+
29
29
  private
30
30
  def get_source(stylesheet)
31
31
  ::File.read(::File.join(@less_path, stylesheet + ".less"))
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Marcin Kulik
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-17 00:00:00 +02:00
17
+ date: 2010-06-04 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency