domain_prefix 0.4.20161125 → 0.4.20161219

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: f6a5b2aa77759aeca3925fb3dca4a2a53d083cfe
4
- data.tar.gz: 7b768bded0a01dd67db055c4fb4efb1da7a5ac3b
3
+ metadata.gz: f7c34980173c19e1a98894f7f920d7866c9852d3
4
+ data.tar.gz: 68bf094d8e5b10b987aec132b40830975ae0f27d
5
5
  SHA512:
6
- metadata.gz: b353da27f4c170a785f8e239d014a11cd9908ee4a2003ac252dc23e09d9ccc5e2737d06b117184bc3e756d32a57bd6867715acb90f0af1b2ac4c7045a57fb255
7
- data.tar.gz: 63d1a8c9ec29ba27bb1af5ecd606b91ea8f1aa31b1b4f073032ef26d4ef55d0b443dca92829e37fe89cb38a0a697c8a925462873011dbf60013e42d79d0b5268
6
+ metadata.gz: 8a5816faa5ab5cc401ebc777737d2d58eae34d1c494d7a1b1b92b12c818187b42a2f47ef2ecad042b053e768eba6cd513678d37b79fd683352932c324235fa46
7
+ data.tar.gz: 8f66749e8f8fc6d2063ff42254444017281276b0c8e8ed456fad06fbb60baed9d9c661f154833cff1daa464be73297b71a1391e7155628993d17a63aef566d4c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.20161125
1
+ 0.4.20161219
@@ -4440,20 +4440,21 @@ org.ng
4440
4440
  sch.ng
4441
4441
 
4442
4442
  // ni : http://www.nic.ni/
4443
+ ni
4444
+ ac.ni
4445
+ biz.ni
4446
+ co.ni
4443
4447
  com.ni
4444
- gob.ni
4445
4448
  edu.ni
4446
- org.ni
4447
- nom.ni
4448
- net.ni
4449
- mil.ni
4450
- co.ni
4451
- biz.ni
4452
- web.ni
4453
- int.ni
4454
- ac.ni
4449
+ gob.ni
4455
4450
  in.ni
4456
4451
  info.ni
4452
+ int.ni
4453
+ mil.ni
4454
+ net.ni
4455
+ nom.ni
4456
+ org.ni
4457
+ web.ni
4457
4458
 
4458
4459
  // nl : https://en.wikipedia.org/wiki/.nl
4459
4460
  // https://www.sidn.nl/
@@ -5782,7 +5783,6 @@ ulan-ude.ru
5782
5783
  vladikavkaz.ru
5783
5784
  vladimir.ru
5784
5785
  vladivostok.ru
5785
- volgograd.ru
5786
5786
  vologda.ru
5787
5787
  voronezh.ru
5788
5788
  vrn.ru
@@ -6955,7 +6955,7 @@ sch.zm
6955
6955
  *.zw
6956
6956
 
6957
6957
 
6958
- // List of new gTLDs imported from https://newgtlds.icann.org/newgtlds.csv on 2016-08-17T00:17:46Z
6958
+ // List of new gTLDs imported from https://newgtlds.icann.org/newgtlds.csv on 2016-11-29T01:06:51Z
6959
6959
 
6960
6960
  // aaa : 2015-02-26 American Automobile Association, Inc.
6961
6961
  aaa
@@ -7365,7 +7365,7 @@ bosch
7365
7365
  // bostik : 2015-05-28 Bostik SA
7366
7366
  bostik
7367
7367
 
7368
- // boston : 2015-12-10 Boston Globe Media Partners, LLC
7368
+ // boston : 2015-12-10
7369
7369
  boston
7370
7370
 
7371
7371
  // bot : 2014-12-18 Amazon EU S.à r.l.
@@ -7911,9 +7911,6 @@ email
7911
7911
  // emerck : 2014-04-03 Merck KGaA
7912
7912
  emerck
7913
7913
 
7914
- // emerson : 2015-07-23 Emerson Electric Co.
7915
- emerson
7916
-
7917
7914
  // energy : 2014-09-11 Binky Birch, LLC
7918
7915
  energy
7919
7916
 
@@ -8142,7 +8139,7 @@ fujitsu
8142
8139
  // fujixerox : 2015-07-23 Xerox DNHC LLC
