summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2004-06-28* configure.in, lib/mkmf.rb (LIBPATHFLAG): use double quotes due tonobu
DOSISH compilers. [ruby-core:03107] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-26* lib/mkmf.rb (libpathflag): should not quote here.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-26* lib/mkmf.rb (libpathflag, dir_config): quote directory names ifnobu
necessary. [ruby-talk:104505] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22Fixed parsing of %r{} when generating source popupdave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22* lib/net/ftp.rb (MDTM_REGEXP): fix for demon's ftp server.shugo
Thanks, Rutger Nijlunsing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09* lib/uri/generic.rb (URI::Generic::merge,akira
URI::Generic::route_from): accepts non-hierarchical URI. [ruby-dev:23631] * test/uri/test_generic.rb (TestGeneric::test_route, TestGeneric::test_merge): added tests for above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 * lib/logger.rb: leading 0 padding of timestamp usec part.nahi
* lib/csv.rb (CSV.parse): [CAUTION] behavior changed. in the past, CSV.parse accepts a filename to be read-opened (it was just a shortcut of CSV.open(filename, 'r')). now CSV.parse accepts a string or a stream to be parsed e.g. CSV.parse("1,2\n3,r") #=> [['1', '2'], ['3', '4']] * lib/csv.rb: CSV::Row and CSV::Cell are deprecated. these classes are removed in the future. in the new csv.rb, row is represented as just an Array. since CSV::Row was a subclass of Array, it won't hurt almost all programs except one which depended CSV::Row#match. and a cell is represented as just a String or nil(NULL). this change will cause widespread destruction. CSV.open("foo.csv", "r") do |row| row.each do |cell| if cell.is_null # using Cell#is_null p "(NULL)" else p cell.data # using Cell#data end end end must be just; CSV.open("foo.csv", "r") do |row| row.each do |cell| if cell.nil? p "(NULL)" else p cell end end end * lib/csv.rb: [CAUTION] record separator(CR, LF, CR+LF) behavior change. CSV.open, CSV.parse, and CSV,generate now do not force opened file binmode. formerly it set binmode explicitly. with CSV.open, binmode of opened file depends the given mode parameter "r", "w", "rb", and "wb". CSV.parse and CSV.generate open file with "r" and "w". setting mode properly is user's responsibility now. * lib/csv.rb: accepts String as a fs (field separator/column separator) and rs (record separator/row separator) * lib/csv.rb (CSV.read, CSV.readlines): added. works as IO.read and IO.readlines in CSV format. * lib/csv.rb: added CSV.foreach(path, rs = nil, &block). CSV.foreach now does not handle "| cmd" as a path different from IO.foreach. needed? * test/csv/test_csv.rb: updated. * test/ruby/test_float.rb: added test_strtod to test Float("0"). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27* lib/pathname.rb (Pathname#initialize): fix pathname initializationakr
by pathname. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27* marshal.c (w_class): should not dump singleton class.matz
[ruby-dev:22631] * marshal.c (class2path): check anonymous class/module before checking referable, and allow singleton classes. * marshal.c (class2path): get class path and check referable. [ruby-dev:22588] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26Allow "do" after "for". Fix up css for standalone code windowdave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-25* ext/syck/syck.c (syck_new_parser): clear parser on init.why
thanks, ts. [ruby-core:02931] * ext/syck/token.c (sycklex_yaml_utf8): buffer underflow. thanks, ts. [ruby-core:02929] * lib/yaml/baseemitter.rb (indent_text): simpler flow block code. * lib/yaml.rb: added rdoc to beginning of lib. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24test Kernel.open accepts pathname object.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24SYSTEM identifiers must be absolutedave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21Add '()' around parameters that don't have themdave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20* lib/mkmf.rb (check_sizeof): define result size. [ruby-core:02911]nobu
* lib/mkmf.rb (create_header): macro name should not include equal sign. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20* numeric.c (flo_eq): alway check if operands are NaN.matz
[ruby-list:39685] * lib/cgi/session.rb: use LOCK_SH to read, and a few other improvements. [ruby-core:02328] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20At Ryan Davis' suggestion, honor visibility modifers if guarded by a ↵dave
statement modifier git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20* lib/mkmf.rb (have_type): do not check pointer to incomplete type,nobu
which always get compiled. [ruby-list:39683] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-17* ext/socket/socket.c (setup_domain_and_type): honor duck typing.matz
[ruby-dev:23522] * ext/socket/socket.c (sock_s_getnameinfo): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16REXML version bump.ser
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16Fixed REXML bug #14: StreamParser reports doctype events to listeners again.ser
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16Cross-ported the REXML changes (3.0.8) from the development branch to theser
stable branch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16* lib/yaml.rb: removed fallback to pure Ruby parser.why
* lib/yaml/baseemitter.rb (indent_text): was forcing a mod value of zero at times, which kept some blocks from getting indentation. * lib/yaml/baseemitter.rb (node_text): rewriting folded scalars. * ext/syck/syck.h: reports style of scalars now, be they plain, block single-, or double-quoted. * ext/syck/syck.c: ditto. * ext/syck/gram.c: ditto. * ext/syck/node.c: ditto. * ext/syck/token.c: ditto. * ext/syck/rubyext.c (yaml_org_handler): symbols loaded only if scalar style is plain. * ext/syck/rubyext.c (yaml_org_handler): some empty strings were loaded as symbols. * test/yaml/test_yaml.rb (test_perl_regexp): updated test to match new regexp serialization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 * lib/drb/drb.rb: Cosmetic documentation changes.gsinclair
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 * lib/text/unit.rb: Removed :nodoc: directive (it prevented effectivegsinclair
RDoc operation), and added file-level comment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16lib/test/unit/assertions.rb: remove "all" that it has forgotten to remove.eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 * lib/test/unit/**/*.rb: Removed :nodoc: directives (many weregsinclair
generating warnings, many were on private methods). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13* lib/net/telnet.rb (Net::Telnet::login): "options" can specifyakira
regexps for login prompt and/or password prompt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13lib/drb/observer.rb: remove debug print.eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13* lib/uri/mailto.rb (URI::MailTo::to_s): should include fragment.akira
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12* lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.nobu
[ruby-talk:99788] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12* lib/resolv.rb (Resolv::DNS::Config): make it configurable withoutakr
external file such as /etc/resolv.conf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-10Change symbol lookup scheme in HTML generationdave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-10Search parent for unqualified constantsdave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-09 * lib/net/ftp.rb: improved documentationgsinclair
* lib/net/imap.rb: ditto * lib/net/pop.rb: ditto * lib/net/smtp.rb: ditto * lib/net/telnet.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07Allow multiple arguments to includedave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07* lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". ↵aamine
[ruby-core:02843] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07* eval.c (rb_eval): too many line trace call. (ruby-bugs PR#1320)matz
* numeric.c (flo_to_s): tweak output string based to preserve decimal point and to remove trailing zeros. [ruby-talk:97891] * string.c (rb_str_index_m): use unsigned comparison for T_FIXNUM search. [ruby-talk:97342] * hash.c (rb_hash_equal): returns true if two hashes have same set of key-value set. [ruby-talk:97559] * hash.c (rb_hash_eql): returns true if two hashes are equal and have same default values. * string.c (rb_str_equal): always returns true or false, never returns nil. [ruby-dev:23404] * io.c (rb_io_reopen): should use rb_io_check_io(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06* lib/yaml/rubytypes.rb (to_yaml): added instance variable handlingwhy
for Ranges, Strings, Structs, Regexps. * lib/yaml/rubytypes.rb (to_yaml_fold): new method for setting a String's flow style. * lib/yaml.rb (YAML::object_maker): now uses Object.allocate. * ext/syck/gram.c: fixed transfer methods on structs, broke it last commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06* lib/net/imap.rb (string): accept NIL.shugo
* lib/net/imap.rb (body_type_basic): allow body-fields omissions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-05Don't include &block if we have yield parametersdave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04use recv instead of recvfromseki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04 * lib/gserver.rb: documentedgsinclair
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04 * lib/xmlrpc/README.txt: introduced for documentation purposesgsinclair
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-03Fix parsing problem with yield within blockdave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-01This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26* lib/yaml/rubytypes.rb: passing Range tests.why
* ext/syck/syck.h: version 0.44. * ext/syck/gram.c: transfers no longer open an indentation. fixed transfers which precede blocks. * ext/syck/token.c: ditto. * ext/syck/syck.c: fixed segfault if an anchor has been released already. * ext/syck/node.c (syck_free_members): organized order of free'd nodes. * ext/syck/rubyext.c (syck_emitter_write_m): test for proper string with StringValue. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-24-ser
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e