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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3478563a6824dd4e23bbf52eda7ba48240b977bb
4
- data.tar.gz: 6b42782ceb8a0bb81c456ec10c0b7253e9f01feb
3
+ metadata.gz: a14eb51d21ebf9dfcd9f6bde345b50d35b755611
4
+ data.tar.gz: 7629b20b2432d764bb76afc3cf1b4eafe34a3fa4
5
5
  SHA512:
6
- metadata.gz: a8c2acb81f4af5cadb805f3aade648a570d277556156482d7bbe3191fea9c1afbf5d0f9e954d944a5c25fc1c5cae8e13d679c2ef7bc5bb46e10901602fe07ccf
7
- data.tar.gz: e37aaecda26e0bb03a7b910c7f84e6336fdf5e6535353a80e9fdf32cd57689bd1c91a054be329fa769c49f7ce2c6b100b7450f2e2be026498929bec3882a1ba7
6
+ metadata.gz: 2d913ad845ff228f813096c9d891907dfe13115c33d680d06a39db7751e47c0b88d428b7279a77bcbfdedad285a5fbeeedbc1822eccff6f811def6fbad4c722a
7
+ data.tar.gz: 0d99e6305e0cb41675da31d6aa883716a0738f053e715adcb5d63899ecadcafb67c815a336dffeff114df150c853bf97c22f65f312e4538728a46393d406202d
data/README.md CHANGED
@@ -26,6 +26,7 @@ ENV['GOOGLE_IMAGES_CX'] = 'GOOGLE_SEARCH_CX'
26
26
 
27
27
  GoogleImages.search('ruby')
28
28
  GoogleImages.search('ruby', img_size: 'xlarge')
29
+ GoogleImages.search('ruby', start: 10, num: 10)
29
30
  ```
30
31
 
31
32
  ## Contributing
@@ -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
@@ -1,3 +1,3 @@
1
1
  module GoogleImages
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  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.1
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-08-01 00:00:00.000000000 Z
11
+ date: 2016-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http