nahi
15e7e472e6
* lib/webrick/cookie.rb (WEBrick::Cookie.parse): Revert r31228.
...
r31228 was for allowing the 'Cookie:' header which did not have no
SP after ';' for separating cookie-pairs but RFC6265 requires single
SP after ';' there. We allow multiple SPs here for compatibility
with older WEBrick version.
* test/webrick/test_cookie.rb: Test it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-20 06:48:40 +00:00
sorah
4c438fd0fe
* lib/test/unit/parallel.rb: Override Test::Unit::TestCase#on_parallel_worker?
...
only when $0 == __FILE__.
* lib/test/unit/parallel.rb: Run Test::Unit::Worker.run only when
$0 == __FILE__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-19 01:12:02 +00:00
nobu
7191ea1049
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-17 22:33:54 +00:00
drbrain
517c3385b1
* lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.
...
[Ruby 1.9 - Bug #4874 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 22:54:53 +00:00
drbrain
105a9e036c
* lib/benchmark.rb: Document Benchmark::Tms#memberwise. Patch by
...
David Czarnecki. [Ruby 1.9 - Bug #4873 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 22:47:28 +00:00
drbrain
463df2ceb9
* lib/prettyprint.rb: Improve documentation. Patch by Ysiad
...
Ferreiras. [#4834 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 22:38:48 +00:00
drbrain
be39117330
* lib/webrick/log.rb: Improve documentation of BasicLog and Log.
...
Patch by Olivier Brisse. [Ruby 1.9 - Bug #4833 ]
* lib/webrick/httpstatus.rb: Improve documentation of
WEBrick::HTTPStatus. Patch by Olivier Brisse.
[Ruby 1.9 - Bug #4833 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 21:12:00 +00:00
sorah
288c18cdd8
* test/testunit/test_parallel.rb: Fix Regexp for test.
...
* test/testunit/tests_for_parallel/test_third.rb: Use
Test::Unit::TestCase#on_parallel_worker? for detecting worker.
* lib/test/unit/testcase.rb(Test::Unit::TestCase#on_parallel_worker?):
New Method Test::Unit::TestCase#on_parallel_worker? returns true
when a testcase is running on parallel worker.
* lib/test/unit/parallel.rb(Test::Unit::TestCase#on_parallel_worker?):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 11:24:23 +00:00
drbrain
14d0f7aa48
* lib/monitor.rb: Improve documentation. Patch by Sandor Szucs.
...
[Ruby 1.9 - Bug #4823 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 06:09:57 +00:00
drbrain
09b830c4b2
* lib/webrick/utils.rb: Document WEBrick::Utils. Patch by Olivier
...
Brisse. [Ruby 1.9 - Bug #4819 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 05:55:31 +00:00
drbrain
35bb53430c
* lib/webrick/httpservlet/erbhandler.rb: Allow the ERB document to
...
alter the content-type of the response. [Ruby 1.9 - Bug #4685 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 05:37:31 +00:00
drbrain
dbf9baeddf
* lib/timeout.rb: Clarify timeout duration types. Patch by Alf Mikula.
...
[Ruby 1.9 - Bug #4791 ]
* lib/net/http.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 05:24:12 +00:00
drbrain
b7528b5edb
* lib/rdoc.rb: Import RDoc 3.7 release candidate
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 04:59:24 +00:00
shugo
97ac172d58
* lib/net/imap.rb (search_response): parses SEARCH responses from
...
the Yahoo IMAP server correctly. patched by Mark Nadig. [Bug #4509 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 02:41:03 +00:00
sorah
6e125382d7
* lib/test/unit.rb(Test::Unit::Runner#_run_parallel): Ignore -j0
...
because it makes blocking forever by IO.select.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-15 22:27:11 +00:00
keiju
0f6794cb23
* lib/cmath.rb: add new methd Object#real?. fix #3137
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 10:48:12 +00:00
naruse
2ba3909c0a
Additional fix for r31933.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 10:21:07 +00:00
akr
58bae71a7b
* lib/securerandom.rb (SecureRandom.random_bytes): modify PRNG state
...
to prevent random number sequence repeatation at forked child
process which has same pid.
reported by Eric Wong. [ruby-core:35765]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 09:36:48 +00:00
naruse
df36601017
* lib/net/http.rb (Net::HTTP#use_ssl?): require 'openssl' only when
...
https is needed. fixes r31933.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 08:03:22 +00:00
mrkn
e6bea8978c
* lib/cmath.rb (CMath.cbrt): returns the principal value of the cube
...
root of the argument. fix #3676
* test/test_cmath.rb (test_cbrt_returns_principal_value_of_cube_root):
test for the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 05:36:59 +00:00
mrkn
da923d2b1f
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 05:22:40 +00:00
naruse
60947ded03
* lib/yaml.rb: load psych only when syck is not loaded.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 03:55:00 +00:00
seki
c6a506d04d
lib/drb/drb.rb (kill_sub_thread): remove the method. [ruby-core:34185]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 14:40:15 +00:00
nobu
95e42dc152
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): should run
...
with 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:04:19 +00:00
kou
da672779e2
* lib/rexml/formatters/pretty.rb
...
(REXML::Formatters::Pretty#write_text),
test/rexml/test_core.rb
(Tester#test_pretty_format_long_text_finite): don't ignore
'width' parameter in pretty formatter. fixes #4498
Reported by Michael Frasca. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:29:48 +00:00
kou
80cb3351dd
* lib/rexml/parsers/xpathparser.rb
...
(REXML::Parsers::XPathParser#parse),
test/rexml/test_elements.rb
(ElementsTester::test_each_with_frozen_condition):
don't modify original XPath. fixes #4164
Reported by Pavel Shved. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:05:42 +00:00
nobu
ac0ab1f675
* lib/mkmf.rb: should quote arch_hdrdir and libpath for the case
...
installed prefix contains spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 01:32:49 +00:00
naruse
09c8651387
Don't break test-all.
...
Revert "* lib/test/unit/assertions.rb (Test::Unit::Assertions#skip): reason to"
This reverts commit r31982.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-10 06:45:21 +00:00
nobu
3bc5b309be
* lib/test/unit/assertions.rb (Test::Unit::Assertions#skip): reason to
...
skip should be explained.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-10 04:04:41 +00:00
usa
733be25907
* lib/rubygems/user_interaction.rb (Gem::StreamUI#tty?): IO#tty? of
...
Windows has been fixed at r29969.
* test/rubygems/test_gem_stream_ui.rb: now can run tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-07 09:56:30 +00:00
sorah
55ddfceed3
* lib/test/unit.rb(Test::Unit::Runner#puke):
...
Add overriding from MiniTest::Unit#puke. This reverts minitest's fix
that skip messages are hidden when not verbose mode (-v option).
To hide skip messages, use --hide-skip option instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-06 03:47:04 +00:00
naruse
80651edad2
* lib/net/http.rb: don't use autoload.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-06 01:53:41 +00:00
naruse
7ad690313b
* lib/rubygems/test_case.rb: Refix for test-all in separate directory.
...
r31147 + r31151.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-03 13:07:57 +00:00
sorah
d1a7670baf
* lib/test/unit/parallel.rb: Keep $stdin, $stdout before run testcase
...
and restore after run. Because some test break $stdin, $stdout.
Fixes [Bug #4433 ] [ruby-core:35353]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-03 11:48:47 +00:00
naruse
a83f125c31
* lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri
...
is path-rootless form. Bug #4759
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-03 00:32:25 +00:00
jeg2
fe8002b17b
* lib/csv.rb: Improve the line ending detection algorithm
...
(patch by Alexey).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-02 14:52:11 +00:00
ryan
9b3e7967ab
Imported minitest 2.2.2 (r6281)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-01 22:34:09 +00:00
ryan
e4b16eff50
MOSTLY Imported minitest 2.2.1 (r6277)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-01 05:12:55 +00:00
nobu
b204eabf05
* lib/rubygems, test/rubygems: properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-01 04:05:03 +00:00
ryan
d22130922e
Import rubygems 1.8.5 (released @ 137c80f)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-01 03:45:05 +00:00
drbrain
b8f3f2d62e
* lib/cgi/util.rb: Improve documentation. Patch by Kuba Fietkiewicz.
...
[Ruby 1.9 - Bug #4775 ]
* lib/cgi/core.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-01 00:42:06 +00:00
drbrain
5dcb4fc18b
* lib/mathn.rb: Improve documentation and attach it to Numeric.
...
Modified from patch by Anil V. [Ruby 1.9 - Bug #4762 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-01 00:26:27 +00:00
drbrain
b6dd727b86
* lib/prime.rb: Indent examples enough to appear as code sections.
...
Note that Prime is Enumerable. [#4762 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-01 00:21:46 +00:00
nahi
b219a56c07
* lib/net/http.rb, lib/net/protocol.rb: Allow to configure to wait
...
server returning '100 continue' response befor sending HTTP request
body. See NEWS for more detail. See #3622 .
Original patch is made by Eric Hodel <drbrain@segment7.net>.
* test/net/http/test_http.rb: test it.
* NEWS: Add new feature.
On my env (Ubuntu 11.04 64bit),
9510 tests, 2203824 assertions, 0 failures, 0 errors, 29 skips
->
9514 tests, 2203836 assertions, 0 failures, 0 errors, 29 skips
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-31 08:10:42 +00:00
naruse
d5a775f527
* lib/webrick/https.rb (WEBrick::HTTPRequest#parse_uri):
...
keep parse_uri as private. patched by okkez. [Bug #4773 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-29 14:14:38 +00:00
akr
aede5b3911
update comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-27 23:45:12 +00:00
marcandre
a50bdcd6df
* lib/ostruct.rb (method_missing): Handle [] and []= correctly.
...
Based on a patch by Caius Durling, bug #4179 [ruby-core:33792]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-27 15:59:02 +00:00
shyouhei
42f704a8fa
prevent an error when passing a frozen string to REXML::Text.new
...
dup the string passed in instead of cloning so that it's frozen state is ignored
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-27 02:34:23 +00:00
jeg2
a9c056f1ed
* lib/csv.rb: Enhance each() to support Enumerator.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-26 15:35:06 +00:00
jeg2
b74f5dee4a
* lib/csv.rb: Documentation improvements from Ysiad Ferreiras.
...
[Ruby 1.9 - Bug #4785 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-26 13:32:40 +00:00