rack-mount 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,6 +61,11 @@ module Rack::Mount
61
61
  }
62
62
  @named_captures.freeze
63
63
 
64
+ @has_significant_params = @conditions.any? { |method, condition|
65
+ (condition.respond_to?(:required_params) && condition.required_params.any?) ||
66
+ (condition.respond_to?(:required_defaults) && condition.required_defaults.any?)
67
+ }
68
+
64
69
  if @conditions.has_key?(:path_info) &&
65
70
  !Utils.regexp_anchored?(@conditions[:path_info])
66
71
  @prefix = true
@@ -88,10 +93,7 @@ module Rack::Mount
88
93
  end
89
94
 
90
95
  def significant_params?
91
- @has_significant_params ||= @conditions.any? { |method, condition|
92
- (condition.respond_to?(:required_params) && condition.required_params.any?) ||
93
- (condition.respond_to?(:required_defaults) && condition.required_defaults.any?)
94
- }
96
+ @has_significant_params
95
97
  end
96
98
 
97
99
  def generate(method, params = {}, recall = {}, options = {})
@@ -1,3 +1,3 @@
1
1
  module Rack::Mount
2
- Version = '0.6.2'
2
+ Version = '0.6.3'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 2
9
- version: 0.6.2
8
+ - 3
9
+ version: 0.6.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Peek
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-13 00:00:00 -05:00
17
+ date: 2010-04-16 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20