google_safe_browsing 0.3.8 → 0.3.9

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.
@@ -22,7 +22,7 @@ module GoogleSafeBrowsing
22
22
 
23
23
  response = Net::HTTP.start(uri.host) { |http| http.request request }
24
24
 
25
- if response.code == 200
25
+ if response.is_a?(Net::HTTPSuccess)
26
26
  ResponseHelper.parse_full_hash_response(response.body)
27
27
  else
28
28
  # if response not good, return empty array to represent no full hashes
@@ -1,3 +1,3 @@
1
1
  module GoogleSafeBrowsing
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_safe_browsing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  segments:
153
153
  - 0
154
- hash: 4452142959307464661
154
+ hash: -2592586138011771612
155
155
  required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  none: false
157
157
  requirements:
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  segments:
162
162
  - 0
163
- hash: 4452142959307464661
163
+ hash: -2592586138011771612
164
164
  requirements: []
165
165
  rubyforge_project:
166
166
  rubygems_version: 1.8.23