wiselinks 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/assets/javascripts/_link.js.coffee +3 -1
- data/lib/wiselinks/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -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 ==
|
36
|
+
(location.port == '' && (link.port == "80" || link.port == "443"))
|
35
37
|
|
36
38
|
!port_equals
|
37
39
|
|
data/lib/wiselinks/version.rb
CHANGED
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.
|
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:
|
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:
|
411
|
+
hash: 4501690823445015359
|
412
412
|
requirements: []
|
413
413
|
rubyforge_project:
|
414
414
|
rubygems_version: 1.8.24
|