rack-mount 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/mount/analysis/splitting.rb +0 -6
- data/lib/rack/mount/prefix.rb +1 -1
- data/lib/rack/mount/version.rb +1 -1
- metadata +3 -3
@@ -132,12 +132,6 @@ module Rack::Mount
|
|
132
132
|
else
|
133
133
|
break
|
134
134
|
end
|
135
|
-
|
136
|
-
if index + 1 == parts.size
|
137
|
-
segments << join_buffer(buf, regexp) if buf
|
138
|
-
buf = nil
|
139
|
-
break
|
140
|
-
end
|
141
135
|
end
|
142
136
|
|
143
137
|
while segments.length > 0 && (segments.last.nil? || segments.last == '')
|
data/lib/rack/mount/prefix.rb
CHANGED
@@ -20,7 +20,7 @@ module Rack::Mount
|
|
20
20
|
old_script_name = env[SCRIPT_NAME].dup
|
21
21
|
|
22
22
|
begin
|
23
|
-
env[PATH_INFO] =
|
23
|
+
env[PATH_INFO] = env[PATH_INFO].sub(prefix, EMPTY_STRING)
|
24
24
|
env[PATH_INFO] = EMPTY_STRING if env[PATH_INFO] == SLASH
|
25
25
|
env[SCRIPT_NAME] = Utils.normalize_path(env[SCRIPT_NAME].to_s + prefix)
|
26
26
|
@app.call(env)
|
data/lib/rack/mount/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-mount
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 8
|
10
|
+
version: 0.6.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua Peek
|