hsbt
2743ad8c25
* lib/net/http.rb (Net::HTTP#send_request): there is no response body
...
with HEAD request. Patch by @rodrigosaito [fix GH-520]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 12:07:04 +00:00
hsbt
73fc0cc572
* lib/webrick/utils.rb: removed unused argument variable.
...
[fix GH-356] Patch by @vipulnsward
* lib/webrick/server.rb: ditto.
* lib/webrick/ssl.rb: ditto.
* test/webrick/test_utils.rb: added test for WEBrick::Utils#create_listeners.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 06:53:12 +00:00
hsbt
045de8a9c5
* lib/securerandom.rb: improve syntax and grammar of documentation.
...
[fix GH-796][ci skip] Patch by @Erol
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 06:36:00 +00:00
akr
ec7f1f5dc2
* lib/resolv.rb (Resolv::DNS::Label::Str#==): Check class equality.
...
(Resolv::DNS::Name#initialize): Normalize labels as
Resolv::DNS::Label::Str objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 00:10:04 +00:00
akr
331b0ac55b
[DOC]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-01 15:49:50 +00:00
nobu
54bd85d19d
resolv.rb: String#b
...
* lib/resolv.rb (Resolv::DNS::Label::Str#initialize): use String#b.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-31 14:59:19 +00:00
akr
6cf00e15f8
* lib/resolv.rb (Resolv::DNS::Label::Str#initialize): Set encoding
...
ASCII-8BIT before downcase. case insensivity of DNS labels doesn't
apply non-ASCII characters. [RFC 4343]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-31 08:50:10 +00:00
akr
e36d40f923
* lib/resolv.rb (Resolv::DNS::Name#==): Compare an array of Label:Str
...
objects. Label#Str#== is case-insensitive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-31 04:45:05 +00:00
nobu
69a7bb31f9
resolv.rb: case-insensitive comparison
...
* lib/resolv.rb (Resolv::DNS::Name#==): DNS is case-insensitive, so the
comparison should be case-insensitive as well.
[ruby-core:66498] [Bug #10550 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-30 07:16:14 +00:00
nobu
a0325ea704
resolv.rb: dots differences
...
* lib/resolv.rb (Resolv::DNS::Name): names with different dots
should be different.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-30 07:03:47 +00:00
duerst
b1cf08496b
lib/uri/common.rb: Initialize HTML5ASCIIINCOMPAT to empty Array
...
to avoid error during bootstrap when encodings are not yet defined. [Bug #10678 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-30 04:17:10 +00:00
hsbt
418328e29b
* lib/unicode_normalize.rb: typo fix. [ci skip]
...
[ruby-dev:48794][misc #10675 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-29 23:57:46 +00:00
nobu
cb5c2f07f1
mkmf.rb: use echo if possible
...
* lib/mkmf.rb (create_makefile): use echo for simple contents.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-28 09:13:21 +00:00
nobu
ce59e249a5
rubygems: fix variable name
...
* lib/rubygems/compatibility.rb: fix out-of-scope local variable.
* lib/rubygems/specification.rb (Gem::Specification#validate): get
rid of conflict between a local variable and a method name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-25 03:37:54 +00:00
normal
aa93c62e3c
lib/uri: performance improvements [misc #10628 ]
...
* lib/uri/generic.rb (split_userinfo): fstring for 1-byte split
(set_port): reduce bytecode size
(check_path): reduce garbage via opt_str_freeze
(query=): ditto
(fragment=): ditto
[misc #10628 ]
* lib/uri/rfc3986_parser.rb (regexp): cache as attr
(initialize): setup and freeze regexp attr once
(split): reduce bytecode size, use opt_str_freeze
(parse): minor bytecode and garbage reduction
(default_regexp): rename for initialize
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-24 23:50:37 +00:00
usa
15f9e16c5b
* lib/open-uri.rb (OpenURI.open_http): refactoring of r48941.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-24 09:11:05 +00:00
naruse
0f7e301fe1
* lib/net/http/response.rb (Net::HTTPResponse): require one or more
...
spaces [Bug #10591 ].
by leriksen <leif.eriksen.au@gmail.com>
https://github.com/ruby/ruby/pull/782 fix GH-782
NOTE: graph.facebook.com returns without SP Reason-Phrase.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-23 18:10:19 +00:00
usa
7e9175e3d9
* lib/open-uri.rb (OpenURI.open_http): accept multiple certs path in
...
ssl_ca_certs.
* tool/downloader.rb: use certs of rubygems for downloading gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-23 15:06:40 +00:00
naruse
30fef86b38
* lib/uri/generic.rb (URI::Generic#query=): don't escape [\]^
...
on both rfc2396 and rfc3986. [Bug #10619 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-23 13:11:43 +00:00
akr
8b5c7d939d
* lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1.
...
[ruby-core:66943] [Bug #10616 ] Fixed by Alex Slynko.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-20 08:58:07 +00:00
nobu
9e52416cd3
erb: set variables from the command line
...
* bin/erb (ARGV.switch, ERB::Main#run): allow variables to be set
from the command line. [ruby-core:65772] [Feature #10395 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-12 10:48:57 +00:00
nobu
e82f4195d4
erb: lineno and location setters
...
* lib/erb.rb (ERB#lineno): accessor for line number to eval.
* lib/erb.rb (ERB#location=): setter of file name and line number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-12 10:31:47 +00:00
marcandre
0eebb8f1c0
* lib/prime.rb: Remove useless loop and block capture.
...
See [#10354 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-10 20:38:13 +00:00
nobu
c63800069b
known_classes.rb: remove DL
...
* lib/rdoc/known_classes.rb: reverted regression changes of rdoc
known class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-07 03:40:58 +00:00
svn
4b0ebe8fd0
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-07 01:22:51 +00:00
drbrain
4260aa1dc3
* lib/rdoc: Update to RDoc 4.2.0.
...
* test/rdoc: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-07 01:22:37 +00:00
svn
7d2d6d0a2f
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-07 00:53:20 +00:00
drbrain
97f80207d0
* lib/rubygems: Update to RubyGems 2.4.5.
...
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-07 00:53:01 +00:00
shugo
a0b80a4410
* lib/net/imap.rb: Fix undefined variable usage & refactor/DRY
...
code. Patch by @aledovsky. [Fixes GH-770]
* test/net/test_imap.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-06 01:13:45 +00:00
hsbt
e2bbfaa67c
* lib/rake: Update to rake 10.4.2
...
* test/rake: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-06 00:22:51 +00:00
usa
d2cee7828c
* lib/pp.rb (File::Stat#pritty_print): some platforms (such as Windows)
...
does not have major/minor parts of device.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-05 19:35:19 +00:00
naruse
e1606f920b
* lib/uri/generic.rb (URI::Generic.build):
...
use hostname= to detect and wrap IPv6 hosts.
Build is accepting URI components and users may not expect
that a host component needs to be wrapped with square brackets
since it's not providing a URI.
Note: initialize with arg_check => true does not wrap IPv6 hosts.
by Joe Rafaniello <jrafanie@redhat.com>
https://github.com/ruby/ruby/pull/765 fix GH-765
* test/uri/test_generic.rb: Add more tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-01 17:36:54 +00:00
marcandre
969057c95a
* lib.matrix.rb: Fix typo. Patch by Dimitrios Zorbas. [GH-772]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 01:03:46 +00:00
akr
0eadc632c1
* lib/tsort.rb: Returns an enumerator if no block is given.
...
[ruby-core:66270] [Feature #10508 ] Proposed by Andrey Savchenko.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 10:46:50 +00:00
naruse
c7855be25c
use clock_gettime to avoid object creation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 08:22:35 +00:00
drbrain
711ece42cd
* lib/net/http.rb: Do not attempt SSL session resumption when the
...
session is expired. [Bug #10533 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25 07:09:48 +00:00
svn
975bfe0a4d
* append newline at EOF.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25 07:03:55 +00:00
drbrain
3908d5d330
* lib/rake: Update to rake 10.4.0
...
* test/rake: ditto.
* NEWS: ditto.
* test/lib/minitest/unit.rb: Add compatibility shim for minitest 5.
This only provides minitest 5 unit test naming compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25 07:03:36 +00:00
nobu
5aa9eb4616
elementdecl.rb: suppress warnings
...
* lib/rexml/dtd/elementdecl.rb (PATTERN_RE): comment out overridden
constant, and '_' is included in '\w'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-23 00:00:38 +00:00
tenderlove
570c028c7e
* lib/resolv.rb: fall back if canonicalization fails.
...
Thanks Vit Ondruch for the patch! [ruby-core:65836]
* test/resolv/test_dns.rb: test for patch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-21 20:04:27 +00:00
usa
9bbfca81ea
* lib/net/imap.rb (Net::IMAP::ResponseParser::BEG_REGEXP): no need to use embbed
...
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-20 15:29:51 +00:00
usa
0a71befc6b
* lib/uri/mailto.rb (URI::MailTo::EMAIL_REGEXP): should escape `#`.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-20 15:19:17 +00:00
marcandre
387e0dbe3f
* lib/matrix.rb: Vector#independent? and associated class method
...
patch by gogo tanaka [#10451 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-19 17:44:46 +00:00
marcandre
4da89e192a
* lib/matrix.rb: Add Vector#angle_with
...
Patch by Egunov Dmitriy [#10442 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-19 17:32:58 +00:00
hsbt
d35a2bd4df
* lib/rubygems/*, test/rubygems/*: Update to RubyGems 2.4.4
...
master (2f6e42e).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-17 03:55:02 +00:00
nobu
1133596e6b
timeout.rb: same object across fiber
...
* lib/timeout.rb (Timeout::ExitException.catch): do not freeze the
exception for tag, so that the same object can be passed to the
target fiber without duplication to attach backtrace at raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-17 03:42:49 +00:00
nobu
f45e0d537f
timeout.rb: use UncaughtThrowError
...
* lib/timeout.rb (Timeout::ExitException#exception): rescue
UncaughtThrowError which is specific for throw, instead of
ArgumentError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-16 10:11:08 +00:00
usa
46ce7c436a
* lib/mkmf.rb (depend_rules): support comments during a line.
...
* lib/mkmf.rb (depend_rules): apply RULE_SUBST even if the dependency
file contains path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-15 10:51:11 +00:00
usa
c93dd36e0e
revert previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-15 10:46:38 +00:00
usa
b5cda0ffb6
* lib/mkmf.rb (depend_rules): support comments during a line.
...
* lib/mkmf.rb (depend_rules): apply RULE_SUBST even if the dependency
file contains path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-15 10:43:12 +00:00
svn
5a79fda5b4
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-13 16:32:45 +00:00
shugo
772e9778fb
* lib/net/imap.rb (search_response): parse MODSEQ in SEARCH
...
responses properly. [ruby-core:64203] [Bug #10112 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-13 16:32:15 +00:00
nagachika
2e8f953d68
* lib/rexml/document.rb: add REXML::Document#document.
...
reported by Tomas Hoger <thoger@redhat.com> and patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-13 13:29:50 +00:00
hsbt
bb6b37a9bc
* lib/rubygems/*: Update to RubyGems 2.4.3 master (7b1f684).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-12 13:30:58 +00:00
nobu
b65b392e96
tables.rb: add
...
* lib/unicode_normalize/tables.rb: commit not to download and
convert Unicode data files every time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-11 17:41:53 +00:00
naruse
05eb6111d9
* lib/rubygems/commands/contents_command.rb (files_in_default_gem):
...
remove useless sort. show_files will sort the result and
another branch, files_in_gem, doesn't sort.
it should be removed for consistency.
* test/rubygems/test_gem_commands_contents_command.rb
(test_execute_default_gem): adjust the sort algorithm with
Gem::Commands::ContentsCommand#show_files, which sort items
as array of [prefix, basename] not strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-11 05:08:59 +00:00
hsbt
d5b7a701eb
* lib/rdoc/known_classes.rb: reverted regression changes of
...
rdoc known class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-11 00:39:00 +00:00
akr
33bb38a644
* lib/webrick/server.rb: Setup shutdown pipe in listen method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-10 11:05:00 +00:00
hsbt
e899fb19e9
* lib/rubygems/*.rb: Update to RubyGems master(3e36528).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-10 07:20:48 +00:00
hsbt
8cba9dccf6
* lib/rdoc/*.rb: Update to RDoc 4.2.0.alpha(579a11c)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-10 05:59:34 +00:00
akr
230fb3ceae
* lib/webrick/server.rb: Less instance variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-10 03:46:22 +00:00
akr
e62fe866e5
* lib/webrick/server.rb (shutdown): Use close() on @shutdown_pipe_w to
...
notify readability on the read side of the pipe.
write_nonblock() is not usable for pipe on Windows.
(cleanup_shutdown_pipe): Rescue IOError for @shutdown_pipe_w.close.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-10 03:20:06 +00:00
akr
2a9ea11355
* lib/webrick/server.rb (initialize): Initialize shutdown pipe here
...
to avoid race condition.
(cleanup_shutdown_pipe): New private method.
(cleanup_listener): Extracted from shutdown method.
Call this method from start method to avoid race condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 23:03:40 +00:00
akr
0d07bc203c
* lib/webrick/httpstatus.rb: require webrick/accesslog for AccessLog.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 13:29:08 +00:00
nobu
9b559f194c
normalize.rb: fix syntax error
...
* lib/unicode_normalize/normalize.rb (normalized): fix syntax
error, `when` clase allows `*` but not `**`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 10:01:37 +00:00
duerst
62b511b6aa
lib/unicode_normalize/normalize.rb: Replaced if-else by case in self.normalized? in parallel to r48309.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 09:33:36 +00:00
nobu
93ccab82c5
securerandom.rb: separate implementations
...
* lib/securerandom.rb (SecureRandom.gen_random): separate
implementation details and select at the load time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 03:16:24 +00:00
nobu
7d7bdcc5c6
securerandom.rb: fix substring of FormatMessage result
...
* lib/securerandom.rb: set the script encoding to make a string
literal in SecureRandom::Kernel32.last_error_message single byte
encoding so msg[] works in bytes, since FormatMessage() returns
the size in TCHARs, not in characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 01:31:05 +00:00
usa
dc79945a2b
* lib/securerandom.rb (initialize): call the special method for Win32
...
before cheking `/dev/urandom` because we know windows doesn't have it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-08 20:01:24 +00:00
usa
6999a86600
* lib/securerandom.rb: more refactoring.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-08 19:59:01 +00:00
usa
b2247be993
* lib/securerandom.rb (SecureRandom::AdvApi32): split from `initialize`.
...
thanks @zzak to remember it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-08 19:02:48 +00:00
nobu
d436c05163
unicode_norm_gen.tmpl: expand kompatible_table
...
* template/unicode_norm_gen.tmpl: expand kompatible_table so that
recursive expansion is not needed at runtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-06 15:00:24 +00:00
nobu
b8788417f0
normalize.rb: trivial optimizations
...
* lib/unicode_normalize/normalize.rb (nfc_one, normalize): trivial
optimizations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-06 15:00:17 +00:00
nobu
64034372b7
normalize.rb: explicit separator
...
* lib/unicode_normalize/normalize.rb (canonical_ordering_one):
use explicit separator, not to depend on $,.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-06 15:00:14 +00:00
normal
f83116e620
lib/uri/rfc2396_parser.rb (initialize): reduce bytecode size
...
Reduce the initialize method from 2088 to 1332 bytes on 32-bit x86
Measurement obtained using `memsize_of_all', as `memsize_of'
is non-recursive:
a = ObjectSpace.memsize_of_all(RubyVM::InstructionSequence)
RubyVM::InstructionSequence.compile(src)
b = ObjectSpace.memsize_of_all(RubyVM::InstructionSequence)
p(b - a)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-06 01:14:15 +00:00
duerst
2b7f0289f8
lib/unicode_normalize/normalize.rb: Comment clarification. [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-05 23:49:55 +00:00
akr
a0e4956dce
* lib/webrick/server.rb: Stop lisntner loop properly.
...
[ruby-core:66085] [Bug #10478 ] Fixed by Charles Nutter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-05 10:24:53 +00:00
nobu
7fecd1e75d
cpu_counter.rb: separate implementations
...
* lib/rake/cpu_counter.rb (Rake::CpuCounter#count): separate
Etc.nprocessors implementation, and if is is available other
utility methods are never used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-05 05:19:15 +00:00
usa
07f460829a
* lib/securerandom.rb (SecureRandom.random_bytes): use fiddle directly
...
instead of using Win32API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-04 12:20:59 +00:00
svn
ab337e61ec
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-04 03:21:53 +00:00
hsbt
934789941e
* lib/csv.rb: added documentation for skip_blanks option by @decasia
...
[fix GH-744][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-04 03:21:50 +00:00
hsbt
91dd80fac7
* lib/open3.rb: fix code formatting in documentation by @JoshCheek
...
[fix GH-747][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-04 03:09:28 +00:00
naruse
21ab98a997
* lib/uri/rfc3986_parser.rb (URI::RFC3986_Parser::RFC3986_URI):
...
allow '[' and ']' for URI input (and escape). [Bug #10402 ]
* lib/uri/generic.rb (URI#query=): escape '[', '\', and ']'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-03 00:33:47 +00:00
naruse
167dd87d36
bump URI::VERSION to 0.10.0
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-03 00:33:44 +00:00
tenderlove
07308c4d30
* ext/dl/*: remove DL as it is replaced by Fiddle.
...
[Feature #5458 ] Thanks to Jonan Scheffler <jonanscheffler@gmail.com>
for this patch
* test/dl/*: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-31 21:13:09 +00:00
knu
a87c88bcd4
Document that Net::IMAP#fetch will return nil instead of an emtpy array.
...
* lib/net/imap.rb (Net::IMAP#fetch): [DOC] Document that
Net::IMAP#fetch will return nil instead of an emtpy array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-31 07:36:31 +00:00
marcandre
aa87ea9915
* lib/matrix.rb: Generalize Vector#cross_product to arbitrary dimensions
...
based on a patch by gogo tanaka [#10074 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-29 02:43:52 +00:00
marcandre
764524f65b
* lib/matrix.rb: Add Matrix#adjucate
...
patch by gogo tanaka [#10056 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-29 02:43:28 +00:00
marcandre
dc38c87779
* lib/matrix.rb: Add aliases for Vector#cross & dot
...
patch by gogo tanaka [#10352 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-29 02:42:56 +00:00
usa
9cdd297a29
* lib/rexml/entity.rb: keep the entity size within the limitation.
...
reported by Willis Vandevanter <will@silentrobots.com> and
patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-27 11:18:02 +00:00
duerst
4fda619836
lib/unicode_normalize/normalize.rb: added US_ASCII
...
as trivially supported encoding (is always normalized,
and may appear mixed in with UTF-8 or other Unicode
encodings).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-25 11:09:08 +00:00
nobu
26143970c1
rake/cpu_counter.rb: use Etc.nprocessors
...
* lib/rake/cpu_counter.rb (count): prefer Etc.nprocessors, which
is hundreds times faster.
* test/rake/test_rake_cpu_counter.rb: add tests for features, and
remove useless tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-25 03:52:46 +00:00
kou
93647e81a6
* lib/rexml/source.rb (REXML::IOSource#encoding_updated): Fix a
...
bug that can't parse XML correctly when
Encoding.default_internal is different with XML
encoding. REXML::Source converts XML encoding on read. So IO
should not convert XML encoding.
Based on patch by NAKAMURA Usaku.
[ruby-dev:48686] [Bug #10418 ]
* test/rexml/test_encoding.rb
(REXMLTests::EncodingTester#test_parse_utf16_with_utf8_default_internal):
Add the for the above case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-23 08:23:10 +00:00
nobu
696141dab4
lib/unicode_normalize/tables.rb: remove auto generated file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-21 13:48:05 +00:00
duerst
5c27164d59
lib/unicode_normalize/tables.rb: Committing to make version
...
update easier and more predictable, and reducing compilation
time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-21 08:12:20 +00:00
duerst
7415796ca3
lib/unicode_normalize/normalize.rb: Added comment to point to
...
relevant portion of Unicode standard for Hangul (de)composition
identifiers and algorithm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-21 06:56:58 +00:00
usa
89ac936266
* lib/mkmf.rb: no need to convert path separator for COPY because it's
...
ruby -run cp and it can treat '/' on any platform.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20 14:21:18 +00:00
nobu
e64a3869bc
unicode_normalize/normalize.rb: rename variable
...
* lib/unicode_normalize/normalize.rb (hangul_decomp_one): use more
descriptive name. leave [SLVT]BASE and [LVTNS]COUNT as they are
vague names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20 11:50:00 +00:00
duerst
acaafe2101
lib/unicode_normalize.rb: revert r48046. The s in sIndex
...
is not hungarian notation. The variable name sIndex is
directly taken from the relevant part of the Unicode
Standard, where it is written SIndex and stands for
'syllable index'. See pp. 144/145 of
http://www.unicode.org/versions/Unicode7.0.0/ch03.pdf .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20 10:06:11 +00:00
nobu
6948188f38
unicode_normalize/normalize.rb: remove prefix
...
* lib/unicode_normalize/normalize.rb (hangul_decomp_one): remove
system hungarian prefix, nonsense in ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20 05:01:02 +00:00
nobu
7f652dc6cf
unicode_normalize/normalize.rb: simplify
...
* lib/unicode_normalize/normalize.rb (NF_HASH_{D,C,K}): remove
first element by Hash#shift.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20 05:00:58 +00:00
nobu
3a2f81cf9a
unicode_normalize/normalize.rb: remove unnecessary module names
...
* lib/unicode_normalize/normalize.rb (UnicodeNormalize): use self
instead of module name and remove module name if unnecessary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20 05:00:46 +00:00
duerst
ce351cf0a7
lib/unicode_normalize.rb: removing unnecessary 'self'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20 03:46:50 +00:00
duerst
0fe8051252
lib/unicode_normalize.rb: (unicode_normalize!): change method names
...
in commented-out code. Followup to r48027.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-20 03:37:39 +00:00
nobu
51af3be356
lib/unicode_normalize.rb: remove BOMs
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 15:29:58 +00:00
nagachika
3f8211a113
* lib/unicode_normalize.rb: (unicode_normalize!): change method name.
...
catch up the method name change at r48014. [Feature #10084 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 14:34:20 +00:00
duerst
8c722a9a1e
lib/unicode_normalize/normalize.rb: Added a missing file extension in require statement.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 09:35:45 +00:00
duerst
d72053c0a3
lib/unicode_normalize.rb: Changed to dynamic loading of actual normalization code and tables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 08:54:08 +00:00
duerst
281bfbd9cd
lib/unicode_normalize.rb: Small documentation fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 08:37:40 +00:00
duerst
f83c0b0ae7
lib/unicode_normalize.rb: Added documentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 08:26:35 +00:00
duerst
982f0de141
tool/unicode_norm_gen.rb, lib/unicode_normalize.rb:
...
File name change from lib/unicode_normalize/normalize_tables.rb
to lib/unicode_normalize/tables.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 02:09:13 +00:00
duerst
dfb68b3d21
lib/unicode_normalize.rb: Changing method names, see https://bugs.ruby-lang.org/issues/10084#note-7
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 01:12:26 +00:00
duerst
588bbfd1b4
lib/unicode_normalize.rb: Changing module name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 01:10:12 +00:00
duerst
b95ec57da2
lib/unicode_normalize.rb: Changing require statement, adjusting copyright.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 01:08:13 +00:00
duerst
e4f71908d6
lib/unicode_normalize.rb: Importing from
...
https://github.com/duerst/eprun/blob/master/lib/string_normalize.rb .
(removing trailing whitespace, fixing EOLs and adding EOL property)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 01:04:10 +00:00
svn
4bf30d2944
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 00:48:55 +00:00
duerst
4c769ce021
lib/unicode_normalize/normalize.rb: Changed module name, adjusted copyright.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 00:48:52 +00:00
svn
d64dc54e0c
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 00:38:53 +00:00
duerst
6017de0314
lib/unicode_normalize/normalize.rb: Importing from
...
https://github.com/duerst/eprun/blob/master/lib/normalize.rb .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-19 00:38:40 +00:00
hsbt
8d7fa2291c
* lib/xmlrpc/parser.rb: added new parser class using libxml-ruby gem.
...
[Feature #9379 ][ruby-core:59633]
* lib/xmlrpc/config.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-13 08:53:16 +00:00
akr
c66506ef24
* lib/find.rb (Find.find): Call to_path for arguments to obtain
...
strings.
[ruby-core:63713] [Bug #10035 ] Reported by Herwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-13 07:34:23 +00:00
normal
9559b04e3d
open-uri: accept :open_timeout option
...
* lib/open-uri.rb (OpenURI::Options): add :open_timeout default
* (def OpenURI.open_http): check :open_timeout option
* (module OpenURI): rdoc for :open_timeout
* test/open-uri/test_open-uri.rb (test_open_timeout): new test
[Feature #10361 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-10 19:15:56 +00:00
nobu
c88c049ed1
mkmf.rb: translate to assembler
...
* lib/mkmf.rb (create_makefile): add rules to translate to
assembler sources.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-08 01:38:32 +00:00
naruse
6041af45a3
* lib/uri/generic.rb (URI#inspect): remove Object id.
...
URI is considered that it doesn't require id.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 22:48:06 +00:00
marcandre
a2ae7bccf8
* lib/matrix.rb: Add @- and @+ for Matrix and Vector.
...
patch by gogo tanaka [#10068 ] [#10069 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 20:18:35 +00:00
normal
9bb7dfa247
normalize reference to Timeout::Error
...
From: John Bachir <j@jjb.cc>
* bootstraptest/test_io.rb (assert_finish):
normalize rescue for Timeout::Error
* lib/net/ftp.rb (Net#read_timeout): ditto for doc
* lib/resolv.rb (Resolv::ResolvTimeout): ditto for subclass
* lib/webrick/httprequest.rb (_read_data): ditto for rescue
* sample/timeout.rb (p timeout): ditto for call
* test/drb/drbtest.rb (test_06_timeout): ditto
* test/ruby/test_readpartial.rb (test_open_pipe): ditto
* test/thread/test_queue.rb (test_queue_thread_raise): ditto
* thread.c (rb_thread_s_handle_interrupt): ditto for doc
[ruby-core:65481] [misc #10339 ]
TimeoutError is a legacy constant, Timeout::Error is the canonical constant.
This patch normalizes all code and comments to reference Timeout::Error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 20:00:09 +00:00
marcandre
56d5728589
* lib/matrix.rb: Add Matrix#laplace_expansion.
...
patch by gogo tanaka [#10073 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 19:30:48 +00:00
marcandre
eb9c3e7120
* lib/matrix.rb: Add Vector.basis.
...
Based on patch by gogo tanaka [#10072 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 19:29:53 +00:00
marcandre
5b46b07bf3
* lib/matrix.rb: Add hstack & vstack methods.
...
Based on a patch by creasywuqiong. [Fix GH-344]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 03:44:20 +00:00
marcandre
f59098d118
* lib/matrix.rb: Fix Matrix.rows copy bug.
...
Patch by Arron Mabrey. [Fix GH-707]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 03:38:06 +00:00
drbrain
cec4f5a9e0
* lib/rubygems: Update to RubyGems 2.4.2.
...
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 08:30:21 +00:00
glass
a4645e5612
* lib/uri/rfc3986_parser.rb: raise URI::InvalidURIError when
...
uri doesn't respond to #to_str. [ruby-core:64453] [Bug #10150 ]
* test/uri/test_parser.rb: test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-27 03:13:22 +00:00
ayumin
1ddf81134b
* lib/matrix.rb: Fix docs. Patched by Ben Woodall. [GH-726]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-24 22:54:10 +00:00
nobu
2e2522ecdf
tmpdir.rb: explicit conversion to string
...
* lib/tmpdir.rb (Dir::Tmpname#make_tmpname): convert prefix and
suffix to strings explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-22 04:44:19 +00:00
akr
6a7d389ed0
* lib/drb/drb.rb: Support graceful shutdown.
...
(DRbTCPSocket#initialize): Create a pipe for shutdown notification.
(DRbTCPSocket#close): Invoke close_shutdown_pipe.
(DRbTCPSocket#close_shutdown_pipe): New private method.
(DRbTCPSocket#accept): Use accept_or_shutdown.
(DRbTCPSocket#accept_or_shutdown): New private method which returns
nil on shutdown.
(DRbServer#stop_service): Use shutdown instead of Thread#kill.
(DRbServer#run): Break infinite loop when main_loop returns nil.
(DRbServer#main_loop): @protocol.accept may return nil.
* lib/drb/ssl.rb: Follow above change.
* lib/drb/unix.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-21 17:06:05 +00:00
glass
5be5db6350
* lib/csv.rb: avoid unnecessary object allocations.
...
patch is from Andrew Vit. [ruby-core:63215] [Feature #9952 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-21 03:21:17 +00:00
hsbt
be1206c0ac
* lib/rexml/**/*.rb: removed commented-out code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-21 03:10:27 +00:00
nobu
a718be06fa
tempfile.rb: fix r47655
...
* lib/tempfile.rb (Tempfile#initialize, Tempfile.create): get rid of
shadowing local variables.
* lib/tmpdir.rb (Dir::Tmpname#make_tmpname): simlify argument
splitting.
* test/test_tempfile.rb: need thread library for ConditionVariable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-21 01:40:21 +00:00
glass
09e91be9ab
* lib/tempfile.rb: define parameters appropriately and some
...
refactoring.
* lib/tmpdir.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-20 17:35:06 +00:00
naruse
e37aab94da
* lib/uri/rfc3986_parser.rb: specify a regexp for :OPAQUE; generic.rb
...
assumes it is present, and will refuse all values otherwise.
by Matthew Draper <matthew@trebex.net>
https://github.com/ruby/ruby/pull/718 fix GH-718
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-17 14:15:03 +00:00
hsbt
4de117a615
* lib/rubygems: Update to RubyGems 2.4.1 master(713ab65)
...
Complete history at:
https://github.com/rubygems/rubygems/blob/master/History.txt#L3-L216
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-14 03:30:02 +00:00
normal
b8eec6b691
lib/benchmark.rb: remove CLOCK_MONOTONIC_RAW support
...
In addition to being unaffected by _offset_ correction,
CLOCK_MONOTONIC_RAW is also unaffected by _frequency_ correction,
making it unsuitable for measuring real time on systems where the
clock is always running too fast or slow.
CLOCK_MONOTONIC (without _RAW) is the correct clock, as it is unaffected
by _offset_ correction (due to human error or battery replacement), but
still takes _frequency_ correction into account for clocks which
consistently run too fast or slow.
Thanks to Vít Ondruch for reporting the issue on ARM [Bug #10202 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-11 08:09:07 +00:00
hsbt
80325bab52
* lib/rdoc.rb, lib/rdoc, test/rdoc: Update to RDoc 4.2.0.alpha( 21b241a
)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-11 01:03:22 +00:00
nobu
097c3e9cbb
mkmf.rb: -I flags to $INCFLAGS
...
* lib/mkmf.rb (MakeMakefile#pkg_config): separate -I flags to
$INCFLAGS, which is used by CPP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-09 00:27:34 +00:00
nobu
5be82d1487
mkmf.rb: --cflags to $CXXFLAGS
...
* lib/mkmf.rb (MakeMakefile#pkg_config): append --cflags to also
$CXXFLAGS, as they are often used by C++ compiler.
[ruby-core:54532] [Bug #8315 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-09 00:02:08 +00:00
svn
ac231ef271
* append newline at EOF.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-06 09:31:52 +00:00
hsbt
f6d2b48588
* lib/rake.rb, lib/rake/*, test/rake/*: Update latest rake master(e47d023)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-06 09:31:37 +00:00
zzak
f0ee1e67d3
* lib/rdoc/generator/template/darkfish/js/jquery.js: Backport
...
rdoc/rdoc@74f60fcb04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-05 23:46:11 +00:00
hsbt
925ac7ade7
* lib/shellwords.rb: proofreading documentation.
...
[Bug #10155 ][ruby-core:64471]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-05 10:00:46 +00:00
hsbt
8fada42082
* lib/rdoc/generator/pot/po.rb: fixed broken tests for trailing whitespace.
...
* test/rdoc/test_rdoc_generator_pot.rb: ditto.
* test/rdoc/test_rdoc_generator_pot_po.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-05 02:10:17 +00:00
svn
ce18f59a93
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-05 01:41:44 +00:00
hsbt
d42d6e690e
* lib/rdoc.rb, lib/rdoc, test/rdoc: Update to RDoc 4.2.0.alpha(313287)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-05 01:41:25 +00:00
akr
8bd2d31d45
* lib/benchmark.rb: Fix a syntax error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-31 07:59:12 +00:00
nobu
cf990c5ace
benchmark.rb: Process::CLOCK_MONOTONIC_RAW may be unavailable
...
* lib/benchmark.rb (BENCHMARK_CLOCK): Process::CLOCK_MONOTONIC_RAW
is not supported on old linux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-31 06:05:43 +00:00
nobu
4274b7975e
benchmark.rb: prefer Process::CLOCK_MONOTONIC_RAW
...
* lib/benchmark.rb (BENCHMARK_CLOCK): prefer Process::CLOCK_MONOTONIC_RAW
if available to more accurate measure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-30 06:15:22 +00:00
glass
c4ad649e07
* lib/tempfile.rb: remove "require 'thread'". its features are no
...
longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-27 14:36:25 +00:00
hsbt
e47fec1f86
* lib/drb/acl.rb: Removed meaningless #to_s methods in interpolation.
...
[Feature #10174 ][ruby-core:64584]
* lib/erb.rb: ditto.
* lib/observer.rb: ditto.
* lib/rake/invocation_chain.rb: ditto.
* lib/rubygems/command_manager.rb: ditto.
* lib/rubygems/config_file.rb: ditto.
* lib/uri/common.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-27 12:21:41 +00:00
hsbt
3e8515bf36
* lib/drb/drb.rb: use attr_reader instead of Module#attr.
...
[Feature #10172 ][ruby-core:64582]
* lib/irb/ruby-token.rb: ditto.
* lib/net/telnet.rb: ditto.
* lib/rdoc/ruby_token.rb: ditto.
* lib/thwait.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-27 12:10:21 +00:00
nobu
63683cb46d
lib/mathn.rb: remove built-in methods
...
* lib/mathn.rb (Fixnum#**, Bignum#**, Float#**, Rational#**):
remove as these are now built-in. [ruby-core:63973] [Bug #10086 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-26 12:07:57 +00:00
hsbt
1f48a3382b
* lib/shell/process-controller.rb: removed commented-out code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-26 02:44:26 +00:00
hsbt
f4e5a6f083
* lib/thwait.rb (ThreadsWait): removed needless constant.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-26 02:39:43 +00:00
hsbt
fb66bf2dd8
* lib/mathn.rb: mathn library is deprecated on ruby 2.2.
...
[Feature #10169 ][ruby-core:64553]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-26 00:31:00 +00:00
hsbt
daa90738c4
* lib/mathn.rb: removed commented-out code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-26 00:25:27 +00:00
nobu
682f3a7881
uri/common.rb: use negative look-ahead
...
* lib/uri/common.rb (URI.decode_www_form_component): use negative
look-ahead instead of nested repeat operators, to get rid of
backtrack explosion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-25 07:29:50 +00:00
nobu
2bded596ec
logger.rb: simplify
...
* lib/logger.rb (format_datetime): simplify and freeze the default
format so that it can be shared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-25 04:03:33 +00:00
nobu
51560a8737
lib/logger.rb: use %N
...
* lib/logger.rb (format_datetime): use "%6N" to show microsecond.
[Fix GH-704]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-25 03:56:53 +00:00
hsbt
2afed6ecef
* lib/e2mmap.rb: remove needless instance variables.
...
* lib/irb.rb: ditto.
* lib/irb/**/*.rb: ditto.
* lib/shell.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-24 07:16:25 +00:00
normal
03fa0c4986
lib/benchmark.rb (measure): reduce allocations as in r47260
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-24 02:10:28 +00:00
normal
249bd1ed2a
lib/benchmark.rb: speedup by reducing allocations
...
* lib/benchmark.rb (module Benchmark): define BENCHMARK_CLOCK
(realtime): use Process.clock_gettime(BENCHMARK_CLOCK)
[Feature #10165 ]
* test/benchmark/test_benchmark.rb (test_realtime_output): new test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-24 02:03:06 +00:00
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