mikedemers-rbing 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +7 -7
- data/Rakefile +1 -1
- data/lib/rbing.rb +2 -2
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -73,20 +73,20 @@ The default source is "web" but you can specify another:
|
|
73
73
|
|
74
74
|
== Dependencies
|
75
75
|
|
76
|
-
|
76
|
+
- HTTParty: http://httparty.rubyforge.org/
|
77
77
|
|
78
78
|
|
79
79
|
== Resources
|
80
80
|
|
81
81
|
RBing:
|
82
82
|
|
83
|
-
|
84
|
-
|
83
|
+
- Source Code: http://github.com/mikedemers/rbing/tree
|
84
|
+
- Support: http://github.com/mikedemers/rbing/issues
|
85
85
|
|
86
86
|
Bing:
|
87
87
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
88
|
+
- Bing API: http://www.bing.com/developers
|
89
|
+
- Register for App Id: http://www.bing.com/developers/createapp.aspx
|
90
|
+
- Bing API Reference: http://msdn.microsoft.com/en-us/library/dd251056.aspx
|
91
|
+
- Query Keywords: http://help.live.com/help.aspx?project=wl_searchv1&market=en-US&querytype=keyword&query=redliub&tmt=&domain=www.bing.com:80
|
92
92
|
|
data/Rakefile
CHANGED
data/lib/rbing.rb
CHANGED
@@ -132,8 +132,8 @@ private
|
|
132
132
|
QUERY_KEYWORDS.each do |kw|
|
133
133
|
next unless options[kw]
|
134
134
|
if options[kw].is_a? Array
|
135
|
-
kw_query = options[kw].map {|s| "#{s}".strip }.join(" OR ")
|
136
|
-
queries << " (#{
|
135
|
+
kw_query = options[kw].map {|s| "#{kw}:#{s}".strip }.join(" OR ")
|
136
|
+
queries << " (#{kw_query})"
|
137
137
|
else
|
138
138
|
queries << " #{kw}:#{options[kw]}"
|
139
139
|
end
|