wovnrb 0.1.05 → 0.1.06

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: b701a20523815b995e9bee39893f366f9708b626
4
- data.tar.gz: 1c26a11b2a853c6082e08caef0452107cbaf0b8a
3
+ metadata.gz: d39285c61e8aa9426346c05698a1cfe538321a6d
4
+ data.tar.gz: 32f0cb826db8a89d383882e7381f1f5221eb87e7
5
5
  SHA512:
6
- metadata.gz: 5275a5acb3a61c6692b7554043ac431d40773b9e42c59d7768e6afb548605c7d623d86ac3544875bfa805c9add6dc29e80895213032b4f060a5b4d6a2808422f
7
- data.tar.gz: cbcce5e32af280e2b5a8d6bf1d8b37b10ebf33c5dd3fd421cbc14da19e0243320a5bbd033ac3c9feda7e0575d37c0d8ae87bea9cd04686c6884268e7b4edd9b3
6
+ metadata.gz: f44c73927ebc8a95dc682d9d35bd571f961f468eefb323c773be14f0efd0f817e6d42c344aedf5008575caa8acc128cad02d7ca457d2c196de5b05274c797a2a
7
+ data.tar.gz: c30d10c7319548ba0056c1c51cb4b5da781ad1da6744880718b67621a215888e70032eb0f34a1ff8f4bf642cb21e9adbb7637fe4968cf4f957f6f27d40c6aa69
data/lib/wovnrb.rb CHANGED
@@ -17,9 +17,6 @@ module Wovnrb
17
17
 
18
18
  def call(env)
19
19
  @env = env
20
- Rails.logger.info(@env.to_s)
21
- [status, res_headers, [@env.to_s]]
22
- return
23
20
  STORE.refresh_settings
24
21
  headers = Headers.new(env, STORE.settings)
25
22
  if ((headers.path_lang != '' && !STORE.settings['supported_langs'].include?(headers.path_lang)) || headers.path_lang == STORE.settings['default_lang'])
@@ -14,6 +14,7 @@ module Wovnrb
14
14
  @env = env
15
15
  @protocol = @env['rack.url_scheme']
16
16
  @unmasked_host = @env['HTTP_HOST']
17
+ @env['REQUEST_URI'] = @env['PATH_INFO'] + (@env['QUERY_STRING'].size == 0 ? '' : "?#{@env['QUERY_STRING']}" unless @env['REQUEST_URI']
17
18
  @unmasked_pathname = @env['REQUEST_URI'].split('?')[0]
18
19
  @unmasked_pathname += '/' unless @unmasked_pathname =~ /\/$/ || @unmasked_pathname =~ /\/[^\/.]+\.[^\/.]+$/
19
20
  @unmasked_url = "#{@protocol}://#{@unmasked_host}#{@unmasked_pathname}"
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.05"
2
+ VERSION = "0.1.06"
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.05
4
+ version: 0.1.06
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Sandford