summaryrefslogtreecommitdiffstats
path: root/lib/rss/rss.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-18 09:03:36 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-18 09:03:36 +0000
commitfded40e54659ce510c5a815236fd926c895a9b70 (patch)
tree7c4c3b1443c7b1c21929fa58aa3eaab332b3b0b4 /lib/rss/rss.rb
parent903d0e275ff6ac5e5d50e73392005ee16b2443fa (diff)
downloadruby-fded40e54659ce510c5a815236fd926c895a9b70.tar.gz
ruby-fded40e54659ce510c5a815236fd926c895a9b70.tar.xz
ruby-fded40e54659ce510c5a815236fd926c895a9b70.zip
* lib/rss/rss.rb: fixed typo: except -> expect
* lib/rss/parser.rb: ditto. * test/rss/rss-assertions.rb: ditto. * test/rss/test_parser.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r--lib/rss/rss.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb
index 3ef5db186..d24a387fe 100644
--- a/lib/rss/rss.rb
+++ b/lib/rss/rss.rb
@@ -86,13 +86,15 @@ module RSS
end
end
- class NotExceptedTagError < InvalidRSSError
+ class NotExpectedTagError < InvalidRSSError
attr_reader :tag, :parent
def initialize(tag, parent)
@tag, @parent = tag, parent
super("tag <#{tag}> is not expected in tag <#{parent}>")
end
end
+ # For backward compatibility :X
+ NotExceptedTagError = NotExpectedTagError
class NotAvailableValueError < InvalidRSSError
attr_reader :tag, :value, :attribute
@@ -868,7 +870,7 @@ EOC
end
if !tags.nil? and !tags.empty?
- raise NotExceptedTagError.new(tag, tag_name)
+ raise NotExpectedTagError.new(tag, tag_name)
end
end