README.rdoc in public-suffix-list-0.1.4 vs README.rdoc in public-suffix-list-0.1.5
- old
+ new
@@ -39,26 +39,26 @@
# Downloads and parses the latest data file and returns "foobar.com".
PublicSuffixList.new.cdn("foobar.com")
# Downloads and parses the latest data file, caches it in /tmp,
# and returns ["abc", "xyz", "co.uk"].
- PublicSuffixList.new(:cache_dir => "/tmp").split("abc.xyz.co.uk")
+ PublicSuffixList.new(cache_dir: "/tmp").split("abc.xyz.co.uk")
# Loads the cached data in /tmp if it is less than 100 seconds old,
# downloads, parses, and caches it if it is older, and returns
# ["test", "parliament", "uk"].
- PublicSuffixList.new(:cache_dir => "/tmp", :cache_expiry_period => 100).split("test.parliament.uk")
+ PublicSuffixList.new(cache_dir: "/tmp", cache_expiry_period: 100).split("test.parliament.uk")
# You don't have to instantiate PublicSuffixList every time you
# use it, of course...
p = PublicSuffixList.new
p.split("fee.fi.fo.com") # => ["fee.fi", "fo", "com"]
p.cdn("fee.fi.fo.com") # => "fo.com", "cdn" is "canonical domain name"
p.tld("fee.fi.fo.com") # => "com", "tld" is "top-level domain"
# You can even use other data files, both local and remote
# (as long as they conform to the Public Suffix List file format).
- PublicSuffixList.new(:url => "spec/test.dat")
+ PublicSuffixList.new(url: "spec/test.dat")
== Requirements
None that I am aware of.