nobu
944994b4cc
mkmf.rb: add NULLCMD
...
* lib/mkmf.rb (configuration): add NULLCMD.
* lib/mkmf.rb (create_makefile): use NULLCMD macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-17 23:23:37 +00:00
sorah
96f552670d
* lib/test: Removed because ruby's test cases now independent to
...
lib/test by r45970. [Feature #9711 ] [ruby-core:62620]
I'm still considering about the future of lib/minitest, lib/test.
(bundling gems?)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-17 08:01:15 +00:00
shirosaki
eceff15e68
parallel.rb: fix test-all parallel failure
...
* lib/test/unit/parallel.rb: fix test-all parallel failure if a test
is skipped after raise.
DL::TestFunc#test_sinf is skipped after raise on mingw ruby.
But it causes Mashal.load failure due to undefined class/module
DL::DLError when doing test-all parallel and test-all doesn't
complete. We create new MiniTest::Skip object to avoid Mashal.load
failure.
[ruby-core:62133] [Bug #9767 ]
* test/testunit/test_parallel.rb (TestParallel): add a test.
* test/testunit/tests_for_parallel/ptest_forth.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-15 12:31:26 +00:00
ayumin
2ff10784e4
* lib/delegate.rb: Fix example of using delegator.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-08 19:02:36 +00:00
ayumin
8b6a874a59
* lib/shell.rb: add documentation in lib/shell.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-08 18:46:16 +00:00
ayumin
529461dff7
* lib/fileutils.rb: show fileutils require at top.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-08 18:32:24 +00:00
ayumin
bef8e4557c
* lib/prime.rb (Prime#prime?): negative numbers can't be primes
...
by definition. reported by Ivan Kataitsev. [Bug #7395 ]
* test/test_prime.rb: add test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-08 18:22:29 +00:00
nobu
719804b5df
webrick/httpserver.rb: Stop handling requests on shutdown
...
* lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): stop
handling requests on shutdown, even if the socket is readable
and IO.select() returns true. [Fixes GH-607]
* lib/webrick/server.rb (WEBrick::GenericServer#start): IO.select()
raises ENOTSOCK on shutdown on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-08 01:17:07 +00:00
akr
e4b05d91eb
* lib/time.rb (Time.make_time): Adjust the time zone of "now".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 09:50:08 +00:00
akr
915ef9ed9b
* lib/time.rb (Time.make_time): Argument validation code moved from
...
Time.parse and Time.strptime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 09:04:09 +00:00
akr
1c3f862f58
[DOC] Use EST for previous documentation fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 08:27:47 +00:00
akr
252afcd9f1
* lib/time.rb (Time.parse): [DOC] Fix an example in the documentation.
...
Reported by Marcus Stollsteimer.
[ruby-core:60778] [Bug #9521 ] and [ruby-core:61718] [Bug #9682 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 08:18:13 +00:00
akr
0c3d513185
* lib/open-uri.rb (OpenURI.open_uri): Call StringIO#close only if
...
the StringIO object is not closed yet.
Reported by Jordi Massaguer Pla. [ruby-core:42538] [Bug #6010 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 16:38:53 +00:00
akr
c2a87a1fa1
* lib/time.rb (Time.strptime): Raise ArgumentError if Date._strptime
...
doesn't extract date information.
Reported by tadayoshi funaba. [ruby-core:62349]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 02:47:53 +00:00
akr
d9087ffebc
update a comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 15:57:16 +00:00
akr
0b53b86d47
add comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 15:51:05 +00:00
akr
fffbcf2867
* lib/time.rb (Time.force_zone!): Use usual local time if it has
...
expected offset from UTC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 11:52:26 +00:00
akr
a18177d5ed
* lib/time.rb (Time.force_zone!): New private method.
...
(Time.make_time): Use Time.force_zone!.
(Time.strptime): Ditto.
(Time.rfc2822): Ditto.
(Time.xmlschema): Ditto.
* lib/rss/rss.rb (Time.w3cdtf): Use Time.force_zone!.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 09:01:19 +00:00
akr
5de24423e6
* lib/time.rb (Time.httpdate): Always return a UTC Time object.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-03 18:47:29 +00:00
akr
7a39fcc195
* lib/time.rb (Time.make_time): Refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-03 18:27:21 +00:00
akr
af56a2b6dc
* lib/time.rb (Time.rfc2822): Fix year completion.
...
Produce fixed-offset time object if appropriate.
(Time.xmlschema): Produce fixed-offset time object if appropriate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-03 18:11:53 +00:00
akr
c4f29a6576
* lib/time.rb (make_time): Produce fixed-offset time object if
...
appropriate.
(Time.strptime): Use d[:zone] instead of d[:offset].
* lib/rss/rss.rb (Time.w3cdtf): Produce fixed-offset time object if
appropriate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-03 15:23:29 +00:00
akr
4de238663a
* lib/time.rb (Time.strptime): Use d[:offset] if d[:seconds] is not
...
given.
Reported by tadayoshi funaba. [ruby-core:62322]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-03 11:31:33 +00:00
hsbt
3fb8542b62
* lib/net/imap.rb: Proofreading docs. [ruby-core:61931][Bug #9720 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-02 07:34:23 +00:00
hsbt
ba0002a986
* lib/rinda/tuplespace.rb: fix document. [ruby-core:62003][Bug #9738 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-02 07:25:16 +00:00
nobu
29a2fe128a
mkmf.rb: no messages unless needed
...
* lib/mkmf.rb (create_makefile): no library scripts to install, no
installing messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-02 03:26:48 +00:00
akr
07f2563745
* (lib/tmpdir.rb): Rescue LoadError on etc.so for miniruby.
...
Revert r45707, r45711, r45717.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-29 05:19:38 +00:00
akr
17a4a9b993
* lib/fileutils.rb: Don't need to define fu_get_gid and fu_get_gid in
...
rescue LoadError on 'etc'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-29 03:51:13 +00:00
nobu
37ce765ba3
fix typo [Fix GH-603]
...
* bootstraptest/test_literal.rb: fix typo of "dynamic". [ci skip]
* regexp.rdoc: fix typo of "organized". [ci skip]
* lib/session.rb: fix typo of "recognized". [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-28 15:20:28 +00:00
ngoto
1377f38c9b
* lib/fileutils.rb (rmdir): rescue Errno::EEXIST in addition to
...
ENOTEMPTY (and ENOENT), because SUSv3 describes that "If the
directory is not an empty directory, rmdir() shall fail and set
errno to [EEXIST] or [ENOTEMPTY]" and Solaris uses EEXIST.
[Bug #9571 ] [ruby-dev:48017]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 14:28:56 +00:00
akr
2f60d08519
* lib/webrick/utils.rb: Don't rescue LoadError for 'etc' extension.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 10:17:15 +00:00
nobu
7cd7cfae77
mkmf.rb: workaround for tmpdir
...
* lib/mkmf.rb (try_link0): workaround for miniruby as 'tmpdir.rb'
always requires 'etc.so' now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 07:11:03 +00:00
usa
3c00fe9f41
* lib/fileutils.rb (fu_get_uid, fu_get_gid): Etc.getpwnam/getgrnam may
...
returns nil.
* lib/webrick/utils.rb (su): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 14:19:21 +00:00
akr
869c7ce0d1
* lib/tmpdir.rb: Don't need to rescue LoadError for etc.so.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 11:53:31 +00:00
naruse
1e67cd2d81
fix to rescue when test-all runs without installation
...
https://api.travis-ci.org/jobs/23564212/log.txt?deansi=true
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-23 04:31:56 +00:00
nobu
69ce2b7037
mkmf.rb: prefer $LIBPATH than $DEFLIBPATH
...
* lib/mkmf.rb (link_command, libpathflag, create_makefile): prefer
user specified `$LIBPATH` than `$DEFLIBPATH`. [ruby-core:62100]
[ruby-trunk - Bug #9760 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-19 23:41:36 +00:00
nobu
52ca908819
fileutils.rb: [DOC] update rdoc
...
* lib/fileutils.rb (FileUtils#copy_entry): update rdoc about
preserve option and permissions, following r31123.
[ruby-core:62065] [Bug #9748 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-17 01:03:55 +00:00
knu
537dac2713
* lib/net/ftp.rb (Net::FTP#login): [DOC] The default password for
...
anonymous login was changed to "anonymous@" in r25313.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-10 14:46:37 +00:00
knu
0192e15b4c
* lib/mkmf.rb (MakeMakefile#dir_config): Improve documentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-08 13:55:57 +00:00
naruse
fc3b4d06ca
* lib/xmlrpc/client.rb (do_rpc): don't check body length.
...
If HTTP content-encoding is used, the length may be different.
[Bug #8182 ] [ruby-core:53811]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-06 22:26:55 +00:00
marcandre
d11d87c362
* lib/matrix.rb: Add Matrix#cofactor [fix GH-568]
...
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-06 17:46:16 +00:00
marcandre
b8ba202301
* lib/matrix.rb: Add first_minor [fix GH-568]
...
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-06 17:45:54 +00:00
marcandre
bcf8dd1096
* lib/matrix: Handle empty diagonal matrix case [fix GH-576]
...
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-06 17:45:07 +00:00
hsbt
22305ffea0
* lib/csv.rb: fix minor typo by @baroquebobcat [fix GH-583][ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-03 05:59:14 +00:00
jeg2
1170b057e0
* lib/csv.rb: Symbol HeaderConverter: strip leading/trailing space.
...
Reported by Skye Shaw
[Fixes GH-575]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-01 14:40:48 +00:00
jeg2
7c4d4e1eb2
* lib/csv.rb: Don't attempt to convert nil headers.
...
Reported by Skye Shaw
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-01 14:35:03 +00:00
nobu
ebd9f1d0e4
lib/rubygem.rb: Weirich
...
* lib/rubygem.rb: fix spelling of Jim Weirich. [Fixes GH-577]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-25 23:29:44 +00:00
nobu
af1da410ca
cgi/util.rb: use alias
...
* lib/cgi/util.rb (escape_html, unescape_html): make synonyms
aliases instead of wrapper methods.
* lib/cgi/util.rb (escape_element, unescape_element): ditto.
[Fixes GH-573]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-21 21:46:17 +00:00
jeg2
3fb752a921
* lib/csv.rb: Fixed a broken regular expression that was causing
...
CSV to miss escaping some special meaning characters when used
in parsing.
Reported by David Unric
[ruby-core:54986] [Bug #8405 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-20 14:38:21 +00:00
zzak
2be728c45f
* lib/time.rb: [DOC] Fix timezone in example of Time.parse [Bug #9521 ]
...
Based on patch by @stomar [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-16 12:34:34 +00:00