nobu
b6ed3dce38
* lib/mkmf.rb (try_link0): removes waste dSYM directories left
...
when debug and universal-binary are enabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-08 10:38:55 +00:00
nobu
9a99663fa9
* lib/mkmf.rb (check_sizeof): fixed wrong recuring result for
...
intrinsic types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-08 10:17:04 +00:00
nobu
15fabcb2db
* Makefile.in, configure.in, win32/Makefile.sub (RUBY_BASE_NAME):
...
program base name. [ruby-dev:38241]
* configure.in (--with-soname): base name of shared library.
[ruby-dev:38290]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-08 01:14:14 +00:00
knu
77b04fb6d5
* lib/set.rb (SortedSet#add): Do not require each newly added
...
element to be Comparable but to respond to <=>. [ruby-dev:38371]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-07 17:32:48 +00:00
knu
92c89f12fb
* lib/set.rb (SortedSet): Fix document. [Bug #1429 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-02 13:54:09 +00:00
knu
f7b562ef01
* lib/set.rb (Set#merge): Only directly use the passed objects
...
@hash instance variable when self and the passed object are
instances of the same class. [Bug #118 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-01 07:52:09 +00:00
knu
8dded0725b
* lib/set.rb (SortedSet#add): Do not let an uncomparable object
...
in. [Bug #118 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-01 07:46:23 +00:00
akr
c42a5df5c1
* ext/extmk.rb: use RbConfig instead of Config.
...
* instruby.rb: ditto.
* lib/rubygems.rb: ditto.
* test/rubygems/test_config.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-30 16:34:01 +00:00
matz
587082d57c
* lib/net/http.rb: documentation typo fixed. [ruby-core:23335]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-30 09:19:42 +00:00
nobu
46f23b51f6
* lib/pp.rb (Struct#pretty_print): coerce to a string since
...
anonymous class has name no longer. [ruby-dev:38349]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-27 22:13:50 +00:00
akr
ebd2090d29
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-26 15:47:24 +00:00
akr
d2214aa2fb
* lib/rake.rb: use RbConfig::CONFIG instead of Config::CONFIG.
...
* lib/rbconfig/datadir.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-26 11:18:00 +00:00
nobu
a20f1713c3
* lib/optparse.rb (OptionParser#parse_in_order): do not make an
...
option from non-option argument. [ruby-dev:38333]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-26 06:13:11 +00:00
akr
8dc753f481
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-23 17:47:58 +00:00
akr
258ed42c12
* lib/time.rb (Time.parse): use year completion in Date._parse.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-22 10:34:29 +00:00
akr
d9dd33fc27
* lib/time.rb (Time#rfc2822): pad leading zeros for year.
...
(Time#httpdate): ditto.
(Time#xmlschema): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-21 18:08:47 +00:00
akr
fd9bfef325
* lib/time.rb (Time#xmlschema): use subsec instead of nsec.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-21 17:11:27 +00:00
akr
16dc9e04cb
* time.c (time_arg): use the year argument as-is. [ruby-dev:38194]
...
* lib/time.rb (Time.parse): interpret small year 0..99 as 1950..2049.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-21 16:43:15 +00:00
nobu
94890f6a9e
* lib/mkmf.rb (init_mkmf): needs default library path even if
...
cross compiling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-21 00:20:25 +00:00
mame
50cea7a5c9
* lib/cgi/core.rb (read_multipart): When path is not defined,
...
define local_path as a method always returning nil instead of
aliasing. This is because StringIO#path no longer exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-16 15:58:23 +00:00
nobu
a6fa5855a8
* lib/mkmf.rb (what_type?): fixed typo, and refined for member of
...
aggregation types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 05:00:07 +00:00
nobu
64be577b53
* lib/mkmf.rb (Logging.postpone): copy postponed output always.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 04:57:59 +00:00
nobu
0b05fc5a85
* lib/mkmf.rb (what_type?): fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-08 02:46:28 +00:00
knu
ae846f9fb8
* lib/irb/completion.rb (IRB::InputCompletor::Operators): Add
...
overloadable negative operators.
* lib/irb/ruby-lex.rb (RubyLex#lex_init): Support overloadable
negative operators.
* lib/irb/ruby-lex.rb (RubyLex#identify_identifier): Minus signs
need to be escaped in regexp character class.
* misc/ruby-mode.el (ruby-font-lock-keywords, ruby-parse-partial):
Support overloadable negative operators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-03 05:04:02 +00:00
matz
12bbcbb363
* lib/getoptlong.rb: remove unused udoc/usage from example.
...
[ruby-core:23098]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-02 05:52:06 +00:00
nobu
72c161bb55
* lib/mkmf.rb (create_makefile): support for parallel make. a
...
patch from Takuto Matsuu at [ruby-dev:38220].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 10:46:48 +00:00
nobu
896db7d625
* lib/pathname.rb (Pathname#relative_path_from): compares path
...
components according to system default case-sensitiveness.
[ruby-core:22829]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-28 23:59:28 +00:00
nobu
72122dd947
* lib/mkmf.rb (link_command, cc_command, cpp_command): should not
...
override extout defined in extmk.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-27 18:17:07 +00:00
nobu
a8eaf31630
* lib/mkmf.rb (what_type?): checks more restrictively, and
...
supports universal binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-27 03:56:46 +00:00
nobu
8eee0060f5
* lib/yaml/rubytypes.rb (String#is_binary_data?): TAB would be
...
usually considered to be included in text data.
* lib/rdoc/parser.rb (RDoc::Parser.binary?): blksize may be nil
and is irrelevant to whether a file is binary. copied from
above since TAB and newlines would be usually considered to be
included in text data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-26 03:22:09 +00:00
nobu
e0b7af69b4
* lib/rdoc/ri/paths.rb (RDoc::RI::Paths): considers
...
--program-prefix and --program-suffix. reapplied r19923.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-26 02:33:16 +00:00
akr
c4049f4cb6
* io.c (rb_mWaitReadable): defined.
...
(rb_mWaitWritable): defined.
(io_getpartial): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN.
(rb_io_write_nonblock): extend IO::WaitWritable on EWOULDBLOCK and
EAGAIN.
* error.c (make_errno_exc): extracted from rb_sys_fail.
(rb_mod_sys_fail): new function.
* include/ruby/ruby.h (rb_mod_sys_fail): declared.
(rb_mWaitReadable): declared.
(rb_mWaitWritable): declared.
* ext/socket/init.c (rsock_s_recvfrom_nonblock): extend
IO::WaitReadable on EWOULDBLOCK and EAGAIN.
(rsock_s_accept_nonblock): extend IO::WaitReadable on EWOULDBLOCK,
EAGAIN, ECONNABORTED and EPROTO.
* ext/socket/socket.c (sock_connect_nonblock): extend IO::WaitWritable
on EINPROGRESS.
* ext/socket/ancdata.c (bsock_sendmsg_internal): extend
IO::WaitWritable on EWOULDBLOCK and EAGAIN.
(bsock_recvmsg_internal): extend IO::WaitReadable on EWOULDBLOCK and
EAGAIN.
* ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): raise SSLError
extended by IO::WaitReadable/IO::WaitWritable on
SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE.
* ext/openssl/ossl.c (ossl_make_error): extracted from ossl_raise.
(ossl_exc_new): new function.
* ext/openssl/ossl.h (ossl_exc_new): declared.
* lib/net/protocol.rb (rbuf_fill): rescue IO::WaitReadable and
IO::WaitWritable.
[ruby-core:22539], [ruby-dev:38140]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-19 11:40:38 +00:00
nobu
b7800329d3
* configure.in (RUBY_CHECK_SIZEOF): allows qualified name.
...
* configure.in (RUBY_REPLACE_TYPE): checks more strictly.
* configure.in (struct stat.st_size, struct stat.st_blocks),
(struct stat.st_ino): check for size.
* lib/mkmf.rb (check_sizeof): allows qualified name.
* file.c (rb_stat_ino, rb_stat_blocks): check by size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-19 09:49:51 +00:00
seki
998217fb3d
* lib/drb/drb.rb (open_server_inaddr_any): fixed multiple network
...
families problem. a patch from Charl Matthee at [ruby-core:21033].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-17 17:43:48 +00:00
akr
a28532dcf3
* lib/pathname.rb (Pathname#sub): set $~ in block.binding.
...
[ruby-dev:38173]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-17 05:26:15 +00:00
nobu
d85689f5cb
* lib/rubygems/installer.rb (Gem::Installer#shebang): fix for env
...
shebang.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-15 03:01:39 +00:00
nobu
2e498843b6
* lib/mkmf.rb (CXX_EXT): checks for case-sensitive filesystem with
...
FNM_SYSCASE rather than build_os.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-14 01:39:15 +00:00
matz
70e504b34e
* lib/fileutils.rb (FileUtils#fu_get_gid): stringify group
...
argument before making regexp match. [ruby-dev:38155]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-13 22:42:16 +00:00
nobu
700a2b2350
* lib/rake: updated to rake code to rake-0.8.4 source code base.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-09 07:49:14 +00:00
nobu
e09da0d092
* lib/rubygems/installer.rb (Gem::Installer#initialize): env may
...
not be under /usr/bin.
* lib/rubygems/installer.rb (Gem::Installer#shebang): uses /bin/sh
if shebang has any options, since env shebang trick does not
work with options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-09 07:03:39 +00:00
akr
42d25de958
* lib/securerandom.rb (SecureRandom.urlsafe_base64): add optional
...
argument to add padding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 14:36:33 +00:00
nobu
cf4f718bc8
* lib/rake/loaders/makefile.rb (Rake::MakefileLoader#load): deals with
...
escaped spaces. incorporated from rake 0.8.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 04:47:12 +00:00
nobu
c520d1fc84
* lib/rake/testtask.rb (Rake::TestTask#define): passes each libs
...
as each arguments with expanded. incorporated from rake 0.8.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 04:45:38 +00:00
nobu
84880187bd
* lib/rubygems/digest/digest_adapter.rb: removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 04:25:25 +00:00
nobu
f378f10473
* lib/**/*.rb: removed unnecessary shbang lines.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 04:23:05 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
nobu
e691ba3bac
* lib/tmpdir.rb (Dir.tmpdir): not use USERPROFILE, and ignores
...
non-existent directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-05 07:56:19 +00:00
mame
40c2dd156b
* lib/thread.rb (SizedQueue#push): fix limit condition.
...
[ruby-dev:38135]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-04 12:23:37 +00:00
jeg2
f45caa14f6
* lib/csv.rb: Some minor documentation fixes from Gregory Brown.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 20:20:08 +00:00
jeg2
111c48e611
* lib/csv.rb: A patch from Madoka Yakamamoto to prevent an infinite
...
loop while reading some encodings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 18:43:53 +00:00