8143
8140
  fujixerox
8144
8141
 
8145
- // fun : 2016-01-14 Oriental Trading Company, Inc.
8142
+ // fun : 2016-01-14
8146
8143
  fun
8147
8144
 
8148
8145
  // fund : 2014-03-20 John Castle, LLC
@@ -8400,6 +8397,9 @@ honeywell
8400
8397
  // horse : 2013-11-21 Top Level Domain Holdings Limited
8401
8398
  horse
8402
8399
 
8400
+ // hospital : 2016-10-20 Ruby Pike, LLC
8401
+ hospital
8402
+
8403
8403
  // host : 2014-04-17 DotHost Inc.
8404
8404
  host
8405
8405
 
@@ -8997,7 +8997,7 @@ mortgage
8997
8997
  // moscow : 2013-12-19 Foundation for Assistance for Internet Technologies and Infrastructure Development (FAITID)
8998
8998
  moscow
8999
8999
 
9000
- // moto : 2015-06-04 Charleston Road Registry Inc.
9000
+ // moto : 2015-06-04
9001
9001
  moto
9002
9002
 
9003
9003
  // motorcycles : 2014-01-09 DERMotorcycles, LLC
@@ -9144,7 +9144,7 @@ nyc
9144
9144
  // obi : 2014-09-25 OBI Group Holding SE & Co. KGaA
9145
9145
  obi
9146
9146
 
9147
- // observer : 2015-04-30 Guardian News and Media Limited
9147
+ // observer : 2015-04-30
9148
9148
  observer
9149
9149
 
9150
9150
  // off : 2015-07-23 Johnson Shareholdings, Inc.
@@ -10392,7 +10392,7 @@ xin
10392
10392
  // xn--cg4bki : 2013-09-27 SAMSUNG SDS CO., LTD
10393
10393
  삼성
10394
10394
 
10395
- // xn--czr694b : 2014-01-16 HU YI GLOBAL INFORMATION RESOURCES (HOLDING) COMPANY. HONGKONG LIMITED
10395
+ // xn--czr694b : 2014-01-16 Dot Trademark TLD Holding Company Limted
10396
10396
  商标
10397
10397
 
10398
10398
  // xn--czrs0t : 2013-12-19 Wild Island, LLC
@@ -10449,7 +10449,7 @@ xin
10449
10449
  // xn--i1b6b1a6a2e : 2013-11-14 Public Interest Registry
10450
10450
  संगठन
10451
10451
 
10452
- // xn--imr513n : 2014-12-11 HU YI GLOBAL INFORMATION RESOURCES (HOLDING) COMPANY. HONGKONG LIMITED
10452
+ // xn--imr513n : 2014-12-11 Dot Trademark TLD Holding Company Limted
10453
10453
  餐厅
10454
10454
 
10455
10455
  // xn--io0a7i : 2013-11-14 Computer Network Information Center of Chinese Academy of Sciences (China Internet Network Information Center)
@@ -10661,57 +10661,84 @@ beep.pl
10661
10661
  cloudfront.net
10662
10662
 
10663
10663
  // Amazon Elastic Compute Cloud: https://aws.amazon.com/ec2/
10664
- // Submitted by Philip Allchin <pallchin@amazon.com>
10665
- compute.amazonaws.com
10666
- ap-northeast-1.compute.amazonaws.com
10667
- ap-northeast-2.compute.amazonaws.com
10668
- ap-southeast-1.compute.amazonaws.com
10669
- ap-southeast-2.compute.amazonaws.com
10670
- eu-central-1.compute.amazonaws.com
10671
- eu-west-1.compute.amazonaws.com
10672
- sa-east-1.compute.amazonaws.com
10673
- us-gov-west-1.compute.amazonaws.com
10674
- us-west-1.compute.amazonaws.com
10675
- us-west-2.compute.amazonaws.com
10676
- compute-1.amazonaws.com
10677
- z-1.compute-1.amazonaws.com
10678
- z-2.compute-1.amazonaws.com
10664
+ // Submitted by Luke Wells <psl-maintainers@amazon.com>
10665
+ *.compute.amazonaws.com
10666
+ *.compute-1.amazonaws.com
10667
+ *.compute.amazonaws.com.cn
10679
10668
  us-east-1.amazonaws.com
