yahoo-geocode 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/geocode.rb
6
7
  test/test_geocode.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/geocode'
8
4
 
9
- spec = Gem::Specification.new do |s|
10
- s.name = 'yahoo-geocode'
11
- s.version = '1.1.0'
12
- s.summary = 'A Ruby Yahoo Geocoder Library'
13
- s.description = 'An interface to Yahoo\'s Geocoder service.
5
+ DEV_DOC_PATH = 'Libraries/yahoo-geocode'
14
6
 
15
- http://developer.yahoo.com/maps/rest/V1/geocode.html'
7
+ hoe = Hoe.new 'yahoo-geocode', Yahoo::Geocode::VERSION do |p|
8
+ p.summary = 'A Ruby Yahoo Geocoder Library'
9
+ p.description = 'An interface to Yahoo\'s Geocoder service.'
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 Maps Web Services Geocoding API'
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-geocode'
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 Maps Web Services Geocoding API'
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
 
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'yahoo'
2
3
 
3
4
  ##
@@ -7,6 +8,8 @@ require 'yahoo'
7
8
 
8
9
  class Yahoo::Geocode < Yahoo
9
10
 
11
+ VERSION = '1.1.1'
12
+
10
13
  ##
11
14
  # Location result Struct.
12
15
 
@@ -17,7 +20,6 @@ class Yahoo::Geocode < Yahoo
17
20
  @host = 'api.local.yahoo.com'
18
21
  @service_name = 'MapsService'
19
22
  @version = 'V1'
20
- @method = 'geocode'
21
23
  super
22
24
  end
23
25
 
@@ -33,7 +35,7 @@ class Yahoo::Geocode < Yahoo
33
35
  # * street, zip
34
36
 
35
37
  def locate(address)
36
- get :location => address
38
+ get :geocode, :location => address
37
39
  end
38
40
 
39
41
  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/geocode'
4
5
 
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-geocode
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 Geocoder Library
9
9
  require_paths:
10
10
  - lib
11
- email: eric@robotcoop.com
12
- homepage:
13
- rubyforge_project:
14
- description: An interface to Yahoo's Geocoder service. http://developer.yahoo.com/maps/rest/V1/geocode.html
11
+ email: drbrain@segment7.net
12
+ homepage: http://dev.robotcoop.com/Libraries/yahoo-geocode
13
+ rubyforge_project: rctools
14
+ description: An interface to Yahoo's Geocoder service.
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -29,14 +29,15 @@ 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/geocode.rb
37
38
  - test/test_geocode.rb
38
- test_files: []
39
-
39
+ test_files:
40
+ - test/test_geocode.rb
40
41
  rdoc_options: []
41
42
 
42
43
  extra_rdoc_files: []
@@ -48,6 +49,15 @@ extensions: []
48
49
  requirements: []
49
50
 
50
51
  dependencies:
52
+ - !ruby/object:Gem::Dependency
53
+ name: hoe
54
+ version_requirement:
55
+ version_requirements: !ruby/object:Gem::Version::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 1.1.4
60
+ version:
51
61
  - !ruby/object:Gem::Dependency
52
62
  name: yahoo
53
63
  version_requirement:
@@ -55,5 +65,5 @@ dependencies:
55
65
  requirements:
56
66
  - - ">="
57
67
  - !ruby/object:Gem::Version
58
- version: 1.1.0
68
+ version: 1.1.1
59
69
  version: