rails_reroute 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rails_reroute.rb CHANGED
@@ -22,7 +22,8 @@ module RailsReroute
22
22
  end
23
23
 
24
24
  def reroute_new_env new_route
25
- new_paths = {"PATH_INFO" => "#{new_route}", "REQUEST_URI"=>"#{env["rack.url_scheme"]}://#{env["HTTP_HOST"]}#{new_route}", "REQUEST_PATH"=>"#{new_route}"}
25
+ new_paths = {"PATH_INFO" => "#{new_route}", "REQUEST_URI"=>"#{env["rack.url_scheme"]}://#{env["HTTP_HOST"]}#{new_route}", "REQUEST_PATH"=>"#{new_route}",
26
+ "ORIGINAL_REQUEST_URI" => env["REQUEST_URI"]}
26
27
  env.keys.each { |key| env.delete(key) if !reroute_default_variables.include?(key) and !key.include?("rack") }
27
28
  env.merge! new_paths
28
29
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rails_reroute"
3
- s.version = "0.2.2"
3
+ s.version = "0.2.3"
4
4
 
5
5
  s.authors = ["Nathaniel Barnes"]
6
6
  s.email = ["Nathaniel.R.Barnes@gmail.com"]
metadata CHANGED
@@ -1,23 +1,33 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rails_reroute
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 3
9
+ version: 0.2.3
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Nathaniel Barnes
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2013-03-28 00:00:00.000000000 Z
16
+
17
+ date: 2013-04-30 00:00:00 -07:00
18
+ default_executable:
13
19
  dependencies: []
20
+
14
21
  description: Reroute rails requests fully
15
- email:
22
+ email:
16
23
  - Nathaniel.R.Barnes@gmail.com
17
24
  executables: []
25
+
18
26
  extensions: []
27
+
19
28
  extra_rdoc_files: []
20
- files:
29
+
30
+ files:
21
31
  - .gitignore
22
32
  - Gemfile
23
33
  - LICENSE
@@ -25,28 +35,35 @@ files:
25
35
  - Rakefile
26
36
  - lib/rails_reroute.rb
27
37
  - rails_reroute.gemspec
38
+ has_rdoc: true
28
39
  homepage: http://github.com/NateBarnes/rails_reroute
29
40
  licenses: []
41
+
30
42
  post_install_message:
31
43
  rdoc_options: []
32
- require_paths:
44
+
45
+ require_paths:
33
46
  - lib
34
- required_ruby_version: !ruby/object:Gem::Requirement
35
- none: false
36
- requirements:
37
- - - ! '>='
38
- - !ruby/object:Gem::Version
39
- version: '0'
40
- required_rubygems_version: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
53
+ version: "0"
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ segments:
59
+ - 0
60
+ version: "0"
46
61
  requirements: []
62
+
47
63
  rubyforge_project: rails_reroute
48
- rubygems_version: 1.8.25
64
+ rubygems_version: 1.3.6
49
65
  signing_key:
50
66
  specification_version: 3
51
67
  summary: Reroute rails requests fully
52
68
  test_files: []
69
+