google_images 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -1
- data/README.md +7 -1
- data/lib/google_images/query.rb +1 -0
- data/lib/google_images/url_builder.rb +1 -0
- data/lib/google_images/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3478563a6824dd4e23bbf52eda7ba48240b977bb
|
4
|
+
data.tar.gz: 6b42782ceb8a0bb81c456ec10c0b7253e9f01feb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8c2acb81f4af5cadb805f3aade648a570d277556156482d7bbe3191fea9c1afbf5d0f9e954d944a5c25fc1c5cae8e13d679c2ef7bc5bb46e10901602fe07ccf
|
7
|
+
data.tar.gz: e37aaecda26e0bb03a7b910c7f84e6336fdf5e6535353a80e9fdf32cd57689bd1c91a054be329fa769c49f7ce2c6b100b7450f2e2be026498929bec3882a1ba7
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -20,7 +20,13 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
```ruby
|
24
|
+
ENV['GOOGLE_IMAGES_KEY'] = 'GOOGLE_API_KEY'
|
25
|
+
ENV['GOOGLE_IMAGES_CX'] = 'GOOGLE_SEARCH_CX'
|
26
|
+
|
27
|
+
GoogleImages.search('ruby')
|
28
|
+
GoogleImages.search('ruby', img_size: 'xlarge')
|
29
|
+
```
|
24
30
|
|
25
31
|
## Contributing
|
26
32
|
|
data/lib/google_images/query.rb
CHANGED
@@ -23,6 +23,7 @@ module GoogleImages
|
|
23
23
|
alt: query.api_params[:alt] || 'json',
|
24
24
|
safe: query.api_params[:safe] || 'off',
|
25
25
|
num: query.api_params[:num] || nil,
|
26
|
+
start: query.api_params[:start] || nil,
|
26
27
|
rights: query.api_params[:rights] || nil,
|
27
28
|
imgSize: query.api_params[:img_size] || nil,
|
28
29
|
imgType: query.api_params[:img_type] || nil,
|
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.1
|
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-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -134,9 +134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.4.5
|
137
|
+
rubygems_version: 2.4.5.1
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Google Images Custom API client
|
141
141
|
test_files: []
|
142
|
-
has_rdoc:
|