Skip to content

Commit

Permalink
* lib/rss/rss.rb: 0.1.8 -> 0.1.9.
Browse files Browse the repository at this point in the history
* test/rss/test_version.rb: followed the above change.

* lib/rss/parser.rb: fixed a bug that handles unintended elements.
  Thanks to Takuo Yonezawa. [ruby-list:43841]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kou committed Aug 13, 2007
1 parent f5da26f commit 3349fd5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,11 @@
Tue Aug 14 00:04:27 2007 Kouhei Sutou <kou@cozmixng.org>

* lib/rss/rss.rb: 0.1.8 -> 0.1.9.
* test/rss/test_version.rb: followed the above change.

* lib/rss/parser.rb: fixed a bug that handles unintended elements.
Thanks to Takuo Yonezawa. [ruby-list:43841]

Mon Aug 13 17:23:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> Mon Aug 13 17:23:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>


* eval.c (rb_clear_trace_func, rb_thread_stop_timer_thread): * eval.c (rb_clear_trace_func, rb_thread_stop_timer_thread):
Expand Down
9 changes: 3 additions & 6 deletions lib/rss/parser.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ def parse_pi_content(content)
def start_else_element(local, prefix, attrs, ns) def start_else_element(local, prefix, attrs, ns)
class_name = self.class.class_name(_ns(ns, prefix), local) class_name = self.class.class_name(_ns(ns, prefix), local)
current_class = @last_element.class current_class = @last_element.class
next_class = nil if current_class.const_defined?(class_name)
begin
next_class = current_class.const_get(class_name) next_class = current_class.const_get(class_name)
rescue NameError start_have_something_element(local, prefix, attrs, ns, next_class)
else
if !@do_validate or @ignore_unknown_element if !@do_validate or @ignore_unknown_element
@proc_stack.push(nil) @proc_stack.push(nil)
else else
Expand All @@ -379,9 +379,6 @@ def start_else_element(local, prefix, attrs, ns)
raise NotExpectedTagError.new(local, _ns(ns, prefix), parent) raise NotExpectedTagError.new(local, _ns(ns, prefix), parent)
end end
end end
if next_class
start_have_something_element(local, prefix, attrs, ns, next_class)
end
end end


NAMESPLIT = /^(?:([\w:][-\w\d.]*):)?([\w:][-\w\d.]*)/ NAMESPLIT = /^(?:([\w:][-\w\d.]*):)?([\w:][-\w\d.]*)/
Expand Down
2 changes: 1 addition & 1 deletion lib/rss/rss.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def w3cdtf


module RSS module RSS


VERSION = "0.1.8" VERSION = "0.1.9"


URI = "http://purl.org/rss/1.0/" URI = "http://purl.org/rss/1.0/"


Expand Down
2 changes: 1 addition & 1 deletion test/rss/test_version.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RSS module RSS
class TestVersion < TestCase class TestVersion < TestCase
def test_version def test_version
assert_equal("0.1.8", ::RSS::VERSION) assert_equal("0.1.9", ::RSS::VERSION)
end end
end end
end end

0 comments on commit 3349fd5

Please sign in to comment.