wovnrb 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wovnrb/headers.rb +6 -0
- data/lib/wovnrb/store.rb +1 -1
- data/lib/wovnrb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56ffbffea5333786dafc41be0cbf86c6cdab5a8e
|
4
|
+
data.tar.gz: c3a69b57fa89f702122297d44e05bb7a20d7e71c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b8952d7fd705848a6d80f318324f97511f20f8f861035a2b96e1de2200034533c85294f3da5052b5570a0b01ef298f0e7a0c36cc0f2124e8315f53f180ee680
|
7
|
+
data.tar.gz: 016edde1c4ef1c0821309fac2ce439d1e1f3ec142bbdb51a69fd0a41564ae3639062bf6b5b368441bfe17dba178a8b90dc13e92ce3703248677eeb8d52feff8e
|
data/lib/wovnrb/headers.rb
CHANGED
@@ -11,6 +11,12 @@ module Wovnrb
|
|
11
11
|
attr_reader :redis_url
|
12
12
|
|
13
13
|
def initialize(env, settings)
|
14
|
+
Rails.logger.error("***************************************ENV**********************")
|
15
|
+
Rails.logger.error(@env)
|
16
|
+
Rails.logger.error("***************************************ENV**********************")
|
17
|
+
Rails.logger.error("****************************SETTINGS****************************")
|
18
|
+
Rails.logger.error(settings)
|
19
|
+
Rails.logger.error("****************************SETTINGS****************************")
|
14
20
|
@env = env
|
15
21
|
@protocol = @env['rack.url_scheme']
|
16
22
|
@unmasked_host = @env['HTTP_HOST']
|
data/lib/wovnrb/store.rb
CHANGED
@@ -71,7 +71,7 @@ module Wovnrb
|
|
71
71
|
if @settings['url_pattern_name'] == 'path'
|
72
72
|
@settings['url_pattern_reg'] = "/(?<lang>[^/.?]+)"
|
73
73
|
elsif @settings['url_pattern_name'] == 'query'
|
74
|
-
@settings['url_pattern_reg'] = "((
|
74
|
+
@settings['url_pattern_reg'] = "((\\?.*&)|\\?)wovn=(?<lang>[^&]+)(&|$)"
|
75
75
|
end
|
76
76
|
@settings
|
77
77
|
end
|
data/lib/wovnrb/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Sandford
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-06-
|
12
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogumbo
|