Permalink
Browse files

Added README info.

  • Loading branch information...
1 parent 183786c commit 15cc7e17be1a437f5c7f74bdb3651774940039c8 Joost Hietbrink committed Feb 16, 2010
Showing with 11 additions and 1 deletion.
  1. +9 −0 README.md
  2. +2 −1 spec/bossman_spec.rb
View
@@ -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
@@ -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

0 comments on commit 15cc7e1

Please sign in to comment.