usher 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION.yml +2 -2
- data/lib/usher/interface/rack_interface.rb +1 -1
- data/lib/usher/node.rb +1 -0
- metadata +1 -1
data/Rakefile
CHANGED
@@ -14,6 +14,7 @@ begin
|
|
14
14
|
end
|
15
15
|
Jeweler::RubyforgeTasks.new do |rubyforge|
|
16
16
|
rubyforge.doc_task = "rdoc"
|
17
|
+
rubyforge.remote_doc_path = ''
|
17
18
|
end
|
18
19
|
rescue LoadError
|
19
20
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
data/VERSION.yml
CHANGED
@@ -5,7 +5,7 @@ class Usher
|
|
5
5
|
class RackInterface
|
6
6
|
|
7
7
|
def initialize(&blk)
|
8
|
-
@router = Usher.new(:request_methods => [:
|
8
|
+
@router = Usher.new(:request_methods => [:request_method, :host, :port, :scheme], :generator => Usher::Util::Generators::URL.new)
|
9
9
|
instance_eval(&blk) if blk
|
10
10
|
end
|
11
11
|
|
data/lib/usher/node.rb
CHANGED
@@ -84,6 +84,7 @@ class Usher
|
|
84
84
|
return ret
|
85
85
|
end
|
86
86
|
end
|
87
|
+
nil
|
87
88
|
elsif terminates? && (path.size.zero? || terminates.route.partial_match?)
|
88
89
|
if terminates.route.partial_match?
|
89
90
|
Response.new(terminates, params, original_path[position, original_path.size], original_path[0, position])
|