10680
- compute.amazonaws.com.cn
10681
- cn-north-1.compute.amazonaws.com.cn
10682
10669
 
10683
10670
  // Amazon Elastic Beanstalk : https://aws.amazon.com/elasticbeanstalk/
10684
- // Submitted by Adam Stein <astein@amazon.com>
10685
- elasticbeanstalk.com
10671
+ // Submitted by Luke Wells <psl-maintainers@amazon.com>
10672
+ elasticbeanstalk.cn-north-1.amazonaws.com.cn
10673
+ *.elasticbeanstalk.com
10686
10674
 
10687
10675
  // Amazon Elastic Load Balancing : https://aws.amazon.com/elasticloadbalancing/
10688
- // Submitted by Scott Vidmar <svidmar@amazon.com>
10689
- elb.amazonaws.com
10676
+ // Submitted by Luke Wells <psl-maintainers@amazon.com>
10677
+ *.elb.amazonaws.com
10678
+ *.elb.amazonaws.com.cn
10690
10679
 
10691
10680
  // Amazon S3 : https://aws.amazon.com/s3/
10692
- // Submitted by Luke Wells <lawells@amazon.com>
10693
- s3.amazonaws.com
10681
+ // Submitted by Luke Wells <psl-maintainers@amazon.com>
10682
+ *.s3.amazonaws.com
10694
10683
  s3-ap-northeast-1.amazonaws.com
10695
10684
  s3-ap-northeast-2.amazonaws.com
10685
+ s3-ap-south-1.amazonaws.com
10696
10686
  s3-ap-southeast-1.amazonaws.com
10697
10687
  s3-ap-southeast-2.amazonaws.com
10688
+ s3-ca-central-1.amazonaws.com
10698
10689
  s3-eu-central-1.amazonaws.com
10699
10690
  s3-eu-west-1.amazonaws.com
10700
10691
  s3-external-1.amazonaws.com
10701
- s3-external-2.amazonaws.com
10702
10692
  s3-fips-us-gov-west-1.amazonaws.com
10703
10693
  s3-sa-east-1.amazonaws.com
10704
10694
  s3-us-gov-west-1.amazonaws.com
10695
+ s3-us-east-2.amazonaws.com
10705
10696
  s3-us-west-1.amazonaws.com
10706
10697
  s3-us-west-2.amazonaws.com
10707
10698
  s3.ap-northeast-2.amazonaws.com
10699
+ s3.ap-south-1.amazonaws.com
10708
10700
  s3.cn-north-1.amazonaws.com.cn
10701
+ s3.ca-central-1.amazonaws.com
10709
10702
  s3.eu-central-1.amazonaws.com
10703
+ s3.us-east-2.amazonaws.com
10704
+ s3.dualstack.ap-northeast-1.amazonaws.com
10705
+ s3.dualstack.ap-northeast-2.amazonaws.com
10706
+ s3.dualstack.ap-south-1.amazonaws.com
10707
+ s3.dualstack.ap-southeast-1.amazonaws.com
10708
+ s3.dualstack.ap-southeast-2.amazonaws.com
10709
+ s3.dualstack.ca-central-1.amazonaws.com
10710
+ s3.dualstack.eu-central-1.amazonaws.com
10711
+ s3.dualstack.eu-west-1.amazonaws.com
10712
+ s3.dualstack.sa-east-1.amazonaws.com
10713
+ s3.dualstack.us-east-1.amazonaws.com
10714
+ s3.dualstack.us-east-2.amazonaws.com
10715
+ s3-website-us-east-1.amazonaws.com
10716
+ s3-website-us-west-1.amazonaws.com
10717
+ s3-website-us-west-2.amazonaws.com
10718
+ s3-website-ap-northeast-1.amazonaws.com
10719
+ s3-website-ap-southeast-1.amazonaws.com
10720
+ s3-website-ap-southeast-2.amazonaws.com
10721
+ s3-website-eu-west-1.amazonaws.com
10722
+ s3-website-sa-east-1.amazonaws.com
10723
+ s3-website.ap-northeast-2.amazonaws.com
10724
+ s3-website.ap-south-1.amazonaws.com
10725
+ s3-website.ca-central-1.amazonaws.com
10726
+ s3-website.eu-central-1.amazonaws.com
10727
+ s3-website.us-east-2.amazonaws.com
10728
+
10729
+ // Amune : https://amune.org/
10730
+ // Submitted by Team Amune <cert@amune.org>
10731
+ t3l3p0rt.net
10732
+ tele.amune.org
10710
10733
 
