google_search_results 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google_search_results.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb52d55050108ccd4c76ef94af06e6b8ec9d7c2d
4
- data.tar.gz: 63926f816a039a88bce029cc2df72bf74ef0d1e0
3
+ metadata.gz: 57f71c4cad805b4e1bf820d27dee4da8ead20b99
4
+ data.tar.gz: 19b72d8a91fa20666f0fba71b2394f7d49691749
5
5
  SHA512:
6
- metadata.gz: '091907b1665ca25e0952db05267e5946580ea3599604f052e90db773af019c4f182f8f67ec97142f2b0b7586bf40ab65fd3826bf07017bc589dd30fe2be342be'
7
- data.tar.gz: 8904267d9994e0948d2ef84168d7bd47d79ce5b7de608c60ffd16c9c6eb3c23e8bc6af2f0cb8d85d4bfcb02cdf66dc041f072f5a7f1be5ee09153fd4a6e9ab38
6
+ metadata.gz: eb2406e30532a5322371f69ce720a775cf13676cead003d59f85b45507cec9f1cce7b6eb67ad19f4d3db0131a8b87a093c025d2d67e195f8cd0e1421a80f1b7c
7
+ data.tar.gz: c19c6675aaba2dbd23c49ddc042ea3e065a65ca7f1bc8ecdb5b9846a25516c15627412d21122a76d298a93d8e0b578cca44e2b05723fc2d1a923ac9b286660b5
@@ -6,7 +6,7 @@ require_relative 'google_search_results/hash'
6
6
 
7
7
  class GoogleSearchResults
8
8
 
9
- VERSION = "1.0.1"
9
+ VERSION = "1.0.2"
10
10
  BACKEND = "serpapi.com"
11
11
 
12
12
  @@serp_api_key = nil
@@ -31,7 +31,7 @@ class GoogleSearchResults
31
31
 
32
32
  def get_results
33
33
  begin
34
- open(construct_url).read
34
+ open(construct_url, read_timeout: 600).read
35
35
  rescue OpenURI::HTTPError => e
36
36
  if error = JSON.load(e.io.read)["error"]
37
37
  raise error
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_search_results
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - hartator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-07 00:00:00.000000000 Z
11
+ date: 2018-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake