rack-mount 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,6 +60,10 @@ module Rack::Mount
60
60
  }
61
61
  named_captures
62
62
  end
63
+
64
+ def eql?(other)
65
+ super && @names.eql?(other.names)
66
+ end
63
67
  end
64
68
  end
65
69
  end
@@ -99,7 +99,7 @@ module Rack::Mount
99
99
  module_function :normalize_extended_expression
100
100
 
101
101
  def parse_regexp(regexp)
102
- cache = Thread.current[:rack_mount_utils_parse_regexp_cache] ||= {}
102
+ cache = @@_parse_regexp_cache ||= {}
103
103
 
104
104
  if expression = cache[regexp]
105
105
  return expression
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-mount
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-09 00:00:00 -06:00
12
+ date: 2010-01-10 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency