image_searcher 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/lib/image_searcher/search.rb +0 -1
- data/lib/image_searcher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc294a4d85ccfa2fa6b2e8350b22e4f63563a41e
|
4
|
+
data.tar.gz: 7d7aed9c8d22231db92ec1ef03496b64f71cea21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddfdee7ef492714ba94a17f9250a5081dd8fa2fe9d7455ab11b02f371f26a884f3ffc6b010add9b321835909da0cccf8036991a6362e343b920e1072e2fc3fb5
|
7
|
+
data.tar.gz: 9a690f4defc62814870587d47e309832633a9b62403f61ab330c4162faff7eb4db1df9ce6219736e9fb38f2c6b09e1f687b4620d1d9e0ad084c18d78e9021829
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# Image Searcher
|
2
2
|
|
3
|
-
A ruby wrapper for the [Ababeen](http://api.ababeen.com) Image Search API v1.0 -
|
3
|
+
A ruby wrapper for the [Ababeen](http://api.ababeen.com) Image Search API v1.0 - the modest alternative to deprecated Google Image Search API.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem 'image_searcher', '~> 0.1.
|
10
|
+
gem 'image_searcher', '~> 0.1.3'
|
11
11
|
```
|
12
12
|
|
13
13
|
And then execute:
|
@@ -21,18 +21,19 @@ Or install it yourself as:
|
|
21
21
|
## Usage
|
22
22
|
|
23
23
|
```
|
24
|
-
|
24
|
+
images = ImageSearcher.search(query: "New York")
|
25
25
|
```
|
26
26
|
|
27
|
-
And you'
|
27
|
+
And you've got an array of objects. By default the result has `10` nested arrays(objects).
|
28
28
|
|
29
29
|
**Available options**:
|
30
30
|
```
|
31
31
|
query(String)
|
32
32
|
count(Integer) - maximum 100(10 by default)
|
33
|
-
preview(Boolean) - show all images in preview(false by default)
|
34
33
|
```
|
35
|
-
For example: `ImageSearcher.search(query: "New York", count: 66
|
34
|
+
For example: `ImageSearcher.search(query: "New York", count: 66)`
|
35
|
+
|
36
|
+
Also you can see a nice preview of a result http://api.ababeen.com/api/images.php?q=tiger&preview=true&count=100
|
36
37
|
|
37
38
|
## Contributing
|
38
39
|
|