rewritten 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.rdoc +6 -0
- data/lib/rack/url.rb +1 -7
- data/lib/rewritten/version.rb +1 -1
- metadata +4 -4
data/HISTORY.rdoc
CHANGED
data/lib/rack/url.rb
CHANGED
@@ -31,17 +31,11 @@ module Rack
|
|
31
31
|
|
32
32
|
new_path = env["rack.url_scheme"].dup
|
33
33
|
new_path << "://"
|
34
|
-
|
35
|
-
new_path << env["HTTP_X_FORWARDED_HOST"].dup.sub(/^#{subdomain.chomp(':')}\./, '')
|
36
|
-
else
|
37
|
-
new_path << env["HTTP_HOST"].dup.sub(/^#{subdomain.chomp(':')}\./, '')
|
38
|
-
end
|
34
|
+
new_path << env["HTTP_HOST"].dup.sub(/^#{subdomain.chomp(':')}\./, '')
|
39
35
|
new_path << current_path
|
40
36
|
|
41
37
|
r.redirect(new_path, 301)
|
42
38
|
a = r.finish
|
43
|
-
#puts a.inspect
|
44
|
-
a
|
45
39
|
end
|
46
40
|
else
|
47
41
|
@app.call(req.env)
|
data/lib/rewritten/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rewritten
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kai Rubarth
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-12-
|
18
|
+
date: 2011-12-27 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: redis-namespace
|