searchbing 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +22 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTU2ZGE5ZmRkZmI1NWNjZWEyNmM2ZGRjNjIxN2ExYjI0MWVlM2JlMg==
4
+ NzBhOWFmZGJhMjJmYzdlN2Y5ZjRkODk2NTIxNzU5YjJiMjhmNmJhNA==
5
5
  data.tar.gz: !binary |-
6
- NGNhZDg1MTc0MGMzZmM2OGU5ZWYwN2M3MDdjNjI3ZTYwNjU5YjU0OQ==
6
+ YTJlMTY3NmJjNjI3MTg5M2E2MjNiYjhhZTBlOGVlYzRmZTM0YzdjNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZGJhOGJjM2Y3ODE1YWViZTc0YTZlMTRmNzI4ZjhmM2IzMTM2NGM1MDI1Mjhl
10
- OTJlZThlNjFmY2RkOTUyYzQ2NjY2MGNiN2RjNTIyZGY1ZjdlZWRmOTBlMGVj
11
- NWRlMjIxZDU1ZGRjYzNjM2U0YWJiZTNjNzg3N2M4NmQzNjg3Mzc=
9
+ ZWIzMDBmYzdmZmZlOTE5N2U5NTY0MTljODI1Yjc1NmRlODBhYTA4MzEyNTI3
10
+ NGU2M2E0ODE1YjFmZmVhNDcyYWEyNWJjNDU4NmZiMGRkNjkyYTQ3NTdhM2Ix
11
+ MjA4OGJjNDE2YmZmZDRjMjliNTQxYjQ5MDRiZGYwNmE1N2YyNDg=
12
12
  data.tar.gz: !binary |-
13
- YmMwYzg2MDU2NmIyYmIyMjEzNTU3ZWIxZWU0MDhjMzBhYjc5OGFiMjRlMTFi
14
- ZDhiNzEyMzYzZDVhYmQxZmY3OWYwMWE0MTUwZTQxYTg5Mjc0Mjc2NzA3MTk5
15
- NWJlZTExMTUxMGMyNWViM2Y2OTQyYjI1Njk5YTVjOGM2NDU3MGQ=
13
+ YWQ1MjgyYWFiMTU2YTcyYTNkNTIzOTMxZGQ3YjVhYjQ2ZmEzYjAzODEzMDlj
14
+ OThlNDBiOTU5MWQxNDg0YTRkZDQ5OWNiZDJlMTQ5OWZkNmRkMmFjNTM1MGFi
15
+ YzE5ZTRkZTdmZmMwNGIwMDIzODI5YWE5MTRjMTk4MWM1NWI5ZWI=
data/README.md CHANGED
@@ -1,6 +1,19 @@
1
+ ![Puffin](http://photos-g.ak.fbcdn.net/hphotos-ak-snc1/hs166.snc1/6216_704615592619_7804626_41719230_39698_n.jpg)
2
+
3
+
4
+ A Ruby interface to the Bing Search API.
5
+
6
+ find the [gem](https://rubygems.org/gems/searchbing) on rubygems.org
7
+
8
+
9
+
10
+ ## Installation
11
+ gem install searchbing
12
+
13
+
1
14
  Configuration
2
15
  =============
3
- You can crate a new account for the Bing Search API and obtain account key can be found at http://www.bing.com/developers/
16
+ You can create a new account for the Bing Search API and obtain account key [here](http://www.bing.com/developers/)
4
17
 
5
18
  Usage
6
19
  ============
@@ -10,18 +23,18 @@ Usage
10
23
 
11
24
  Example
12
25
  ===============
13
- - Create a new search object
14
-
15
- animals = Bing.new('your_account_key_goes_here', 10, 'Image')
26
+ ## Create a new search object.
27
+ animals = Bing.new('your_account_key_goes_here', 10, 'Image')
28
+ ## Retrieve the results for a given term.
29
+ bing_results = animals.search("lion")
30
+ ## parse the results
31
+ puts bing_results[0]["Thumbnail"]["MediaUrl"] # puts url of thumbnail
16
32
 
17
- - Retrieve the results for a given term
18
33
 
19
- bing_results = animals.search("lion")
34
+
20
35
 
21
- - parse the result set depending on what you would like to retrive
36
+
22
37
 
23
- puts bing_results[0]["MediaUrl"] # puts url of fullsize image
24
38
 
25
- puts bing_results[0]["Thumbnail"]["MediaUrl"] # puts url of thumbnail
26
39
 
27
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchbing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Culliton