wovnrb 0.1.78 → 0.1.79
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 -2
- 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: c03a1eafe91ca1d7f61f89cc576db72d77acaaae
|
4
|
+
data.tar.gz: 7b455e147054346b3e26cf3704c03feea154922f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66146ca7b69bc644b0b7ae93183208bd391ee26f0f9b713ab4c25b624716995b604db6a9729903cf26ebd6193f93ac93be167a31dbbbb59b4d82d3c96d7a60c8
|
7
|
+
data.tar.gz: 565ccafae8afb898e57977aa95ed3046ca3af4566220b169fd076ca2f22406d904807eab4ec5abe43b5b1cbcedcef4f108fca987f31695c00fd6485ea2aec3cf
|
data/lib/wovnrb.rb
CHANGED
@@ -67,7 +67,8 @@ module Wovnrb
|
|
67
67
|
return new_href
|
68
68
|
end
|
69
69
|
# only add lang if it's an internal link
|
70
|
-
|
70
|
+
# DNS names are case insensitive
|
71
|
+
if uri.host.downcase === headers.host.downcase
|
71
72
|
case pattern
|
72
73
|
when 'subdomain'
|
73
74
|
sub_d = href.match(/\/\/([^\.]*)\./)[1]
|
@@ -214,7 +215,8 @@ module Wovnrb
|
|
214
215
|
# INSERT BACKEND WIDGET
|
215
216
|
insert_node = Nokogiri::XML::Node.new('script', d)
|
216
217
|
# TODO: CHANGE THIS BACK; Should be '//j.wovn.io/0' in production
|
217
|
-
insert_node['src'] = '//j.wovn.io/
|
218
|
+
insert_node['src'] = '//j.wovn.io/1'
|
219
|
+
insert_node['async'] = true
|
218
220
|
#insert_node['src'] = '//j.dev-wovn.io:3000/0'
|
219
221
|
version = defined?(VERSION) ? VERSION : ''
|
220
222
|
insert_node['data-wovnio'] = "key=#{STORE.settings['user_token']}&backend=true¤tLang=#{lang}&defaultLang=#{STORE.settings['default_lang']}&urlPattern=#{STORE.settings['url_pattern']}&version=#{version}"
|
data/lib/wovnrb/store.rb
CHANGED
@@ -139,7 +139,7 @@ module Wovnrb
|
|
139
139
|
vals = {}
|
140
140
|
end
|
141
141
|
if vals['expired'] || vals.empty?
|
142
|
-
host = '
|
142
|
+
host = 'ee.wovn.io'
|
143
143
|
post_data = "{\"user_token\":\"#{settings['user_token']}\", \"url\":#{url.to_json}}"
|
144
144
|
headers = "Host: #{host}\r\nContent-Type: application/json;charset=UTF-8\r\nContent-Length: #{post_data.bytesize}\r\nConnection: close\r\n\r\n"
|
145
145
|
s = TCPSocket.new(host, 80)
|
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.79
|
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:
|
12
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogumbo
|