How to get PublicSuffix 1.0 behavior (#117)

This commit is contained in:
Patrik Ragnarsson 2016-09-09 18:48:16 +02:00 committed by Simone Carletti
parent a08e806966
commit f6132e1cb9
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ This document documents the most relevant changes to help you upgrading from Pub
## What's New
- The library is now 100% compliants with the official PublicSuffix tests. The major breaking change you may experience, is that if a domain passed as input doesn't match any rule, the rule `*` is assumed. You can override this behavior by passing a custom default rule with the `default_rule` option.
- The library is now 100% compliants with the official PublicSuffix tests. The major breaking change you may experience, is that if a domain passed as input doesn't match any rule, the rule `*` is assumed. You can override this behavior by passing a custom default rule with the `default_rule` option. The old behavior can be restored by passing `default_rule: nil`.
- `PublicSuffix.domain` is a new method that parses the input and returns the domain (combination of second level domain + suffix). This is a convenient helper to parse a domain name, for example when you need to determine the cookie or SSL scope.
- Added the ability to disable the use of private domains either at runtime, in addition to the ability to not load the private domains section when reading the list (`private_domains: false`). This feature also superseded the `private_domains` class-level attribute, that is no longer available.