nobu
083bddec3e
* dln.c (FUNCNAME_PATTERN): simplified conditional expression.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 07:44:39 +00:00
akr
efdef4dbe2
* ext/socket/socket.c (socket_s_ip_address_list): renamed from
...
socket_s_list_ip_address. [ruby-dev:37806]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 07:36:45 +00:00
nobu
45c4ae9b8b
* ext/socket/socket.c (socket_s_list_ip_address): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 03:33:54 +00:00
nobu
050a8e912f
* cygwin/GNUmakefile.in (RUBYDEF): needs read-only section too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 03:17:28 +00:00
nobu
0243b1d29c
* win32/Makefile.sub (clean-ext): condition of EXTS was inverted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 03:03:00 +00:00
nobu
cdaadbd903
* lib/mkmf.rb (create_makefile):fixed the variables order because
...
converter proc refers the separator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 02:50:24 +00:00
nobu
0834056aec
* common.mk (clean-extout): removes extout directory.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 02:23:47 +00:00
nobu
97de7d1081
* Makefile.in, win32/Makefile.sub (RMDIRS): remove directory and
...
parents.
* Makefile.in, win32/Makefile.sub (distclean-rdoc): added to remove
temprary rdoc.
* Makefile.in, win32/Makefile.sub (distclean): removes extout
directory.
* Makefile.in, win32/Makefile.sub (clean-ext): skips non-existent
directories.
* common.mk (clean, distclean): cleans rdoc.
* configure.in (RMDIRS, RMALL): added to clean extout.
* lib/fileutils.rb (FileUtils#rmdir): added :parents option.
* lib/mkmf.rb (create_makefile): cleans installed files at clean
instead of distclean.
* lib/mkmf.rb (create_makefile): added clean-so and clean-rb.
* lib/mkmf.rb (def init_mkmf): added DISTCLEANDIRS.
* lib/un.rb (rmdir): added -p option.
* tool/rmdirs, win32/rmdirs.bat: removes directory and the parents.
* win32/rm.bat: added -r option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 02:06:29 +00:00
nobu
0506348ef5
* dir.c (join_path): use strlcat() to force link.
...
* dir.c (glob_helper): no strcpy() is needed since len is known.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 00:08:06 +00:00
svn
940e021edc
* 2009-01-25
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-24 21:45:48 +00:00
technorama
7361a2ecb3
* ext/openssl/ossl_ssl.c: Server Name Indication support.
...
new methods SSLContext#server_name_cb=, SSLSocket#hostname=.
* test/openssl/test_ssl.rb: Tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-24 21:45:42 +00:00
nobu
b9170351da
* lib/mkmf.rb (configuration): tools under the top source
...
directory are not installed, so unusable outside extmk.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 23:21:16 +00:00
eban
3e76849cc8
* golf_prelude.rb (Enumerator#inspect): avoid warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 08:26:10 +00:00
nobu
834e7488af
* lib/mkmf.rb (configuration): leaves PATH_SEPARATOR unchanged.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 06:11:39 +00:00
nobu
389157d8cf
* lib/mkmf.rb (mkintpath): new function which converts native path
...
to format acceptable in Makefile.
* lib/mkmf.rb (configuration): convers srcdir, topdir and hdrdir.
a patch by Alexey Borzenkov <snaury AT gmail.com> at
[ruby-core:21448].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 05:56:01 +00:00
nobu
1c374fef37
* lib/mkmf.rb (try_func): got rid of c-mode confusion.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 05:34:49 +00:00
svn
0af33599a0
* 2009-01-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 04:25:34 +00:00
nobu
9e22c8390c
* signal.c (trap_handler): also accepts symbols. [ruby-dev:37823]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 04:25:29 +00:00
naruse
770d89c5fa
Recover default_default_internal.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 11:59:26 +00:00
nobu
6708c103dc
* lib/mkmf.rb (create_makefile): removes installed files under
...
extout at distclean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 09:12:49 +00:00
xibbar
9dce4d52ca
* lib/cgi/core.rb (CGI.parse): generate only key on params hash
...
if request have only key uri parameters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 08:25:44 +00:00
nobu
044965df97
* ext/socket/extconf.rb ($distcleanfiles): fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 08:02:41 +00:00
nobu
d597a39042
* ext/socket/extconf.rb ($distcleanfiles): removes constdefs.[ch].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 07:57:41 +00:00
nobu
018e1e4f5e
* lib/rubygems/installer.rb (Gem::Installer#initialize): fixed
...
typos.
* test/rubygems/test_gem.rb (test_self_dir): removed false
assertions.
* test/rubygems/test_gem.rb (test_self_set_paths): checks if paths
are included.
* test/rubygems/test_gem_commands_install_command.rb
(test_execute_remote): checks diagnostic message too.
* test/rubygems/test_gem_installer.rb (load): uses Gem.ruby.
* test/rubygems/gemutilities.rb (Gem.ruby): initializes from the
environment variable to run without installation.
* test/rubygems/gemutilities.rb (RubyGemTestCase#util_build_gem):
creates cache directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 07:28:35 +00:00
usa
9e83ce20b1
* revert previous revision. it's already out-of-date.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 07:13:40 +00:00
usa
a3e8d63a75
* include/ruby/win32.h, win32/win32.c (rb_w32_is_valid_fd): new function
...
to validate fd.
* io.c (rb_io_initialize): check fd with above function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 06:55:20 +00:00
usa
7e4ca52669
* test/ruby/test_process.rb: mswin specs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 06:27:44 +00:00
nobu
33f7e74998
* test/ruby/test_process.rb (MANDATORY_ENVS): needs RUBYLIB to run
...
tests without install.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 05:52:14 +00:00
nobu
55bde4fbbd
* gc.c (define_final): cannot define finalizer for immediate
...
values. [ruby-core:21500]
* gc.c (define_final): freezes or hides internal values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 03:18:16 +00:00
nobu
3899c1bed7
* thread.c (rb_time_timeval): made a real prototype. a patch from
...
Marcus Rueckert <darix AT opensu.se> at [ruby-core:21492].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 02:31:54 +00:00
svn
92ad9fb2d7
* 2009-01-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 15:27:39 +00:00
matz
d47e8e81a0
* array.c (ary_double_capa): a new function to expand array more
...
aggressively. [ruby-core:21460]
* array.c (rb_ary_store): use ary_double_capa().
* array.c (rb_ary_unshift_m): ditto.
* array.c (rb_ary_splice): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 15:27:35 +00:00
nobu
938fcd6b70
* io.c (rb_io_ungetbyte, rb_io_ungetc): allows nil to reset EOF
...
flag with ungetting nothing.
* ruby.c (load_file_internal): rests EOF flag to make possible to
load from stdin after reading data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 12:42:39 +00:00
naruse
f0cc645afa
Add test for String#encode.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 08:41:47 +00:00
nobu
237c54075a
* io.c (rb_io_ungetbyte, rb_io_ungetc): clears EOF flag.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 06:31:03 +00:00
nobu
c5dea4c69d
* string.c (hash): suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 06:26:51 +00:00
usa
6ff613fc09
* array.c (take_items): to_ary() raises ArgumentError if cannot to
...
convert to Array. [ruby-dev:37797]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 05:43:04 +00:00
nobu
3b817f834a
* parse.y (debug_lines): calls rb_intern() once.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 05:32:08 +00:00
nobu
1a0f593b3c
* ruby.c (load_file_internal): no need to cast.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 04:59:20 +00:00
nobu
767a9a5ecd
* include/ruby/io.h (FMODE_EOF): EOF flag on TTY.
...
* io.c (io_set_eof): sets EOF flag for TTY.
* io.c (io_seek): clears EOF flag.
* io.c (io_fillbuf): returns EOF if already met EOF. [ruby-dev:37798]
* io.c (io_fillbuf, io_fread, io_getpartial): sets EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 04:57:06 +00:00
nobu
877dca1e27
* include/ruby/io.h (typedef struct rb_io_t):
...
* io.c (flush_before_seek):
* io.c (io_fillbuf):
* io.c (io_fread):
* io.c (io_getpartial):
* ruby.c (load_file_internal):
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-21 04:56:06 +00:00
svn
8029f3d299
* 2009-01-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 23:27:06 +00:00
ryan
7bcd50555b
Imported minitest 1.3.1 r4532.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 23:26:55 +00:00
akr
bd3cdcf394
* ext/socket/socket.c (socket_s_list_ip_address): new method.
...
(sockaddr_obj): new function.
* ext/socket/rubysocket.h: include ifaddrs.h, sys/ioctl.h,
sys/sockio.h, net/if.h if available.
(addrinfo_new): declared.
* ext/socket/raddrinfo.c (addrinfo_new): exported.
* ext/socket/extconf.rb: check ifaddrs.h, sys/ioctl.h, sys/sockio.h,
net/if.h and getifaddrs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 11:19:09 +00:00
akr
9ffca4659b
* ext/socket/rubysocket.h (pseudo_AF_FTIP): moved from mkconstants.rb.
...
* ext/socket/mkconstants.rb: prepend header if -H is not given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 11:06:22 +00:00
naruse
3c13fd9be0
* ext/nkf/nkf-utf8/nkf.c (nkf_buf): use nkf_char.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 08:59:06 +00:00
nobu
11c00acf8e
* cont.c (ruby_Init_{Continuation_body,Fiber_as_Coroutine}): prefixed
...
with ruby_ to export.
* ext/continuation/continuation.c, ext/fiber/fiber.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 07:17:28 +00:00
nobu
2d03f7274f
* Makefile.in (miniruby): renames and then removes, to get rid of
...
EPERM on cygwin and mingw.
* Makefile.in ($(LIBRUBY_SO)): use wildcard option of objcopy.
* configure.in (DLDFLAGS): do not export all symbols.
* cygwin/GNUmakefile.in (RUBYDEF): rejects symbols prefixex with
Init_.
* win32/mkexports.rb (Exports::Mingw): includes all symbols except for
prefixed with Init_ as well as mswin32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 06:32:36 +00:00
nobu
e77a0b7b24
* string.c (hash): fixed the tail bytes handling in the aligned
...
access case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 04:02:42 +00:00
usa
2ad3120ea6
* ext/nkf/nkf-utf8/nkf.c (nkf_buf_push): maybe a bug.
...
* ext/nkf/nkf-utf8/nkf.c (options): no need to support help option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 00:27:17 +00:00