searchbing 0.1.5 → 0.1.6

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 +15 -11
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDUzZGNiOTQwYzAzYTQ5NjJmMWU3NGY2M2JiMDc1N2ZmYjBlMTU3ZA==
4
+ NzZhZjBlNGQwNmRkZWM0NTIyZDdiMGRmMGVlNjYyZDBiZTAzZjZiZA==
5
5
  data.tar.gz: !binary |-
6
- ZWRkMDE1NjY3YmM5MDMwZmQwMDJkOTVlNGY2OTUxMGY4ZTY3M2VkYg==
6
+ Yjg0ZDdjNTI0ODcyYjljYmNkY2JkMzc3NjBjMTlmMDNhYjJkZTg5OQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODFhM2ZjZDRlYTIzYjFjMmZjZjI2ZTVkMjU0N2UxMzk1MDVjOTE5ZGRhMGMy
10
- YmRkZGIzM2I3NTgzZjkzYmU5MDFmMzk2YTU4NGI4MDM0ZjMwNTYyNDU0NTBm
11
- MDM4M2Q1ZjliNjU4NmMzNDQ3OGQ0NzVjZDM3NjYzM2E1NjhiZGQ=
9
+ NjQ4YTg2ZjFmNGY2NTcyOWJkYmU2Y2JhNmZiMTUyMjA0YjVmNjI2OTBmM2Q4
10
+ MWRiNGE4YWY0YTg2NTVmMDYyNjM4OGM3ZDQ5YWIzNzg4ODQ5MTI2ZjZlYTUw
11
+ NjY1YTEzYzdlMjU1MzQ2Y2QzZjkwOGJkZDkxYjBmZTMzMTQzZDk=
12
12
  data.tar.gz: !binary |-
13
- MDdiYjkwNzE0ODYzNTZjZDI5NzY1MDM0ZTQyZjgwNjk4YmZhODhiMTkwMDA1
14
- NWExZmQ1ZjJiMjQxZmFmMmIzOGY0ZGQ4MzU4MDQ4NjkxMmRkM2U2ZjEzNzdk
15
- NmE3M2JmYmVmOWQxZDAzMTQ1NmM2NTUzNmM0ZTk2YTdiMTAwZWU=
13
+ ZGNjZjVmNTBmMzYxMzMyMTQ5N2FmOGExYTY3ZDk2NDc2OWNhYjJmMDJmYTkz
14
+ OGFiYjFkZDg2YzVhNzExZDc0NWIzMWJiODkxOTNkYzNhZDM0ZDJkOWJmMTI5
15
+ MjJkOTI1MmE5NjFkYmJjYjIwNTMzZDlhYzU2ZTg4MDhhYjQyYmQ=
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  ![Puffin](http://photos-g.ak.fbcdn.net/hphotos-ak-snc1/hs166.snc1/6216_704615592619_7804626_41719230_39698_n.jpg)
2
2
 
3
3
 
4
- A Ruby interface to the Bing Search API.
5
-
4
+ A gem for the Bing Search API 2.0.
5
+ -------------
6
6
  find the [gem](https://rubygems.org/gems/searchbing) on rubygems.org
7
7
 
8
8
 
@@ -12,24 +12,28 @@ find the [gem](https://rubygems.org/gems/searchbing) on rubygems.org
12
12
 
13
13
 
14
14
  Configuration
15
- =============
16
- You can create a new account for the Bing Search API and obtain account key [here](http://www.bing.com/developers/)
15
+ -------------
16
+ An account key is needed to use the Bing Search API. You can create a new account for the Bing Search API and obtain account key [here](http://www.bing.com/developers/)
17
+
18
+ ## Usage
17
19
 
18
- Usage
19
- ============
20
20
  - valid search types include: Image, Web, or Video. The first letter must be capitalized
21
21
 
22
22
  - this gem relies on the open-uri, net/http, and json gems.
23
23
 
24
24
  Example: Interactive Ruby Shell
25
- ===============
26
- ## require the gem in your shell session
25
+ ----------
26
+ require the gem in your shell session
27
+
27
28
  require 'searchbing'
28
- ## create a new search object
29
+ create a new search object
30
+
29
31
  bing_image = Bing.new('your_account_key_goes_here', 10, 'Image')
30
- ## retrieve the results for a given term
32
+ retrieve the results for a given term
33
+
31
34
  bing_results = bing_image.search("puffin")
32
- ## parse the results
35
+ parse the results
36
+
33
37
  puts bing_results[0]["Thumbnail"]["MediaUrl"] # puts url of thumbnail
34
38
 
35
39
 
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Culliton