yahoo-search 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ = 1.1.1
2
+
3
+ * Upgraded to rc-rest 2.0.0 and yahoo 1.1.1
4
+
5
+ = 1.1.0
6
+
7
+ * Lost to time
8
+
9
+ = 1.0.0
10
+
11
+ * Birthday
12
+
File without changes
@@ -1,6 +1,7 @@
1
- LICENSE
1
+ History.txt
2
+ LICENSE.txt
2
3
  Manifest.txt
3
- README
4
+ README.txt
4
5
  Rakefile
5
6
  lib/yahoo/local_search.rb
6
7
  lib/yahoo/search.rb
File without changes
data/Rakefile CHANGED
@@ -1,73 +1,27 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/testtask'
4
- require 'rake/rdoctask'
5
- require 'rake/gempackagetask'
1
+ require 'hoe'
6
2
 
7
- $VERBOSE = nil
3
+ require './lib/yahoo/search'
8
4
 
9
- spec = Gem::Specification.new do |s|
10
- s.name = 'yahoo-search'
11
- s.version = '1.1.0'
12
- s.summary = 'A Ruby Yahoo Search API Implementation'
13
- s.description = 'An interface to Yahoo\'s Local Search service.
5
+ DEV_DOC_PATH = 'Libraries/yahoo-search'
14
6
 
15
- http://developer.yahoo.com/search/local/V3/localSearch.html'
7
+ hoe = Hoe.new 'yahoo-search', Yahoo::Search::VERSION do |p|
8
+ p.summary = 'A Ruby Yahoo Search API Implementation'
9
+ p.description = 'An interface to Yahoo\'s Search services.'
10
+ p.author = 'Eric Hodel'
11
+ p.email = 'drbrain@segment7.net'
12
+ p.url = "http://dev.robotcoop.com/#{DEV_DOC_PATH}"
13
+ p.changes = File.read('History.txt').scan(/\A(=.*?)^=/m).first.first
14
+ p.rubyforge_name = 'rctools'
16
15
 
17
- s.author = 'Eric Hodel'
18
- s.email = 'eric@robotcoop.com'
19
-
20
- s.has_rdoc = true
21
- s.files = File.read('Manifest.txt').split($/)
22
- s.require_path = 'lib'
23
-
24
- s.add_dependency 'yahoo', '>= 1.1.0'
25
- end
26
-
27
- desc 'Run tests'
28
- task :default => [ :test ]
29
-
30
- Rake::TestTask.new('test') do |t|
31
- t.libs << 'test'
32
- t.libs << '../yahoo/lib'
33
- t.libs << '../rc-rest/lib'
34
- t.pattern = 'test/test_*.rb'
35
- t.verbose = true
36
- end
37
-
38
- desc 'Update Manifest.txt'
39
- task :update_manifest do
40
- sh "find . -type f | sed -e 's%./%%' | egrep -v 'svn|swp|~' | egrep -v '^(doc|pkg)/' | sort > Manifest.txt"
41
- end
42
-
43
- desc 'Generate RDoc'
44
- Rake::RDocTask.new :rdoc do |rd|
45
- rd.rdoc_dir = 'doc'
46
- rd.rdoc_files.add 'lib', 'README', 'LICENSE'
47
- rd.main = 'README'
48
- rd.options << '-d' if `which dot` =~ /\/dot/
49
- rd.options << '-t Yahoo Search Web Services'
16
+ p.extra_deps << ['yahoo', '>= 1.1.1']
50
17
  end
51
18
 
52
- desc 'Generate RDoc for dev.robotcoop.com'
53
- Rake::RDocTask.new :dev_rdoc do |rd|
54
- rd.rdoc_dir = '../../../www/trunk/dev/html/Libraries/yahoo-search'
55
- rd.rdoc_files.add 'lib', 'README', 'LICENSE'
56
- rd.main = 'README'
57
- rd.options << '-d' if `which dot` =~ /\/dot/
58
- rd.options << '-t Yahoo Search Web Services'
59
- end
19
+ SPEC = hoe.spec
60
20
 
61
- desc 'Build Gem'
62
- Rake::GemPackageTask.new spec do |pkg|
63
- pkg.need_tar = true
21
+ begin
22
+ require '../tasks'
23
+ rescue LoadError
64
24
  end
65
25
 
66
- desc 'Clean up'
67
- task :clean => [ :clobber_rdoc, :clobber_package ]
68
-
69
- desc 'Clean up'
70
- task :clobber => [ :clean ]
71
-
72
26
  # vim: syntax=Ruby
73
27
 
