aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2005-04-194-0/+349
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ftools.rb (File.safe_unlink): do not modify a symlinked file.eban2005-04-191-22/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (remove_file): ignore exceptions caused by chmod.aamine2005-04-141-8/+25
| | | | | | | * lib/fileutils.rb (remove_dir): try to get rights to rmdir. [ruby-Bugs:1502] (2 items backportted from HEAD, rev 1.53-54) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::VERSION): 0.1.3 -> 0.1.4.kou2005-04-131-3/+7
| | | | | | | | * lib/rss/rss.rb (RSS::Element#converter): fixed converter transmission bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* adhoc patch for [druby-ja:123]seki2005-04-111-5/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (configuration): shouldn't output hdrdir twice.usa2005-04-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss: backoported from HEAD.kou2005-04-0916-233/+483
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/rss: refactored. - gave a name to 'x'. - undef_method -> remove_method for avoiding a warning in ruby 1.6. * lib/rss/parser.rb: @@setter -> @@setters. * lib/rss/parser.rb (RSS::BaseListener.register_uri) (RSS::BaseListener.uri_registered?) (RSS::BaseListener.install_get_text_element): swapped the first argument and the second argument. * lib/rss/taxonomy.rb: swapped the first argument and the second argument for RSS::BaseListener.install_get_text_element. * lib/rss/image.rb: ditto. * lib/rss/syndication.rb: ditto. * lib/rss/dublincore.rb: ditto. * lib/rss/parser.rb: ditto. * lib/rss/1.0.rb: ditto. * lib/rss/2.0.rb: ditto. * lib/rss/0.9.rb: ditto. * lib/rss/content.rb: ditto. * lib/rss/parser.rb (RSS::BaseListener.install_setter) (RSS::BaseListener.register_uri): changed fallback way. * lib/rss/parser.rb: added class name registry for complex model elements. (ex. have childlen elements, have some attributes and a child element and so on.) * lib/rss/dublincore.rb: supported multiple Dublin Core items. * lib/rss/maker/dublincore.rb: ditto. * lib/rss/maker/image.rb: supproted new Dublin Core API. * lib/rss/maker/base.rb: added default current_element implementation. * lib/rss/trackback.rb (RSS::TrackBackUtils.new_with_value_if_need): moved to RSS::Utils. * lib/rss/utils.rb (RSS::Utils.new_with_value_if_need): moved from RSS::TrackBackUtils. * lib/rss/maker/image.rb: fixed invalid argument of add_need_initialize_variable bug. * lib/rss/maker/trackback.rb: ditto. * lib/rss/rss.rb (Hash#merge): added for ruby 1.6. * lib/rss/rss.rb (RSS::BaseModel.date_writer): changed to accept nil for date value. * test/test_dublincore.rb: added tests for plural accessor and multiple Dublin Core items. * test/test_setup_maker_1.0.rb: fixed swapped actual and expected values. * test/rss/rss-assertions.rb (assert_multiple_dublin_core): added an assertion for testing multiple Dublin Core items. * test/rss/test_maker_dc.rb (test_rss10_multiple): added a test for making multiple Dublin Core items. * test/rss/test_maker_dc.rb (test_date): added a test for #date= and #dc_date=. * sample/rss/tdiary_plugin/rss-recent.rb: new option: @options['rss-recent.use-image-link']: use image as link instread of text if available. * sample/rss/tdiary_plugin/rss-recent.rb (RSS_RECENT_VERSION): 0.0.5 -> 0.0.6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): hdrdir needs to be defined also innobu2005-04-081-2/+2
| | | | | | | | | | Config::CONFIG. * lib/mkmf.rb (configuration, create_makefile): get rid of recursive macro reference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): keep directory names in Makefile as macros.nobu2005-04-071-7/+8
| | | | | | | | | * lib/mkmf.rb (configuration, create_makefile): ditto. * lib/mkmf.rb (CXX_EXT): separate C++ extensions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): ensure library directories get madenobu2005-04-021-3/+4
| | | | | | | before copying libraries there. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (CP, INSTALL): get rid of less portable options.nobu2005-04-021-6/+6
| | | | | | | | * lib/mkmf.rb (configuration, create_makefile): correct configuration variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (SRC_EXT): exclude just case different suffixes on casenobu2005-03-311-1/+5
| | | | | | | | | insensitive file system platforms. * README.EXT, README.EXT.ja (Appendix C): utility functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,nobu2005-03-301-63/+198
| | | | | | | | common.mk, configure.in, ext/extmk.rb, lib/mkmf.rb, instruby.rb, runruby.rb: backport extout. [ruby-dev:25963] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* move method DRbObject#reinit to DRbObject.new_with.seki2005-03-282-33/+132
| | | | | | | | | extract method DRbObject.prepare_backtrace. add DRb.regist_server, remove_server, fetch_server. change server in thread variable if in-proc sesrver. [druby-ja:113] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (macro_defined?): try to compile for an old compilernobu2005-03-241-6/+13
| | | | | | | | | which doesn't bail out at #error directive. [ruby-dev:25818] * lib/mkmf.rb (check_sizeof): refine logging messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/utils.rb (WEBrick::Utils.create_listeners):gotoyuzo2005-03-232-2/+9
| | | | | | | | | | | | | - should raise ArgumentError if no port is specified. - even if the specified port is 0, all TCPServers should be initialized with the port given to the first one. * lib/webrick/server.rb (WEBrick::GenericServer#initialize): if :Port parameter is 0, it should be updated with the port number which ectually listened. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (mkmf_failed): check if Makefile is created withoutnobu2005-03-201-1/+1
| | | | | | | create_makefile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2005-03-151-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/server.rb (WEBrick::GenericServer#start): shouldgotoyuzo2005-03-091-10/+24
| | | | | | | | | | restore @token if accept failure. suggested by Dominique Brezinski. [ruby-core:04518] I forgot it in my last commit ;) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/un.rb: should use OptionParser. (backported form HEAD)eban2005-03-071-22/+30
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_cmp_m): should not return false but nil.matz2005-03-076-3/+11
| | | | | | | | | | fixed: [ruby-dev:25811] * lib/cgi-lib.rb: add deprecation warning. [ruby-dev:25499] getopts.rb, parsearg.rb, importenv.rb as well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: HTTPHeader holds its header fields as an array (backport ↵aamine2005-03-061-62/+121
| | | | | | | | | from CVS HEAD rev 1.112-1.123). [ruby-list:40629] * test/net/http/test_httpheader.rb: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: rdoced by by Sam Roberts. [ruby-core:4490]akr2005-03-061-149/+118
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (File::Stat#pretty_print): Etc.getpwuid and Etc.getgrgidakr2005-03-061-4/+8
| | | | | | | | may return nil. [ruby-talk:129826] reported by Daniel Berger. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#do_includes): replacenobu2005-03-041-1/+1
| | | | | | | | | | | also locally defined modules. * ext/iconv/iconv.c: backport Iconv::InvalidEncoding from CVS HEAD. * ext/strscan/strscan.c: moved misplaced rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb (SortedSet::setup): a hack to shut up warning.matz2005-03-041-0/+5
| | | | | | | [ruby-talk:132866] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* improved keeper threadseki2005-02-281-17/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_s_create): no need for negative argc check.matz2005-02-232-2/+2
| | | | | | | | | | | | | | | [ruby-core:04463] * array.c (rb_ary_unshift_m): ditto. * lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass of StandardError class, not Exception class. [ruby-core:04429] * lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE. fixed: [ruby-core:04444] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (split_userinfo): should split ":pass" into ""akira2005-02-231-8/+1
| | | | | | | and "pass". [ruby-dev:25667] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (initialize): handle certs correctly. Thanks,shugo2005-02-221-5/+6
| | | | | | | NABEYA Kenichi. (backported from CVS HEAD) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::FTP#buffer_open): access mechanismakr2005-02-191-4/+33
| | | | | | | | re-implemented according to RFC 1738. reported by Guillaume Marcais. [ruby-talk:131650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* (DRbObject#respond_to?) take two arguments. [ruby-dev:25722]seki2005-02-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: call OpenSSL::SSL::SSLSocket#post_connection_checkakr2005-02-191-1/+6
| | | | | | | after connection is made. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/drb.rb (DRbServer.default_safe_level): fix typo.ocean2005-02-171-2/+2
| | | | | | | | * test/digest/test_digest.rb: separate test case for each algorithms. (Thanks nobu) [ruby-dev:25412] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector.rb (collect_file): now deletes paths addedntalbott2005-02-173-40/+45
| | | | | | | | | | | | | | | to $LOAD_PATH instead of restoring it verbatim. * lib/test/unit/autorunner.rb (AutoRunner.run): fixed so that 'ruby -rtest/unit -rtest1 -rtest2 -e0' will use the objectspace collector again. Also tried to simplify the calling convention. * test/runner.rb: adjusted for new AutoRunner semantics. * lib/test/unit.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add lazy stop_service.seki2005-02-162-9/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb (RSS::ListenerMixin::tag_end):kou2005-02-141-1/+2
| | | | | | | fixed invalid namespace handling bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* pass DRb info to sub threadseki2005-02-131-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/dublincore.rb (RSS::DublicCoreModel#date{,=}): addedkou2005-02-133-0/+6
| | | | | | | | | | convenient methods. * lib/rss/0.9.rb (RSS::Rss::Channel#date{,=}): ditto. * lib/rss/2.0.rb (RSS::Rss::Channel::Item#date{,=}): ditto. * test/rss/: added tests for the convenient methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add safe_level, default_safe_levelseki2005-02-131-5/+30
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/cgi.rb (WEBrick::CGI.start): should set reason-phrasegotoyuzo2005-02-131-1/+4
| | | | | | | to the value of status header field. ([ruby-dev:40617]) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make module_functionseki2005-02-121-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/etc/etc.c (Init_etc): sGroup needs HAVE_ST_GR_PASSWD check.matz2005-02-123-5/+5
| | | | | | | | | | | | | [ruby-dev:25675] * misc/ruby-mode.el: [ruby-core:04415] * lib/rdoc/generators/html_generator.rb: [ruby-core:04412] * lib/rdoc/generators/ri_generator.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_loop): send authentication only forakr2005-02-121-0/+10
| | | | | | | the URI directly specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* document updated.akr2005-02-121-8/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: support https if the platform provides CAakr2005-02-121-72/+83
| | | | | | | certificates. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::HTTP#proxy_open): new option supported:akr2005-02-111-2/+16
| | | | | | | | :http_basic_authentication. suggested by Kent Sibilev. [ruby-core:4392] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reject :instance_eval, :class_eval, :module_eval [druby-ja:117]seki2005-02-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* document updated.akr2005-02-081-47/+53
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::Cookie): [ruby-talk:130040]matz2005-02-082-2/+2
| | | | | | | * object.c: [ruby-doc:818] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e