domain_name 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3449ff3002168244e07e2443aee8d76ff66aee82
4
- data.tar.gz: cfcbc63f00995bcfcfd6454c6b5a2684a04c22ef
3
+ metadata.gz: 0eafc47a4b3dfe9f636fec6cb6705d0dec0bd44a
4
+ data.tar.gz: 5ffe41e86eddfcd6507808b68f61d360af8eee9f
5
5
  SHA512:
6
- metadata.gz: da9ad3a5b826afcc8cdfbc2c5b1ffa0bc7c9d5f081725cefeecd47a7aa63b892f93171a0ca2d19342a43da3dc0a46929c860be093430f4cde363380e40c19039
7
- data.tar.gz: f1c2ca28ce9eeafd7d3f06e176a61c47e2da60424972030f24b62f14b42e509007a8ba44da6245182a7142e841c48f51f542560cab36b7185a1bf8ec51896643
6
+ metadata.gz: 770918024fa90f8ea009cb899bc98386140cf2deea2be85a7172217b0e7b627647a4ca737699bdbf8ffe6a99c50c2d0ac00cad6e078094d72b13cc129e4687f0
7
+ data.tar.gz: f8b2089004b251798c407995e5a5539bb7f2b71a5624b22c4c77decf045eb77e71ec42ac31e8e9a5619e29c15c4ad24e42781c2fe8d43cb18a1197828bd49ece
data/Rakefile CHANGED
@@ -17,6 +17,8 @@ file ETLD_DATA_RB => [
17
17
  ruby 'tool/gen_etld_data.rb'
18
18
  end
19
19
 
20
+ task :import => :etld_data
21
+
20
22
  task :etld_data do
21
23
  require 'open-uri'
22
24
  require 'time'
@@ -6557,19 +6557,42 @@ xxx
6557
6557
  // ===END ICANN DOMAINS===
6558
6558
  // ===BEGIN PRIVATE DOMAINS===
6559
6559
 
6560
- // info.at : http://www.info.at/
6561
- biz.at
6562
- info.at
6560
+ // Amazon CloudFront : https://aws.amazon.com/cloudfront/
6561
+ // Requested by Donavan Miller <donavanm@amazon.com> 2013-03-22
6562
+ cloudfront.net
6563
6563
 
6564
- // priv.at : http://www.nic.priv.at/
6565
- // Submitted by registry <lendl@nic.at> 2008-06-09
6566
- priv.at
6564
+ // Amazon Elastic Load Balancing : https://aws.amazon.com/elasticloadbalancing/
6565
+ // Requested by Scott Vidmar <svidmar@amazon.com> 2013-03-27
6566
+ elb.amazonaws.com
6567
6567
 
6568
- // co.ca : http://registry.co.ca
6569
- co.ca
6568
+ // Amazon S3 : https://aws.amazon.com/s3/
6569
+ // Requested by Courtney Eckhardt <coec@amazon.com> 2013-03-22
6570
+ s3.amazonaws.com
6571
+ s3-us-west-2.amazonaws.com
6572
+ s3-us-west-1.amazonaws.com
6573
+ s3-eu-west-1.amazonaws.com
6574
+ s3-ap-southeast-1.amazonaws.com
6575
+ s3-ap-southeast-2.amazonaws.com
6576
+ s3-ap-northeast-1.amazonaws.com
6577
+ s3-sa-east-1.amazonaws.com
6578
+ s3-us-gov-west-1.amazonaws.com
6579
+ s3-fips-us-gov-west-1.amazonaws.com
6580
+ s3-website-us-east-1.amazonaws.com
6581
+ s3-website-us-west-2.amazonaws.com
6582
+ s3-website-us-west-1.amazonaws.com
6583
+ s3-website-eu-west-1.amazonaws.com
6584
+ s3-website-ap-southeast-1.amazonaws.com
6585
+ s3-website-ap-southeast-2.amazonaws.com
6586
+ s3-website-ap-northeast-1.amazonaws.com
6587
+ s3-website-sa-east-1.amazonaws.com
6588
+ s3-website-us-gov-west-1.amazonaws.com
6589
+
6590
+ // BetaInABox
6591
+ // Requested by adrian@betainabox.com 2012-09-13
6592
+ betainabox.com
6570
6593
 
6571
6594
  // CentralNic : http://www.centralnic.com/names/domains
6572
- // Confirmed by registry <gavin.brown@centralnic.com> 2012-09-27
6595
+ // Requested by registry <gavin.brown@centralnic.com> 2012-09-27
6573
6596
  ae.org
6574
6597
  ar.com
6575
6598
  br.com
@@ -6598,79 +6621,19 @@ us.org
6598
6621
  uy.com
6599
6622
  za.com
6600
6623
 
6601
- // Opera Software, A.S.A.
6602
- // Requested by Yngve Pettersen <yngve@opera.com> 2009-11-26
6603
- operaunite.com
6604
-
6605
- // Google, Inc.
6606
- // Requested by Eduardo Vela <evn@google.com> 2012-10-24
6607
- appspot.com
6608
- blogspot.be
6609
- blogspot.bj
6610
- blogspot.ca
6611
- blogspot.cf
6612
- blogspot.ch
6613
- blogspot.co.at
6614
- blogspot.co.il
6615
- blogspot.co.nz
6616
- blogspot.co.uk
6617
- blogspot.com
6618
- blogspot.com.ar
6619
- blogspot.com.au
6620
- blogspot.com.br
6621
- blogspot.com.es
6622
- blogspot.cv
6623
- blogspot.cz
6624
- blogspot.de
6625
- blogspot.dk
6626
- blogspot.fi
6627
- blogspot.fr
6628
- blogspot.gr
6629
- blogspot.hk
6630
- blogspot.hu
6631
- blogspot.ie
6632
- blogspot.in
6633
- blogspot.it
6634
- blogspot.jp
6635
- blogspot.kr
6636
- blogspot.mr
6637
- blogspot.mx
6638
- blogspot.nl
6639
- blogspot.no
6640
- blogspot.pt
6641
- blogspot.re
6642
- blogspot.ro
6643
- blogspot.se
6644
- blogspot.sg
6645
- blogspot.sk
6646
- blogspot.td
6647
- blogspot.tw
6648
- codespot.com
6649
- googleapis.com
6650
- googlecode.com
6651
-
6652
- // DreamHost : http://www.dreamhost.com/
6653
- // Requested by Andrew Farmer <andrew.farmer@dreamhost.com> 2012-10-02
6654
- dreamhosters.com
6655
-
6656
- // iki.fi : Submitted by Hannu Aronsson <haa@iki.fi> 2009-11-05
6657
- iki.fi
6658
-
6659
6624
  // c.la : http://www.c.la/
6660
6625
  c.la
6661
6626
 
6662
- // ZaNiC : http://www.za.net/
6663
- // Confirmed by registry <hostmaster@nic.za.net> 2009-10-03
6664
- za.net
6665
- za.org
6627
+ // co.ca : http://registry.co.ca/
6628
+ co.ca
6666
6629
 
6667
6630
  // CoDNS B.V.
6668
- // Added 2010-05-23.
6669
6631
  co.nl
6670
6632
  co.no
6671
6633
 
6672
- // Mainseek Sp. z o.o. : http://www.co.pl/
6673
- co.pl
6634
+ // DreamHost : http://www.dreamhost.com/
6635
+ // Requested by Andrew Farmer <andrew.farmer@dreamhost.com> 2012-10-02
6636
+ dreamhosters.com
6674
6637
 
6675
6638
  // DynDNS.com : http://www.dyndns.com/services/dns/dyndns/
6676
6639
  dyndns-at-home.com
@@ -6953,46 +6916,83 @@ webhop.org
6953
6916
  worse-than.tv
6954
6917
  writesthisblog.com
6955
6918
 
6956
- // BetaInABox
6957
- // Requested by adrian@betainabox.com 2012-09-13
6958
- betainabox.com
6959
-
6960
- // Red Hat, Inc. OpenShift : https://openshift.redhat.com/
6961
- // Requested by Tim Kramer <tkramer@rhcloud.com> 2012-10-24
6962
- rhcloud.com
6919
+ // Google, Inc.
6920
+ // Requested by Eduardo Vela <evn@google.com> 2012-10-24
6921
+ appspot.com
6922
+ blogspot.be
6923
+ blogspot.bj
6924
+ blogspot.ca
6925
+ blogspot.cf
6926
+ blogspot.ch
6927
+ blogspot.co.at
6928
+ blogspot.co.il
6929
+ blogspot.co.nz
6930
+ blogspot.co.uk
6931
+ blogspot.com
6932
+ blogspot.com.ar
6933
+ blogspot.com.au
6934
+ blogspot.com.br
6935
+ blogspot.com.es
6936
+ blogspot.cv
6937
+ blogspot.cz
6938
+ blogspot.de
6939
+ blogspot.dk
6940
+ blogspot.fi
6941
+ blogspot.fr
6942
+ blogspot.gr
6943
+ blogspot.hk
6944
+ blogspot.hu
6945
+ blogspot.ie
6946
+ blogspot.in
6947
+ blogspot.it
6948
+ blogspot.jp
6949
+ blogspot.kr
6950
+ blogspot.mr
6951
+ blogspot.mx
6952
+ blogspot.nl
6953
+ blogspot.no
6954
+ blogspot.pt
6955
+ blogspot.re
6956
+ blogspot.ro
6957
+ blogspot.se
6958
+ blogspot.sg
6959
+ blogspot.sk
6960
+ blogspot.td
6961
+ blogspot.tw
6962
+ codespot.com
6963
+ googleapis.com
6964
+ googlecode.com
6963
6965
 
6964
- // Amazon Elastic Load Balancing : https://aws.amazon.com/elasticloadbalancing/
6965
- // Requested by Scott Vidmar <svidmar@amazon.com> 2013-03-27
6966
- elb.amazonaws.com
6966
+ // iki.fi
6967
+ // Requested by Hannu Aronsson <haa@iki.fi> 2009-11-05
6968
+ iki.fi
6967
6969
 
6968
- // Amazon S3 : https://aws.amazon.com/s3/
6969
- // Requested by Courtney Eckhardt <coec@amazon.com> 2013-03-22
6970
- s3.amazonaws.com
6971
- s3-us-west-2.amazonaws.com
6972
- s3-us-west-1.amazonaws.com
6973
- s3-eu-west-1.amazonaws.com
6974
- s3-ap-southeast-1.amazonaws.com
6975
- s3-ap-southeast-2.amazonaws.com
6976
- s3-ap-northeast-1.amazonaws.com
6977
- s3-sa-east-1.amazonaws.com
6978
- s3-us-gov-west-1.amazonaws.com
6979
- s3-fips-us-gov-west-1.amazonaws.com
6980
- s3-website-us-east-1.amazonaws.com
6981
- s3-website-us-west-2.amazonaws.com
6982
- s3-website-us-west-1.amazonaws.com
6983
- s3-website-eu-west-1.amazonaws.com
6984
- s3-website-ap-southeast-1.amazonaws.com
6985
- s3-website-ap-southeast-2.amazonaws.com
6986
- s3-website-ap-northeast-1.amazonaws.com
6987
- s3-website-sa-east-1.amazonaws.com
6988
- s3-website-us-gov-west-1.amazonaws.com
6970
+ // info.at : http://www.info.at/
6971
+ biz.at
6972
+ info.at
6989
6973
 
6990
- // Amazon CloudFront : https://aws.amazon.com/cloudfront/
6991
- // Requested by Donavan Miller <donavanm@amazon.com> 2013-03-22
6992
- cloudfront.net
6974
+ // Michau Enterprises Limited : http://www.co.pl/
6975
+ co.pl
6993
6976
 
6994
6977
  // NYC.mn : http://www.information.nyc.mn
6995
6978
  // Requested by Matthew Brown <mattbrown@nyc.mn> 2013-03-11
6996
6979
  nyc.mn
6997
6980
 
6981
+ // Opera Software, A.S.A.
6982
+ // Requested by Yngve Pettersen <yngve@opera.com> 2009-11-26
6983
+ operaunite.com
6984
+
6985
+ // Red Hat, Inc. OpenShift : https://openshift.redhat.com/
6986
+ // Requested by Tim Kramer <tkramer@rhcloud.com> 2012-10-24
6987
+ rhcloud.com
6988
+
6989
+ // priv.at : http://www.nic.priv.at/
6990
+ // Requested by registry <lendl@nic.at> 2008-06-09
6991
+ priv.at
6992
+
6993
+ // ZaNiC : http://www.za.net/
6994
+ // Requested by registry <hostmaster@nic.za.net> 2009-10-03
6995
+ za.net
6996
+ za.org
6997
+
6998
6998
  // ===END PRIVATE DOMAINS===
@@ -21,12 +21,17 @@ class DomainName
21
21
  attr_reader :hostname
22
22
 
23
23
  # The least "universally original" domain part of this domain name.
24
- # For example, "example.co.uk" for "www.sub.example.co.uk".
24
+ # For example, "example.co.uk" for "www.sub.example.co.uk". This
25
+ # may be nil if the hostname does not have one, like when it is an
26
+ # IP address, an effective TLD or higher itself, or of a
27
+ # non-canonical domain.
25
28
  attr_reader :domain
26
29
 
27
30
  # The TLD part of this domain name. For example, if the hostname is
28
31
  # "www.sub.example.co.uk", the TLD part is "uk". This property is
29
- # nil only if +ipaddr?+ is true.
32
+ # nil only if +ipaddr?+ is true. This may be nil if the hostname
33
+ # does not have one, like when it is an IP address or of a
34
+ # non-canonical domain.
30
35
  attr_reader :tld
31
36
 
32
37
  # Returns an IPAddr object if this is an IP address.
@@ -147,6 +152,13 @@ class DomainName
147
152
  end
148
153
  end
149
154
 
155
+ # Returns the superdomain of this domain name.
156
+ def superdomain
157
+ return nil if ipaddr?
158
+ pos = @hostname.index(DOT) or return nil
159
+ self.class.new(@hostname[(pos + 1)..-1])
160
+ end
161
+
150
162
  def ==(other)
151
163
  other = DomainName.new(other) unless DomainName === other
152
164
  other.hostname == @hostname
@@ -1,5 +1,5 @@
1
1
  class DomainName
2
- ETLD_DATA_DATE = '2013-03-31T03:02:39Z'
2
+ ETLD_DATA_DATE = '2013-04-05T23:00:49Z'
3
3
 
4
4
  ETLD_DATA = {
5
5
  "ac" => 0,
@@ -5716,10 +5716,28 @@ class DomainName
5716
5716
  "za" => -1,
5717
5717
  "zm" => -1,
5718
5718
  "zw" => -1,
5719
- "biz.at" => 0,
5720
- "info.at" => 0,
5721
- "priv.at" => 0,
5722
- "co.ca" => 0,
5719
+ "cloudfront.net" => 0,
5720
+ "elb.amazonaws.com" => 0,
5721
+ "s3.amazonaws.com" => 0,
5722
+ "s3-us-west-2.amazonaws.com" => 0,
5723
+ "s3-us-west-1.amazonaws.com" => 0,
5724
+ "s3-eu-west-1.amazonaws.com" => 0,
5725
+ "s3-ap-southeast-1.amazonaws.com" => 0,
5726
+ "s3-ap-southeast-2.amazonaws.com" => 0,
5727
+ "s3-ap-northeast-1.amazonaws.com" => 0,
5728
+ "s3-sa-east-1.amazonaws.com" => 0,
5729
+ "s3-us-gov-west-1.amazonaws.com" => 0,
5730
+ "s3-fips-us-gov-west-1.amazonaws.com" => 0,
5731
+ "s3-website-us-east-1.amazonaws.com" => 0,
5732
+ "s3-website-us-west-2.amazonaws.com" => 0,
5733
+ "s3-website-us-west-1.amazonaws.com" => 0,
5734
+ "s3-website-eu-west-1.amazonaws.com" => 0,
5735
+ "s3-website-ap-southeast-1.amazonaws.com" => 0,
5736
+ "s3-website-ap-southeast-2.amazonaws.com" => 0,
5737
+ "s3-website-ap-northeast-1.amazonaws.com" => 0,
5738
+ "s3-website-sa-east-1.amazonaws.com" => 0,
5739
+ "s3-website-us-gov-west-1.amazonaws.com" => 0,
5740
+ "betainabox.com" => 0,
5723
5741
  "ae.org" => 0,
5724
5742
  "ar.com" => 0,
5725
5743
  "br.com" => 0,
@@ -5747,59 +5765,11 @@ class DomainName
5747
5765
  "us.org" => 0,
5748
5766
  "uy.com" => 0,
5749
5767
  "za.com" => 0,
5750
- "operaunite.com" => 0,
5751
- "appspot.com" => 0,
5752
- "blogspot.be" => 0,
5753
- "blogspot.bj" => 0,
5754
- "blogspot.ca" => 0,
5755
- "blogspot.cf" => 0,
5756
- "blogspot.ch" => 0,
5757
- "blogspot.co.at" => 0,
5758
- "blogspot.co.il" => 0,
5759
- "blogspot.co.nz" => 0,
5760
- "blogspot.co.uk" => 0,
5761
- "blogspot.com" => 0,
5762
- "blogspot.com.ar" => 0,
5763
- "blogspot.com.au" => 0,
5764
- "blogspot.com.br" => 0,
5765
- "blogspot.com.es" => 0,
5766
- "blogspot.cv" => 0,
5767
- "blogspot.cz" => 0,
5768
- "blogspot.de" => 0,
5769
- "blogspot.dk" => 0,
5770
- "blogspot.fi" => 0,
5771
- "blogspot.fr" => 0,
5772
- "blogspot.gr" => 0,
5773
- "blogspot.hk" => 0,
5774
- "blogspot.hu" => 0,
5775
- "blogspot.ie" => 0,
5776
- "blogspot.in" => 0,
5777
- "blogspot.it" => 0,
5778
- "blogspot.jp" => 0,
5779
- "blogspot.kr" => 0,
5780
- "blogspot.mr" => 0,
5781
- "blogspot.mx" => 0,
5782
- "blogspot.nl" => 0,
5783
- "blogspot.no" => 0,
5784
- "blogspot.pt" => 0,
5785
- "blogspot.re" => 0,
5786
- "blogspot.ro" => 0,
5787
- "blogspot.se" => 0,
5788
- "blogspot.sg" => 0,
5789
- "blogspot.sk" => 0,
5790
- "blogspot.td" => 0,
5791
- "blogspot.tw" => 0,
5792
- "codespot.com" => 0,
5793
- "googleapis.com" => 0,
5794
- "googlecode.com" => 0,
5795
- "dreamhosters.com" => 0,
5796
- "iki.fi" => 0,
5797
5768
  "c.la" => 0,
5798
- "za.net" => 0,
5799
- "za.org" => 0,
5769
+ "co.ca" => 0,
5800
5770
  "co.nl" => 0,
5801
5771
  "co.no" => 0,
5802
- "co.pl" => 0,
5772
+ "dreamhosters.com" => 0,
5803
5773
  "dyndns-at-home.com" => 0,
5804
5774
  "dyndns-at-work.com" => 0,
5805
5775
  "dyndns-blog.com" => 0,
@@ -6079,30 +6049,60 @@ class DomainName
6079
6049
  "webhop.org" => 0,
6080
6050
  "worse-than.tv" => 0,
6081
6051
  "writesthisblog.com" => 0,
6082
- "betainabox.com" => 0,
6083
- "rhcloud.com" => 0,
6084
- "elb.amazonaws.com" => 0,
6085
- "s3.amazonaws.com" => 0,
6086
- "s3-us-west-2.amazonaws.com" => 0,
6087
- "s3-us-west-1.amazonaws.com" => 0,
6088
- "s3-eu-west-1.amazonaws.com" => 0,
6089
- "s3-ap-southeast-1.amazonaws.com" => 0,
6090
- "s3-ap-southeast-2.amazonaws.com" => 0,
6091
- "s3-ap-northeast-1.amazonaws.com" => 0,
6092
- "s3-sa-east-1.amazonaws.com" => 0,
6093
- "s3-us-gov-west-1.amazonaws.com" => 0,
6094
- "s3-fips-us-gov-west-1.amazonaws.com" => 0,
6095
- "s3-website-us-east-1.amazonaws.com" => 0,
6096
- "s3-website-us-west-2.amazonaws.com" => 0,
6097
- "s3-website-us-west-1.amazonaws.com" => 0,
6098
- "s3-website-eu-west-1.amazonaws.com" => 0,
6099
- "s3-website-ap-southeast-1.amazonaws.com" => 0,
6100
- "s3-website-ap-southeast-2.amazonaws.com" => 0,
6101
- "s3-website-ap-northeast-1.amazonaws.com" => 0,
6102
- "s3-website-sa-east-1.amazonaws.com" => 0,
6103
- "s3-website-us-gov-west-1.amazonaws.com" => 0,
6104
- "cloudfront.net" => 0,
6052
+ "appspot.com" => 0,
6053
+ "blogspot.be" => 0,
6054
+ "blogspot.bj" => 0,
6055
+ "blogspot.ca" => 0,
6056
+ "blogspot.cf" => 0,
6057
+ "blogspot.ch" => 0,
6058
+ "blogspot.co.at" => 0,
6059
+ "blogspot.co.il" => 0,
6060
+ "blogspot.co.nz" => 0,
6061
+ "blogspot.co.uk" => 0,
6062
+ "blogspot.com" => 0,
6063
+ "blogspot.com.ar" => 0,
6064
+ "blogspot.com.au" => 0,
6065
+ "blogspot.com.br" => 0,
6066
+ "blogspot.com.es" => 0,
6067
+ "blogspot.cv" => 0,
6068
+ "blogspot.cz" => 0,
6069
+ "blogspot.de" => 0,
6070
+ "blogspot.dk" => 0,
6071
+ "blogspot.fi" => 0,
6072
+ "blogspot.fr" => 0,
6073
+ "blogspot.gr" => 0,
6074
+ "blogspot.hk" => 0,
6075
+ "blogspot.hu" => 0,
6076
+ "blogspot.ie" => 0,
6077
+ "blogspot.in" => 0,
6078
+ "blogspot.it" => 0,
6079
+ "blogspot.jp" => 0,
6080
+ "blogspot.kr" => 0,
6081
+ "blogspot.mr" => 0,
6082
+ "blogspot.mx" => 0,
6083
+ "blogspot.nl" => 0,
6084
+ "blogspot.no" => 0,
6085
+ "blogspot.pt" => 0,
6086
+ "blogspot.re" => 0,
6087
+ "blogspot.ro" => 0,
6088
+ "blogspot.se" => 0,
6089
+ "blogspot.sg" => 0,
6090
+ "blogspot.sk" => 0,
6091
+ "blogspot.td" => 0,
6092
+ "blogspot.tw" => 0,
6093
+ "codespot.com" => 0,
6094
+ "googleapis.com" => 0,
6095
+ "googlecode.com" => 0,
6096
+ "iki.fi" => 0,
6097
+ "biz.at" => 0,
6098
+ "info.at" => 0,
6099
+ "co.pl" => 0,
6105
6100
  "nyc.mn" => 0,
6101
+ "operaunite.com" => 0,
6102
+ "rhcloud.com" => 0,
6103
+ "priv.at" => 0,
6104
+ "za.net" => 0,
6105
+ "za.org" => 0,
6106
6106
  }
6107
6107
 
6108
6108
  def self.etld_data
@@ -1,3 +1,3 @@
1
1
  class DomainName
2
- VERSION = "0.5.10"
2
+ VERSION = "0.5.11"
3
3
  end
@@ -246,6 +246,7 @@ class TestDomainName < Test::Unit::TestCase
246
246
  assert_equal(true, dn.cookie_domain?(dn, true))
247
247
  assert_equal(false, dn.cookie_domain?('168.10.20'))
248
248
  assert_equal(false, dn.cookie_domain?('20'))
249
+ assert_equal(nil, dn.superdomain)
249
250
  end
250
251
 
251
252
  should "parse IPv6 addresseses" do
@@ -263,6 +264,22 @@ class TestDomainName < Test::Unit::TestCase
263
264
  assert_equal(true, dn.cookie_domain?(dn, true))
264
265
  assert_equal(true, dn.cookie_domain?(a))
265
266
  assert_equal(true, dn.cookie_domain?(a, true))
267
+ assert_equal(nil, dn.superdomain)
268
+ }
269
+ end
270
+
271
+ should "get superdomain" do
272
+ [
273
+ %w[www.sub.example.local sub.example.local example.local local],
274
+ %w[www.sub.example.com sub.example.com example.com com],
275
+ ].each { |domain, *superdomains|
276
+ dn = DomainName(domain)
277
+ superdomains.each { |superdomain|
278
+ sdn = DomainName(superdomain)
279
+ assert_equal sdn, dn.superdomain
280
+ dn = sdn
281
+ }
282
+ assert_equal nil, dn.superdomain
266
283
  }
267
284
  end
268
285
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akinori MUSHA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-01 00:00:00.000000000 Z
11
+ date: 2013-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unf
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.0.0
140
+ rubygems_version: 2.0.3
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Domain Name manipulation library for Ruby