naughty_or_nice 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/naughty_or_nice.rb +3 -3
- data/lib/naughty_or_nice/version.rb +1 -1
- metadata +17 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: aad85c506756b8b17bd71ef002890296adfac42fff36403d02aaf246bf9e4c58
|
4
|
+
data.tar.gz: 4c66b7f1b875cca385551e307d0a646aba23554e17e02bf78eda514ab5f82991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a57084038554f0bea9df4a3f585f651c481888993b93b54e4c1f66da4e93a1bf83e377194cb89af459f6ca65690f0716edce1332410518206ccced429ce06dd1
|
7
|
+
data.tar.gz: cefff042115ce501365fc60164b1cec8e9c71877776d64b00a23cb1a6fc49481a8f227e34cf4b445df19d423e5ee72e9820d8b234c176f5b788c6aacd5de421a
|
data/lib/naughty_or_nice.rb
CHANGED
@@ -41,7 +41,7 @@ module NaughtyOrNice
|
|
41
41
|
)?
|
42
42
|
)
|
43
43
|
$
|
44
|
-
}xi
|
44
|
+
}xi.freeze
|
45
45
|
|
46
46
|
# Ruby idiom that allows `include` to create class methods
|
47
47
|
module ClassMethods
|
@@ -73,8 +73,8 @@ module NaughtyOrNice
|
|
73
73
|
|
74
74
|
@domain = begin
|
75
75
|
PublicSuffix.parse(normalized_domain, default_rule: nil)
|
76
|
-
|
77
|
-
|
76
|
+
rescue PublicSuffix::DomainInvalid, PublicSuffix::DomainNotAllowed
|
77
|
+
nil
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
metadata
CHANGED
@@ -1,43 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naughty_or_nice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Balter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: addressable
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: public_suffix
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.0'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '4.0'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
43
|
+
version: '2.0'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '4.0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: pry
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,8 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
117
|
- !ruby/object:Gem::Version
|
112
118
|
version: '0'
|
113
119
|
requirements: []
|
114
|
-
|
115
|
-
rubygems_version: 2.6.7
|
120
|
+
rubygems_version: 3.0.2
|
116
121
|
signing_key:
|
117
122
|
specification_version: 4
|
118
123
|
summary: You've made the list. We'll help you check it twice. Given a domain-like
|