nobu
a4d3911503
* lib/un.rb (setup): fix of word splitting. [ruby-dev:41723]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-24 20:49:37 +00:00
naruse
0de2d84af8
Clean warnings: unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 05:32:46 +00:00
marcandre
4349da9c1b
* lib/fileutils.rb: Fix warning
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 05:46:01 +00:00
marcandre
6233ed4dcd
* lib/delegate.rb: Forward #trust, #untrust, #taint and #untaint
...
to both the delegator and __getobj__ [ruby-core:26138]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 04:23:59 +00:00
matz
7a8a264f1d
* lib/irb.rb: remove double exclamation marks. a patch from Diego
...
Viola. [ruby-core:30589]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-19 02:12:40 +00:00
mame
ab408009fc
* lib/webrick/httpservlet/filehandler.rb
...
(prevent_directory_traversal): apply filesystem encoding to path
only during calling File.expand_path. [ruby-dev:41423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 16:26:00 +00:00
seki
b54b86d898
raise DRbConnError instead of ArgumentError if too many arguments.
...
[ruby-dev:41481]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 08:52:30 +00:00
marcandre
0486db01fd
* lib/delegate.rb: Delegate !=, eql? and hash [ruby-core:26139]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 19:25:03 +00:00
mame
48c5afeba0
* lib/rubygems/install_update_options.rb
...
(Gem::InstallUpdateOptions#add_install_update_options): deprecate
--test option which has not worked. [ruby-core:21714]
* test/rubygems/test_gem_command_manager.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 13:42:54 +00:00
naruse
c659f40446
Revert r28200.
...
It caused many failures on test-all and following is SEGV.
./ruby -e 'require %!#{"foo/" * 10000}foo!'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-10 04:31:08 +00:00
nobu
2b322524cd
* gem_prelude.rb: load full rubygems at LoadError for activation
...
check. [ruby-core:29486]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-07 21:27:16 +00:00
marcandre
159fd9ee6c
* lib/matrix.rb (eql?, ==, minor): Fix bugs when comparing/returning
...
some empty matrices.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 04:18:08 +00:00
marcandre
87c1da091c
* lib/matrix.rb: trivial optimizations
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 04:17:44 +00:00
drbrain
79aac05474
Clarification of what '*' matches. Patch by John Wells <john.wells at greatworx.com>
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 21:22:47 +00:00
naruse
ab70e53ac3
* lib/net/http.rb: adding support to rfc5789 patch verb.
...
Added a Net::HTTP::Patch class which expects a message body
and response body. It recycles the post method into a patch one,
that will send the encoded representation to the server.
Summarizing, a new class has been created, the post method
extracted into send_entity, including a new argument,
which defines which class to use (Post or Patch) and
finally a patch method was created. [ruby-core:30426]
Patched by Guilherme Silveira
<guilherme.silveira AT caelum.com.br>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-01 12:30:52 +00:00
akr
7011534ea8
* lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNRESET
...
for Windows. reported by U.Nakamura. [ruby-dev:41477]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 12:51:13 +00:00
marcandre
89efbfe0fa
* lib/delegate: Delegator: combine (public|protected) methods with
...
those of the delegated object. [ruby-core:27224]
DelegateClass: combine (public|protected) instance methods
with those of the delegated superclass.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-30 16:43:52 +00:00
marcandre
1d06ff9761
* lib/set.rb (keep_if, select!): New methods [ruby-core:29749]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-30 13:19:09 +00:00
mame
d980b8f61a
* lib/tempfile.rb (Tempfile#unlink): leave @data. Assigning nil to
...
@data caused double closing error of the same IO in finalizer. a
patch from Simon Nicholls. [ruby-core:29395]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-30 12:51:32 +00:00
naruse
abeb6dce85
* lib/rdoc/generator/template/darkfish/classpage.rhtml:
...
fix encoding value of XML declaration. [ruby-dev:41452]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 18:05:06 +00:00
nobu
8e9f30887c
* lib/rdoc/rdoc.rb (RDoc#read_file_contents): take care of BOM.
...
[ruby-dev:41452]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 03:05:55 +00:00
nobu
fc130468c7
* lib/mkmf.rb (STRING_OR_FAILED_FORMAT.%): nodoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 00:43:09 +00:00
akr
089d2ddda4
* lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNREFUSED.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 00:06:17 +00:00
nobu
66c8f4680f
* lib/mkmf.rb (checking_for): ignore toplevel.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-28 01:40:39 +00:00
nobu
b4f1eaa493
* ext/openssl/lib/openssl/x509-internal.rb, lib/forwardable.rb,
...
lib/irb/cmd/fork.rb, lib/mutex_m.rb,
lib/shell/process-controller.rb, lib/sync.rb, object.c:
suppress warnings patched by Benoit Daloze at [ruby-core:30366].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-23 08:48:44 +00:00
shugo
f1ff36a331
* lib/net/imap.rb (disconnect): closes the socket of a Net::IMAP
...
object only when it is not closed. [ruby-dev:41350]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19 14:22:09 +00:00
marcandre
ef83d7a928
* lib/matrix.rb (determinant): Trivial optimization (thanks to Benoit Daloze)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 21:09:31 +00:00
usa
fef3c0a415
* lib/fileutils.rb (FileUtils::Entry_#entries): returns pathname in
...
UTF-8 on Windows to allow FileUtils accessing all pathnames
internally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 00:41:56 +00:00
usa
db96db4285
* lib/rdoc/generator/ri.rb (generate): should load existing cache
...
before generating it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 06:46:53 +00:00
marcandre
3b0e399c03
* lib/uri/mailto.rb: clean up regexp [ruby-core:29894]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-11 04:49:56 +00:00
mame
f4053cf555
* lib/thread.rb (ConditionVariable#wait): ensure to remove the current
...
thread from waiters. [ruby-core:29835]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-09 17:10:18 +00:00
shugo
e240f93f21
* lib/net/imap.rb (disconnect): terminates @receiver_thread even if
...
@sock.shutdown raises an exception. [ruby-dev:34881]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 23:25:54 +00:00
nobu
adf6297ec8
* lib/rubygems/user_interaction.rb (Gem::StreamUI#ask_for_password):
...
use io/console.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 04:11:30 +00:00
nobu
2c01a07bf4
* ext/etc/etc.c (etc_systmpdir): moved from ext/tmpdir.
...
* ext/etc/etc.c (etc_sysconfdir): added.
* lib/rubygems/config_file.rb, lib/tmpdir.rb: use etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 03:25:17 +00:00
akr
3b9c00306f
* lib/tmpdir.rb: test RUBY_PLATFORM for loading tmpdir.so to avoid
...
LoadError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 05:14:10 +00:00
mame
57c1406697
* lib/net/http.rb (Net::HTTPResponse#read_chunked): ensure to skip the
...
last newline of chunk. [ruby-core:29229]
* test/net/http/utils.rb: add an option for chunked response test.
* test/net/http/test_http.rb: add tests for chunked response.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-03 23:42:26 +00:00
nobu
24bc7af43a
* lib/rdoc/task.rb (RDoc::Task): should not override newer code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-02 08:52:20 +00:00
marcandre
ec8b5d0625
* NEWS: List all changes to lib/matrix
...
* lib/matrix.rb: Improve doc and style. Trivial optimizations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-02 05:43:29 +00:00
nobu
6874c8d686
* lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY value instead
...
of fragile check by platform name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01 23:54:39 +00:00
nobu
12d39082c5
* lib/mkmf.rb (dir_config): should not modify argument arrays
...
themselves.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01 22:38:45 +00:00
nobu
5e02a28a8b
* lib/tempfile.rb (Tempfile#size): stat by path name when it is
...
closed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01 13:54:01 +00:00
nobu
9ad152e555
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
keep the first trace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01 13:41:10 +00:00
nobu
8657912211
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
fixed filtering. [ruby-core:29908]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01 13:27:49 +00:00
drbrain
40cd5e8a79
Merge fix for gem server, bump RubyGems version to 1.3.7
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01 05:19:16 +00:00
drbrain
9111bbf818
Upgrade to RDoc 2.5.8
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01 05:06:21 +00:00
nobu
9d094c7a25
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
filter out traces in minitest directory. [ruby-core:29908]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-01 00:43:10 +00:00
nobu
11caac1663
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
assertion message must be String or Proc. suggested by caleb
clausen at [ruby-core:29884].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-30 15:26:34 +00:00
marcandre
0a3c78face
* lib/matrix.rb: Improve algorithm for Matrix#determinant and Matrix#rank
...
{determinant,det,rank}_e are now deprecated. [ruby-core:28273]
Also fixes a bug in Determinant#rank (e.g. [[0,1][0,1][0,1]])
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 18:19:12 +00:00
marcandre
a3a4542fb4
* lib/matrix.rb (Matrix#singular?, Matrix#regular?): raise on rectangular
...
matrices, and use determinant instead of rank.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 18:18:58 +00:00
nobu
f88284b91e
* lib/thwait.rb (ThreadsWait#join): refined rdoc again.
...
[ruby-core:29863] [ruby-dev:41092]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 09:39:52 +00:00