enhance 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/enhance/enhancer.rb +1 -1
- data/lib/enhance/version.rb +1 -1
- metadata +3 -3
data/lib/enhance/enhancer.rb
CHANGED
@@ -27,7 +27,7 @@ class Enhance::Enhancer
|
|
27
27
|
def _call env, matches
|
28
28
|
request = @folders.collect_first{|f| File.join(f, matches['filename']) if File.exists?(File.join(f, matches['filename']))}
|
29
29
|
|
30
|
-
if request && filename = convert(request, matches['filename'], CGI.unescape(matches['geometry'])).gsub(@file_root, '')
|
30
|
+
if request && (filename = convert(request, matches['filename'], CGI.unescape(matches['geometry']))) && filename.gsub!(@file_root, '')
|
31
31
|
env["PATH_INFO"] = filename
|
32
32
|
@server.call env
|
33
33
|
else
|
data/lib/enhance/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enhance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Guillaume Malette
|