bossman 0.2.7 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/bossman/search.rb +3 -2
- metadata +2 -2
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
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/.
|
6
6
|
|
7
|
-
This is an older project - I'd encourage look at the great HTTParty (http://github.com/jnunemaker/httparty) library if you need to quickly and easily access HTTP
|
7
|
+
This is an older project - I'd encourage you to look at the great HTTParty (http://github.com/jnunemaker/httparty) library if you need to quickly and easily access any kind of HTTP resource.
|
8
8
|
|
9
9
|
## Bugs, Features, Feedback
|
10
10
|
|
data/lib/bossman/search.rb
CHANGED
@@ -2,11 +2,12 @@ module BOSSMan
|
|
2
2
|
class Search
|
3
3
|
DEFAULT_COUNT = 10
|
4
4
|
DEFAULT_START = 0
|
5
|
-
|
5
|
+
VALID_METHODS = [:web, :images, :news, :spelling, :se_inlink, :se_pagedata]
|
6
|
+
|
6
7
|
class << self
|
7
8
|
def method_missing(*args)
|
8
9
|
method, query, options = args
|
9
|
-
super unless
|
10
|
+
super unless VALID_METHODS.include?(method)
|
10
11
|
options = {} if options.nil?
|
11
12
|
boss = BOSS.new(method, query, options_defaults.merge!(options))
|
12
13
|
boss.get
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bossman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Pignata
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-21 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|