10711
10734
  // Aptible : https://www.aptible.com/
10712
10735
  // Submitted by Thomas Orozco <thomas@aptible.com>
10713
10736
  on-aptible.com
10714
10737
 
10738
+ // Asociación Amigos de la Informática "Euskalamiga" : http://encounter.eus/
10739
+ // Submitted by Hector Martin <marcan@euskalencounter.org>
10740
+ user.party.eus
10741
+
10715
10742
  // Association potager.org : https://potager.org/
10716
10743
  // Submitted by Lunar <jardiniers@potager.org>
10717
10744
  pimienta.org
@@ -11717,6 +11744,10 @@ gotpantheon.com
11717
11744
  // Submitted by Steve Leung <steveleung@peplink.com>
11718
11745
  mypep.link
11719
11746
 
11747
+ // Planet-Work : https://www.planet-work.com/
11748
+ // Submitted by Frédéric VANNIÈRE <f.vanniere@planet-work.com>
11749
+ on-web.fr
11750
+
11720
11751
  // prgmr.com : https://prgmr.com/
11721
11752
  // Submitted by Sarah Newman <owner@prgmr.com>
11722
11753
  xen.prgmr.com
@@ -11873,6 +11904,22 @@ townnews-staging.com
11873
11904
  // Submitted by TuxFamily administrators <adm@staff.tuxfamily.org>
11874
11905
  tuxfamily.org
11875
11906
 
11907
+ // TwoDNS : https://www.twodns.de/
11908
+ // Submitted by TwoDNS-Support <support@two-dns.de>
11909
+ dd-dns.de
11910
+ diskstation.eu
11911
+ diskstation.org
11912
+ dray-dns.de
11913
+ draydns.de
11914
+ dyn-vpn.de
11915
+ dynvpn.de
11916
+ mein-vigor.de
11917
+ my-vigor.de
11918
+ my-wan.de
11919
+ syno-ds.de
11920
+ synology-diskstation.de
11921
+ synology-ds.de
11922
+
11876
11923
  // UDR Limited : http://www.udr.hk.com
11877
11924
  // Submitted by registry <hostmaster@udr.hk.com>
11878
11925
  hk.com
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: domain_prefix 0.4.20161125 ruby lib
5
+ # stub: domain_prefix 0.4.20161219 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "domain_prefix".freeze
9
- s.version = "0.4.20161125"
9
+ s.version = "0.4.20161219"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["tadman".freeze]
14
- s.date = "2016-11-26"
14
+ s.date = "2016-12-19"
15
15
  s.description = "A library to extract information about top-level domain and registered name from generic and international domain names".freeze
16
16
  s.email = "github@tadman.ca".freeze
17
17
  s.extra_rdoc_files = [
@@ -1,8 +1,11 @@
1
1
  # encoding: UTF-8
2
- require 'simpleidn'
3
2
 
4
3
  module DomainPrefix
4
+ # == Dependencies =========================================================
5
+
5
6
  require 'domain_prefix/tree'
7
+
8
+ # == Constants ============================================================
6
9
 
7
10
  SEPARATOR = '.'.freeze
8
11
 
@@ -27,6 +30,8 @@ module DomainPrefix
27
30
  NONPUBLIC_TLD = {
28
31
  'local' => true
29
32
  }.freeze
33
+
34
+ # == Module Methods =======================================================
30
35
 
31
36
  # Returns a cleaned up, canonical version of a domain name.
32
37
  def rfc3492_canonical_domain(domain)
@@ -1,4 +1,8 @@
1
+ require 'simpleidn'
2
+
1
3
  class DomainPrefix::Tree < Hash
4
+ # == Instance Methods =====================================================
5
+
2
6
  def insert(path)
3
7
  components = path.sub(/^!/, '').split(DomainPrefix::SEPARATOR).reverse
4
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain_prefix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.20161125
4
+ version: 0.4.20161219
5
5
  platform: ruby
6
6
  authors:
7
7
  - tadman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-26 00:00:00.000000000 Z
11
+ date: 2016-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simpleidn