google_safe_browsing 0.3.1 → 0.3.2
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.
@@ -21,10 +21,10 @@ module GoogleSafeBrowsing
|
|
21
21
|
# Performs a lookup of the given url
|
22
22
|
#
|
23
23
|
# @param (String) url a url string to be looked up
|
24
|
-
# @return (String, nil) the friendly list name if found, or `nil`
|
24
|
+
# @return (String, nil) the friendly list name if found, or `nil`
|
25
25
|
def self.lookup(url)
|
26
26
|
urls = Canonicalize.urls_for_lookup(url)
|
27
|
-
return
|
27
|
+
return nil if urls.empty?
|
28
28
|
|
29
29
|
hashes = HashHelper.urls_to_hashes(urls)
|
30
30
|
raw_hash_array = hashes.collect{ |h| h.to_s }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_safe_browsing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Marshall
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-04-
|
18
|
+
date: 2012-04-13 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
prerelease: false
|