ryan
64e2d46fa1
Updated to 1.3.0 r4255.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-30 04:14:09 +00:00
tadf
0001260aaf
moved def_canon.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-29 14:13:09 +00:00
tadf
79b73a7b31
* lib/mathn.rb: added String#to_[rc].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-29 13:55:39 +00:00
xibbar
9acff4872d
* lib/cgi/html.rb (CGI::HtmlExtension::{radio_group, checkbox_group}):
...
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 15:41:12 +00:00
xibbar
c0f84528c7
* lib/cgi/html.rb (CGI::HtmlExtension::popup_menu):
...
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 14:16:01 +00:00
xibbar
5958f6af19
* lib/cgi/core.rb (CGI::parse): ignore illegal query params.
...
[ruby-dev:36618]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28 13:54:28 +00:00
nobu
f7aef0f7b1
* lib/mini/test.rb (assert_match): get rid of confusion of
...
ruby-mode.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28 09:41:34 +00:00
nobu
6952b1a52a
* lib/mini/test.rb (MINI_DIR): loaded path is expanded.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28 09:39:53 +00:00
tadf
0b99ce1fd6
* lib/mathn.rb ({Fixnum,Bignum,Float}#**): may produce complex
...
value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28 00:41:42 +00:00
jeg2
bde8a01d0a
* lib/csv/csv.rb: Worked around some minor encoding changes in Ruby
...
pointed out by Nobu.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-28 00:06:21 +00:00
tadf
f43d70f73e
* lib/mathn.rb: a hack to provide canonicalization. This must be
...
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-27 23:41:21 +00:00
nobu
95f9f98ac5
* lib/rake.rb (Module#rake_extension, String#ext, String#pathmap): use
...
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-26 21:22:21 +00:00
mame
2c1c462747
* pack.c (pack_pack, pack_unpack): 'm0' format (base64) complies with
...
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-25 12:24:54 +00:00
drbrain
d478c7a734
Update to RubyGems 1.3.0 r1891
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 10:13:50 +00:00
ryan
dea63a4569
Added passed? per Jim's request. Fixed file/line reporting bug for 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-25 07:53:19 +00:00
ryan
7ab330203a
Not a typo. The name is better plural. Better English and more consistent with the other assertions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 07:34:49 +00:00
jim
ea94d40f4a
updated to rake code to rake-0.8.3 source code base
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 07:01:07 +00:00
drbrain
858362e761
Import RDoc 2.2.1 r185
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 02:43:03 +00:00
nobu
607b1f2787
* lib/mini/test.rb (Mini::Assertions#assert_raise): fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 16:22:42 +00:00
xibbar
3c419de10b
* lib/cgi/core.rb (CGI::new, CGI::{accept_charset,accept_charset=}) :
...
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 14:27:53 +00:00
usa
cdc5ebd3f2
* lib/tmpdir.rb: setup buffer with nul characters instead of spaces.
...
fixed [ruby-dev:36493]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 05:39:39 +00:00
ryan
ba73253e2b
updated miniunit to defer error message creation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 03:51:19 +00:00
ryan
8e05c69aa1
Added changes needed for miniunit. usually from using internal calls that aren't needed anymore.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 21:39:21 +00:00
ryan
abef077ec7
Added miniunit 1.3.0
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 21:36:05 +00:00
ryan
7c083f8c1f
committed one dir too deep. THIS removes the rest of test/unit
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 21:34:11 +00:00
ryan
62c17944c7
Removed test/unit
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 21:32:19 +00:00
drbrain
563b654437
Fix ruby -w warnings for mismatched indentation discovered by rdoc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 18:16:08 +00:00
jeg2
f3ba845deb
* lib/csv/csv.rb: Improved the idea of whitespace and word characters used
...
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 14:40:24 +00:00
matz
83abcf5a2c
* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
...
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 11:09:39 +00:00
mame
f398d750ea
* lib/pathname.rb (each_filename): return Enumerator if no block
...
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-23 00:03:42 +00:00
matz
2c6e46896a
* lib/tempfile.rb (Tempfile#open): should return a value from the
...
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-22 09:01:22 +00:00
jeg2
280cbe0b1f
* lib/csv/csv.rb: Reworked CSV's parser and generator to be m17n. Data
...
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-21 00:39:03 +00:00
tadf
31eacb6ed1
* lib/complex.rb: provides some obsolate methods.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 22:55:59 +00:00
tadf
9467d7a024
* complex.c: an instance method image has been removed and
...
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 22:49:56 +00:00
mame
a91cd48aa1
* lib/optparse.rb (summarize): separator "" should output new line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 02:44:49 +00:00
tadf
f2cb79ffee
* complex.c: uses f_(in)?exact_p macro.
...
* 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 13:55:52 +00:00
yugui
396650e0bd
* prec.c: removed. Precision will be redesigned and be back again.
...
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-19 13:10:54 +00:00
nobu
22987dc7fe
* lib/rake.rb (Rake::Application#standard_exception_handling):
...
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 11:51:00 +00:00
nobu
45880b8e7d
* lib/optparse.rb (OptionParser::ParseError#set_backtrace): omits
...
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 11:38:24 +00:00
mame
4046a1cb92
* lib/uri/common.rb (unescape): skip '%' to make String#hex work
...
correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 11:05:09 +00:00
jim
b7c95b923a
Updated Rake files to version 0.8.2
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 01:17:04 +00:00
xibbar
4ac4e2fbc4
* lib/cgi/html.rb (checkbox_group,radio_group): bug fix
...
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-17 04:49:28 +00:00
tadf
acde7364f7
* numeric.c: provides predicate real? instead of scalar?.
...
* 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 22:04:19 +00:00
xibbar
49f69c3f2e
* lib/cgi/core.rb: performance improvement.
...
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-16 13:30:05 +00:00
yugui
db14bfe4ea
* lib/matrix.rb (Matrix#eql?): fixed [ruby-dev:36298].
...
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-15 12:02:39 +00:00
akr
f3d95cce97
trailing spaces removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14 15:18:53 +00:00
akr
83453ab1ca
trailing space removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14 14:36:50 +00:00
xibbar
09814e38e1
* lib/cgi/core.rb (CGI::parse): performance improvement
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14 13:10:43 +00:00
yugui
406500cc8b
* lib/matrix.rb (Vector#eql?): typo of the method name as "eqn?".
...
(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-14 07:15:55 +00:00
shugo
158284ac24
* lib/rexml/document.rb: fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-13 02:16:05 +00:00
nobu
1bd34a09c9
properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-10 17:45:23 +00:00
akira
3da03397ce
* lib/uri/common.rb (URI::Parser): new class.
...
* 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 09:34:49 +00:00
xibbar
0bedb3e5b1
* lib/cgi/cookie.rb (CGI::Cookie#to_s): performance improvement
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-10 01:36:31 +00:00
akira
3293f6cfb9
* lib/sync.rb (Sync_m#sync_exclusive): fixed
...
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-10 01:22:35 +00:00
xibbar
0bbda39758
* lib/cgi*: split cgi.rb into four files. [ruby-dev:36041]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-09 13:09:56 +00:00
xibbar
d166d0be91
* lib/cgi.rb : obsolete regex "n" option. [ruby-dev:36130]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-08 13:27:17 +00:00
yugui
645f25356a
* lib/prime.rb (Prime::OldCompatibility#each): added compatibility to
...
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-04 14:09:52 +00:00
yugui
fce093432e
* lib/mathn.rb (Integer): moved into prime.rb.
...
(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 13:57:21 +00:00
dblack
9cab7d15ca
* lib/scanf.rb: fixed bug involving matching literal '['
...
* 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-03 12:54:13 +00:00
yugui
add4d16477
* lib/mkmf.rb (distclean): added RM_RF conftest.dSYM.
...
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 13:44:54 +00:00
shugo
bb1d005da6
* lib/rexml/document.rb: limit entity expansion.
...
* 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 13:41:38 +00:00
nobu
a107e1e998
* lib/fileutils.rb (copy_stream, fu_copy_stream0, copy_file): use
...
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-09-01 02:31:56 +00:00
nobu
fea2b2538d
* lib/mkmf.rb (have_devel?): checks if the compiler works.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 09:22:06 +00:00
nobu
6e37ddcfbd
* lib/mkmf.rb (Logging.log_open): opens in binary mode to get rid of
...
extra CR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 08:59:09 +00:00
nobu
70b98dd4af
* lib/mkmf.rb (try_func, try_var, have_struct_member),
...
(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-31 08:52:56 +00:00
nobu
b3b121496f
* lib/rake.rb (Rake::Application#help): fix for OPTIONAL_ARGUMENT and
...
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-30 01:42:03 +00:00
matz
d945524057
* lib/cgi.rb (CGI#initialize): remove unused constants. a patch
...
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-29 16:38:25 +00:00
naruse
382b4af605
revert removed comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-27 05:02:32 +00:00
naruse
19b25eb670
* lib/cgi.rb (CGI::Cookie): remove delagate.
...
* 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-27 01:38:23 +00:00
naruse
ae86df99f7
* lib/cgi.rb (nOE_element_def): fix error when cascade methods which
...
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-26 02:42:27 +00:00
tadf
3e75a0a763
* lib/date/format.rb(strftime): can print with given arbitrary
...
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 14:47:33 +00:00
mame
cba52ec37c
* lib/irb/extend-command.rb (def_extend_command): check number of
...
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-25 13:41:11 +00:00
naruse
a65d2e0574
* lib/net/http.rb (Net::HTTP#urlencode): str[0] returns char in 1.9.
...
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 03:21:36 +00:00
naruse
55742dce2d
* lib/cgi.rb (CGI::unescapeHTML): consider ISO-8859-1.
...
[ruby-dev:35936]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-24 02:27:47 +00:00
naruse
29449d70be
* lib/cgi.rb (CGI::unescapeHTML): more encoding sensible unescaping.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-23 21:40:59 +00:00
naruse
9c24ab3d9d
* lib/cgi.rb (CGI#out): remove auto encoding conversion and set
...
LANGUAGE. [ruby-dev:35922]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-23 14:29:00 +00:00
tadf
8f40b26581
* complex.c (nucomp_div): now behaves as quo.
...
* 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 12:27:54 +00:00
kazu
2d302dfd40
* lib/webrick/server.rb (WEBrick::GenericServer#shutdown):
...
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 11:12:06 +00:00
tadf
122595c263
* lib/date.rb: no need to require the "lib/rational.rb" any more.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 11:00:05 +00:00
tadf
1acc8f9483
revert
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 10:55:48 +00:00
usa
760ee4ec04
* lib/cgi.rb: use bytesize instead of size/length.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 06:48:22 +00:00
nobu
ce2b7d3a58
* strftime.c (rb_strftime): supported flags and precision for most
...
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-22 05:28:08 +00:00
nobu
b9e3f3c129
* lib/scanf.rb (Scanf::FormatSpecifier#initialize): %i should accept
...
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-20 21:12:58 +00:00
nobu
c0d2782a0e
* lib/rake.rb (FileUtils#ruby): takes care of space containing path.
...
[ ruby-Bugs-21591 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-18 19:54:42 +00:00
gotoyuzo
d4835a2703
* lib/webrick/cgi.rb (WEBrick::CGI::Socket#eof?): added lacked method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-17 17:33:13 +00:00
nobu
59491ed3b0
* lib/mkmf.rb: not check config.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-17 06:58:41 +00:00
nobu
ccdf3f1162
* lib/mkmf.rb (init_mkmf): add include/ruby/backward to $INCFLAGS.
...
* 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-17 06:58:10 +00:00
knu
d4b7cc796c
* golf_prelude.rb, lib/set.rb (TC_Set#test_each),
...
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-13 08:03:30 +00:00
aamine
47c8401c5a
* lib/net/pop.rb: POP3Command should export @socket since POP calls #socket.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 07:09:08 +00:00
aamine
00b129c4e4
* lib/net/http.rb (send_request_with_body): Content-Length should be byte 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 06:32:50 +00:00
aamine
ae04e36638
* lib/net/https.rb: supress syntax warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 05:20:09 +00:00
aamine
08795f9ceb
* lib/net/http.rb (Net::HTTP#initialize): initialize net/https variables to supress syntax warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 05:18:22 +00:00
nobu
50c241002a
* lib/irb.rb (IRB::Irb#inspect): instance_variables returns symbols
...
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-10 00:35:14 +00:00
akr
2577fa6dcc
* lib/resolv.rb: randomize source port and transaction id.
...
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-08 01:58:40 +00:00
shugo
16a24188cd
* lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct
...
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 11:55:13 +00:00
nobu
eab4f19731
* lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS):
...
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-07 05:16:27 +00:00
naruse
48e21d2051
* eval_intern.h: Add support to Haiku. see [ruby-core:18110]
...
* 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-06 20:52:44 +00:00
shugo
1498b668d2
* lib/net/ftp.rb (chdir): handle 5xx errors correctly.
...
fixed [ruby-core:18057].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-05 07:42:45 +00:00
shugo
49f7b3e8d1
* lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket for
...
environments without OpenSSL. fixed [ruby-dev:35755].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-05 07:24:48 +00:00
shyouhei
76ef6fa16b
* lib/net/smtp.rb (Net::SMTP::rcptto): fix a typo. a patch from
...
Masao Takaku <masao at nii.ac.jp>
fix [ruby-dev:35489].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-04 05:46:53 +00:00
seki
0098caf510
merged from 1.8
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-27 00:04:38 +00:00
nobu
1181a092af
* lib/webrick/httputils.rb (WEBrick::HTTPUtils#split_header_value):
...
reduce backtrack. based on a fix by Christian Neukirchen
<chneukirchen AT gmail.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-25 14:35:21 +00:00
mame
59f23bd421
* sample/coverage.rb: move from lib/coverage.rb because this remains in
...
an early phase of development.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-24 17:47:34 +00:00
drbrain
cd9e9c6deb
Update to RDoc 2.1.0 r112
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-21 18:35:14 +00:00
drbrain
71b4ecb3d3
Import RDoc r104. Various test fixes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-18 21:10:47 +00:00
drbrain
fd25f74d64
Import RDoc r101.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-18 00:46:16 +00:00
nobu
bd4c28afbd
* lib/optparse.rb (OptionParser#environment): requires shellwords.
...
[ruby-dev:35466]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-13 21:02:28 +00:00
nobu
2c0a3f226a
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): requires
...
webrick/cookie. [ ruby-Bugs-21139 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-12 07:02:40 +00:00
nobu
d238b7c627
* lib/pstore.rb (PStore#transaction): return the result from the
...
block. [ruby-core:17718]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 13:06:03 +00:00
nobu
71b1673229
* lib/profiler.rb (Profiler__#print_profile): sort in the descending
...
order of cumulative time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-09 02:13:41 +00:00
ko1
7e16f9e777
* lib/debug.rb, lib/profile.rb: fix to use RubyVM.
...
* lib/rdoc/parsers/parse_c.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 13:28:57 +00:00
nobu
e12e0b337d
* lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in
...
IPAddr#to_range. a patch from okkez <okkez000 AT gmail.com> in
[ruby-dev:35091].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 08:12:23 +00:00
kou
692ea1bb83
* lib/test/unit/collector/objectspace.rb
...
(Test::Unit::Collector::ObjectSpace::NAME): fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-06 01:13:20 +00:00
akr
7d166d26a5
* lib/test/unit/testcase.rb: collect decendants of
...
Test::Unit::TestCase using inherited.
* lib/test/unit/autorunner.rb: don't use ObjectSpace.each_object.
* lib/test/unit/collector/dir.rb: ditto.
* lib/test/unit/collector/objectspace.rb: ditto.
[ruby-core:17126]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 13:19:24 +00:00
nobu
62dc500faf
* lib/net/ftp.rb (Net::FTP#sendport): use divmod. [ruby-core:17557]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 05:17:25 +00:00
mame
f08581c7b6
* ext/coverage/coverage.c, ext/coverage/extconf.rb: eliminate
...
COVERAGE__ and introduce coverage.so instead. How to measure
coverage: (1) require "coverage.so", (2) require or load Ruby source
file, and (3) Coverage.result will return the same hash as COVERAGE__.
[ruby-dev:35324]
* thread.c (rb_enable_coverages): start coverage measurement by using
rb_add_event_hook.
* thread.c (rb_get_coverages): returns current results of coverage
measurement.
* include/ruby/intern.h: add prototype for above two functions.
* vm_core.h, vm.c: add field of coverages to rb_vm_t.
* insns.def (trace): remove special handling for COVERAGE__.
* iseq.c (prepare_iseq_build): switch COVERAGE__ to
rb_get_coverages().
* parse.y (coverage): ditto.
* thread.c (clear_coverage): ditto.
* lib/coverage.rb: use coverage.so instead of COVERAGE__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 12:55:12 +00:00
matz
3819f8d156
* lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of
...
'localhost.localdomain'. [ruby-dev:35333]
* lib/net/smtp.rb (Net::SMTP::SMTP.start): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 03:54:25 +00:00
mame
5874de95e8
* Add coverage measurement constant COVERAGE__. This constant is not
...
for casual use. Usage: (1) assign {} to COVERAGE__, (2) require or
load Ruby source file, and (3) COVERAGE__["sourcefilepath"] will
return an array whose elements represent number of executions per
line of source code.
* vm_core.h: add field of coverage array to iseq.
* iseq.c (prepare_iseq_build): ditto.
* insns.def (trace): update coverage array.
* parse.y (coverage): create and initialize coverage array.
* compile.h (ADD_TRACE): add trace instruction to update covearge
array.
* thread.c (clear_coverage): delete coverage array when forking.
Otherwise, double count of coverage may occur.
* lib/coverage.rb: sample coverage measurement tool.
* error.c: distinguish explicitly between parse_in_eval and
mild_compile_error.
* load.c: ditto.
* vm_eval.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 16:55:30 +00:00
mame
498324c5d3
* lib/test/unit/ui/console/testrunner.rb: prevent destructive modification to $0.
...
* test/rubygems/gemutilities.rb (build_rake_in): move from test_gem_ext_rake_builder.rb.
* test/rubygems/test_gem_ext_rake_builder.rb: ditto.
* test/rubygems/test_gem_installer.rb: override Gem.ruby and ENV["rake"].
* test/rubygems/test_gem_uninstaller.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 12:33:11 +00:00
shyouhei
1b62e5ec37
* lib/mkmf.rb (create_tmpsrc): we need to include COMMON_HEADERS,
...
namely inclusion of ruby.h, because _GNU_SOURCE is now defined
there (if any) and socket.so requires it on Linux systems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 12:13:13 +00:00
nobu
c274c6fabf
* lib/rubygems/ext/builder.rb (Gem::Ext::Builder.make),
...
(Gem::Ext::Builder.run): EXIT_SUCCESS may be 0 or may not.
* test/rubygems/test_gem_ext_rake_builder.rb (build_rake_in): override
Gem.ruby and ENV["rake"].
* runruby.rb: bin/rake does not exist in archdir where architecture
depend script (i.e. rbconfig.rb) exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 06:01:15 +00:00
nobu
fd77e489f2
* lib/cgi.rb (CGI::QueryExtension.read_multipart): blanks inside
...
double quotes are allowed. [ruby-list:45140]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-30 16:07:19 +00:00
nobu
fce76df67c
* lib/test/unit/collector/dir.rb (recursive_collect): r15662 reverted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-30 13:30:39 +00:00
kou
39a241cec6
follow up the previous commit.
...
* lib/rss/parser.rb: merge documents from ruby_1_8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29 09:05:21 +00:00
kou
8ee383397d
* lib/rss/parser.rb, lib/rss/utils.rb: merge documents from ruby_1_8.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29 09:02:32 +00:00
kou
1695dd0f02
* lib/rss/parser.rb (RSS::ListenerMixin#known_class): define to
...
work with ruby 1.8.x too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29 08:44:53 +00:00
kou
94031b9628
* lib/rss/maker/base.rb (RSS::Maker::RSSBase#to_feed): raise
...
exception not return nil if RSS::Maker.make can't get required information.
* test/rss/rss-assertions.rb: follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29 08:42:46 +00:00
kou
7556f66e9c
* lib/rss/maker/base.rb (RSS::Maker::RSSBase#make): require block.
...
* test/rss/test_maker_{0.9,1.0,2.0}.rb: follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29 08:38:11 +00:00
kou
f6c7804c16
* lib/rss/maker/base.rb, lib/rss/maker/itunes.rb: don't use
...
instance_eval to initialize variables. (speed up)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29 08:34:40 +00:00
kou
b9f895e9c8
* lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION): 0.2.4 -> 0.2.5.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29 08:32:10 +00:00
nobu
285fb00195
* lib/tmpdir.rb (@@systmpdir): prior LOCAL_APPDATA if possible, and
...
should be clean. based on a patch from arton <artonx AT
yahoo.co.jp> at [ruby-dev:35269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-29 00:43:12 +00:00
nobu
4bcf877beb
* test/inlinetest.rb (InlineTest.in_progname): workaround for frozen
...
$0. [ruby-dev:35261]
* lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 12:19:11 +00:00
kazu
f0bb63782a
* lib/erb.rb: adjust line number for magic comment.
...
* test/erb/test_erb.rb: add tests for def_method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 08:48:24 +00:00
nobu
73567dc103
* lib/un.rb (mkmf): new command to create makefile.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 03:29:00 +00:00
nobu
3d5cfe9a32
* lib/un.rb (wait_writable): added help message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27 02:06:08 +00:00
drbrain
8b424513fd
Upgrade to RubyGems 1.2.0 r1824. Incorporates [ruby-core:17353].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-26 02:06:00 +00:00
naruse
f94c46a745
* lib/erb.rb (ERB::Compiler:Buffer#new): push magic comment first.
...
* lib/erb.rb (ERB::Compiler#compile): fix for broken input.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 04:44:32 +00:00
naruse
30e263fc07
* lib/erb.rb (ERB::Compiler#compile): magic comment needs LF.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 03:10:57 +00:00
naruse
8eb4988a03
* lib/erb.rb (ERB::Compiler#compile): output magic comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-25 00:33:11 +00:00
matz
473acf0a31
* lib/mathn.rb (Rational::power2): removed incomplete method.
...
see [ruby-dev:35195]. [ruby-core:17293]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-23 03:36:25 +00:00
nobu
47f5c15e8d
* lib/rdoc/parsers/parse_rb.rb (RDoc#collect_first_comment): skip
...
magic comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 06:57:28 +00:00
nobu
a54cbe65a9
* process.c (rb_detach_process): store detached process ID in the
...
thread local storage. moved from lib/open3.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 03:40:02 +00:00
drbrain
08837d081d
Update to RubyGems 1.1.1 r1784 (pre 1.2)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 18:15:26 +00:00
matz
e76afc29d8
* lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 17:17:29 +00:00
kazu
2bcb0a1a35
* lib/net/pop.rb (Net::POP3#set_all_uids): speed
...
up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 11:42:05 +00:00
nobu
02337b089e
* marshal.c (w_object, marshal_dump, r_object0, marshal_load): search
...
public methods only. [ruby-core:17283]
* object.c (convert_type): ditto.
* lib/singleton.rb (Singleton#_dump): conversion method should be
public.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 03:05:33 +00:00
drbrain
215fbc639f
Fix RubyGems for 1.9, r1780
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 23:59:31 +00:00
drbrain
9d4f37f51f
Update RubyGems to 1.1.1 r1778 (almost 1.2)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 22:04:18 +00:00
jeg2
b2c5258b85
* lib/net/telnet.rb: Fixing Telnet#wairfor() which was broken by changes to
...
the Kernel::Integer() method. [ruby-core:17272]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 14:04:48 +00:00
nobu
82543dbc99
* lib/thwait.rb (ThreadsWait): Exception2MessageMapper no longer has
...
extend_to method. [ruby-core:17267]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 09:52:50 +00:00
nobu
3929de6982
* lib/e2mmap.rb (E2MM.def_e2message): typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 05:46:28 +00:00
akr
05093ae437
* lib/time.rb (Time.xmlschema): don't accept decimal dot without
...
fractional digits. fractional digits handling simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 09:10:44 +00:00
knu
af0c875e26
* lib/find.rb (Find#find): Return an enumerator if no block is
...
given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-10 18:41:25 +00:00
nobu
ce29c17877
* lib/mkmf.rb (configuration): set flags.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09 12:14:39 +00:00
knu
250dd07021
* lib/set.rb (Set#delete_if): Call to_a.
...
(SortedSet#delete_if, TC_SortedSet#test_sortedset): Use super to
yield elements in sorted order; [ruby-core:17144] by Arthur
Schreiber.
(SortedSet#each, SortedSet#each, TC_Set#test_each)
(TC_SortedSet#test_sortedset): Return self; [ruby-dev:35002] by
Arthur Schreiber.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09 08:58:30 +00:00
akr
f1296598a2
* lib/time.rb (Time.xmlschema): don't use float. fix
...
http://rubyforge.org/tracker/index.php?func=detail&group_id=426&atid=1698&aid=20504
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 15:08:12 +00:00
mame
7493685b3b
* lib/rexml/document.rb (REXML::Document:write): leaky modification
...
trans -> transitive. [ruby-dev:32040], r13686
* lib/rexml/text.rb (Text.check): fix check for illigal characher.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 11:22:32 +00:00
matz
e6c1752137
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
...
<evanfarrar at gmail.com> in [ruby-doc:1382] applied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 09:37:38 +00:00
knu
3bd8032918
* lib/set.rb (Set#classify): Back out the `group_by' alias.
...
Better think twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-03 06:13:22 +00:00
knu
54fbbb4884
Properly back out.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-03 06:04:54 +00:00
knu
489bf84b9f
* lib/set.rb (Set#collect, Set#select): Back out. I thought it
...
was consistent but turned out to be wrong.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-03 06:01:29 +00:00
knu
ea40df71fc
* lib/set.rb (Set#collect, Set#select): Override Enumerable
...
methods and make them return a set. [ruby-core:17055]
(Set#delete_if, Set#collect!, Set#reject!, Set#classify)
(Set#divide, Set#delete_if): Return an enumerator if no block is
given.
(Set#classify): Define an alias `group_by' to override that of
Enumerable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-03 04:42:32 +00:00
nobu
eaa3ffbae8
* lib/un.rb (wait_writable): wait until target files can be
...
written actually.
* win32/Makefile.sub (LDSHARED_0, LINK_SO): get rid of failure of
mt.exe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-02 09:51:30 +00:00
knu
c147806901
* lib/delegate.rb (Delegator::MethodDelegation#respond_to):
...
respond_to? should now take optional second argument; submitted
by Jeremy Kemper <jeremy at bitsweat.net> in [ruby-core:17045].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-02 07:29:03 +00:00
knu
5b7464b047
* lib/erb.rb (ERB::Compiler::TrimScanner#scan_line): Oops. This
...
change did not apply to trunk. Backed out.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-02 07:15:12 +00:00
knu
92623d3db8
* lib/erb.rb (ERB::Compiler::TrimScanner#scan_line): Fix a bug
...
where tokens are not yilelded one by one.
* test/erb/test_erb.rb (TestERBCore#_test_01)
(TestERBCore#test_02_safe_04): The expected value should come
first for assert_equal().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-02 07:10:35 +00:00
knu
d27c31e041
* lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler#do_GET):
...
Set the HTTP status code to 302 if a Location header field is
present and the status code is not valid as a client
redirection. cf. RFC 3875 6.2.3, 6.2.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 07:13:04 +00:00
nobu
e02270d85d
* lib/singleton.rb (SingletonClassMethods): _load should be public.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 06:18:18 +00:00
shugo
79fdbe0519
* lib/net/imap.rb: do not use Thread#raise. [ruby-dev:34739]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-21 17:47:33 +00:00
gotoyuzo
8ee3267d26
* lib/webrick/httpservlet/filehandler.rb: should normalize path
...
name in path_info to prevent script disclosure vulnerability on
DOSISH filesystems. (fix: CVE-2008-1891)
Note: NTFS/FAT filesystem should not be published by the platforms
other than Windows. Pathname interpretation (including short
filename) is less than perfect.
* lib/webrick/httpservlet/abstract.rb
(WEBrick::HTTPServlet::AbstracServlet#redirect_to_directory_uri):
should escape the value of Location: header.
* lib/webrick/httpservlet/cgi_runner.rb: accept interpreter
command line arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-18 13:33:24 +00:00
akr
fe7dae730f
* lib/date.rb (once): use Object#object_id instead of Symbol#to_i.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-12 13:24:38 +00:00
matz
2acb400eb1
* parse.y (arg): operator assignment "a += b rescue c" should be
...
parsed as "a += (b rescue c)" just like normal assignment.
[ruby-talk:301000]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-08 15:54:32 +00:00
nobu
b745b792e6
* common.mk, ext/extmk.rb, lib/mkmf.rb: use absolute path for RUBYOPT.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-08 08:44:15 +00:00
nobu
279b358d00
* common.mk, ext/extmk.rb, lib/mkmf.rb: removed RUBYOPT.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-08 08:29:24 +00:00
akr
d3677c3d05
* lib/getoptlong.rb: use $stderr instead of $deferr.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-04 12:10:13 +00:00
jeg2
582983c224
* lib/net/telnet.rb: This patch from Brian Candler adds a FailEOF mode which
...
can be activated to have net/telnet raise EOFError exceptions when the
remote connection is closed. The default behavior remains unchanged though.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-01 14:57:40 +00:00
seki
b72ef21cd3
[ruby-dev:34497] ERB::Util#url_encode bug fix. Reported by rubikitch.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-30 12:40:52 +00:00
jeg2
e1bc480e98
* lib/net/telnet.rb: Fixing a bug where line endings would not be properly
...
escaped when the two character ending was broken up into separate TCP
packets. Issue reported and patched by Brian Candler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-30 11:14:52 +00:00
akr
d95d209033
* lib/open3.rb (Open3.popen3w): removed.
...
(Open3.popen3): notice wait_thr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-26 16:47:30 +00:00
drbrain
c42a631063
Import RDoc 2.0.0 r56.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-26 16:14:19 +00:00
akr
6fb36ebab0
describe about waiting a child process.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-26 11:54:13 +00:00
akr
4ce308d6a4
describe :pid thread variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-26 11:25:40 +00:00
akr
61234dab9c
* lib/open3.rb: double fork is replaced by spawn with Process.detach.
...
(Open3.popen3w): new method to access the thread returned by
Process.detach.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-26 04:03:59 +00:00
usa
bf310cb64f
* lib/rdoc/ri/descriptions.rb: fixed wrong class nestings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-23 15:27:09 +00:00
knu
e7f65f6ba7
* lib/set.rb (Set#each, SortedSet#each, TC_Set#test_each): Return
...
an enumerator if no block is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-23 02:58:46 +00:00
matz
f07ca6b1c4
* lib/drb/drb.rb (DRb::DRbServer::check_insecure_method): should
...
check method names by symbols, not by strings. a patch from
Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34487].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-22 13:42:28 +00:00
kou
17ea268764
* lib/xmlrpc/client.rb: fix cookie handling. [ruby-dev:34403]
...
* test/xmlrpc/test_cookie.rb: add a test for the above fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15 14:10:18 +00:00
kazu
8cb17727c4
* lib/net/http.rb, lib/net/smtp.rb, lib/net/pop.rb: update URLs of Japanese documents.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15 08:12:30 +00:00
matz
6b36f117f2
* prelude.rb (require_relative): move require_relative from
...
lib/require_relative.rb. [ruby-core:16356]
* lib/require_relative.rb: removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-12 14:50:18 +00:00
drbrain
e72b71d56a
Update to RubyGems 1.1.1 r1701.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-11 20:57:02 +00:00
matz
3f03878309
* lib/yaml/store.rb (YAML::load): modified to support empty
...
database.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-11 07:43:31 +00:00
matz
1e8ec51e8f
* lib/pstore.rb (PStore::dump, PStore::load): allow subclass
...
overriding. [ruby-dev:34305]
* lib/yaml/store.rb (YAML::Store::marshal_dump_supports_canonical_option?):
add a method to support faster PStore.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-10 14:10:19 +00:00
matz
1d63f4eead
* lib/pstore.rb: replaced by Hongli Lai's faster version.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-10 07:12:41 +00:00
matz
db4a767d25
* lib/generator.rb: removed obsolete library. [ruby-core:16233]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-10 06:06:49 +00:00
matz
298d20c25b
* lib/complex.rb: remove Math first before overwriting by CMath.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-08 02:01:07 +00:00
tadf
0c8bc11d3d
trivial change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-07 14:18:50 +00:00
tadf
968e827e15
lib/complex.rb depends lib/cmath.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-05 14:26:43 +00:00
tadf
c08b5dfb81
* lib/cmath.rb: new.
...
* lib/complex.rb: depends lib/cmath.rb.
* lib/rational.rb: added rdiv.
* complex.c: removed some math functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-05 14:25:40 +00:00
drbrain
be710a0391
* lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.
...
* lib/rdoc/generator/html.rb: ditto.
* lib/rdoc/options.rb: Fix shadowed variable warning.
* lib/webrick/httprequest.rb: Fix redefined method warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-04 21:16:19 +00:00
matz
3d09c87ab5
* lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails and
...
@n_bytes as well. [ruby-core:16144]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 20:59:51 +00:00