rack-pathinfo-fix 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +15 -0
  2. data/lib/rack_pathinfo_fix.rb +16 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YTY1MmViNTIxNTIzNWIyYjBhN2IxZjRiZjIwYWJjNjg5ODAwMjhlMQ==
5
+ data.tar.gz: !binary |-
6
+ MGJhOTBmNWNlMjhmNjJlOTI0ODQ1MDY2NWY5ZjdlOTMxYjdhNGU1OQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ODQ3Y2M2NjI0OGEwMzFjMTg0ZjU0YjI5MjViZGFjNDg4NDFmN2JjZWFlZjky
10
+ NjU1YjJkYTc5YzQ3NmIyMjI2MjIxY2FiMWQ5ZDM2MjBiNDEwZDMxOTE0OTU5
11
+ OWNmZmE0MDQ1ZTQyNmM4Y2E0YjI4Y2I1NmIyYzYwNzg4ZGNmMGM=
12
+ data.tar.gz: !binary |-
13
+ MTcwODcyZjg4ZTZlOGJhZjc5ZDRkZDcxN2FhZjM1OTczMDM3ZWFiZjI5ZTVm
14
+ YmM2MzU1MmVmODBkZDBiOTNlMzllM2RiZmEzMDY2OGJlOTA5ZDkyMjFkYzFh
15
+ N2E3ZDgyMDdiNWQ5Y2VjNzEzMTlkOWZjMTQ2YmRmNTY2ZmE3Yjc=
@@ -0,0 +1,16 @@
1
+ # Rack PathInfo Fix Version 0.0.1
2
+ #
3
+ # This class is a Rack Middleware that fixes up
4
+ # PATH_INFO to be correct for Rack based apps.
5
+ class RackPathInfoFix
6
+ def initialize(app)
7
+ @app = app
8
+ end
9
+
10
+ def call(env)
11
+ env['PATH_INFO'] = File.join(env['SCRIPT_NAME'], env['PATH_INFO'])
12
+
13
+ @app.call env
14
+ end
15
+ end
16
+
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rack-pathinfo-fix
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Randy Carnahan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-26 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Rack Middleware to fix PATH_INFO munging.
14
+ email: syntruth@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/rack_pathinfo_fix.rb
20
+ homepage:
21
+ licenses:
22
+ - RPL
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.1.11
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Rack Middleware to fix PATH_INFO munging.
44
+ test_files: []