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

3575 Коммитов

Автор SHA1 Сообщение Дата
naruse 3f34ecc536 * lib/net/http.rb (HTTP.get): specify ASCII-8BIT as the result
encoding of Zlib::GzipReader.
  http://hibari.2ch.net/test/read.cgi/tech/1281473294/271

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-11 11:23:35 +00:00
knu 72ef219804 * lib/set.rb (Set#replace): Apply a bit of optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-10 09:45:36 +00:00
jeg2 b6e0e98117 * lib/csv.rb: Fixing documentation typos. [ruby-core:32712]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-07 15:25:23 +00:00
akr 5fd45a4b79 * lib/uri/generic.rb (URI::Generic#hostname): new method.
(URI::Generic#hostname=): ditto.

* lib/open-uri.rb: use URI#hostname

* lib/net/http.rb: ditto.

  [ruby-core:32056]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-06 03:30:49 +00:00
naruse c4087bcb12 * lib/uri/common.rb (URI.encode_www_form): change treatment of
undefined value in given array as latest internet draft for
  application/www-form-urlencoded.
  http://tools.ietf.org/html/draft-hoehrmann-urlencoded-01

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-30 00:48:01 +00:00
nobu 510ae756be * lib/rdoc/known_classes.rb (RDoc::KNOWN_CLASSES): add Encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-29 03:31:32 +00:00
shyouhei 36cfaa8052 * test/net/imap/test_imap.rb: resurrection of r29259.
this change depends on minitest 1.7.1.

	* lib/test/unit/assertions.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-27 06:28:59 +00:00
ryan 4c6551b7d3 Imported minitest 1.7.2 r5879.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-23 21:27:19 +00:00
naruse d339fed3ad Add document about URI.join. [ruby-core:32462]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-23 12:22:43 +00:00
eban c72e6c7b86 * lib/rdoc/ri/store.rb (save_cache): remove duplicate entries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-21 15:56:41 +00:00
yugui 3038eae7f6 * lib/mkmf.rb (try_link): rdoc
(try_compile): ditto
  (try_cpp): ditto
  (try_func): ditto
  (try_var): ditto
  (try_run): ditto
  (egrep_cpp): ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-19 13:10:31 +00:00
kou d8c3fa1506 * lib/rexml/xpath_parser.rb, test/rexml/test_xpath.rb:
add missing method availability check. [ruby-core:32447]
  Reported by Wiebe Cazemier. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 14:47:20 +00:00
nobu 0f0d0dcdb3 * lib/tracer.rb: count only non-internal libraries in stack trace,
ignoring custom_require.  [ruby-core:31858]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-16 23:30:30 +00:00
nobu 5bfac0d9cf * lib/test/unit.rb (Test::Unit::GlobOption): merged RejectOption.
* test/runner.rb: utilize GlobOption.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-16 12:40:40 +00:00
nobu 9bc2e3280a * lib/rdoc/ri/driver.rb (RDoc::RI::Driver.setup_options)
(RDoc::RI::Driver.fixup_options): split from process_args.
  libraries should not parse ARGV inside, since it's a task of
  applications, not libraries.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-16 12:31:29 +00:00
nobu 75d694e535 * lib/rdoc/ri/paths.rb (RDoc::RI::Paths.each): HOMEDIR can be nil
if $HOME is unset.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-16 12:02:34 +00:00
shyouhei cc9b6ba611 reverting; http://rubyforge.org/tracker/?func=detail&atid=4099&aid=28566&group_id=1040
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-15 07:56:04 +00:00
shyouhei 6bab4ea991 * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_nothing_raised):
should properly ignore MiniTest::Skip

	* lib/minitest/unit.rb (MiniTest::Assertions::assert_raises):
	  ditto.

	* test/net/imap/test_imap.rb: Properly skip SSL tests when
	  localhost is not 127.0.0.1.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-15 06:01:00 +00:00
nobu 3e86bd8f3a * lib/mkmf.rb (try_do): fix typo. a patch from Peter Weldon
at [ruby-core:32327].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-13 09:11:58 +00:00
tadf d50b19ff27 * lib/date.rb: [ruby-core:32096] Thanks Colin Bartlett.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-12 12:24:17 +00:00
akr 7bda092ee8 update document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-11 23:43:13 +00:00
akr c755baf85f update document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-11 19:55:08 +00:00
drbrain 073e6ccc7b Add documentation for WEBrick's DigestAuth
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-11 06:21:51 +00:00
nahi a4fa58f9ab * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#continue): add
method for generating HTTP/1.1 100 continue response if the client
          expects it, otherwise does nothing.  Patch by Brian Candler.
          ref #855.

        * test/webrick/test_httprequest.rb: test added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-10 10:20:35 +00:00
ryan ee9e8f82d4 Imported minitest 1.7.1 r5835
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-01 08:40:53 +00:00
naruse d074ef4d60 * string.c (tr_setup_table): fix bug in r29146.
Initialize table even if cflag is 0; tr_find see whether
  del is empty or not.

* string.c (tr_find): nodel can't be NULL; if NULL, it means
  it is not specified.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-30 19:45:30 +00:00
nobu f4b2d14572 * lib/rdoc/parser/ruby.rb (RDoc#parse_call_parameters): don't
include assignment.  [Bug #3759], [ruby-dev:42154]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-29 14:54:16 +00:00
nobu ccf4fbf78d * lib/rdoc/parser/ruby.rb (RDoc#parse_class): ignore non-constant
name signleton class.  [Bug #3759], [ruby-dev:42154]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-29 14:47:01 +00:00
nobu 7e53b3b6ba * lib/tempfile.rb: not executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-29 03:48:21 +00:00
tadf 9d2025c881 * lib/date.rb, lib/date/format.rb: [ruby-core:31695]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-22 15:24:03 +00:00
naruse e44f5bcbd9 * lib/date.rb: Re-revert the part of r28950.
It reverted the part of r28619.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-17 06:18:53 +00:00
nobu 0afddf7b0a Tue Aug 17 07:38:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gem_prelude.rb, lib/rubygems.rb (Gem.suffixes): include empty
	  suffix.  [ruby-core:31730]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-16 22:38:46 +00:00
shyouhei 29b30b66f3 merge revision(s) 28997:
* lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#set_error):
	  Fix for possible cross-site scripting (CVE-2010-0541). 
	  Found by Apple, reported by Hideki Yamane.
	  Patch by Hirokazu Nishio <nishio.hirokazu AT gmail.com>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-16 03:41:12 +00:00
usa 5dde183d0a * lib/mkmf.rb (Logging.postpone): close @log only when it's available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-15 07:22:57 +00:00
nobu d7d361a316 * lib/test/unit.rb (MiniTest::Unit.new): extend before initialize.
[ruby-dev:41970]

* lib/test/unit.rb (MiniTest::Unit.autorun): use Test::Unit::Mini.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-13 07:12:18 +00:00
mrkn 9b0b9ac237 * lib/cmath.rb (CMath.sqrt): use floating-point value. [ruby-core:31672] [Bug #3678]
* test/test_cmath.rb: added for testing lib/cmath.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-11 14:30:47 +00:00
akr e6f6033b16 * lib/optparse.rb: suppress a warning.
* test/test_mutex_m.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-10 12:02:52 +00:00
tadf 2f8ddcd8cd * lib/date/format.rb (Date::Format::Bag): use Struct.
as an experimental.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-10 11:58:21 +00:00
tadf f635d1b041 [ruby-core:31658]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-10 10:59:17 +00:00
naruse 6434e1e690 * lib/webrick/httprequest.rb (WEBrick::HTTPRequest::parse_uri):
rollup leading slashes. [ruby-core:31657]
  patched by Jamison Wilde
  NOTE: //authority/path is valid relative URI both RFC2396 and
  RFC3986. So when give a relative URI-like string to URI lib,
  users must care leading slashes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-10 05:59:11 +00:00
usa 073ac4ff5a * lib/un.rb (httpd): SIGQUIT and SIGHUP are not guaranteed to exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-10 02:29:04 +00:00
naruse d1a4390eed * lib/rubygems/source_index.rb: rename unused variable.
* lib/rubygems/specification.rb: rename unused variable.

* lib/rubygems/specification.rb: remove unused variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-09 07:05:26 +00:00
nobu a5e1a4b635 * lib/mkmf.rb ($ignore_error): initialize after $nmake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-08 15:18:46 +00:00
nobu 1c8c901e3c * lib/rubygems.rb (Gem.find_files): reverted to use globbing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-08 07:42:51 +00:00
nobu b26000068e * lib/rubygems.rb (Gem.find_files): fixed variable scope.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-08 07:27:11 +00:00
nobu e45d17b9d2 * lib/rubygems.rb (Gem.find_files): fixed search order same as
default behavior.

* lib/rubygems/gem_path_searcher.rb (matching_files): check if
  exist, not globbing.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-08 07:22:07 +00:00
nobu efbad5fa48 * gem_prelude.rb, lib/rubygems.rb (Gem.suffixes): return truely
require-able suffixes only.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-08 07:08:55 +00:00
akr 5f5e0b7191 * lib/rbconfig/obsolete.rb: show the location which use Config.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 22:50:05 +00:00
nobu df96e41845 * mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete and
deprecated Config.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 08:40:32 +00:00
naruse c260a0c70c * lib/mkmf.rb: change instance variable to global.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 05:19:29 +00:00