hsbt
4c91cbb9a8
* lib/shell.rb: removed commented-out code.
...
* lib/shell/builtin-command.rb: ditto.
* lib/shell/command-processor.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-22 03:32:36 +00:00
hsbt
6f74ab1d97
* lib/complex.rb: removed deprecated library.
...
* lib/rational.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-22 03:21:55 +00:00
hsbt
a84821f8dd
* lib/prettyprint.rb: removed PrettyPrint#first?
...
because it is obsoleted method since Ruby 1.8.2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-22 02:38:59 +00:00
hsbt
4d9de3db0a
* lib/e2mmap.rb: removed commented-out code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-21 05:45:47 +00:00
hsbt
59ca946543
* lib/rinda/ring.rb: split executable code into sample directory.
...
* sample/rinda-ring.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-21 04:23:56 +00:00
hsbt
bff692b94d
* lib/drb/acl.rb: split executable code into sample directory.
...
* sample/drb/acl.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-21 04:23:43 +00:00
hsbt
ef4c25720a
* lib/net/imap.rb: split executable code into sample directory.
...
* sample/net-imap.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-21 03:40:42 +00:00
hsbt
c6efc649f8
* lib/net/imap.rb: removed commented-out code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-21 03:24:06 +00:00
nobu
d0f71e5072
rake/backtrace.rb: exclude mere prefix
...
* lib/rake/backtrace.rb (Rake::Backtrace): exclude mere prefix and
exec_prefix, which match too much.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-16 03:56:17 +00:00
nobu
04408eae54
rake/backtrace.rb: remove wrong value
...
* lib/rake/backtrace.rb (Rake::Backtrace::SYS_KEYS): only names
end with prefix or libdir, not just include them. libdirname is
not a key of path name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-16 03:48:21 +00:00
hsbt
e5c9e56893
* lib/gserver.rb: removed unmaintained code.
...
[ruby-core:40313][Feature #5480 ]
* lib/xmlrpc/httpserver.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-15 01:21:18 +00:00
hsbt
643551f0d3
* lib/irb/completion.rb: reverted r47163.
...
because another case can't be show completion target.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-13 03:02:26 +00:00
hsbt
f741fd2d9d
* lib/irb.rb: Prevent irb from crashing when exception with
...
nil backtrace is raised.
[fix GH-434][ruby-core:58078][Bug #9063 ]
* test/irb/test_raise_no_backtrace_exception.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-13 02:19:48 +00:00
hsbt
087d1d2749
* lib/irb/completion.rb: fixed broken completion list with
...
String including spaces. Contributed from @dunric. [fix GH-465]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-13 02:11:37 +00:00
hsbt
ac210750df
* lib/fileutils.rb: enable to remove with non-owner directory.
...
[ruby-dev:45976] [Bug #6756 ]
* test/fileutils/test_fileutils.rb: add testcase for #6756 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-12 04:36:31 +00:00
hsbt
0210b487a4
* lib/fileutils.rb: fix typo.
...
[ruby-dev:47831] [Bug #9180 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-12 03:21:57 +00:00
nobu
84ae5332e5
lib/tempfile.rb: include doc of Tempfile.open
...
* lib/tempfile.rb: start rdoc parsing inside singleton class
definition to include the document there.
[ruby-core:64157] [Bug #10105 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-11 02:26:36 +00:00
hsbt
ffc068c9bb
* lib/cgi/session/pstore.rb: separated sample code.
...
* lib/open3.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-10 01:34:50 +00:00
hsbt
0b7979a8fd
* lib/irb/ext/multi-irb.rb: fixed indent.
...
* lib/irb/output-method.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-10 01:05:08 +00:00
hsbt
f9a81499ff
* lib/irb/ext/multi-irb.rb: removed commented-out code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-10 01:05:06 +00:00
hsbt
76515504d5
* lib/irb.rb: removed commented-out code.
...
* lib/irb/**/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-09 02:02:58 +00:00
hsbt
8e5af8b628
* lib/cmath.rb: fixed indent.
...
* lib/drb/ssl.rb: ditto.
* lib/irb/**/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-09 01:36:49 +00:00
glass
0a22f4c168
* lib/securerandom.rb: use OpenSSL::BN for performance improvement.
...
* benchmark/bm_securerandom.rb: benchmark script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-08 11:00:47 +00:00
hsbt
d6f0bd2b84
* lib/open-uri.rb: remove needless condition for old ruby version.
...
* test/open-uri/test_open-uri.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-08 10:30:19 +00:00
hsbt
9b9a9249f4
* lib/irb/init.rb: removed unreachable code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-08 07:41:33 +00:00
hsbt
47f8840e32
* lib/drb/drb.rb: removed unreachable code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-08 07:35:19 +00:00
hsbt
67b5e1084b
* lib/webrick/httpproxy.rb: remove needless condition
...
for old ruby version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-08 05:34:48 +00:00
glass
fd7a02f960
* lib/open3.rb: avoid unnecessary write if stdin_data is empty.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-07 14:31:54 +00:00
hsbt
b618b8685c
* lib/cgi.rb: remove needless condition for old ruby version.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-07 06:14:29 +00:00
knu
305be780df
* lib/set.rb (Set#replace): Check if an object given is enumerable
...
before clearing self. Reported by yui-knk. [GH-675]
https://github.com/ruby/ruby/pull/675
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-06 11:28:21 +00:00
knu
3766aa4cc5
Implement Set#clone. [Fixes GH-661]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-06 10:13:34 +00:00
naruse
f01485b4ec
* lib/net/http.rb (Net::HTTP.proxy_uri): use initializer instead
...
of parser to handle IPv6 address. [Bug #9129 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:37:37 +00:00
naruse
90a16cb228
* lib/net/http/requests.rb (Net::HTTP::Options::RESPONSE_HAS_BODY):
...
OPTIONS requests may have response bodies. [Feature #8429 ]
http://tools.ietf.org/html/rfc7231#section-4.3.7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:20:28 +00:00
naruse
70a2eb6399
* lib/net/http/generic_request.rb (Net::HTTP::GenericRequest#exec):
...
handle req['host'] in update_uri.
* lib/net/http/generic_request.rb
(Net::HTTP::GenericRequest#update_uri):
use req['host'] if it is explicitly set. Even if URI is given,
it is already used for the initial value of req['host'].
Therefore overwritten value should be respected. [Bug #10054 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:10:23 +00:00
naruse
c165203564
* lib/net/http/generic_request.rb
...
(Net::HTTP::GenericRequest#update_uri):
handle scheme, host, and port to reflect connection to @uri.
* lib/net/http.rb (Net::HTTP#begin_transport): move trivial handling
to Net::HTTP::GenericRequest#update_uri.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:10:05 +00:00
naruse
159fa373f8
* lib/net/http/generic_request.rb
...
(Net::HTTP::GenericRequest#initialize):
optimize object allocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:09:43 +00:00
naruse
b6ecbc7055
remove path_query
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:09:08 +00:00
naruse
d7b5ef028b
* lib/uri/generic.rb (URI::Generic#normalize!): use String#empty?
...
* lib/uri/generic.rb (URI::Generic#path_query): optimized.
* lib/uri/generic.rb (URI::Generic#to_s): optimized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:09:05 +00:00
naruse
a5c923f6c1
* lib/uri/http.rb (URI::HTTP#request_uri): optimized.
...
decrease object allocation, and ensure always create at least one new
object for return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:09:01 +00:00
nobu
a98c65338d
rubygems/util.rb: remove unused variable
...
* lib/rubygems/util.rb (Gem::Util.silent_system): remove unused
variable, to fix test failures with verbose flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 13:33:06 +00:00
nobu
8a22a0530e
mkmf.rb: try without -ObjC option
...
* lib/mkmf.rb (have_framework): try without -ObjC option first as
MacPorts GCCs do not support it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-30 16:17:55 +00:00
zzak
747243cc0e
* lib/uri/common.rb: [DOC] [Bug #9563 ] Recommend using URI.escape
...
before parsing a uri to avoid invalid characters. Reported by
Evgeniy Serykh.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-27 21:27:10 +00:00
zzak
ea418dda41
* time.c: [DOC] Clarify %Y in strftime, which can accept any digits
...
and will output at least 4 digits as the year. Reported by Yury
Trofimenko [Bug #8941 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-27 20:58:05 +00:00
zzak
37fd832f3c
* lib/uri/common.rb: [DOC] [Bug #10075 ] Clarify how URI.join arguments
...
are handled by RFC3986, originall reported by John Feminella.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-27 20:34:18 +00:00
hsbt
448c87008e
* lib/cgi/core.rb: remove unused variables.
...
* lib/erb.rb: ditto.
* lib/mkmf.rb: ditto.
* lib/net/http/response.rb: ditto.
* lib/optparse/version.rb: ditto.
* lib/prime.rb: ditto.
* lib/racc/parser.rb: ditto.
* lib/rexml/document.rb: ditto.
* lib/rexml/dtd/dtd.rb: ditto.
* lib/rexml/element.rb: ditto.
* lib/rexml/functions.rb: ditto.
* lib/rexml/parsers/xpathparser.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-27 11:04:28 +00:00
zzak
22e09d1e22
* lib/irb.rb: [DOC] PROMPT_I cannot be nil, patch by @hgillane [ci skip]
...
Fixes documenting-ruby/ruby#37
https://github.com/documenting-ruby/ruby/pull/37
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26 20:13:03 +00:00
hsbt
4b8f0e7637
* lib/shell/command-processor.rb: remove unused variable.
...
* lib/shell/system-command.rb: ditto.
* lib/tmpdir.rb: ditto.
* lib/uri/generic.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26 17:44:07 +00:00
hsbt
25926315ea
* lib/weakref.rb: split executable code into sample directory.
...
* sample/weakref.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26 17:12:11 +00:00
hsbt
6d6bd26270
* lib/delegate.rb: split executable code into sample directory.
...
* sample/delegate.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26 17:11:56 +00:00
nobu
861b7d781e
fix encoding spec
...
"UTF-8" is invalid encoding name in Emacs, use "utf-8" instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25 07:55:58 +00:00