Sha256: c5558bdf41ea6adfb6c439f05bfaf898536e4d95b9061852425d379011d2a26f

Contents?: true

Size: 1.67 KB

Versions: 40

Compression:

Stored size: 1.67 KB

Contents

domain_name
===========

Synopsis
--------

Domain Name manipulation library for Ruby

Description
-----------

* Parses a domain name ready for extracting the registered domain and
  TLD.

        require "domain_name"

        host = DomainName("a.b.example.co.uk")
        host.domain         #=> "example.co.uk"
        host.tld            #=> "uk"
        host.cookie_domain?("example.co.uk")    #=> true
        host.cookie_domain?("co.uk")            #=> false

        host = DomainName("[::1]")  # IP addresses like "192.168.1.1" and "::1" are also acceptable
        host.ipaddr?        #=> true
        host.cookie_domain?("0:0:0:0:0:0:0:1")  #=> true

* Implements rudimental IDNA support.

To-do's
-------

* Implement IDNA 2008 (and/or 2003) including the domain label
  validation and mapping defined in RFC 5891-5895 and UTS #46.
  (work in progress)

* Define a compact YAML serialization format.

Installation
------------

	gem install domain_name

References
----------

* [RFC 3492](http://tools.ietf.org/html/rfc3492) (Obsolete; just for test cases)

* [RFC 5890](http://tools.ietf.org/html/rfc5890)

* [RFC 5891](http://tools.ietf.org/html/rfc5891)

* [RFC 5892](http://tools.ietf.org/html/rfc5892)

* [RFC 5893](http://tools.ietf.org/html/rfc5892)

* [Public Suffix List](http://publicsuffix.org/list/)

* [Effective TLD Names List](http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1)

License
-------

Copyright (c) 2011, 2012, 2013 Akinori MUSHA

Licensed under the 2-clause BSD license.

Some portion of this library is copyrighted by third parties and
licensed under MPL 1.1/GPL 2.0/LGPL 2.1 or 3-clause BSD license,
See `LICENSE.txt` for details.

Version data entries

40 entries across 39 versions & 7 rubygems

Version Path
tdiary-5.0.2 vendor/bundle/gems/domain_name-0.5.20160615/README.md
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.20160615/README.md
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.20160615/README.md
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.20160615/README.md
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.20160615/README.md
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/domain_name-0.5.20160615/README.md
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/domain_name-0.5.20160615/README.md
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/domain_name-0.5.20160615/README.md
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/domain_name-0.5.20160615/README.md
tdiary-5.0.1 vendor/bundle/gems/domain_name-0.5.20160615/README.md
domain_name-0.5.20160615 README.md
domain_name-0.5.20160310 README.md
domain_name-0.5.20160309 README.md
domain_name-0.5.20160216 README.md
domain_name-0.5.20160128 README.md
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/domain_name-0.5.25/README.md
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/domain_name-0.5.25/README.md
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/domain_name-0.5.25/README.md
suzuko-0.1.8 vendor/bundle/ruby/2.0.0/gems/domain_name-0.5.25/README.md
suzuko-0.1.7 vendor/bundle/ruby/2.0.0/gems/domain_name-0.5.25/README.md