summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2008-09-13* lib/rexml/document.rb: fixed typo.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-10properties.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-10 * lib/uri/common.rb (URI::Parser): new class.akira
* lib/uri/mailto.rb, lib/uri/generic.rb: follow the above change. * test/uri/test_parser.rb: added tests for URI::Parser. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-10* lib/cgi/cookie.rb (CGI::Cookie#to_s): performance improvementxibbar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-10 * lib/sync.rb (Sync_m#sync_exclusive): fixedakira
typo. [ruby-dev:36233] [RubyForge#11680] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-09* lib/cgi*: split cgi.rb into four files. [ruby-dev:36041]xibbar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-08* lib/cgi.rb : obsolete regex "n" option. [ruby-dev:36130]xibbar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-04* lib/prime.rb (Prime::OldCompatibility#each): added compatibility toyugui
Ruby 1.8.7. (Prime#each): added more rdocs. (Prime#each): remembers the last value of the given block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-03* lib/mathn.rb (Integer): moved into prime.rb.yugui
(Prime): ditto. * lib/prime.rb (Integer): moved from mathn.rb. (Integer.each_prime): added. (Integer#prime?): added. (Prime): moved from mathn.rb. Its implmentation was rewritten. see [ruby-dev:35863]. And patched by Keiju ISHITSUKA <keiju@ishitsuka.com>, see [ruby-dev:36128]. (Prime.new): obsolete. (Prime.instance): added. (Prime.each): added. (Prime.int_from_prime_division): added. (Prime.prime_division): added. (Prime.prime?): added. Patch by TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in [ruby-dev:36067]. (Prime.cache): removed. (Prime.primes): removed. (Prime.primes_so_far): removed. (Prime#int_from_prime_division): added. (Prime#prime_division): added. (Prime#prime?): added. (Prime#primes): removed. (Prime#primes_so_far): removed. (Prime::PseudoPrmeGenerator): added. (Prime::EratosthenesGenerator): added. (Prime::TrialDivisionGenerator): added. (Prime::Generator23): added. (Prime::TrialDivision): added. Extracted from the previous implementation of Prime by Keiju ISHITSUKA. (Prime::EratosthenesSieve): added. * lib/.document (prime.rb): added * lib/README (prime.rb): added * test/test_prime.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-03* lib/scanf.rb: fixed bug involving matching literal '['dblack
* test/scanf/test_scanf.rb: added test for scanf.rb fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01* lib/mkmf.rb (distclean): added RM_RF conftest.dSYM.yugui
Fixes distclean-ext problem on Mac OS X. (RM_RF): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01* lib/rexml/document.rb: limit entity expansion.shugo
* lib/rexml/entity.rb: ditto. * test/rexml/test_document.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01* lib/fileutils.rb (copy_stream, fu_copy_stream0, copy_file): usenobu
IO.copy_stream to get rid of extraneous conversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31* lib/mkmf.rb (have_devel?): checks if the compiler works.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31* lib/mkmf.rb (Logging.log_open): opens in binary mode to get rid ofnobu
extra CR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31* lib/mkmf.rb (try_func, try_var, have_struct_member),nobu
(scalar_ptr_type?, scalar_type?): use MAIN_DOES_NOTHING. * lib/mkmf.rb (MAIN_DOES_NOTHING): defaults to ordinary main. * win32/Makefile.sub (config): for MAIN_DOES_NOTHING for wince. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-30* lib/rake.rb (Rake::Application#help): fix for OPTIONAL_ARGUMENT andnobu
multiple short options. [ruby-dev:36051] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-29* lib/cgi.rb (CGI#initialize): remove unused constants. a patchmatz
from Takeyuki Fujioka in [ruby-dev:36046]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-27revert removed comment.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-27* lib/cgi.rb (CGI::Cookie): remove delagate.naruse
* test/cgi/test_cgi_cookie.rb: added for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-26* lib/cgi.rb (nOE_element_def): fix error when cascade methods whichnaruse
don't have arguments. Patch by Takeyuki Fujioka. [ruby-dev:35964] * lib/cgi.rb (blockquote): String#collect (this depends on String#each) is no longer exists. Patch by Takeyuki Fujioka. [ruby-dev:35946] * lib/cgi.rb (blockquote): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-25 * lib/date/format.rb(strftime): can print with given arbitrarytadf
precision. * lib/date/format.rb(strftime): optional flags and filed width should also affect %[nt]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-25* lib/irb/extend-command.rb (def_extend_command): check number ofmame
arguments. [ruby-dev:35074] * lib/irb/ext/multi-irb.rb (search): check if a corresponding job is found. [ruby-dev:35074] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-24* lib/net/http.rb (Net::HTTP#urlencode): str[0] returns char in 1.9.naruse
Patch by Junegunn Choi [ruby-core:18368] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-24* lib/cgi.rb (CGI::unescapeHTML): consider ISO-8859-1.naruse
[ruby-dev:35936] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-23* lib/cgi.rb (CGI::unescapeHTML): more encoding sensible unescaping.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-23* lib/cgi.rb (CGI#out): remove auto encoding conversion and setnaruse
LANGUAGE. [ruby-dev:35922] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 * complex.c (nucomp_div): now behaves as quo.tadf
* complex.c (nucomp_s_generic_p): has been removed. * complex.c (nucomp_to_s): adopts new form. * complex.c (nucomp_inspect): ditto. * complex.c (string_to_c_internal): ditto and supports polar form. * complex.c (rb_complex_polar): new. * rational.c (nurat_to_s): did not canonicalize. * rational.c (nurat_inspect): adopts new form. * rational.c (string_to_r_internal): ditto. * include/ruby/intern.h: added a declaration. * lib/complex.rb: added an obsolate class method. * lib/cmath.rb: use scalar? instead of generic?. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22* lib/webrick/server.rb (WEBrick::GenericServer#shutdown):kazu
rescue Errno::ENOTCONN and close. [ruby-dev:35896] * test/openssl/test_ssl.rb (OpenSSL#start_server): ditto. [ruby-dev:35897] * lib/net/imap.rb (Net::IMAP#disconnect): ditto. [ruby-dev:35898] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 * lib/date.rb: no need to require the "lib/rational.rb" any more.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22reverttadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 * lib/cgi.rb: use bytesize instead of size/length.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22* strftime.c (rb_strftime): supported flags and precision for mostnobu
conversions. [ruby-dev:35906] * lib/date/format.rb (Date#strftime): left-justifies %L and %N. [ruby-dev:35909] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-20* lib/scanf.rb (Scanf::FormatSpecifier#initialize): %i should acceptnobu
single digit decimal. [ruby-core:18355] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-18* lib/rake.rb (FileUtils#ruby): takes care of space containing path.nobu
[ ruby-Bugs-21591 ] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-17* lib/webrick/cgi.rb (WEBrick::CGI::Socket#eof?): added lacked method.gotoyuzo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-17* lib/mkmf.rb: not check config.h.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-17* lib/mkmf.rb (init_mkmf): add include/ruby/backward to $INCFLAGS.nobu
* include/ruby/backward/{st,util}.h: added for backward compatibility. [ruby-dev:35811] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13* golf_prelude.rb, lib/set.rb (TC_Set#test_each),knu
test/readline/test_readline_history.rb (Readline#test_each__enumerator), test/ruby/test_array.rb (TestArray#test_collect), test/ruby/test_enumerator.rb (TestEnumerator#test_initialize): Enumerable::Enumerator is now called Enumerator. * lib/rinda/tuplespace.rb (Rinda::TupleBag#initialize): Use enum_for instead of hardcoding Enumerable::Enumerator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12* lib/net/pop.rb: POP3Command should export @socket since POP calls #socket.aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12* lib/net/http.rb (send_request_with_body): Content-Length should be byte ↵aamine
length of string. (closes #203) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12* lib/net/https.rb: supress syntax warning.aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12* lib/net/http.rb (Net::HTTP#initialize): initialize net/https variables to ↵aamine
supress syntax warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-10* lib/irb.rb (IRB::Irb#inspect): instance_variables returns symbolsnobu
instead of strings now. [ruby-dev:34930] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08* lib/resolv.rb: randomize source port and transaction id.akr
CVE-2008-1447. * lib/resolv-replace.rb (UDPSocket#bind): don't resolv host if host is "". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07* lib/net/ftp.rb (login): raise FTPReplyError if passwd or acctshugo
is not supplied. fixed [ruby-core:18058]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07* lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS):nobu
moved clean targets to platfrom makefiles. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06* eval_intern.h: Add support to Haiku. see [ruby-core:18110]naruse
* include/ruby/defines.h: ditto. * configure.in: ditto. * thread_pthread.c: ditto. * io.c: ditto. * lib/mkmf.rb: ditto. * ext/socket/getaddrinfo.c: ditto. * ext/socket/extconf.rb: ditto. * ext/socket/socket.c: ditto. * ext/socket/addrinfo.h: ditto. * ext/socket/getnameinfo.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-05* lib/net/ftp.rb (chdir): handle 5xx errors correctly.shugo
fixed [ruby-core:18057]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-05* lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket forshugo
environments without OpenSSL. fixed [ruby-dev:35755]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e