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.
- checksums.yaml +4 -4
- data/lib/google_search_results.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57f71c4cad805b4e1bf820d27dee4da8ead20b99
|
4
|
+
data.tar.gz: 19b72d8a91fa20666f0fba71b2394f7d49691749
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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-
|
11
|
+
date: 2018-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|