summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2008-09-28* lib/cgi/html.rb (CGI::HtmlExtension::{radio_group, checkbox_group}):xibbar
can specify the false as checked or selected value. [ruby-core:18306], [ruby-core:18307] * test/cgi/test_cgi_tag_helper.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28* lib/cgi/html.rb (CGI::HtmlExtension::popup_menu):xibbar
fix the calls #bytesize on array parameters. [ruby-core:18919] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28* lib/cgi/core.rb (CGI::parse): ignore illegal query params.xibbar
[ruby-dev:36618] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28* lib/mini/test.rb (assert_match): get rid of confusion ofnobu
ruby-mode.el. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28* lib/mini/test.rb (MINI_DIR): loaded path is expanded.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28 * lib/mathn.rb ({Fixnum,Bignum,Float}#**): may produce complextadf
value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28* lib/csv/csv.rb: Worked around some minor encoding changes in Rubyjeg2
pointed out by Nobu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-27 * lib/mathn.rb: a hack to provide canonicalization. This must betadf
temporary, but this seems to be not bad for the time being. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26* lib/rake.rb (Module#rake_extension, String#ext, String#pathmap): usenobu
built-in methods. * lib/rake.rb (String#pathmap): fixed typo in rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25* pack.c (pack_pack, pack_unpack): 'm0' format (base64) complies withmame
RFC 4648. It adds no line feed when encoding, and raise ArgumentError if the encoded string contains non-alphabet (including CR and LF). * lib/base64.rb: added. This provides encoding/decoding method for Base64 in standard RFC 2045, Base64 in standard RFC 4648 and ``Base 64 Encoding with URL and Filename SafeAlphabet'' in RFC 4648. * test_pack.c, test/base64/test_base64.rb: add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25Update to RubyGems 1.3.0 r1891drbrain
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25Added passed? per Jim's request. Fixed file/line reporting bug for ↵ryan
refutations per Dave's bug report. Very minor cleanup of some nits that were bugging me. Barring other bug reports, I'm 'done'. This version will most likely be released as a gem in the next day or two. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25Not a typo. The name is better plural. Better English and more consistent ↵ryan
with the other assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25updated to rake code to rake-0.8.3 source code basejim
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25Import RDoc 2.2.1 r185drbrain
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24* lib/mini/test.rb (Mini::Assertions#assert_raise): fixed typo.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24* lib/cgi/core.rb (CGI::new, CGI::{accept_charset,accept_charset=}) :xibbar
accept parameters either in a hash, string as a block. add the encoding validation process. * test/cgi/test_cgi_core.rb : test for query encoding check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 * lib/tmpdir.rb: setup buffer with nul characters instead of spaces.usa
fixed [ruby-dev:36493] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24updated miniunit to defer error message creationryan
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23Added changes needed for miniunit. usually from using internal calls that ↵ryan
aren't needed anymore. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23Added miniunit 1.3.0ryan
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23committed one dir too deep. THIS removes the rest of test/unitryan
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23Removed test/unitryan
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23Fix ruby -w warnings for mismatched indentation discovered by rdocdrbrain
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23* lib/csv/csv.rb: Improved the idea of whitespace and word characters usedjeg2
in substitutions during header conversion as suggested by Michael Selig. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):matz
abandon wrapping if the line contains no space. [ruby-dev:36045] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23* lib/pathname.rb (each_filename): return Enumerator if no blockmame
given. * test/pathname/test_pathname.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22* lib/tempfile.rb (Tempfile#open): should return a value from thematz
block (if given). [ruby-core:18394] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21* lib/csv/csv.rb: Reworked CSV's parser and generator to be m17n. Datajeg2
is now parsed in the Encoding it is in without need for translation. * lib/csv/csv.rb: Improved inspect() messages for better IRb support. * lib/csv/csv.rb: Fixed header writing bug reported by Dov Murik. * lib/csv/csv.rb: Use custom separators in parsing header Strings as suggested by Shmulik Regev. * lib/csv/csv.rb: Added a :write_headers option for outputting headers. * lib/csv/csv.rb: Handle open() calls in binary mode whenever we can to workaround a Windows issue where line-ending translation can cause an off-by-one error in seeking back to a non-zero starting position after auto-discovery for :row_sep as suggested by Robert Battle. * lib/csv/csv.rb: Improved the parser to fail faster when fed some forms of invalid CSV that can be detected without reading ahead. * lib/csv/csv.rb: Added a :field_size_limit option to control CSV's lookahead and prevent the parser from biting off more data than it can chew. * lib/csv/csv.rb: Added readers for CSV attributes: col_sep(), row_sep(), quote_char(), field_size_limit(), converters(), unconverted_fields?(), headers(), return_headers?(), write_headers?(), header_converters(), skip_blanks?(), and force_quotes?(). * lib/csv/csv.rb: Cleaned up code syntax to be more inline with Ruby 1.9 than 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 * lib/complex.rb: provides some obsolate methods.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 * complex.c: an instance method image has been removed andtadf
uses "imag" instead of "image". * complex.c: two instance method re and im are removed. * rational.c: follows the above changes. * include/ruby/ruby.h: ditto. * gc.c: ditto. * lib/cmath.rb: ditto. * lib/mathn.rb: ditto. * lib/complex.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20* lib/optparse.rb (summarize): separator "" should output new line.mame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 * complex.c: uses f_(in)?exact_p macro.tadf
* rational.c: ditto. * bignum.c (rb_big_pow): bignum**bignum - should calculate without rational. * lib/complex.rb: should override Math module at most once. * lib/mathn.rb: requires 'cmath' directly. -この行以下は無視されます -- M complex.c M ChangeLog M lib/mathn.rb M lib/complex.rb M bignum.c M rational.c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19* prec.c: removed. Precision will be redesigned and be back again.yugui
c.f. [ruby-dev:36352]. * common.mk (COMMON_OBJS): removed prec.o. * inits.c (rb_call_inits): removed Init_Precision. * numeric.c (Init_Numeric): removed inclusion of Precision. removed #induced_from from each class. * rational.c: ditto. * ext/bigdecimal/bigdecimal.c: ditto. * lib/rdoc/knwon_classes.rb: removed the entry for Precision. * test/ruby/test_prec.rb: removed. * test/ruby/test_integer.rb: removed tests for Precision. * test/ruby/test_fixnum.rb: ditto. * test/ruby/test_float.rb: ditto. * test/ruby/test_rational.rb: ditto. * test/ruby/test_complex.rb: ditto. * test/bigdecimal/test_bigdecimal.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18* lib/rake.rb (Rake::Application#standard_exception_handling):nobu
replaced magic numbers for exit status. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18* lib/optparse.rb (OptionParser::ParseError#set_backtrace): omitsnobu
OptionParser internal backtraces unless debug flag is set. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18* lib/uri/common.rb (unescape): skip '%' to make String#hex workmame
correctly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18Updated Rake files to version 0.8.2jim
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-17* lib/cgi/html.rb (checkbox_group,radio_group): bug fixxibbar
use size instead of bytesize. * test/cgi/test_cgi_tag_helper.rb: test for checkbox_group,radio_group. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-16 * numeric.c: provides predicate real? instead of scalar?.tadf
* complex.c: follows the above change. * lib/cmath.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-16* lib/cgi/core.rb: performance improvement. xibbar
From CGIAlt http://cgialt.rubyforge.org/ * test/cgi/test_cgi_header.rb: exception class fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-15* lib/matrix.rb (Matrix#eql?): fixed [ruby-dev:36298].yugui
Reported by an anonymous user. * lib/matrix.rb (Vector#eql?): ditto. * (Matrix#compare_by_row_vectors): takes comparison strategy as an optional parameter. * (Vector#compare_by): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14trailing spaces removed.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14trailing space removed.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14* lib/cgi/core.rb (CGI::parse): performance improvementxibbar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14* lib/matrix.rb (Vector#eql?): typo of the method name as "eqn?".yugui
(Vector#eqn?): removed. Defined by mistake. Fixes [ruby-dev:36294]. Reported by weda <weda AT issp.u-tokyo.ac.jp> and an anonymous user. * test/matrix/test_matrix.rb: added. * test/matrix/test_vector.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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