wovnrb 0.1.25 → 0.1.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wovnrb.rb +4 -4
- data/lib/wovnrb/headers.rb +2 -0
- 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: 9f110beeffebb50ef5d15b014db223e3e3f2ce35
|
4
|
+
data.tar.gz: 6b00c9b3e379ab78a1391411a042b673a1228d87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48f0b5e691cd34076b55de7717076d0d8ff56701282c94337eadefcc2720f4bf37fba6fe12e02ef6c3f68a6b4e1d043cdbbfbd188217f6c5f01dc13ef22a009c
|
7
|
+
data.tar.gz: 228fe99dc21a7973fda1851ba4205a6e29b5e5da0270933d19345319e0b54212a96354e7cf04f7bf257ad7fe709a543be9fd1214d5a27983c043262401117241
|
data/lib/wovnrb.rb
CHANGED
@@ -16,9 +16,9 @@ module Wovnrb
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def call(env)
|
19
|
-
Rails.logger.error("++++++++++++++++++++++++++ENV++++++++++++++++++++++++")
|
20
|
-
Rails.logger.error(env)
|
21
|
-
Rails.logger.error("++++++++++++++++++++++++++ENV++++++++++++++++++++++++")
|
19
|
+
#Rails.logger.error("++++++++++++++++++++++++++ENV++++++++++++++++++++++++")
|
20
|
+
#Rails.logger.error(env)
|
21
|
+
#Rails.logger.error("++++++++++++++++++++++++++ENV++++++++++++++++++++++++")
|
22
22
|
@env = env
|
23
23
|
STORE.refresh_settings
|
24
24
|
headers = Headers.new(env, STORE.settings)
|
@@ -112,7 +112,7 @@ module Wovnrb
|
|
112
112
|
end
|
113
113
|
insert_node = Nokogiri::XML::Node.new('script', d)
|
114
114
|
insert_node['src'] = '//j.wovn.io/0'
|
115
|
-
insert_node['data-wovnio'] = "key=#{STORE.settings['user_token']}&backend=true¤tLang=#{lang}&urlPattern=#{STORE.settings['url_pattern_name']}"
|
115
|
+
insert_node['data-wovnio'] = "key=#{STORE.settings['user_token']}&backend=true¤tLang=#{lang}&defaultLang=#{STORE.settings['default_lang']}&urlPattern=#{STORE.settings['url_pattern_name']}"
|
116
116
|
# do this so that there will be a closing tag (better compatibility with browsers)
|
117
117
|
insert_node.content = ' '
|
118
118
|
parent_node = d.at_css('head') || d.at_css('body') || d.at_css('html')
|
data/lib/wovnrb/headers.rb
CHANGED
@@ -18,6 +18,8 @@ module Wovnrb
|
|
18
18
|
# Add '/' to PATH_INFO as a possible fix for pow server
|
19
19
|
@env['REQUEST_URI'] = (@env_['PATH_INFO'] =~ /^[^\/]/ ? '/' : '') + @env['PATH_INFO'] + (@env['QUERY_STRING'].size == 0 ? '' : "?#{@env['QUERY_STRING']}")
|
20
20
|
end
|
21
|
+
# REQUEST_URI is expected to not contain the server name
|
22
|
+
# heroku contains http://...
|
21
23
|
if @env['REQUEST_URI'] =~ /:\/\//
|
22
24
|
@env['REQUEST_URI'] = @env['REQUEST_URI'].sub(/^.*:\/\/[^\/]+/, '')
|
23
25
|
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.26
|
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-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogumbo
|