wovnrb 0.1.20 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9326520544ed1c4a98ad9a84f501bad269f9c371
4
- data.tar.gz: 80aae0fed045ddcddf958817106f4540ae36706f
3
+ metadata.gz: 9ccc000747a89ade64da214a8fcefa23b92ec0dd
4
+ data.tar.gz: 98ad02f1de5af58fbe0981ce66fe7015b30151df
5
5
  SHA512:
6
- metadata.gz: 1fb04d2b6e7520ce0d1275865660bcc1217b7b8c526c7c2075846023ccb13bf7047634b7e56f1e2f5708c718bcf57d77362dd178ebab740c38c41d7e105a0a9a
7
- data.tar.gz: 90381131827b4f627d6900b134ec6b09db7348c67aa288ff1dfbd0cef4d4236677d81e0b94b9036a0495a077e163631f71e1a4dbb24a305f5c2cb0c22b359faf
6
+ metadata.gz: 2df0d360922dc4ce790cbbe80e22439e7d4aec06ed8578e5043d588b690a4ae00405ab8019859574cccab5c708a71609874f43525dbfdce28fdadda3f123096b
7
+ data.tar.gz: e56873280f0a49416f7495cfdc53950b61f0e14551eee3ccb5ceb1491e986f67705e7d85ab5bcd3d918136bf4accab72aa4086668751967572db7a10f0e29b02
@@ -15,7 +15,8 @@ module Wovnrb
15
15
  @protocol = @env['rack.url_scheme']
16
16
  @unmasked_host = @env['HTTP_HOST']
17
17
  unless @env.has_key?('REQUEST_URI')
18
- @env['REQUEST_URI'] = @env['PATH_INFO'] + (@env['QUERY_STRING'].size == 0 ? '' : "?#{@env['QUERY_STRING']}")
18
+ # Add '/' to PATH_INFO as a possible fix for pow server
19
+ @env['REQUEST_URI'] = (@env_['PATH_INFO'] =~ /^[^\/]/ ? '/' : '') + @env['PATH_INFO'] + (@env['QUERY_STRING'].size == 0 ? '' : "?#{@env['QUERY_STRING']}")
19
20
  end
20
21
  @unmasked_pathname = @env['REQUEST_URI'].split('?')[0]
21
22
  @unmasked_pathname += '/' unless @unmasked_pathname =~ /\/$/ || @unmasked_pathname =~ /\/[^\/.]+\.[^\/.]+$/
@@ -2,7 +2,8 @@ module Wovnrb
2
2
 
3
3
  class Railtie < Rails::Railtie
4
4
  initializer 'wovnrb.configure_rails_initialization' do |app|
5
- app.middleware.insert_before(0, Wovnrb::Interceptor)
5
+ #app.middleware.insert_before(0, Wovnrb::Interceptor)
6
+ app.middleware.insert_before(Rack::Lock, Wovnrb::Interceptor)
6
7
 
7
8
  #if Rails.env.development? && config.respond_to?(:wovnrb)
8
9
  # config.after_initialize do
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.20"
2
+ VERSION = "0.1.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wovnrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Sandford