wovnrb 0.1.78 → 0.1.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edcf0854e592680e213bda2094885d57d864158c
4
- data.tar.gz: 3ad6e6ec80716146f35b849cbb91300ef0e85ec0
3
+ metadata.gz: c03a1eafe91ca1d7f61f89cc576db72d77acaaae
4
+ data.tar.gz: 7b455e147054346b3e26cf3704c03feea154922f
5
5
  SHA512:
6
- metadata.gz: 46ff74e7e9f7c33974543e2402f09cc7abfbfb7592ffb15b031d5b438677674a229135566df5c389f2fc5155bb5b9956be196d5772d260ccd1ed0aa8a480ed12
7
- data.tar.gz: c2779603a31e291143357e3c7b50f007128c672a111d797649b249775ddb93a7084950332894c30b93adfb9a82f5a871f5cc7c6c0549971a58a5b778d3447c8c
6
+ metadata.gz: 66146ca7b69bc644b0b7ae93183208bd391ee26f0f9b713ab4c25b624716995b604db6a9729903cf26ebd6193f93ac93be167a31dbbbb59b4d82d3c96d7a60c8
7
+ data.tar.gz: 565ccafae8afb898e57977aa95ed3046ca3af4566220b169fd076ca2f22406d904807eab4ec5abe43b5b1cbcedcef4f108fca987f31695c00fd6485ea2aec3cf
@@ -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
- if uri.host === headers.host
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/0'
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&currentLang=#{lang}&defaultLang=#{STORE.settings['default_lang']}&urlPattern=#{STORE.settings['url_pattern']}&version=#{version}"
@@ -139,7 +139,7 @@ module Wovnrb
139
139
  vals = {}
140
140
  end
141
141
  if vals['expired'] || vals.empty?
142
- host = 'j.wovn.io'
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)
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.78"
2
+ VERSION = "0.1.79"
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.78
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: 2015-12-08 00:00:00.000000000 Z
12
+ date: 2016-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogumbo