summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/http.rb: merge Ruby-SSPI patch contributed by Justin Bailey.aamine2007-03-161-16/+49
| | | | | | | * ext/Win32API/lib/win32/sspi.rb: new file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/sync.rb: support for ruby 1.9(YARV) thread model.keiju2007-03-131-88/+85
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/monitor.rb (mon_try_enter): call @mon_muetx.try_lock.shugo2007-03-121-1/+1
| | | | | | | Thanks, Keiju ISHITSUKA. [ruby-dev:30507] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::header): IIS >= 5.0 does not need the nphknu2007-03-121-1/+2
| | | | | | | | assumption any more; submitted by MIYASAKA Masaru <alkaid AT coral.ocn.ne.jp> in [ruby-dev:30537]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shell/process-controller.rb: fix thread synchronization problem for ↵keiju2007-03-061-3/+5
| | | | | | [ruby-dev:30477]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/timeout.rb (Timeout.timeout): should return the block value always.aamine2007-03-051-7/+7
| | | | | | | | * lib/timeout.rb (Timeout.timeout): should yield sec argument always. * lib/timeout.rb (Timeout.timeout): fix document. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: support automatic STARTTLS.aamine2007-03-052-85/+218
| | | | | | | | | | | * lib/net/smtp.rb: check server advertisement. * lib/net/smtp.rb: introduce new class SMTP::Response. * lib/net/smtp.rb (getok): should not use sprintf. * lib/net/smtp.rb (get_response): ditto. * lib/net/protocol.rb: reduce syntax warning on 1.9. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: reconstruct SMTPS/STARTTLS interface. New interface is ↵aamine2007-03-041-108/+66
| | | | | | | | | | | incompatible from current 1.9 interface at all. * lib/net/smtp.rb: All SSL-related class methods are removed; use instance methods instead. * lib/net/smtp.rb: rename methods: *ssl -> *tls (with alias "ssl"). * lib/net/smtp.rb: rename methods: *tls -> *starttls. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_stat_s_utime): fixed a commit miss for the platformsnobu2007-03-041-1/+1
| | | | | | | | | where utimes() does not exist. * lib/fileutils.rb (touch): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb (Set#^, Set#&): Correct documentation. Those methodsknu2007-03-031-2/+2
| | | | | | | | return sets, not arrays; noted by Oliver Frank Wittich <nietz AT mangabrain.de>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (touch): last #touch change causes error when :mtime ↵aamine2007-03-031-6/+2
| | | | | | option was not given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (mv): could not move directory between different file ↵aamine2007-03-031-3/+7
| | | | | | systems. [ruby-dev:30411] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_utime): allow nil to set the current time.nobu2007-03-031-3/+14
| | | | | | | | * lib/fileutils.rb (touch): ditto, and added :mtime and :nocreate options. fixed: [ruby-talk:219037] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb ($DEFLIBPATH): default library paths ($(topdir), etc)usa2007-02-281-5/+6
| | | | | | | | should be the first elements of library paths list. reported by KOBAYASHI Yasuhiro [ruby-list:43225] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/base64.rb (Base64::b64encode): Fix documentation; submittedknu2007-02-271-1/+1
| | | | | | | by David Symonds <dsymonds@gmail.com> in [ruby-core:10432]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/thread.rb (ConditionVariable#broadcast): use Mutexshugo2007-02-242-4/+7
| | | | | | | | | | instead of Thread.exclusive. * lib/monitor.rb (MonitorMixin#mon_exit): unset @mon_owner before calling Mutex#unlock. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/thread.rb: do not redefine Mutex#synchronize.shugo2007-02-241-9/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/monitor.rb: rewritten using Mutex/ConditionVariable.shugo2007-02-241-92/+32
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/mapping/factory.rb: catch up with spec changes (returnko12007-02-242-2/+2
| | | | | | | | | Symbols instead of Strings). * lib/soap/mapping/mapping.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): Make theknu2007-02-232-2/+2
| | | | | | | | | | | | Content-Length parameter optional for responses in xmlrpc/client.rb; suggested by Daniel Berger <Daniel.Berger@qwest.com> and approved by the maintainer. * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Add DateTime support to xmlrpc; approved by the maintainer. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 4.0.3.tadf2007-02-181-9/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/.document: Apply patch for irb, e2mmap and README by Hugh Sassedrbrain2007-02-162-6/+8
| | | | | | | | <hgs at dmu.ac.uk> from [ruby-core:10135] * lib/prettyprint.rb: Suppress RDoc for PrettyPrint test suite. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (URI::Generic::userinfo): Considering howknu2007-02-151-6/+6
| | | | | | | | | `scheme://user:@...', `scheme://:password@...' and `scheme://:@...' are parsed, an empty user name or password should be allowed and represented as it is. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb: catch up with class local variable (@_v) spec.ko12007-02-142-20/+20
| | | | | | | | * lib/singleton.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Date::Format::Bag::method_missing): need notmatz2007-02-141-10/+9
| | | | | | | to use instance variables corresponding each method; use Hash instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (reg_operand): allow symbols to be operands for regularmatz2007-02-141-2/+2
| | | | | | | | | | | expression matches. * string.c (Init_String): allow Symbol#===. * lib/date/format.rb (Date::Format::Bag::to_hash): string added prefixes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (URI::Generic::userinfo): should supportmatz2007-02-131-2/+4
| | | | | | | | | empty password. [ruby-core:10290] * lib/uri/generic.rb (URI::Generic::set_password): password can be cleared by nil. [ruby-core:10290] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Date::Format::Bag::method_missing): addmatz2007-02-131-1/+1
| | | | | | prefix to avoid making t class-local instance variable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/dublincore.rb, lib/rss/maker/dublincore.rb: dc_rightseskou2007-02-122-1/+9
| | | | | | | | | -> dc_rights_list. dc_rightses still exists for backward compatibility. [ruby-core:8350] * test/rss/test_maker_dc.rb: added tests for dc_rights_list. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#initialize):kou2007-02-111-0/+4
| | | | | | | kept backward compatibility. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb (RSS::ListenerMixin::start_else_element): usedkou2007-02-111-1/+1
| | | | | | | const_defined? instead of constants.include?. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::QueryExtension::read_multipart): Properly parseknu2007-02-101-2/+2
| | | | | | | a quoted-string in a Content-Disposition value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::unescapeHTML): invalid decoding for singlematz2007-02-081-5/+5
| | | | | | | | unescaped ampersand. a patch from Tietew <tietew+ruby-dev at tietew.net> in [ruby-dev:30292]. fixed: [ruby-dev:30289] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, lib/rss/parser.rb: followed current Rubykou2007-02-062-3/+3
| | | | | | | specification. [ruby-dev:30274] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, lib/rss/parser.rb: removed needless code forkou2007-02-062-42/+1
| | | | | | | backward compatibility. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: moved fixes for EPIPE to the correctshugo2007-02-061-14/+14
| | | | | | | place. [ruby-core:10204] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: check the control connection on EPIPE.shugo2007-02-061-0/+14
| | | | | | | Thanks, Simon Williams. [ruby-core:9547] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::QueryExtension::read_multipart): Remove a debugknu2007-02-031-1/+0
| | | | | | | print. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): make object files depend onnobu2007-02-021-2/+2
| | | | | | | extconf.h even if depend file exists. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI::OpenURI.open_uri): revert last change to conform ↵matz2007-01-311-3/+0
| | | | | | RFC3986. [ruby-dev:30230] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI::OpenURI.open_uri): use user andmatz2007-01-311-0/+3
| | | | | | | password from URI unless http_basic_authentication is specified explicitly. [ruby-core:10114] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::QueryExtension::read_multipart): use == insteadmatz2007-01-231-1/+1
| | | | | | of ===. [ruby-dev:30176] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merged from REXML main repository:ser2007-01-2013-83/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes ticket:68. NOTE that this involves an API change! Entity declarations in the doctype now generate events that carry two, not one, arguments. Implements ticket:15, using gwrite's suggestion. This allows Element to be subclassed. Two unrelated changes, because subversion is retarded and doesn't do block-level commits: 1) Fixed a typo bug in previous change for ticket:15 2) Fixed namespaces handling in XPath and element. ***** Note that this is an API change!!! ***** Element.namespaces() now returns a hash of namespace mappings which are relevant for that node. Fixes a bug in multiple decodings The changeset 1230:1231 was bad. The default behavior is *not* to use the native REXML encodings by default, but rather to use ICONV by default. I know that this will piss some people off, but defaulting to the pure Ruby version isn't the correct solution, and it breaks other encodings, so I've reverted it. * Fixes ticket:61 (xpath_parser) * Fixes ticket:63 (UTF-16; UNILE decoding was bad) * Cleans up some tests, removing opportunities for test corruption * Improves parsing error messages a little * Adds the ability to override the encoding detection in Source construction * Fixes an edge case in Functions::string, where document nodes weren't correctly converted * Fixes Functions::string() for Element and Document nodes * Fixes some problems in entity handling Addresses ticket:66 Fixes ticket:71 Addresses ticket:78 NOTE: that this also fixes what is technically another bug in REXML. REXML's XPath parser used to allow exponential notation in numbers. The XPath spec is specific about what a number is, and scientific notation is not included. Therefore, this has been fixed. Cross-ported a fix for ticket:88 from CVS. Fixes ticket:80 Documentation cleanup. Ticket:84 Applied Kou's fix for an un-trac'ed bug. ------------------------------------------------------------------------ git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge RDoc updates from matzruby 11502, 11503, 11504drbrain2007-01-071-1/+37
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 4.0.1.tadf2007-01-071-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#initialize):gotoyuzo2007-01-041-1/+1
| | | | | | | Arrays could not be modified in its each block. [ruby-dev:30063] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Make RDoc accessible. Update constant value information.drbrain2006-12-311-92/+107
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Allow RDoc comment to give friendly value for rb_define_const.drbrain2006-12-311-3/+28
| | | | | | | | | | Patch by Daniel Berger <djberg96 at gmail.com>, [ruby-patches-7499]. Fix whitespace handling in constant comments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Merge YARVko12006-12-3117-534/+300
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* removed.tadf2006-12-302-6/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e