google_images 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/README.md +1 -0
- data/lib/google_images/url_builder.rb +2 -1
- data/lib/google_images/version.rb +1 -1
- 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: a14eb51d21ebf9dfcd9f6bde345b50d35b755611
|
4
|
+
data.tar.gz: 7629b20b2432d764bb76afc3cf1b4eafe34a3fa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d913ad845ff228f813096c9d891907dfe13115c33d680d06a39db7751e47c0b88d428b7279a77bcbfdedad285a5fbeeedbc1822eccff6f811def6fbad4c722a
|
7
|
+
data.tar.gz: 0d99e6305e0cb41675da31d6aa883716a0738f053e715adcb5d63899ecadcafb67c815a336dffeff114df150c853bf97c22f65f312e4538728a46393d406202d
|
data/README.md
CHANGED
@@ -7,7 +7,8 @@ module GoogleImages
|
|
7
7
|
API_URL = 'https://www.googleapis.com/customsearch/v1'
|
8
8
|
|
9
9
|
def build(query, auth)
|
10
|
-
"#{API_URL}?q=#{query.search_term}&#{api_keys(auth)}&#{parameters(query)}"
|
10
|
+
url = "#{API_URL}?q=#{query.search_term}&#{api_keys(auth)}&#{parameters(query)}"
|
11
|
+
URI.encode(url)
|
11
12
|
rescue => e
|
12
13
|
raise GoogleImages::Errors::URLGenerationError
|
13
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_images
|
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
|
- Sharipov Ruslan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|