public-suffix-list 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -41,12 +41,12 @@ are three instance methods:
41
41
 
42
42
  # Downloads and parses the latest data file, caches it in /tmp,
43
43
  # and returns ["abc", "xyz", "co.uk"].
44
- PublicSuffixList.new(:cache_dir => "/tmp").split("abc.xyz.co.uk")
44
+ PublicSuffixList.new(cache_dir: "/tmp").split("abc.xyz.co.uk")
45
45
 
46
46
  # Loads the cached data in /tmp if it is less than 100 seconds old,
47
47
  # downloads, parses, and caches it if it is older, and returns
48
48
  # ["test", "parliament", "uk"].
49
- PublicSuffixList.new(:cache_dir => "/tmp", :cache_expiry_period => 100).split("test.parliament.uk")
49
+ PublicSuffixList.new(cache_dir: "/tmp", cache_expiry_period: 100).split("test.parliament.uk")
50
50
 
51
51
  # You don't have to instantiate PublicSuffixList every time you
52
52
  # use it, of course...
@@ -57,7 +57,7 @@ are three instance methods:
57
57
 
58
58
  # You can even use other data files, both local and remote
59
59
  # (as long as they conform to the Public Suffix List file format).
60
- PublicSuffixList.new(:url => "spec/test.dat")
60
+ PublicSuffixList.new(url: "spec/test.dat")
61
61
 
62
62
  == Requirements
63
63
 
@@ -6,7 +6,7 @@ require "public_suffix_list/parser.rb"
6
6
 
7
7
  class PublicSuffixList
8
8
 
9
- VERSION = "0.1.4"
9
+ VERSION = "0.1.5"
10
10
 
11
11
  def self.config
12
12
  @@config ||= Config.new
@@ -31,7 +31,7 @@ class PublicSuffixList
31
31
  end
32
32
 
33
33
  def data
34
- @data or (load_data and @data) or @data = {:created_at => Time.now, :tag => rand(36**8).to_s(36)}
34
+ @data or (load_data and @data) or @data = {created_at: Time.now, tag: rand(36**8).to_s(36)}
35
35
  end
36
36
 
37
37
  def data=(data)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: public-suffix-list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-05 00:00:00.000000000 Z
12
+ date: 2016-10-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: The Public Suffix List (http://publicsuffix.org/) is "a cross-vendor
15
15
  initiative to provide an accurate list of domain name suffixes". Such a list is