Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added README info.

  • Loading branch information...
commit 15cc7e17be1a437f5c7f74bdb3651774940039c8 1 parent 183786c
Joost Hietbrink authored
Showing with 11 additions and 1 deletion.
  1. +9 −0 README.md
  2. +2 −1  spec/bossman_spec.rb
View
9 README.md
@@ -1,5 +1,14 @@
# BOSSMan -- Gem for interaction with the Yahoo BOSS web service
+## Fork info
+
+This is a fork of the original BOSSMan gem. The form enables SearchMonkey usage. To make this work it parses
+the XML response coming from Yahoo BOSS (since the JSON response doesn't include the SearchMonkey RDF).
+
+You can now do something like:
+
+ boss = BOSSMan::Search.web("yelp restaurant", :count => 5, :filter => "-hate", :view => "searchmonkey_rdf", :format => "xml")
+
## Description
BOSSMan can be used to perform image, web and news searches against Yahoo's index. For more information about BOSS (Build your Own Search Service) please refer to http://developer.yahoo.com/search/boss/.
View
3  spec/bossman_spec.rb
@@ -55,7 +55,7 @@
before(:all) do
include BOSSMan
set_boss_api_key
- @search = boss_search("web", "yelp", :view => "searchmonkey_rdf", :format => 'xml', :count => 5, :start => 0)
+ @search = boss_search("web", "yelp", :view => "searchmonkey_rdf", :count => 5, :start => 0)
@result = @search.results.first
end
@@ -69,6 +69,7 @@
it "contains SearchMonkey RDF for second result" do
@search.results[1].searchmonkey_rdf.should_not == {}
+ @search.results[1].searchmonkey_rdf.should_not == "Search monkey data not supported in JSON"
end
it "contains no SearchMonkey RDF for first result" do
Please sign in to comment.
Something went wrong with that request. Please try again.