searchbing 0.1.3 → 0.1.4

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 +8 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWQ3ODk5NjViNmMzOTQzMTQ3N2UyOTA5MjNjNDUxZDljYmYzYzYzOQ==
4
+ NjM5NWMyN2U1OWQyYTg0NGEyZDkzMTk0YjUzNTJlMmY1Nzg2OGJmZg==
5
5
  data.tar.gz: !binary |-
6
- MTJiNTZjN2JkNTdiMDc0NWE0MzRiM2U4ZjkyYzlmMmNlYTIxMDg3Zg==
6
+ OGVlMDBjMjlkZTk2YzMxMmU0YzM5OTJlYTVmY2UzZGYxMGVmYTllOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MWM5MjY3MmI4ZGFhNWE0M2FlMTdkMTIyN2JkYzNkNWM4YTlhYWY0ZTM3NTU0
10
- NGQ0NWNhODQxOTA1MDA3YmM0YjRhNjU4MTQ5NDhhOGYwYzM2MzhmMGM4ZTlh
11
- MjBkODM0MzhkYjVmODQwN2E5NGU3MzBmZjM4NzBkNDA5ZTZlNGU=
9
+ ZDlmMjM2MDM0OGJlOWNjYjdjNjM4Zjg3ZDkzYzk0MDU2MTRiNTc4MDc0OTA0
10
+ NmJlOGVhZGIxOGRlYWVlMDU1ZWM2ZjVkY2U3ODhlNWE3OTVhYjExMWNlZmQx
11
+ Y2JkODQwYWRhMzhmNjZkMDQ5ZWEyMWM4MTVjNTg1YzIyNDIwZmE=
12
12
  data.tar.gz: !binary |-
13
- MjJiNzViYTE2ZTNlZTYwYmY3MmM0NTFkNDViNWU1ZGJmNzZmYTZmMzlmNDhk
14
- NjA3MTg4YmUxNjMyYTMzN2NmNTdmYzA5Yzk1MTNjMDVhMTBiODE2OWQ5ODJh
15
- NTQ1YTgxMjcyNTJlZGZkZDkyMDgzNzMwMGU1NjI1OTZhNDY5NzQ=
13
+ Zjc1NzFjNjQ1NzBiZDAzN2ViNzEyYzc1ZjRhMDI5NTJkMzU3MzYxOWFhNjg1
14
+ NmQzYTA5NGVhZTBlZWYxNWZjZTQyNWYzMmRlZDgzNWUwZDcxYjMyOTNkNDQ4
15
+ YjgyMzFmMDFmOTNiMTk4MGUxMDkzMWU0ODI4NDg1MzNlMTE1ZjI=
data/README.md CHANGED
@@ -17,15 +17,17 @@ You can create a new account for the Bing Search API and obtain account key [her
17
17
 
18
18
  Usage
19
19
  ============
20
- 1. create a new search object from the Bing class. Enter your recently obtained account key, the number of results you would like, and the search type.
21
- 2. valid search types include: Image, Web, or Video. The first letter must be capitalized
22
- 3. the searchbing gem relies on the open-uri, net/http, and json gems.
20
+ - valid search types include: Image, Web, or Video. The first letter must be capitalized
23
21
 
24
- Example
22
+ - this gem relies on the open-uri, net/http, and json gems.
23
+
24
+ Example: Interactive Ruby Shell
25
25
  ===============
26
- ## Create a new search object.
26
+ ## require the gem in your shell session
27
+ require 'searchbing'
28
+ ## create a new search object
27
29
  animals = Bing.new('your_account_key_goes_here', 10, 'Image')
28
- ## Retrieve the results for a given term.
30
+ ## retrieve the results for a given term
29
31
  bing_results = animals.search("lion")
30
32
  ## parse the results
31
33
  puts bing_results[0]["Thumbnail"]["MediaUrl"] # puts url of thumbnail
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Culliton