wiselinks 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wiselinks (1.1.0)
4
+ wiselinks (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -19,11 +19,13 @@ class Link
19
19
  this._different_port(link)
20
20
 
21
21
  _different_protocol: (link) ->
22
+ return false if link.protocol == ':' || link.protocol == ''
22
23
  location.protocol != link.protocol
23
24
 
24
25
  # IE returns host with port and all other browsers return host without port
25
26
  #
26
27
  _different_host: (link) ->
28
+ return false if link.host == ''
27
29
  (location.host.split(':')[0] != link.host.split(':')[0])
28
30
 
29
31
  # IE returns for link.port "80" but the location.port is ""
@@ -31,7 +33,7 @@ class Link
31
33
  #
32
34
  _different_port: (link) ->
33
35
  port_equals = (location.port == link.port) ||
34
- (location.port == "" && (link.port == "80" || link.port == "443"))
36
+ (location.port == '' && (link.port == "80" || link.port == "443"))
35
37
 
36
38
  !port_equals
37
39
 
@@ -4,7 +4,7 @@ module Wiselinks
4
4
  module Version
5
5
  MAJOR = 1
6
6
  MINOR = 1
7
- PATCH = 0
7
+ PATCH = 1
8
8
  BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wiselinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -399,7 +399,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
399
399
  version: '0'
400
400
  segments:
401
401
  - 0
402
- hash: -3451075218919014284
402
+ hash: 4501690823445015359
403
403
  required_rubygems_version: !ruby/object:Gem::Requirement
404
404
  none: false
405
405
  requirements:
@@ -408,7 +408,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
408
408
  version: '0'
409
409
  segments:
410
410
  - 0
411
- hash: -3451075218919014284
411
+ hash: 4501690823445015359
412
412
  requirements: []
413
413
  rubyforge_project:
414
414
  rubygems_version: 1.8.24