@@ -27,7 +27,6 @@ class Yahoo::LocalSearch < Yahoo::Search
27
27
  @host = 'api.local.yahoo.com'
28
28
  @service_name = 'LocalSearchService'
29
29
  @version = 'V3'
30
- @method = 'localSearch'
31
30
  super
32
31
  end
33
32
 
@@ -54,7 +53,7 @@ class Yahoo::LocalSearch < Yahoo::Search
54
53
  def locate(query, location, results = nil)
55
54
  params = { :query => query, :location => location }
56
55
  params[:results] = results unless results.nil?
57
- get params
56
+ get :localSearch, params
58
57
  end
59
58
 
60
59
  def parse_response(xml) # :nodoc:
@@ -5,6 +5,8 @@ require 'yahoo'
5
5
 
6
6
  class Yahoo::Search < Yahoo
7
7
 
8
+ VERSION = '1.1.1'
9
+
8
10
  ##
9
11
  # Returns the total results available, returned, and first result position
10
12
  # for the returned results.
@@ -14,7 +14,6 @@ class Yahoo::WebSearch < Yahoo::Search
14
14
  @host = 'api.search.yahoo.com'
15
15
  @service_name = 'WebSearchService'
16
16
  @version = 'V1'
17
- @method = 'webSearch'
18
17
  super
19
18
  end
20
19
 
@@ -29,7 +28,7 @@ class Yahoo::WebSearch < Yahoo::Search
29
28
  def search(query, results = nil)
30
29
  params = { :query => query }
31
30
  params[:results] = results unless results.nil?
32
- get params
31
+ get :webSearch, params
33
32
  end
34
33
 
35
34
  def parse_response(xml) # :nodoc:
@@ -1,4 +1,5 @@
1
1
  require 'test/unit'
2
+ require 'rubygems'
2
3
  require 'rc_rest/uri_stub'
3
4
  require 'yahoo/local_search'
4
5
 
@@ -36,7 +37,7 @@ class Yahoo::TestLocalSearch < Test::Unit::TestCase
36
37
  assert_equal 'CA', result.state
37
38
  assert_equal '(650) 494-2928', result.phone
38
39
  assert_equal 37.419862, result.latitude
39
- assert_equal -122.126129, result.longitude
40
+ assert_equal(-122.126129, result.longitude)
40
41
  assert_equal [37.419862, -122.126129], result.coordinates
41
42
 
42
43
  assert_equal 0.19, result.distance
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.99
2
+ rubygems_version: 0.9.0.6
3
3
  specification_version: 1
4
4
  name: yahoo-search
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2006-06-16 00:00:00 -07:00
6
+ version: 1.1.1
7
+ date: 2006-11-27 00:00:00 -08:00
8
8
  summary: A Ruby Yahoo Search API Implementation
9
9
  require_paths:
10
10
  - lib
11
- email: eric@robotcoop.com
12
- homepage:
13
- rubyforge_project:
14
- description: An interface to Yahoo's Local Search service. http://developer.yahoo.com/search/local/V3/localSearch.html
11
+ email: drbrain@segment7.net
12
+ homepage: http://dev.robotcoop.com/Libraries/yahoo-search
13
+ rubyforge_project: rctools
14
+ description: An interface to Yahoo's Search services.
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -29,17 +29,19 @@ post_install_message:
29
29
  authors:
30
30
  - Eric Hodel
31
31
  files:
32
- - LICENSE
32
+ - History.txt
33
+ - LICENSE.txt
33
34
  - Manifest.txt
34
- - README
35
+ - README.txt
35
36
  - Rakefile
36
37
  - lib/yahoo/local_search.rb
37
38
  - lib/yahoo/search.rb
38
39
  - lib/yahoo/web_search.rb
39
40
  - test/test_local_search.rb
40
41
  - test/test_web_search.rb
41
- test_files: []
42
-
42
+ test_files:
43
+ - test/test_local_search.rb
44
+ - test/test_web_search.rb
43
45
  rdoc_options: []
44
46
 
45
47
  extra_rdoc_files: []
@@ -51,6 +53,15 @@ extensions: []
51
53
  requirements: []
52
54
 
53
55
  dependencies:
56
+ - !ruby/object:Gem::Dependency
57
+ name: hoe
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Version::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 1.1.4
64
+ version:
54
65
  - !ruby/object:Gem::Dependency
55
66
  name: yahoo
56
67
  version_requirement:
@@ -58,5 +69,5 @@ dependencies:
58
69
  requirements:
59
70
  - - ">="
60
71
  - !ruby/object:Gem::Version
61
- version: 1.1.0
72
+ version: 1.1.1
62
73
  version: