rack-auth-simples 0.0.4 → 0.0.5

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.
@@ -60,7 +60,12 @@ module Rack
60
60
  ip = env["REMOTE_ADDR"]
61
61
  end
62
62
 
63
- return app.call(env) if @exceptions.include? env['PATH_INFO']
63
+ if @exceptions.any?
64
+ @exceptions.each do |ex|
65
+ ex = Regexp.new "^#{Regexp.escape ex}" if ex.is_a? String
66
+ return app.call(env) if ex =~ env['PATH_INFO']
67
+ end
68
+ end
64
69
 
65
70
  ok = true
66
71
 
@@ -1,7 +1,7 @@
1
1
  module Rack
2
2
  module Auth
3
3
  class Simples
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-auth-simples
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-16 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ipaddr_list