Граф коммитов

3238 Коммитов

Автор SHA1 Сообщение Дата
marcandre 5498b5a4c7 * lib/rexml/element.rb (text=): false should be converted to string.
A patch by Teruo Oshida [ruby-dev:38351]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-18 20:54:29 +00:00
tadf a542b9248e * lib/date.rb: do not require lib/delta.rb.
* lib/date/delta.rb: follows the above change.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-18 13:38:55 +00:00
yugui c0b42eedea * test/test_prime.rb
(TestPrime#test_eratosthenes_works_fine_after_timeout):
  test for [ruby-dev:39465].

* lib/prime.rb (Prime::EratosthenesSieve):
  fixed [ruby-dev:39465].
  suppressed memory reallocation.
  constantified some magic numbers.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-18 00:55:34 +00:00
matz eccb700286 * vm_method.c (basic_obj_respond_to): call #respond_to_missing?
always with two arguments.  [ruby-core:26090]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-17 05:34:51 +00:00
matz c02e47c4e0 * lib/delegate.rb (Delegator#respond_to_missing): warn only when
specified method is a private.  [ruby-dev:39498]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-17 04:22:58 +00:00
marcandre b73be705db * lib/delegate: rdoc typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 19:20:35 +00:00
matz 78fea69776 * lib/delegate.rb (Delegator#method_missing): remove backtrace
lines _until_ `method_missing'.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 11:20:06 +00:00
matz 749b3aa794 * lib/delegate.rb (Delegator#freeze): #freeze should freeze self
and the target at once.   [ruby-core:26118]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 11:11:00 +00:00
matz fbf15be35f * lib/delegate.rb (Delegator#respond_to_missing): warn if optional
include_private argument is not false.  Delegator does (and
  should) not forward private methods.  [ruby-core:26080]

* lib/delegate.rb (Delegator#respond_to_missing): instead of
  redefining #respond_to?, use #respond_to_missing?.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 11:04:15 +00:00
naruse ee2512496c * lib/csv.rb (CSV#raw_encoding): returns ASCII-8BIT when the io
doesn't have encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 03:04:38 +00:00
naruse e3c7548363 * lib/csv.rb (CSV#read_to_char): set encoding and verify data
which read from io before encode it to @encoding.

* lib/csv.rb (CSV#raw_encoding): add to get @io's encoding.

* lib/csv.rb (CSV#read_io): add to read string and set @io's
  encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-15 18:19:15 +00:00
shugo b83a7c1076 * lib/net/ftp.rb (login): use "anonymous@" as a default password.
[ruby-dev:39451]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-12 14:29:05 +00:00
shugo 9994d05b7e * lib/net/ftp.rb (retrlines): added a new block parameter.
* lib/net/ftp.rb (gettextfile): preserve missing end-of-line at end
  of files.  [ruby-core:24590]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-12 13:52:37 +00:00
nobu 7af356461a * lib/irb/context.rb (IRB::Context#irb_name): removed duplicated
attr_reader.  [ruby-core:26047]

* lib/irb/ruby-lex.rb (RubyLex#lex_int2): removed duplicated
  character class range.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-11 01:27:11 +00:00
akr 2ea82d336d * lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP): disable
reverse lookup.
  (Resolv::DNS::Requester::UnconnectedUDP): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-09 12:17:38 +00:00
naruse 696eec1e4f * lib/irb/context.rb (IRB::Context#initialize):
remove warnings when $VERBOSE is set as true in .irbrc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-09 01:14:02 +00:00
marcandre c2c679bc38 * lib/net/telnet.rb (cmd): Pass FailEOF options: patch by Brian Candler [ruby-core:22723]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-08 15:34:15 +00:00
akr 230411caa2 * lib/resolv.rb (Resolv::DNS.bind_random_port): bind to "::" for IPv6.
(Resolv::DNS::ConnectedUDP#initialize): specify is_ipv6 argument of
  bind_random_port.
  [ruby-core:25970]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-06 15:31:22 +00:00
matz e1797bc7dd * lib/delegate.rb (Delegator::public_api): take snapshot of
public method at the beginning time.

* lib/delegate.rb (SimpleDelegator#initialize): use
  Delegator.public_api since public_method might be added after
  initialization.  [ruby-dev:39383]

* lib/delegate.rb (DelegateClass): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-06 13:07:12 +00:00
xibbar 0e260ef122 * lib/cgi/cookie.rb: add default value to @@accept_charset
if have not defined. [ruby-dev:38987]
* lib/cgi/util.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 13:25:49 +00:00
nobu c3721fdcfc * lib/rubygems.rb (Gem::binary_mode): binary mode uses binary
encoding.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 05:01:12 +00:00
xibbar ae8ad5ae27 * lib/cgi/core.rb: fix command-line option of
non-interactive terminal. [ruby-core:23016]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 16:15:23 +00:00
nobu 78eaef0f8e * lib/rake/contrib: added. [ruby-core:25918]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 15:40:20 +00:00
nobu 719b0f8e30 * lib/rake: updated to rake code to rake-0.8.7 source code base.
* lib/rake/loaders/makefile.rb (Rake::MakefileLoader#process_line):
  respace dependencies too.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 19:07:55 +00:00
akr 0eddab8404 * lib/test/unit/assertions.rb (assert_equal): use Time#subsec if nsec
is not enough to distinguish arguments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 13:22:27 +00:00
mame c979cbfcf6 * lib/pp.rb (Kernel#pp): returns its arguments, like Kernel#p.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 12:11:29 +00:00
nobu 5d6696c909 * lib/gauntlet_rubygems.rb: out of place.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-28 23:27:17 +00:00
akr 4319c0235d * lib/pp.rb (PP:ObjectMixin#pretty_print): delegates has no inspect
method.  [ruby-core:25804]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 04:08:31 +00:00
marcandre 3a4e1d768d * lib/net/http.rb (transport_request): Handle timeout error by closing socket if exception raised. [ruby-core:20976]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 04:27:07 +00:00
nobu dd7490d50d * lib: updated keywords.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 23:45:52 +00:00
ryan ff54193c83 Fixed heredoc to play with emacs better. Added :startdoc: to fix broken rdoc processing
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 21:05:35 +00:00
marcandre 399dace5ed * lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when requiring lib/mathn
[ruby-core:25740]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 00:42:23 +00:00
akr 7728a17a27 * lib/thread.rb (ConditionVariable#wait): add timeout argument.
[ruby-talk:346154]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 14:01:07 +00:00
nobu 970ec9c02d * lib/cgi/cookie.rb: fixed indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-20 07:27:41 +00:00
nobu 2f2d213f7e * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): don't branch by
RUBY_VERSION.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-18 00:03:18 +00:00
nobu 70f03998c0 * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): emacs local variables
are delimited by a semicolon.  supported Vim style.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-18 00:02:35 +00:00
nobu 80464f8f2a * lib/mkmf.rb (rm_f, rm_rf): FileUtils.rm can take an array.
[ruby-dev:39345]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-17 21:36:53 +00:00
nobu 9312426c1e * lib/mkmf.rb (create_header): open in binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-17 21:34:24 +00:00
nobu c922e50804 * lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): parse also rdoc
files.

* doc/re.rdoc: renamed from re.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-17 04:12:38 +00:00
marcandre 6023a79deb * lib/matrix.rb (Matrix#rank): Two bug fixes. One made Matrix[[0,0],[0,0],[1,0]].rank raise a NoMethodError while the other one had Matrix[[0,1],[0,0],[1,0]].rank raise a TypeError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 21:04:07 +00:00
marcandre d09cde1861 * lib/matrix.rb: Optimizations
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 21:02:54 +00:00
marcandre 405cfda0d2 * lib/matrix.rb (Matrix#/): Fix obvious bug
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 08:24:15 +00:00
marcandre 193a7db4e2 * lib/matrix.rb: fix previous optimization
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 07:17:22 +00:00
marcandre 52c3721af3 * lib/matrix.rb (determinant): Bug fix where determinant failed on some matrices [ruby-core:23597]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 04:39:51 +00:00
marcandre c3db24a4dc * lib/matrix.rb: Fix typos in doc and indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 04:39:37 +00:00
marcandre 9d3638448e * lib/matrix.rb: trivial optimizations
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 04:36:37 +00:00
marcandre b09845fa70 * lib/net/http.rb (each_*): return enumerator if no block present. Patch by Arthur Schreiber [ruby-core:18310]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 23:35:09 +00:00
marcandre 5904f64dbf * lib/cgi/cookie.rb (value): Keep CGI::Cookie#value in sync with the cookie itself. Based on a patch by Arthur Schreiber [ruby-core:17634]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 22:36:45 +00:00
marcandre a0c569a378 * lib/net/http.rb (fetch): Handle properly default values; a patch by Arthur Schreiber [ruby-core:18308]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 20:30:46 +00:00
marcandre 8ef3af646f * lib/set.rb (==): Optimization; patch by Arthur Schreiber [ruby-core:17203]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 19:09:36 +00:00
akr 0cde80d36a * lib/open-uri.rb (OpenURI::Meta#content_type_parse): strip quotes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 02:29:47 +00:00
nobu a8998030fb * lib/prime.rb (EratosthenesGenerator#initialize): call super.
(TrialDivisionGenerator, Generator23): ditto.  [ruby-core:25539]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 00:38:07 +00:00
akr db2be749b4 * lib/open-uri.rb (URI::FTP#buffer_open): fix the %2F handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 16:18:03 +00:00
akr 188e9667dc * lib/open-uri.rb (URI::FTP#buffer_open): use the port specified in
the URI.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 13:49:07 +00:00
nobu 50ef1b0676 * lib/tmpdir.rb (Dir::Tmpname): for internal use.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 09:46:53 +00:00
shyouhei 607b8e0732 Merge branch 'trunk' of git://github.com/swdyh/ruby into trunk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 01:44:05 +00:00
marcandre 8cdbe2ab6f * lib/net/http.rb (fetch): rdoc fix, patch by Arthur Schreiber, [ruby-core:18309].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10 16:28:52 +00:00
nobu 3a224dbf45 * lib/mkmf.rb (create_makefile): fix for parallel execution.
[ruby-core:25509]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10 14:00:47 +00:00
nobu ee647e1b96 * lib/fileutils.rb (FileUtils::Entry_#copy_file): open the source
file first to ensure it can be copied.  [ruby-core:25498]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 13:02:04 +00:00
nobu 032a314c50 * lib/tempfile.rb, lib/tmpdir.rb (Tmpname): extracted new module.
[ruby-dev:39197]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-08 13:38:01 +00:00
matz f69dff0ed1 * lib/irb/inspector.rb (IRB::INSPECTORS.def_inspector): support
object without #inspect defined.  a patch from Daniel
  Bovensiepen.  [ruby-core:25200]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-07 03:28:41 +00:00
naruse 238b979f17 * lib/uri/common.rb (URI.escape): obsoleted.
* lib/uri/common.rb (URI,unescape): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-06 18:24:53 +00:00
nobu c0a09d9594 * lib/webrick/httpservlet/abstract.rb (do_OPTIONS): method names
are symbols now.  [ruby-core:24580]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-03 19:46:18 +00:00
nobu be41711465 * lib/tmpdir.rb (Dir.mktmpdir): rolled back r24699. [ruby-dev:39193]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-29 03:16:56 +00:00
nobu 2235d504b7 * lib/tmpdir.rb (Dir.mktmpdir): removed thread race condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 18:27:30 +00:00
nobu c2a81f31ef * lib/tempfile.rb (Tempfile#make_tmpname): removed thread race
condition.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 18:11:37 +00:00
knu c6c6ab873e * lib/tempfile.rb (Tempfile#callback): Debug information should be
output to stderr, not stdout; pointed out by akira yamada.
  cf. [ruby-dev:39072]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 11:41:13 +00:00
nobu 0170c2fc4d * lib/tempfile.rb: fixed typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 13:36:28 +00:00
naruse addd2cb06e * lib/tempfile.rb: add documents from Hongli Lai's fork.
cf [ruby-core:25131].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 12:50:57 +00:00
nobu ffd0da0333 * lib/tempfile.rb (Tempfile#close!): should not undefine finalizer
by just unlink.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 09:49:28 +00:00
nobu ba7a870a89 * lib/tempfile.rb (Tempfile#close!, Tempfile#path): added side
notes from Hongli Lai's fork.

* lib/tempfile.rb (Tempfile#unlink, Tempfile.callback): do nothing
  any more once unlinked.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 05:34:47 +00:00
nobu d4e85c416d * lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the
usage in RubyInline is considered wrong.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 04:48:38 +00:00
kou b0947c5e04 * lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: fix a bug
that RSS Maker doesn't accept 'false' as guid's isPermaLink.
  Reported by Joe Holt. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-24 12:31:22 +00:00
akr dfc3fccef3 * ext/syck/rubyext.c (id_hash_new): new function to create a hash
which key is compared by object id.
  (syck_parser_load): use id_hash_new for bonus->data.
  (syck_parser_load_documents): ditto.
  (syck_emitter_reset): ditto.

* lib/yaml.rb (YAML.quick_emit): give the object itself to eimitter.
  don't use object_id and hash.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-22 04:52:09 +00:00
nobu 7e97b9af80 * lib/mkmf.rb (rm_f, rm_rf): pass the last hash through if exists.
[ruby-dev:39153]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-21 16:29:33 +00:00
nobu 09cbac3f86 * lib/rdoc/ri/gemdirs.rb: split from lib/rdoc/ri/paths.rb to get
rid of loading rubygems and searching all gems always.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-20 22:25:52 +00:00
nobu e22b92dce4 * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): Gem::Enable has been obsolete.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-20 15:08:07 +00:00
akr fb99416115 rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-19 20:21:19 +00:00
tadf a5aefa661e * lib/date/delta.rb: removed require 'date'. added to_c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-17 14:46:55 +00:00
tadf ae3a58e8c5 * lib/date/delta.rb: merged from date4. [experimental]
* lib/date/delta/parser.*: ditto.

	* lib/date.rb: followed the above changes.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 23:35:28 +00:00
tadf cfed2cefb2 * lib/date/format.rb (strptime): removed \v; since \s includes \v.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 23:22:13 +00:00
tadf 01971cad75 use num#i.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 23:12:41 +00:00
tadf 3041f60056 warn only when $VERBOSE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 15:34:35 +00:00
tadf 7710478bdc * lib/complex.rb, lib/rational.rb: added warning messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 15:18:58 +00:00
tadf aa3c6d4dd2 * lib/date/format.rb: reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 13:20:50 +00:00
naruse 5e4f23d600 * lib/date/format.rb: suppressed a warning.
* lib/irb/ruby-lex.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 12:32:35 +00:00
naruse 2ac5cdd07a * lib/csv.rb: Change magic comment to US-ASCII in order to
make literals as US-ASCII.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 06:31:13 +00:00
matz eadc3604c0 * lib/delegate.rb (Delegator#method_missing): __FILE__ may contain
multi-byte characters.  a patch from Kenta Murata in [ruby-dev:39066].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 15:21:32 +00:00
tadf 8e6a754b5d * lib/date.rb (complete_frags): Monday must be suitable for %W's
default day.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 14:14:41 +00:00
nobu c6ada1e7e0 * lib/mkmf.rb (check_sizeof): added optional compiler option
argument.  [ruby-core:24785]

* lib/mkmf.rb (create_makefile): suppressed shadowing outer local
  variable warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:00:38 +00:00
nobu d04b691b96 * lib/test/unit/testcase.rb (Test::Unit): removes silly TestCase
class.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 03:05:16 +00:00
knu 20a684739e * lib/ipaddr.rb (IPAddr#hash): Take account of netmask; submitted
by Nobuhiro IMAI in [ruby-dev:39011]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 15:13:07 +00:00
nobu 93b9f2cc5e * lib/test/unit.rb (Test::Unit.setup_argv): expands paths before
requiring.  [ruby-dev:39012]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 18:28:49 +00:00
mame 528574c2e2 * lib/pp.rb (guard_inspect_key): untrust internal hash to prevent
unexpected SecurityError.

* test/ruby/test_object.rb: add a test for [ruby-dev:38982].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 16:44:05 +00:00
nobu 5ea7e7f60b * lib/rdoc/parser/c.rb: fixed a small error in the documentation.
[ruby-core:24744]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 15:33:11 +00:00
knu 61c11677c8 * lib/ipaddr.rb (IPAddr#{eql?,hash}): Add IPAddr#{eql?,hash} so
that an IPAddr object can be used as a hash key, a set element,
  etc.; suggested by Nick Brown <nick@nick-brown.com>.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 06:10:42 +00:00
matz 0fe4c1decb * lib/README: updated. a patch from Daniel Bovensiepen.
[ruby-core:24693]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-03 08:07:11 +00:00
usa 971f2bb769 * lib/securerandom.rb (SecureRandom.random_bytes): return string should
be ASCII-8BIT.  [ruby-core:24640]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-31 09:03:09 +00:00
xibbar 1976ef38a7 * lib/cgi/util.rb (CGI::unescape): support encoding option.
* lib/cgi/cookie.rb (CGI::Cookie.parse): fix for the encoded value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 05:34:02 +00:00
nobu 1ac307dddc * lib/rdoc/parser.rb (RDoc::Parser.binary?): fix for empty files.
[ruby-dev:38848]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-27 01:25:01 +00:00