rack-auditor 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,8 +55,8 @@ module Rack
55
55
  def inappropriate_request(env)
56
56
  return false if @api_prefix == ''
57
57
 
58
- namespace = env['REQUEST_URI'].split('/')[0]
59
- return false if namespace == @api_prefix
58
+ uri = env['REQUEST_URI']
59
+ return false if uri.match(@api_prefix)
60
60
 
61
61
  true
62
62
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rack-auditor"
3
- s.version = "1.0.0"
3
+ s.version = "1.0.1"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Patrick Robertson"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-auditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: