yahoo 1.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,8 @@
1
+ = 2.0.0
2
+
3
+ * New maintainer: davidw@dedasys.com
4
+ * Depend on rc-rest >= 3.0.0 and utilize Nokogiri
5
+
1
6
  = 1.1.1
2
7
 
3
8
  * Upgraded to rc-rest 2.0.0
data/README.txt CHANGED
@@ -1,17 +1,17 @@
1
1
  = yahoo
2
2
 
3
- Rubyforge Project:
3
+ Github Project:
4
4
 
5
- http://rubyforge.org/projects/rctools/
5
+ http://github.com/davidw/yahoo-gem
6
6
 
7
7
  Documentation:
8
8
 
9
- http://dev.robotcoop.com/Libraries/yahoo/
9
+ FIXME
10
10
 
11
11
  == About
12
12
 
13
- This is an abstract class for implementing Yahoo's web services APIs. By
14
- itself it isn't at all useful.
13
+ This is an abstract class for implementing Yahoo's web services APIs.
14
+ By itself it isn't at all useful.
15
15
 
16
16
  == Installing yahoo
17
17
 
@@ -21,5 +21,7 @@ Just install the gem:
21
21
 
22
22
  == Using yahoo
23
23
 
24
- Yahoo is used by gems such as yahoo-geocode and yahoo-search. If you'd like to write bindings a yahoo web service see those gems for examples.
24
+ Yahoo is used by gems such as yahoo-geocode and yahoo-search. If
25
+ you'd like to write bindings a yahoo web service see those gems for
26
+ examples.
25
27
 
data/Rakefile CHANGED
@@ -7,13 +7,13 @@ DEV_DOC_PATH = 'Libraries/yahoo'
7
7
  hoe = Hoe.new 'yahoo', Yahoo::VERSION do |p|
8
8
  p.summary = 'Base for Yahoo web services'
9
9
  p.description = 'This library makes it easy to implement Yahoo\'s web services APIs.'
10
- p.author = 'Eric Hodel'
11
- p.email = 'drbrain@segment7.net'
12
- p.url = "http://dev.robotcoop.com/#{DEV_DOC_PATH}"
10
+ p.author = 'David N. Welton'
11
+ p.email = 'davidw@dedasys.com'
12
+ p.url = "http://github.com/davidw/yahoo-gem"
13
13
  p.changes = File.read('History.txt').scan(/\A(=.*?)^=/m).first.first
14
14
  p.rubyforge_name = 'rctools'
15
15
 
16
- p.extra_deps << ['rc-rest', '>= 2.0.0']
16
+ p.extra_deps << ['rc-rest', '>= 3.0.0']
17
17
  end
18
18
 
19
19
  SPEC = hoe.spec
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rc_rest'
3
+ require 'nokogiri'
3
4
 
4
5
  ##
5
6
  # Abstract class for implementing Yahoo APIs.
@@ -11,7 +12,7 @@ class Yahoo < RCRest
11
12
  ##
12
13
  # This is the version of Yahoo you are using.
13
14
 
14
- VERSION = '1.1.1'
15
+ VERSION = '2.0.0'
15
16
 
16
17
  ##
17
18
  # Yahoo error class.
@@ -39,8 +40,8 @@ class Yahoo < RCRest
39
40
  end
40
41
 
41
42
  def check_error(xml) # :nodoc:
42
- err = xml.elements['Error']
43
- raise Error, err.elements['Message'].text if err
43
+ err = xml.at_xpath('Error')
44
+ raise Error, err.at_xpath('Message').content if err
44
45
  end
45
46
 
46
47
  def make_url(method, params) # :nodoc:
@@ -32,7 +32,7 @@ class TestYahoo < Test::Unit::TestCase
32
32
  end
33
33
 
34
34
  def test_check_error
35
- xml = REXML::Document.new '<Error><Message>you broked it</Message></Error>'
35
+ xml = Nokogiri::XML '<Error><Message>you broked it</Message></Error>'
36
36
  @t.check_error xml
37
37
 
38
38
  rescue Yahoo::Error => e
metadata CHANGED
@@ -1,58 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0.6
3
- specification_version: 1
4
2
  name: yahoo
5
3
  version: !ruby/object:Gem::Version
6
- version: 1.1.1
7
- date: 2006-11-27 00:00:00 -08:00
8
- summary: Base for Yahoo web services
9
- require_paths:
10
- - lib
11
- email: drbrain@segment7.net
12
- homepage: http://dev.robotcoop.com/Libraries/yahoo
13
- rubyforge_project: rctools
14
- description: This library makes it easy to implement Yahoo's web services APIs.
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 2.0.0
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Eric Hodel
31
- files:
32
- - History.txt
33
- - LICENSE.txt
34
- - Manifest.txt
35
- - README.txt
36
- - Rakefile
37
- - lib/yahoo.rb
38
- - test/test_yahoo.rb
39
- test_files:
40
- - test/test_yahoo.rb
41
- rdoc_options: []
42
-
43
- extra_rdoc_files: []
44
-
45
- executables: []
46
-
47
- extensions: []
48
-
49
- requirements: []
50
-
8
+ - David N. Welton
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain:
12
+ date: 2010-01-12 00:00:00 +01:00
13
+ default_executable:
51
14
  dependencies:
52
15
  - !ruby/object:Gem::Dependency
53
16
  name: hoe
17
+ type: :runtime
54
18
  version_requirement:
55
- version_requirements: !ruby/object:Gem::Version::Requirement
19
+ version_requirements: !ruby/object:Gem::Requirement
56
20
  requirements:
57
21
  - - ">="
58
22
  - !ruby/object:Gem::Version
@@ -60,10 +24,57 @@ dependencies:
60
24
  version:
61
25
  - !ruby/object:Gem::Dependency
62
26
  name: rc-rest
27
+ type: :runtime
63
28
  version_requirement:
64
- version_requirements: !ruby/object:Gem::Version::Requirement
29
+ version_requirements: !ruby/object:Gem::Requirement
65
30
  requirements:
66
31
  - - ">="
67
32
  - !ruby/object:Gem::Version
68
- version: 2.0.0
33
+ version: 3.0.0
69
34
  version:
35
+ description: This library makes it easy to implement Yahoo's web services APIs.
36
+ email: davidw@dedasys.com
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - History.txt
45
+ - LICENSE.txt
46
+ - Manifest.txt
47
+ - README.txt
48
+ - Rakefile
49
+ - lib/yahoo.rb
50
+ - test/test_yahoo.rb
51
+ has_rdoc: true
52
+ homepage: http://github.com/davidw/yahoo-gem
53
+ licenses: []
54
+
55
+ post_install_message:
56
+ rdoc_options: []
57
+
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">"
63
+ - !ruby/object:Gem::Version
64
+ version: 0.0.0
65
+ version:
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ version:
72
+ requirements: []
73
+
74
+ rubyforge_project: rctools
75
+ rubygems_version: 1.3.5
76
+ signing_key:
77
+ specification_version: 1
78
+ summary: Base for Yahoo web services
79
+ test_files:
80
+ - test/test_yahoo.rb