nobu
eb86567b69
* lib/rdoc/parser/ruby.rb (RDoc#make_message): no empty lines.
...
* lib/rdoc/stats.rb (RDoc::Normal#print_file): send to stdout and
flush always
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 16:50:14 +00:00
nobu
e654e593a5
* lib/rdoc/parser/ruby.rb (RDoc#error): get rid of magic number.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 16:45:47 +00:00
nobu
58a93ce441
* lib/rdoc/class_module.rb (RDoc#merge): get rid of stack overflow.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 15:03:18 +00:00
nobu
232ced7342
* lib/rdoc/parser/c.rb (RDoc#handle_method): see source files in
...
source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 13:28:10 +00:00
nobu
166fedb45d
* lib/rdoc/rdoc.rb: reverted r27186 to add generators.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 13:13:45 +00:00
nobu
aae8b872d5
* lib/rdoc/rdoc.rb (RDoc::Generator): defer by autoload.
...
* lib/rdoc/generator/darkfish.rb: use normal library instead of
gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 05:43:27 +00:00
nobu
104ff6089d
* lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): don't branch by
...
RUBY_VERSION. reapplied r24990.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 05:26:38 +00:00
nobu
2df7054c30
* lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): emacs local variables
...
are delimited by a semicolon. supported Vim style. reapplied
r24988 with fixing a typo for shebang.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 05:24:33 +00:00
nobu
30527783c7
* lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): parse also rdoc
...
files. reapplied r24976.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 05:17:01 +00:00
nobu
8d3537a85c
* lib/rdoc/parser/c.rb: fixed a small error in the documentation.
...
[ruby-core:24744] reapplied r24395.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 05:14:39 +00:00
nobu
06adf90ab6
* lib/rdoc/parser.rb (RDoc::Parser.binary?): blksize may be nil
...
and is irrelevant to whether a file is binary. TAB and newlines
would be usually considered to be included in text data.
reapplied r23071 and r24297.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 05:12:31 +00:00
nobu
5bdee08c1e
* lib/rdoc/ri/paths.rb (RDoc::RI::Paths): Gem::Enable has been
...
obsolete. reapplied r24599.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 04:59:27 +00:00
nobu
6a08bd9624
* lib/rdoc/ri/paths.rb: follows $ridir. reapplied r23554.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 04:57:16 +00:00
nobu
6926a10297
* lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): expand_path deals with
...
platform dependent envirionments. reapplied r21312.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 04:52:03 +00:00
nobu
2553a96f9e
* {lib,test}/rdoc: removed trailing spaces. reapplied r22784.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 04:40:47 +00:00
usa
10547e3c41
* lib/rdoc/parser.rb (binary?): regression.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 03:53:01 +00:00
marcandre
5ef335319e
* lib/matrix.rb: Matrix.determinant: raise on rectangular matrices
...
[ruby-core:28271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:06:08 +00:00
marcandre
729941da39
* lib/matrix.rb: New Complex instance methods:
...
conjugate, conj, imaginary, imag, real, real?, rectangular, rect
[ruby-core:26285]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:05:11 +00:00
marcandre
277cb36b21
* lib/matrix.rb: New methods Matrix#each, #each_with_index, and
...
include Enumerable [ruby-core:28400]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:04:14 +00:00
marcandre
af6e31b344
* lib/matrix.rb (empty): Reject negative sizes
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:03:15 +00:00
marcandre
fac245828b
* lib/matrix.rb: New method #empty? [ruby-core:26284]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:02:27 +00:00
marcandre
39aad8fa83
* lib/matrix.rb: removed compare_by*, inspect_org, cf [ruby-core:26268]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:01:45 +00:00
drbrain
46580b5147
Import RDoc 2.5
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 07:45:16 +00:00
naruse
2067e4eb30
* lib/scanf.rb: support %a format. [ruby-dev:40650]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 04:32:22 +00:00
keiju
6ca6efc246
* lib/irb.rb: suppoort [Feature#988], [ruby-core:21177].
...
* lib/irb/context.rb: fix Context#verbose?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 13:03:23 +00:00
nobu
f1330fd124
* ext/psych/lib: moved external library dependent files from lib.
...
[ruby-core:29129]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 10:46:06 +00:00
tenderlove
797f482fe8
* lib/psych.rb: Fix problem with empty and white-space only strings.
...
Thanks Peter McLain!
* test/psych/test_psych.rb: tests for change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 23:57:25 +00:00
tenderlove
c294fcc0ab
* lib/psych.rb: documentation updates. Thanks Peter McLain!
...
* lib/psych/{coder,tree_builder}.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 20:33:22 +00:00
keiju
cd492563f8
* lib/matrix.rb(Vector#each2, Vector#collect2): add type check for
...
Integer[Bug #2495 ].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 11:27:03 +00:00
nobu
b1b3e13570
* lib/optparse.rb (Numeric): accept rationals.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 09:10:12 +00:00
nobu
d0cb5c71ce
* lib/tempfile.rb (Tempfile#open): re-open with same mode and
...
options as initialize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 06:11:48 +00:00
tenderlove
b9b923ca94
* ext/psych/*: importing Psych to trunk
...
* test/psych/*: ditto
* lib/psych/*: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-28 21:49:37 +00:00
naruse
1720e7e0df
* lib/scanf.rb: fix max width modifier for %f.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-28 04:26:42 +00:00
ryan
1392791a9e
Imported minitest 1.6.0 r5717.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-28 01:37:07 +00:00
naruse
63dd50961e
* lib/scanf.rb: fix %[egEFG] isn't accept.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-28 00:56:35 +00:00
tenderlove
1a80b5c01f
* lib/yaml.rb: adding deprecation notices to YAML methods
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-26 04:01:11 +00:00
tenderlove
f82b8e76e8
* lib/yaml/basenode.rb: deprecating YPath methods
...
* lib/yaml/stream.rb: deprecating YAML::Stream#edit
* test/yaml/test_yaml.rb: requiring yaml/ypath for tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-26 03:42:21 +00:00
tenderlove
e959fda8ff
* lib/yaml/encoding.rb: YAML.encode, YAML.decode are deprecated.
...
* lib/yaml/stringio.rb: yaml/stringio.rb is deprecated.
* lib/yaml/ypath.rb: YAML::YPath is deprecated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-26 03:33:08 +00:00
jeg2
1bd1128989
* lib/csv.rb: Incorporating the fixes from the recent
...
FasterCSV releases: 1.5.2 and 1.5.3. [ruby-core:25038]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-23 14:59:25 +00:00
tadf
5d8f695032
* lib/date.rb (Date#>>): fixed. [ruby-core:28011]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 10:32:10 +00:00
akr
1561d3fb8b
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 03:33:14 +00:00
naruse
83c2f60b88
* lib/uri/common.rb (URI.encode_www_form_component):
...
convert strings of HTML5 ASCII incompatible encoding
to UTF-8.
* lib/uri/common.rb (URI.encode_www_form_component):
"\x83\x41" of Shift_JIS should be encoded as "%83A".
This follows real implementations.
* lib/uri/common.rb (URI.decode_www_form_component):
use given encoding for force_encoding. [ruby-dev:40721]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 12:36:14 +00:00
akr
66390013a1
* lib/resolv-replace.rb: specify super class for rdoc.
...
* lib/ipaddr.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 12:10:53 +00:00
nobu
c9dd4823d9
* lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 03:30:59 +00:00
naruse
f626a17d8c
* lib/uri/common.rb (URI#{en,de}code_www_form_component):
...
renamed from URI#{en,de}code_www_component. [ruby-dev:40672]
* lib/uri/common.rb (URI#encode_www_form_component): %-encoded
element should have always two hex.
* lib/uri/common.rb (URI#encode_www_form_component):
better treatment for ASCII incompatible encodings and
encodings whose lead byte may use 7bit.
* lib/uri/common.rb (URI#decode_www_form_component): add %20.
* lib/uri/common.rb (URI#decode_www_form_component): add
result's encoding as 2nd argument.
* lib/uri/common.rb (URI#decode_www_form): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 15:35:38 +00:00
nobu
3694f1dda7
* ext/tmpdir: split from lib/tmpdir.rb.
...
* win32/win32.c (rb_w32_system_tmpdir): extracted from init_env.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 06:20:23 +00:00
naruse
7588f09a87
* lib/uri/common.rb (URI.encode_www_component):
...
call str.to_s at first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-15 00:42:25 +00:00
nobu
04e68d0107
* ruby.c (ruby_init_loadpath_safe): mark initial load paths.
...
* gem_prelude.rb (push_all_highest_version_gems_on_load_path):
search insertion position by initial load path mark.
* lib/rubygems.rb (Gem.load_path_insert_index): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-12 15:11:10 +00:00
naruse
8212cdf176
* lib/uri/common.rb (URI.encode_www_form): new method to
...
generate URL-encoded form data. [ruby-dev:39246]
* lib/uri/common.rb (URI.encode_www_component,
URI.decode_www_component): new method for encode/decode
a name/value of HTML form.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-12 09:00:48 +00:00
naruse
d7cc39658c
* lib/webrick/httpservlet/cgihandler.rb
...
(WEBrick::HTTPServlet::CGIHandler#do_GET):
set binary mode for tempfile.
http://pc12.2ch.net/test/read.cgi/tech/1265467681/286
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-12 08:48:10 +00:00
nobu
831eb93069
* sample/timeout.rb: split from lib/timeout.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-11 21:37:16 +00:00
akr
785b31bed4
* file.c: add optional basedir argument for realpath/realdirpath.
...
(realpath_internal): handle basedir.
(rb_file_s_realpath): extract basedir from argument list.
(rb_file_s_realdirpath): extract basedir from argument list.
* lib/pathname.rb (realpath): pass basedir.
(realdirpath): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 04:55:34 +00:00
marcandre
b81e045712
* lib/matrix.rb (Vector#each): Return self and optimization [ruby-core:28405]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 14:07:53 +00:00
matz
800dda6c28
* lib/matrix.rb (Vector#each2, collect2): small refactoring.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 07:21:21 +00:00
matz
2cfb894d2a
* lib/matrix.rb (Vector#each): make Vector enumerable.
...
[ruby-core:28405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 07:19:21 +00:00
akr
f828d53066
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-28 01:50:49 +00:00
akr
aba5263254
* lib/resolv.rb: fix [ruby-core:28320] reported by Paul Clegg.
...
(Resolv::DNS::Requester#request): raise ResolvTimeout
consistently for timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-24 13:44:08 +00:00
drbrain
b2623d9bb8
Remove obsolete files in lib/rubygems/indexer
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-24 05:39:27 +00:00
nobu
b551e8c8b3
* lib/rubygems: update to 1.3.6.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-22 02:52:35 +00:00
nobu
3ef72aebef
* lib/mkmf.rb (create_makefile, install_files): honor srcprefix
...
argument if given. [ruby-dev:40449]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-21 12:20:21 +00:00
nobu
33dd3c94bd
* lib/rubygems/rubygems_version.rb: outdated. [ruby-core:28275]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-21 04:30:02 +00:00
mame
5a55683bc6
* lib/drb/drb.rb (DRbServer#stop_service): join killed thread to
...
ensure service stops. [ruby-dev:40441]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-18 15:06:06 +00:00
akr
9dbffb49fa
* lib/pstore.rb (PStore#initialize): initialize @thread_safe.
...
[ruby-core:27853]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 14:09:19 +00:00
akr
d6fb854ecb
* lib/tempfile.rb (Tempfile::Remover): new class to replace
...
Tempfile.callback. port r24902 from Ruby 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 03:20:52 +00:00
knu
e1d9adcc84
Fri Feb 12 02:27:39 2010 Akinori MUSHA <knu@iDaemons.org>
...
* lib/set.rb (Set#initialize, Set#replace, Set#merge)
(Set#subtract, Set#&): Fix duck type tests. [ruby-core:28078]
* lib/set.rb (Set#initialize, Set#replace, Set#merge)
(Set#subtract, Set#&): Try #each if #each_entry fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 17:38:05 +00:00
akr
d3004ccff3
* lib/resolv.rb: fix [ruby-core:28144].
...
(Resolv::DNS#make_requester): pass nameserver_port to
UnconnectedUDP.new.
(Resolv::DNS.bind_random_port): change the is_ipv6 argument to
bind_host.
(Resolv::DNS::Requester#initialize): change instance variable to
store multiple sockets.
(Resolv::DNS::Requester#request): pass readable sockets to
recv_reply.
(Resolv::DNS::Requester#close): close all sockets.
(Resolv::DNS::Requester::UnconnectedUDP#initialize): allocate
a socket for each address family of name servers.
(Resolv::DNS::Requester::UnconnectedUDP#recv_reply): read from the
passwd readable socket.
(Resolv::DNS::Requester::UnconnectedUDP#sender): use appropriate
socket for the target nameserver.
(Resolv::DNS::Requester::ConnectedUDP): follow the instance variable
change.
(Resolv::DNS::Requester::TCP#sender): ditto.
(Resolv::DNS::Config#nameserver_port): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 01:29:38 +00:00
mame
f2bd994409
* lib/rexml/text.rb (REXML::Text#initialize): REXML::Text.new checks
...
raw text for illegal characters without entity check, for the sake
of 1.8 compatibility. This had caused rubyspec error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-09 12:30:31 +00:00
matz
a7926befe0
* object.c (rb_obj_clone): call initialize_clone hook method to
...
call initialize_copy.
* object.c (rb_obj_dup): call initialize_dup hook.
* lib/delegate.rb (Delegator#initialize_clone): use new hook to
implement deep copy. [ruby-dev:40242]
* lib/delegate.rb (Delegator#initialize_dup): ditto.
* test/test_delegate.rb (TestDelegateClass#test_copy_frozen): add
a test to ensure #clone copies frozen status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 07:43:54 +00:00
akr
666409ba50
* lib/rake.rb (Rake::FileList::ARRAY_METHODS): fix test failure by <=>
...
definition at Kernel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-07 03:55:21 +00:00
shugo
0381cec507
* lib/net/ftp.rb (initialize): set @sock to a NullSocket instance to
...
raise FTPConnectionError when not connected. [ruby-dev:40258]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 15:26:20 +00:00
shugo
69c3348b79
* lib/net/imap.rb (receive_responses): does not hang when an unexpected BYE
...
response received. fixed [ruby-core:27944]. Thanks, Bob Potter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 13:57:10 +00:00
shugo
332e8fe51f
* lib/monitor.rb (wait): supported timeout.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 12:31:52 +00:00
nobu
a6569ad637
* lib/delegate.rb (Delegator#method_missing),
...
(Delegator.delegating_block): don't hide backtrace from
__getobj__ and reduced exception messages when $DEBUG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 03:02:40 +00:00
akr
19b2909ee8
* random.c (fill_random_seed): don't use O_NOFOLLOW because
...
/dev/urandom is a symlink in OpenSolaris.
* lib/securerandom.rb (SecureRandom.random_bytes: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-05 15:04:38 +00:00
nobu
7873c05684
* lib/delegate.rb (Delegator): include copy of Kernel.
...
[ruby-dev:40314]
* lib/delegate.rb (Delegator#{dup,clone}): class of copy should be
Delegator. [ruby-dev:40313]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-05 07:38:10 +00:00
tenderlove
510cde74a6
* lib/yaml/rubytypes.rb: Struct members are emitted without a leading
...
colon. Thanks Yusuke Endoh! [ruby-core:28052]
* test/yaml/test_struct.rb: fixed tests to go with Struct changes
* test/yaml/test_yaml.rb: fixed tests to go with Struct changes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-04 17:11:00 +00:00
nobu
10e8419da6
* lib/delegate.rb (Delegator): now inherits BasicObject.
...
[ruby-dev:39154], [Bug #2679 ], [ruby-dev:40242]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-03 23:15:55 +00:00
matz
970e90dd15
* enum.c (enum_each_entry): new method #each_entry to pack values
...
from yield into an array.
* lib/set.rb (Set#merge): use Enumerable#each_entry to implement
Set compatible to 1.8 behavior. [ruby-core:27985]
* lib/set.rb: replace is_a?(Enumerable) with respond_to?(:each)
for duck typing.
* lib/set.rb (SortedSet#add): typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-02 08:54:52 +00:00
nobu
bafb881c1f
* lib/delegate.rb (Delegator#marshal_dump): exclude
...
delegator-specific instance variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-02 02:14:00 +00:00
mame
9f714e35ec
* lib/matrix.rb (Vector#each2): returns a self. [ruby-dev:40241]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-01 12:27:46 +00:00
mame
323d23c44b
* lib/rexml/text.rb (REXML::Text#initialize): do Text.check only when
...
parent is specified, since Text.check may need doctype. partially
revert r26518.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 12:36:27 +00:00
mame
a9770c8058
* lib/rexml/text.rb (REXML::Text#initialize): fix typo and a bug that
...
seems to be caused by refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 06:55:17 +00:00
mame
8129a8dfbd
* lib/rexml/parent.rb (REXML::Parent#delete): return the deleted node
...
because the rdoc of REXML::Element#delete_element says it returns
"the element that was removed."
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 06:55:06 +00:00
jeg2
ae0b606830
* A bug fix for deleting blank Table rows from Andy Hartford.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 05:34:17 +00:00
mame
6425b4ba56
* lib/rexml/document.rb (REXML::Document#add): fix duplicate XMLDecls
...
and bad DocTypes in REXML::Document. (Bug #19058 ) [ruby-core:27979]
based on the patch by Federico Builes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 04:03:14 +00:00
mame
bc7ae41e0f
* lib/getoptlong.rb (set_options): ensure that the type of argument is
...
Array, restoring this check that was deleted at r10239. This caused
rubyspec error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-29 13:53:57 +00:00
nobu
896d768290
* lib/mkmf.rb (create_makefile): use puts instead of print.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-29 03:22:55 +00:00
nobu
a0248a2ba1
* lib/mkmf.rb (try_do): log no source when no developement env.
...
* lib/mkmf.rb (create_makefile): srcprefix always needs $(srcdir).
* lib/mkmf.rb (create_makefile): yield configuration if a block is
given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-29 02:09:51 +00:00
matz
d9e84f2327
* lib/delegate.rb (Delegator#initialize_copy): use initialize_copy
...
instead of overriding clone/dup. [ruby-dev:40221]
it now always clones the target, it might cause incompatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-28 16:47:21 +00:00
mame
266ee3bc7a
* lib/cgi.rb: set autoload to CGI::HtmlExtension. [ruby-dev:40194]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-28 15:19:52 +00:00
mame
0aafb0b4b6
* lib/thread.rb (ConditionVariable#wait, signal, broadcast): return
...
self (for 1.8 compatibility).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-27 14:30:37 +00:00
keiju
afc9fce01f
* lib/matrix.rb: add exception Matrix::ErrOperationNotImplemented
...
[ruby-dev:40149].
* lib/matrix.rb: change message of exception
Matrix::ErrOperationNotDefined [ruby-dev:40150], [ruby-dev:40176].
* lib/matrix.rb: add method Vector#/ [ruby-dev:40151].
* lib/matrix.rb(Matrix::Scalar#+,-,/): delete meaningless when
switch. [ruby-dev:40149]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-27 14:28:47 +00:00
mame
a817c0b089
* lib/matrix.rb (determinant): fix name error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-27 13:49:58 +00:00
seki
e92661e647
* lib/drb/eq.rb: fix circular requrie in drb.
...
reported by akr. see [ruby-dev:40156] [ruby-core:27661]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 11:22:20 +00:00
akr
a967f738c8
* lib/matrix.rb: suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 22:08:29 +00:00
naruse
ce35c0c650
* lib/rdoc/parser/ruby.rb: fix typo.
...
patched by Hal Brodigan [ruby-core:21536]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 15:34:47 +00:00
naruse
ad38805490
* lib/rdoc/markup/to_html_crossref.rb: fix failure of the test.
...
[ruby-core:20564]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 15:11:20 +00:00
naruse
eaa9ca7653
* lib/rdoc/generator/html.rb (RDoc::Generator::HTML#gen_into):
...
make the rdoc(generating html) run faster and use less memory.
patch by Tetsu Soh [ruby-core:27656]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 14:16:04 +00:00
nobu
926fd9a939
* lib/resolv.rb (Resolv::Config.default_config_hash): return an
...
empty hash when resolv.conf is not available. [ruby-core:27620]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-19 11:00:33 +00:00
nobu
5961543218
* lib/resolv.rb (Resolv::DNS::Config#lazy_initialize): fixed the
...
defaults of nameserver and port.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-19 10:58:28 +00:00