rewritten 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/HISTORY.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+
2
+ == 0.3.1
3
+
4
+ * removed rudimentary proxy support from 0.3.0 because it's better
5
+ taken care of in your apache config.
6
+
1
7
  == 0.3.0
2
8
 
3
9
  * support for forwarded request staying on the forwarding host
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
- if env["HTTP_X_FORWARDED_HOST"]
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)
@@ -1,3 +1,3 @@
1
1
  module Rewritten
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
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-21 00:00:00 Z
18
+ date: 2011-12-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: redis-namespace