enhance 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Enhance
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
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: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guillaume Malette