1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rss/rss.rb, lib/rss/parser.rb: removed needless code for

backward compatibility.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2007-02-06 11:33:50 +00:00
parent 0d59cd79cc
commit cbcb626ee5
3 changed files with 6 additions and 42 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 6 20:29:44 2007 Kouhei Sutou <kou@cozmixng.org>
* lib/rss/rss.rb, lib/rss/parser.rb: removed needless code for
backward compatibility.
Tue Feb 6 18:43:17 2007 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb: moved fixes for EPIPE to the correct

View file

@ -1,17 +1,5 @@
require "forwardable"
begin
require "open-uri"
rescue LoadError
require "uri"
end
unless Kernel.methods.include?("URI")
module Kernel
def URI(uri_str) # :doc:
URI.parse(uri_str)
end
module_function :URI
end
end
require "rss/rss"

View file

@ -30,35 +30,6 @@ class Time
end
end
module Enumerable
unless instance_methods.include?("sort_by")
def sort_by
collect do |x|
[yield(x), x]
end.sort do |x, y|
x[0] <=> y[0]
end.collect! do |x|
x[1]
end
end
end
end
class Hash
unless instance_methods.include?("merge")
def merge(other)
dup.update(other)
end
end
end
module Kernel
unless methods.include?("funcall")
def funcall(*args, &block)
__send__(*args, &block)
end
end
end
require "English"
require "rss/utils"