aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * configure.in, lib/mkmf.rb (LIBPATHFLAG): use double quotes due tonobu2004-06-281-1/+1
| | | | | | | DOSISH compilers. [ruby-core:03107] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (libpathflag): should not quote here.nobu2004-06-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (libpathflag, find_header, dir_config): quote directorynobu2004-06-261-5/+4
| | | | | | | names if necessary. [ruby-talk:104505] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_sockaddr): Socket#gethostbyname()matz2004-06-242-0/+9
| | | | | | | | should give us packed address, not struct sockaddr. [ruby-core:03053] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: added new option --ssl.shugo2004-06-231-4/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed parsing of %r{} when generating source popupdave2004-06-221-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (binary=): send TYPE commands only once.shugo2004-06-201-59/+83
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This is the log for the *previous* commit, but CVS is bloody stupid.ser2004-06-102-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added XPath expansion and abbreviation to Parsers::XPathParser * Improved the look of Element.inspect * Added xpath() to Element and Attribute, allowing the generation of a unique xpath for nodes of these types. This method for the other nodes still need to be done * Made REXML::XPathParser#match public First pass at validation support. Minimal RelaxNG support. * The tree parser is now an independant parser, like the rest. * The first basic RelaxNG support is in. It supports elements, attributes, choice, sequence, oneOrMany, zeroOrMany, and optional. Improved support for converting XPaths to strings. * XPath wasn't parsing ")" correctly. Validation improvements: * Fixed text * Fixed attributes in choices * Fixed text in choices. This change improves handling of all events that occur without an end step (which is most of them). * Fixed a bunch of cases * Added support for <group> * Added support for <value> Workin' in the coal mine, goin' down, down, down... * Entirely rewrote the validation code; the finite state machine, while cool, didn't survive the encounter with Interleave. It was getting sort of hacky, too. The new mechanism is less elegant, but is basically still a FSM, and is more flexible without having to add hacks to extend it. Large chunks of the FSM may be reusable in other validation mechanisms. * Added interleave support * Added suppert for mixed * Added Kou's patch to normalize attribute values passed through the SAX2 and Stream parsers. * Applied Kou's preceding-sibling patch, which fixes the order of the axe results git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* -ser2004-06-1013-121/+244
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (URI::Generic::merge,akira2004-06-091-19/+31
| | | | | | | | | | | 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/trunk@6437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#initialize): fix pathname initializationakr2004-05-271-1/+9
| | | | | | | by pathname. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pstore.rb (transaction): allow overriding dump and load.matz2004-05-274-80/+43
| | | | | | | | | [ruby-dev:23567] * lib/yaml/store.rb: follow lib/pstore.rb's change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (MDTM_REGEXP): fix for demon's ftp server.shugo2004-05-271-1/+1
| | | | | | | Thanks, Rutger Nijlunsing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb (CSV.read, CSV.readlines): added. works as IO.read andnahi2004-05-261-63/+82
| | | | | | | | | | | | | | | IO.readlines in CSV format. * 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']] * test/csv/test_csv.rb: follow above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Allow "do" after "for". Fix up css for standalone code windowdave2004-05-263-10/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/syck.c (syck_new_parser): clear parser on init.why2004-05-252-24/+12
| | | | | | | | | | | | 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test Kernel.open accepts pathname object.akr2004-05-241-1/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* SYSTEM identifiers must be absolutedave2004-05-242-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add '()' around parameters that don't have themdave2004-05-211-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: fixed a few bugs around multi char record/field separator.nahi2004-05-201-83/+89
| | | | | | | * test/csv/test_csv.rb: added boundary test for above feature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (check_sizeof): define result size. [ruby-core:02911]nobu2004-05-201-2/+2
| | | | | | | | * lib/mkmf.rb (create_header): macro name should not include equal sign. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_eq): alway check if operands are NaN.matz2004-05-202-26/+25
| | | | | | | | | | [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/trunk@6372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* At Ryan Davis' suggestion, honor visibility modifers if guarded by a ↵dave2004-05-201-1/+7
| | | | | | statement modifier git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_type): do not check pointer to incomplete type,nobu2004-05-201-2/+2
| | | | | | | | which always get compiled. [ruby-list:39683] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: support TRACE.aamine2004-05-181-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: do not use class variables.aamine2004-05-181-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: writes lines with "\n" when row separator is not given.nahi2004-05-181-301/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | formerly it was "\r\n". * lib/csv.rb: [CAUTION] API change * CSV::Row removed. a 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. * CSV::Cell removed. 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 # Cell#is_null p "(NULL)" else p cell.data # 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: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml.rb: added rdoc to beginning of lib.why2004-05-181-18/+58
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml.rb: added rdoc to beginning of lib.why2004-05-181-8/+121
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Cross-ported fix for REXML bug #14, StreamParser and doctype events.ser2004-05-162-4/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ------------------------------------------------------------------------ser2004-05-164-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ------------------------------------------------------------------------ser2004-05-162-9/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/baseemitter.rb (indent_text): was forcing a mod valuewhy2004-05-161-115/+115
| | | | | | | of zero at times, which kept some blocks from getting indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added support for CP-1252 and ISO-8859-15 encodings for non-iconv systems.ser2004-05-162-0/+167
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ------------------------------------------------------------------------ser2004-05-168-956/+1001
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/drb.rb: Cosmetic documentation changes.gsinclair2004-05-161-7/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/MANIFEST, ext/syck/depend: new file.nobu2004-05-151-3/+3
| | | | | | | | | | * lib/yaml/rubytypes.rb: range of exponential floats. [ruby-core:02824] * test/yaml/test_yaml.rb: tests for strings start with colon and some round trip. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml.rb: removed fallback to pure Ruby parser.why2004-05-153-151/+141
| | | | | | | | | | | | | | | | | | | | | | | | * 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. * 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/trunk@6315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb (Net::Telnet::login): "options" can specifyakira2004-05-131-4/+8
| | | | | | | regexps for login prompt and/or password prompt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.nobu2004-05-121-2/+2
| | | | | | | [ruby-talk:99788] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::DNS::Config): make it configurable withoutakr2004-05-121-35/+92
| | | | | | | external file such as /etc/resolv.conf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb (each_crlf_line): remove junk line.aamine2004-05-101-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Change symbol lookup scheme in HTML generationdave2004-05-101-4/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Search parent for unqualified constantsdave2004-05-101-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (loggin): append "\n".aamine2004-05-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: ported documentation improvement from 1.8 branchgsinclair2004-05-095-478/+512
| | | | | | | | | | * 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/trunk@6284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/store.rb: use FileUtils::copy.eban2004-05-091-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_f_open): open should not ignore block when "to_open"matz2004-05-081-4/+0
| | | | | | | | | method is used. [ruby-dev:23478] * ext/dbm/dbm.c (fdbm_modify): typo fixed. [ruby-dev:23473] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for Kernel.open(Pathname.new(...)) { ... }.akr2004-05-071-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (mv): new option `force'. [ruby-talk:99457]aamine2004-05-071-66/+99
| | | | | | | | * lib/fileutils.rb: new method for command option reflection: FileUtils.commands, .options, .have_option?, .options_of, .collect_methods. * lib/fileutils.rb: module Verbose, NoWrite, DryRun do not have option flags @fileutils_verbose and @fileutils_noop, they make no sense. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e