pantopoda 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pantopoda.rb +2 -2
- data/lib/pantopoda/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d9f8bc256bc0fabf1f67136990274689929c47c
|
4
|
+
data.tar.gz: ee1fb675d73d17a4fa332f0e5677a39c7859a485
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f6d858fcf08a44b8c4ba7a1df0fa123b1894b8bf0efd66fbd465df9cdd87d5661a1476f8998be9f21ee6dd9ff11d7e36c9da5664778f3179e6c0a9cce380ecd
|
7
|
+
data.tar.gz: dfec153e9660cbb488862b9ccc01a2ffd7fb14a8b34b7833b111d3f205589c6102932fe50224910962d4bca041a607276a2a096f792c71419e12d17012764eaa
|
data/lib/pantopoda.rb
CHANGED
@@ -72,9 +72,9 @@ module Pantopoda
|
|
72
72
|
begin
|
73
73
|
parsed_domain = Domainatrix.parse(url)
|
74
74
|
if (parsed_domain.subdomain != "")
|
75
|
-
parsed_domain.subdomain + '.' + parsed_domain.domain + '.' +
|
75
|
+
parsed_domain.subdomain + '.' + parsed_domain.domain + '.' + parsed_domain.public_suffix
|
76
76
|
else
|
77
|
-
|
77
|
+
parsed_domain.domain + '.' + parsed_domain.public_suffix
|
78
78
|
end
|
79
79
|
|
80
80
|
rescue NoMethodError, Addressable::URI::InvalidURIError => e
|
data/lib/pantopoda/version.rb
CHANGED