google_safe_browsing 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 '' if urls.empty?
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 }
@@ -1,3 +1,3 @@
1
1
  module GoogleSafeBrowsing
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
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-09 00:00:00 Z
18
+ date: 2012-04-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  prerelease: false