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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc7c58b27c0f5d1216a260d972f7cfd8e3f95157
4
- data.tar.gz: 13c260375760eacd5f260ae386ceb33e39a8dacb
3
+ metadata.gz: bc294a4d85ccfa2fa6b2e8350b22e4f63563a41e
4
+ data.tar.gz: 7d7aed9c8d22231db92ec1ef03496b64f71cea21
5
5
  SHA512:
6
- metadata.gz: 5497499a507122c0a4d049fc7abece9543f3b6379091584f0923459b8b03d2d00e9b04fd1ce078bb420e05841dc759f21dc154e1dc7d2d13043a3656ba52bc3d
7
- data.tar.gz: 786ea529764fff72223e6444c6b2c0cfb80e3b5fba33f29682a8d5511c9e848941e09223283a524d6465ea55efa737d35462d1d3f5b78333eabf54db646f1a70
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 - a modest analogue of deprecated Google Image Search API.
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.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
- @result = ImageSearcher.search(query: "New York")
24
+ images = ImageSearcher.search(query: "New York")
25
25
  ```
26
26
 
27
- And you'll have a nested array with results. By default the result has `10` images.
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, preview: true)`
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
 
@@ -5,7 +5,6 @@ module ImageSearcher
5
5
  base_uri = ImageSearcher::API::BASE_URI
6
6
  url = "#{base_uri}?q=#{options[:query]}"
7
7
  url += "&count=#{options[:count]}" if options[:count]
8
- url += "&page=#{options[:preview]}" if options[:preview]
9
8
 
10
9
  ImageSearcher::API.get_json(url)
11
10
  end
@@ -1,3 +1,3 @@
1
1
  module ImageSearcher
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_searcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaliy