naruse
775188a0a2
* enc/depend: add space at the begginig of @ignore_error.
...
* lib/mkmf.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 08:44:33 +00:00
naruse
f3372c22a6
* common.mk (clean): add prelude.c, config.log, and rbconfig.rb.
...
* common.mk (distclean): remove encdb.h, config.log, and rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 08:40:30 +00:00
naruse
2b071787d2
* Makefile.in: ignore error from RMDIRS.
...
* enc/depend: ditto.
* lib/mkmf.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-06 08:40:27 +00:00
akr
dc2676a8a0
* ext/pathname/pathname.c (path_mtime): Pathname#mtime translated from
...
pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 20:53:56 +00:00
akr
9bf69293e7
* ext/pathname/pathname.c (path_ctime): Pathname#ctime translated from
...
pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 13:09:53 +00:00
mame
5ffe59faf8
* compile.c (NODE_ARGSCAT, NODE_ARGSPUSH): drop unused ARGSCAT
...
results when poped is true. [ruby-dev:41933], [Bug #3658 ]
This is retry of r28870 and r28873 which were reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 12:32:02 +00:00
mame
fa9d53d00f
* compile.c (NODE_ARGSCAT, NODE_ARGSPUSH): revert r28870 and r28873
...
which involuntarily changed semantics of type conversion.
I'll re-commit a correct patch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 12:31:55 +00:00
nobu
600601c338
* compile.c (iseq_compile_each): to_a method should be called.
...
[Bug #3658 ]
* compile.c (iseq_compile_each): ditto for ARGSPUSH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 11:30:50 +00:00
nobu
3a32ef53aa
* README.EXT, README.EXT.ja (String functions): mention
...
rb_str_resize and rb_str_set_len.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 11:14:05 +00:00
nobu
b80ddbf461
* string.c (rb_str_set_len): bail out when buffer overflowed
...
probably.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 11:00:18 +00:00
nobu
50b5049921
* compile.c (iseq_compile_each): drop unused ARGSCAT results.
...
fix [ruby-dev:41933], [Bug #3658 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 10:52:08 +00:00
nobu
5274f89201
* complex.c (nucomp_marshal_load): should check the argument.
...
[ruby-core:31622]
* rational.c (nurat_marshal_load): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 09:36:16 +00:00
nobu
359d537878
* marshal.c (w_float): should not append a dot if no fractal part
...
exists. [ruby-dev:41936]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 09:25:39 +00:00
matz
b35f5db57e
* parse.y (void_expr_gen): add 'possibly' to warning message.
...
[ruby-core:31611]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 08:18:32 +00:00
nobu
36992251c3
* dir.c (glob_make_pattern): fold continuous PLAINs to get rid of
...
snail at too deep path. [ruby-dev:41871]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 07:57:26 +00:00
nobu
8965ed167d
* string.c (rb_str_set_len): should fail to modify shared string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 07:42:47 +00:00
nobu
5425f8fe6e
* ruby.c (ruby_init_loadpath_safe): ensure sopath to be modifiable
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 05:12:50 +00:00
nobu
ae82480705
* string.c (str_make_independent_expand): fix buffer overflow
...
while shrinking.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 03:39:19 +00:00
akr
a2ebc53ec4
* file.c (realpath_rec): call rb_str_modify before rb_str_set_len.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 21:44:20 +00:00
nobu
5f13d888cf
* string.c (rb_str_resize): reverted r28851. rb_str_resize cannot
...
work before the length is set. [ruby-core:31615]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 11:08:28 +00:00
nobu
36044b0773
* string.c (rb_str_set_len): rb_str_modify cannot work before the
...
length is set, which is a precondition for rb_str_modify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 10:37:05 +00:00
nobu
99d96a89ce
* string.c (rb_str_resize): should copy the content properly. a
...
patch from Jeremy Evans at [ruby-core:31615].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 07:09:47 +00:00
usa
c37b2ef8dc
* lib/mkmf.rb (create_makefile): no need to create the directory
...
at each library file. this change makes making ext faster.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-04 06:52:18 +00:00
akr
88e78ac59b
* ext/pathname/pathname.c (path_atime): Pathname#atime translated from
...
pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 21:25:43 +00:00
nobu
a4c0f7dfae
* random.c (Init_Random): add Random::DEFAULT.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 12:16:06 +00:00
nobu
b80d5f14df
* hash.c (rb_check_hash_type): added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 12:01:13 +00:00
nobu
292c39098d
* bignum.c (rb_big_eq): never equal to infinity.
...
[ruby-core:31603]
* rational.c (nurat_div): hack for integral float divisor.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 11:30:19 +00:00
naruse
b5dc2576cc
* ext/mkext.rb: remove purelib, fixes a bug in r28440, r28441.
...
* spec/default.mspec: ditto.
* template/Doxyfile.tmpl: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 05:48:05 +00:00
usa
2fc40194d2
* lib/rdoc/ri/driver.rb (setup_pager): no need to check the existence
...
of pagers. the following code checks whether they are executable or
not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 05:22:51 +00:00
shyouhei
46a93a65df
* tool/runruby.rb: no purelib.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 03:05:39 +00:00
nobu
45992b4b25
* ext/purelib.rb: no longer used since the default load path of
...
miniruby is empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-02 22:52:25 +00:00
nobu
a4209572de
* insns.def, vm_core.h: fixed typo. reported by Rocky Bernstein
...
<rockyb AT rubyforge.org> at [ruby-core:31596].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-02 15:53:48 +00:00
nobu
1849a2baf1
* ruby.c (ruby_init_loadpath_safe): rb_str_set_len modifies ptr
...
since r26303.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-02 12:51:18 +00:00
suke
d4fc0799b7
* ext/win32ole/win32ole.c: NONAMELESSUNION defined only if gcc
...
version is older than 3.4.4. [ruby-core:31567] [Bug #3637 ]
* ext/win32ole/extconf.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-02 12:21:00 +00:00
usa
6198f539bb
* thread_win32.c (native_thread_join): need to wait thread, of course.
...
[ruby-dev:41911]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-02 07:35:35 +00:00
usa
49e259ec58
* file.c (file_expand_path): wrong condition. [ruby-core:31591]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-02 03:25:12 +00:00
akr
88431b74fc
* ext/pathname/pathname.c (path_realdirpath): Pathname#realdirpath
...
translated from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 20:35:33 +00:00
akr
33d848d841
* lib/pp.rb: describe superclasses explicitly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 14:09:40 +00:00
nobu
4be5721dcb
* string.c (rb_str_modify_expand, rb_str_resize): get rid of
...
repeating malloc and realloc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 14:04:39 +00:00
mrkn
6da48ad997
* ChangeLog: forget to write annotation for redmine.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 13:24:01 +00:00
mrkn
98685cc70f
* ext/bigdecimal/bigdecimal.c (BigDecimal_hash): use rb_memhash and take care of negative finite numbers properly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 13:20:22 +00:00
akr
c29b801afa
* ext/pathname/pathname.c (path_realpath): Pathname#realpath translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 11:57:58 +00:00
nobu
b496cd64e5
* win32/Makefile.sub: needs stddef.h for size_t. a patch from
...
Akio Tajima at [ruby-dev:41905].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 08:27:34 +00:00
akr
caa05197d3
* ext/pathname/pathname.c (path_sub_ext): Pathname#sub_ext translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 05:59:49 +00:00
mame
ffe49186c9
* lib/irb/init.rb (IRB.parse_opts): set VERBOSE to true when debug
...
switch called in irb. a patch from Andrew Grimm in
[ruby-core:31558].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 01:48:57 +00:00
mame
6ad3f61663
* bignum.c (big_op): comparison of bignum and infinity has returned 1
...
or -1, but it must return boolean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 01:12:54 +00:00
akr
b6f174afdb
add ML ref.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 00:50:28 +00:00
akr
a35c3cf341
* class.c (rb_include_module): don't clear the method cache if the
...
included module has no method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 00:46:18 +00:00
akr
572b8b3749
* ext/pathname/pathname.c (path_sub): Pathname#sub translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 00:22:18 +00:00
nobu
933e5e0911
* include/ruby/win32.h: latest x86_64 mingw defines stati64.
...
[ruby-core:27516]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 00:12:51 +00:00
suke
e8f2d9e808
* ext/win32ole/win32ole.c: fix typo. [ruby-core:31564][Bug #3636 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-31 23:54:49 +00:00
akr
b6ebd0622c
* ext/pathname/pathname.c (path_inspect): Pathname#inspect translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-31 14:16:10 +00:00
akr
9006bd2015
* ext/pathname/pathname.c (Init_pathname): The alias,
...
Pathname#to_path, is translated from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-31 07:21:42 +00:00
akr
c57e8f7ddc
* ext/pathname/pathname.c (path_to_s): Pathname#to_s translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-31 00:13:10 +00:00
nahi
d61f475bb1
* lib/webrick/ssl.rb (WEBrick::Utils.create_self_signed_cert):
...
merged r28784 from ruby_1_8: wrongly created dummy SSL certificate
with version == 3 (no such version) and serial == 0 (must be >0).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-30 23:26:53 +00:00
akr
be2f3c58e6
* ext/pathname/pathname.c (path_hash): Pathname#hash translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-30 12:44:41 +00:00
nobu
63a555ee4e
* lib/net/imap.rb (example): use IO#noecho to read password if
...
possible, and defer until needed. [ruby-dev:41889]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-30 03:42:05 +00:00
nobu
2d8228c28e
* lib/net/imap.rb (example): support starttls option.
...
[ruby-dev:41888]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-30 03:38:26 +00:00
nobu
6d56e80ad1
* file.c (file_expand_path): home directory must be absolute.
...
[ruby-core:31537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29 23:51:53 +00:00
nobu
a99de84663
* file.c (file_expand_path): should check if could find user.
...
[ruby-core:31538]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29 23:33:21 +00:00
nobu
7ae7ac4aba
* util.c (ruby_add_suffix): fixed a bug returning uninitialized
...
value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29 22:59:54 +00:00
nagai
bc8e650735
* ext/tk/extconf.rb: use TK_XINCLUDES on tkConfig.sh when not empty,
...
even if MacOS X Aqua version [ruby-dev:41883].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29 22:54:01 +00:00
akr
3608baa990
* ext/pathname/pathname.c (path_cmp): Pathname#<=> translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29 13:29:20 +00:00
nobu
8d228b2579
* common.mk (EXT_SRCS): add ext/json/parser/parser.c.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 21:51:31 +00:00
nobu
b67ecc80df
* file.c (rb_file_s_basename): pass baselen to rmext.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 20:52:16 +00:00
naruse
de06330e8b
* configure.in: not [freebsd] but [freebsd*] for AS_CASE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 17:38:56 +00:00
akr
7996581a82
* ext/pathname/pathname.c (path_eq): Pathname#{==,===,eql?} translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 13:24:55 +00:00
usa
97bc1a122b
* win32/Makefile.sub (config.h): VC6 or later have stddef.h.
...
* include/ruby/missing.h: need to include stddef.h for size_t.
* include/ruby/missing.h: shouldn't declare as dllimport when building
ruby itself (for Windows).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 10:39:33 +00:00
nobu
51b6bfb011
* missing/*.c: include missing.h
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 08:12:01 +00:00
usa
e53a60147b
* cont.c: typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 00:38:21 +00:00
naruse
392ab9d05e
* cont.c: (RB_PAGE_SIZE): renamed from PAGE_SIZE. [ruby-dev:41870]
...
* cont.c: (RB_PAGE_MASK): renamed from PAGE_MASK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 00:25:53 +00:00
akr
0cb17010c4
* ext/pathname/pathname.c (path_taint): use rb_obj_taint.
...
(path_untaint): Pathname#untaint translated from
pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-27 14:14:14 +00:00
nobu
444b943e35
* lib/mkmf.rb (have_framework): added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-27 09:59:29 +00:00
nobu
58f1d31a1d
* defines.h, intern.h, missing.h, ruby.h, st.h, util.h: include
...
config.h and defines.h for autoconf macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-27 09:33:55 +00:00
usa
592d885caa
* numeric.c (flo_cmp): typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-27 07:27:48 +00:00
naruse
7175a9073e
* class.c, compile.c, dir.c, file.c, iseq.c, parse.y, random.c:
...
clean unused-value warnings.
* cont.c, process.c, vm_exec.h: clean cast warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-27 07:13:43 +00:00
akr
aa4f1d8e81
* ext/pathname/pathname.c (path_taint): Pathname#taint translated from
...
pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 13:35:18 +00:00
nobu
195a7da4ec
* configure.in (config.h): add include guard.
...
* win32/Makefile.sub, bcc32/Makefile.sub (config.h): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 09:18:21 +00:00
nobu
8e9a9cf0ec
* configure.in (XCFLAGS): missing.h needs config.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 05:38:23 +00:00
usa
705586b1a1
* include/ruby/missing.h: revert a part of r28727. config.h is expected
...
to include only once, before including defines.h.
including it here breaks some macro definitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 05:10:25 +00:00
naruse
c6cda4e336
* configure.in: define BROKEN_CLOSE only on FreeBSD.
...
This needs to merge to 1.9.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 04:53:06 +00:00
nobu
af4986f515
* vm.c (rb_thread_mark): should mark iseq itself other than normal
...
iseq. [ruby-dev:41880]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 04:01:38 +00:00
naruse
201d99cc5f
* configure.in: define BROKEN_CLOSE on FreeBSD.
...
This fixes build failure on MSVC. [ruby-core:31481]
* include/ruby/ruby.h, include/ruby/missing.h:
use BROKEN_CLOSE for replacing close(2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 03:05:25 +00:00
nobu
7d2ed51843
* vm.c (rb_thread_mark): mark only self of normal iseqs, not
...
nodes. [ruby-dev:41874]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 00:51:33 +00:00
nobu
7bfa1146e2
* numeric.c (flo_cmp): honor the result of infinite? method of the
...
other. [ruby-core:31470]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-24 20:37:31 +00:00
nobu
8d3bb806b0
* test/ruby/envutil.rb (EnvUtil#.suppress_warning): added.
...
* test/ruby/test_float.rb (TestFloat#test_Float): suppress
warnings under --verbose.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-24 20:26:34 +00:00
shugo
8621d0908a
* lib/mutex_m.rb (sleep): added Mutex_m#sleep to support ConditionVariable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-23 07:14:54 +00:00
nobu
38c4242cf6
* configure.in (RUBY_MINGW32): ignore msvc suffix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-23 06:09:22 +00:00
nobu
b4080cf9ea
* configure.in (RUBY_TRY_CFLAGS): try with werror turned on.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-23 06:05:43 +00:00
nobu
8044ac7b43
* re.c (rb_reg_expr_str): fixed out-of-boundary access at invalid
...
multibyte characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-23 00:02:51 +00:00
nobu
85bf9bede4
* configure.in (XCFLAGS): reverted mistakenly removed option.
...
[ruby-dev:41872]
* include/ruby/missing.h: needs ruby/config.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-23 00:00:12 +00:00
matz
95c6a8a3b7
* complex.c (nucomp_to_i): allow complex with imaginary zero to be
...
converted.
* complex.c (nucomp_to_f, nucomp_to_r): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 23:48:13 +00:00
nobu
1b1041f847
* configure.in (RUBY_EXTERN): unnecessary after all.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 11:59:03 +00:00
mame
6e7f56fdc7
* thread_pthread.c (get_stack): fix memory leak; pthread_attr_destory
...
must be called even when pthread_getattr_np is used.
[ruby-core:31269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 11:15:16 +00:00
naruse
203ebcbb92
* re.c (rb_reg_expr_str): fix broken Regexp#inspect when it
...
is ASCII-8BIT and non-ASCII character.
The length of character should be from original byte string.
[ruby-core:31431]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 07:29:32 +00:00
naruse
24b17a2e87
* include/ruby/missing.h: add prototype for ruby_close().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 05:41:54 +00:00
nobu
d5a1efdc61
* configure.in (RUBY_EXTERN): ignore invalid attribute.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 03:58:18 +00:00
nobu
cc703f2d56
* configure.in: fix for older autoconf.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 03:30:59 +00:00
nobu
062b4d6752
* include/ruby/{intern,io}.h: add missing prototypes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 03:02:40 +00:00
nobu
0bd71ff354
* configure.in (XCFLAGS): use -fvisibility=hidden if possible.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 21:38:25 +00:00
nobu
6abe539cfc
* configure.in (RMDIR): use --ignore-fail-on-non-empty if possible.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 21:26:56 +00:00
nobu
3afa01255d
* configure.in (RUBY_EXTERN): FUNCTION-BODY was missing.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 18:23:09 +00:00
drbrain
3befc304b5
Fix signature of rb_ensure and rb_rescue to match the implementation in README.EXT
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 18:03:34 +00:00
nobu
2527936cfc
* template/fake.rb.in: get rid of embeding an absolute path.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 14:07:21 +00:00
evan
6113a5add0
Load gems properly. Fixes [ruby-core:31377]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 06:30:40 +00:00
naruse
6e2850aa46
* sprintf.c: add short documentation about named reference.
...
[ruby-core:31294]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 06:16:07 +00:00
nobu
3f606b9aca
* parse.y (local_push_gen): disable unused variable warnings in
...
eval. [ruby-dev:41869]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 06:00:25 +00:00
naruse
ad717fa7e6
* vm_method.c (rb_method_boundp): revert r28543, r28564.
...
They may be merged in Ruby 2.0. [ruby-core:31217]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 05:00:53 +00:00
marcandre
5647b2cd88
* lib/uri/common.rb: Have URI#route_to, URI#route_from accept
...
string-like arguments [ruby-core:30961]
* lib/uri/generic.rb: ditto for URI.join, URI#merge
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 04:38:40 +00:00
mame
c618db17ee
* lib/cmath.rb (CMath#cbrt): cbrt should accept a negative real
...
numbers. [ruby-core:31234]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 03:43:43 +00:00
marcandre
770af8649a
* lib/uri/common.rb: Have URI() and URI.join accept URI objects in addition
...
to strings. [ruby-core:30960]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 03:32:41 +00:00
nobu
9a89e864ea
* util.c (ruby_hdtoa): renamed from BSD__hdtoa.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 02:55:10 +00:00
evan
9d0d4d8a17
Be sure to load the custom require even if --disable-rubygems was used
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 18:36:25 +00:00
evan
bb43e6892c
Pull rubygem's custom require into gem_prelude
...
This solves the gem loading issue by never touching $LOAD_PATH
in gem_prelude and instead loading all of rubygems more quickly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 18:30:46 +00:00
nobu
06e935a126
* include/ruby/ruby.h (RSTRING_GETMEM): new macro to get ptr and
...
len at once.
* string.c (rb_str_cmp, str_eql, rb_str_eql): trivial improvements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 09:39:22 +00:00
nobu
6de2f601af
* ext/fiddle/closure.c (closure_data_type),
...
ext/fiddle/function.c (function_data_type): rb_data_type_t has
changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 09:23:08 +00:00
nari
81cc3b2655
* gc.c: don't call after_gc_sweep() after when garbage_collect()
...
was called, because rb_sweep_method_entry() free live unlinked
method entries. [ruby-core:31169]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 06:14:40 +00:00
shyouhei
a52dd6cc5c
* ext/socket/raddrinfo.c (rb_getaddrinfo): according to my valgrind output this variable should be initialized beforehand.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 04:00:46 +00:00
nobu
a3419bc919
* io.c (io_flush_buffer): write and buffer operations should be
...
monolithic. [ruby-core:31348]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 03:50:41 +00:00
nobu
878384483d
* lib/fileutils.rb (FileUtils::Entry_#copy): check file name
...
spearator boundary. [ruby-core:31360]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 03:27:59 +00:00
akr
a0d5258df0
* ext/pathname/pathname.c (get_strpath): check the type.
...
(path_initialize): bypass to_path call for T_STRING.
(path_freeze): implemented.
* ext/pathname/lib/pathname.rb (Pathname#freeze): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-19 09:35:31 +00:00
nobu
87d8a3b9ce
* array.c (rb_ary_clear): should not unshare embedded array, and
...
should make unshared array embedded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-19 03:33:33 +00:00
nobu
4d5eee3602
* NEWS (Kernel#instance_eval): add an incompatible change since
...
the 1.9.1 release. [ruby-core:31336]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-19 00:01:02 +00:00
nobu
cc6294a73a
* include/ruby/ruby.h (rb_data_type_t): add new feature macros.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-18 20:46:13 +00:00
nobu
10a90fbce8
* array.c (rb_ary_clear): no need to duplicate buffer just before
...
clearing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-18 12:20:14 +00:00
nobu
25b9eb5e57
* include/ruby/ruby.h (rb_data_type_t): restructured. [ruby-dev:41862]
...
add parent member.
* error.c (rb_typeddata_inherited_p): new function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-18 07:31:54 +00:00
akr
17749e5168
* ext/pathname/pathname.c (path_initialize): return a value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 16:10:19 +00:00
akr
03bb750d56
* ext/pathname/lib/pathname.rb (Pathname#initialize): removed.
...
* ext/pathname/pathname.c (path_initialize): implemented.
(get_strpath): new function.
(set_strpath): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 15:03:31 +00:00
nobu
327da86aaf
* lib/test/unit.rb (MiniTest::Unit#process_args): refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 10:01:49 +00:00
akr
c68de8ee08
* tool/file2lastrev.rb: don't depend on pathname.rb if File.realpath
...
is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 09:30:54 +00:00
nobu
e4820b1cfa
* util.c (ruby_add_suffix): fixed type warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 05:10:22 +00:00
akr
4bf3cb5ba9
* ext/pathname/lib/pathname.rb: moved from lib/pathname.rb.
...
require pathname.so.
* ext/pathname/pathname.c: new file to define empty Pathname class.
* ext/pathname/extconf.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 04:50:19 +00:00
nobu
c04d79f867
* thread.c (rb_thread_wakeup_alive): split from rb_thread_wakeup.
...
merged from r13476. c.f. [ruby-core:31320]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 04:04:51 +00:00
nobu
43f3e3779c
* lib/test/unit.rb: MiniTest::Unit is different class from
...
Test::Unit, and install runner before loading test/minitest.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 01:08:04 +00:00
mame
d98d3fe12a
* lib/test/unit.rb, bin/testrb, test/runner.rb: revert r28655, which
...
broke test-all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-16 13:09:44 +00:00
nobu
96863dc358
* lib/test/unit.rb (Test::Unit.setup_argv): run tests only when
...
any tests have not run.
* bin/testrb, test/runner.rb: use Test::Unit.start.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-16 05:58:39 +00:00
nobu
adf37e2fde
* tool/rbinstall.rb (ext-arch): prune directories start with '-'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-16 03:06:10 +00:00
mame
b79e96ae62
* numeric.c (fix_divide): must not use rb_rational_new1 for coercion
...
because it returns an argument itself when canonical mode is set.
[ruby-core:31279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-15 12:55:23 +00:00
mame
dc7ba7e49a
* proc.c (bm_free): fix memory leak. [ruby-core:30869] [Bug #3466 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-15 12:39:36 +00:00
naruse
b4608406f1
* regexec.c (onig_search): don't skip non-ANYCHARs when
...
.* fails to match. This causes to fail matching
ANYCHAR_STAR with LOOK_BEHIND. This fix is workaround
and disable the optimization. [ruby-dev:41851]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-15 06:55:42 +00:00
tenderlove
1df8d6dbc3
* lib/rdoc/markup/attribute_manager.rb: fixing ri output when special
...
characters are inside html tags. Thanks Tomo Kazahaya! [Bug #3512 ]
* test/rdoc/test_attribute_manager.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 21:13:41 +00:00
akr
b782aea75f
* time.c (guess_local_offset): use the UTC offset of an older date on
...
64bit time_t environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 21:05:00 +00:00
tenderlove
8742248884
* lib/test/unit.rb (setup_argv): convert to using optparse, adding
...
--help and -I. [ruby-core:30154]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 17:44:51 +00:00
akr
8ffda7cd14
* time.c (localtime_with_gmtoff_zone): renamed from
...
localtime_with_gmtoff and return the timezone abbreviation name.
(guess_local_offset): return the isdst and timezone abbreviation name.
(localtimew): use the returned isdst and timezone abbreviation name.
[ruby-core:31275]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 15:38:30 +00:00
nobu
0f36e8fc03
* eval.c (frame_func_id), vm_eval.c (rb_iterate),
...
vm_insnhelper.c (vm_yield_with_cfunc): as the name of a C-level
block, use the current method ID at the creation point.
[ruby-dev:41852]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 11:23:10 +00:00
naruse
9ac0263c2f
* regexec.c (match_at): add end point to enclen's argument.
...
This only effect on compilinig with -DONIG_DEBUG_MATCH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 09:22:39 +00:00
nobu
2dbc92b07d
* ext/readline/readline.c: libedit is missing declaration of
...
rl_getc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 12:34:19 +00:00
nobu
afbd5661a0
* process.c (rb_daemon): split from proc_daemon.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 12:31:17 +00:00
nobu
52aa6ab21d
* process.c (rb_fork_err): suppress gcc 4.4 warnings.
...
* random.c (fill_random_seed): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 12:28:37 +00:00
nobu
9afb0f0837
* ext/pty/pty.c (establishShell): chfunc must not raise any
...
exceptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 12:01:45 +00:00
nobu
7035fd6008
* configure.in (RUBY_DEFAULT_ARCH): adjust for target
...
cpu. [ruby-core:31243]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 11:58:58 +00:00
nobu
7aa4c13360
* ext/dl/handle.c (rb_dlhandle_close): should not pass a dynamic
...
string to rb_raise directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 11:46:01 +00:00
naruse
29b4247ca1
* missing/close.c: keep original errno.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 04:15:30 +00:00
marcandre
70510d026f
* lib/csv.rb: Fix unused variable warnings.
...
Patch by Run Paint [ruby-core:30991]
* lib/date.rb: ditto
* lib/debug.rb: ditto
* lib/drb/drb.rb: ditto
* lib/drb/invokemethod.rb: ditto
* lib/irb/ruby-lex.rb: ditto
* lib/irb/slex.rb: ditto
* lib/logger.rb: ditto
* lib/pathname.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-11 16:59:10 +00:00
nobu
c6820cc3be
* README.EXT{,.ja} (rb_block_call): fixed about third/fourth
...
arguments to the block. based on [ruby-core:31192] by Asher
Haig. [Bug #3558 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-11 12:20:28 +00:00
nobu
a3de9759e0
* Makefile.in ({,dist-,real-}clean-ext): should also omit
...
semicolon when omitting "in WORDS" of FOR-statement.
* tool/rmdirs: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-11 08:01:59 +00:00
nobu
9d3d606907
* Makefile.in ({,dist-,real-}clean-ext): omission of "in WORDS" of
...
FOR-statement is not allowed in /bin/sh on Solaris. fore-ported
r28609 from 1.9.2.
* tool/rmdirs: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-11 06:36:21 +00:00
mame
7ea26779ab
* test/rdoc/test_rdoc_ri_driver.rb (test_formatter): add a test. a
...
patch from caleb clausen in [ruby-core:31182].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-11 02:09:09 +00:00
akr
d06a6b22f5
* strftime.c (rb_strftime_with_timespec): fix precision handling for
...
%:z and %::z.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-10 12:43:54 +00:00
akr
e51e679f14
* strftime.c: unused declarations removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-09 13:33:39 +00:00
akr
85f10041b2
* strftime.c (rb_strftime_with_timespec): clear colons at unknown
...
directive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-09 12:21:26 +00:00
akr
6f1c1b496e
* strftime.c: don't call tzset. strftime.c doesn't depend on
...
the global timezone.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-09 12:04:26 +00:00
akr
00f97ed41a
* time.c (find_time_t): 24:00 should be the beginning of the next
...
day even if the leap second, 23:59:60, exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-09 11:33:46 +00:00
tenderlove
a5dec23045
* ext/psych/lib/psych/visitors/emitter.rb (initialize): line_width is
...
a valid option passed to the emitter.
* test/psych/test_psych.rb: corresponding tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-08 16:10:10 +00:00
tenderlove
ba9a959a18
* ext/psych/emitter.c (line_width, set_line_width): preferred line may
...
be set on the emitter.
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
* test/psych/test_emitter.rb: corresponding tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-08 16:02:26 +00:00
naruse
3a6fd339d5
* string.c (rb_str_conv_enc_opts): fix infinite loop because
...
of ISO-2022-JP conversion with empty string.
patched by Brian Buchanan [ruby-core:31107]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-08 08:18:07 +00:00
tenderlove
646b699536
* ext/psych/lib/psych/visitors/yaml_tree.rb (push): adding version
...
and header emit options.
* test/psych/test_psych.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 23:18:27 +00:00
tenderlove
3a185ede69
* ext/psych/lib/psych/visitors/emitter.rb: sending emit options to
...
YAML emitter. [ruby-core:28318]
* ext/psych/emitter.c: updating documentation about emit options
* ext/psych/lib/psych/core_ext.rb: ditto
* ext/psych/lib/psych.rb (dump): passing emit options to emitter.
* ext/psych/lib/psych/nodes/node.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 23:05:45 +00:00
akr
a5d37d10a9
* strftime.c (rb_strftime_with_timespec): support %:z and %::z.
...
[ruby-dev:41841]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 21:07:01 +00:00
mame
d1de97e0bc
* gem_prelude.rb: provide workaround for gem activation. Currently,
...
gem activation does not work by default. Now it can be worked
around by requiring "rubygems" first. [ruby-core:29486]
a patch from Evan Phoenix in [ruby-core:31096].
* lib/rubygems.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 15:40:52 +00:00
shyouhei
ce9c952937
Merge branch 'mybranch' of git://github.com/orangea/ruby into trunk
...
Conflicts:
ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 10:59:44 +00:00
usa
09e1383bcf
* file.c (ruby_find_basename): set correct baselen.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 04:22:30 +00:00
knu
42f4a548f0
* vm_method.c (rb_method_boundp): respond_to?(:protected_method,
...
true) should return true. Pointed out by Marc-Andre Lafortune.
[ruby-dev:41837]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 04:06:32 +00:00
usa
2520f3f79c
* file.c (ruby_find_basename): should initialize f.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 03:03:19 +00:00
nobu
01e1a0ac78
* ext/zlib/zlib.c (gzfile_raise): add invalid header to
...
exceptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 02:44:04 +00:00
naruse
8ff0574198
* missing/close.c: ignore ECONNRESET.
...
FreeBSD wrongly sets ECONNRESET on close(2) and
it causes false-negative exceptions. [ruby-dev:41778]
* configure.in: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-07 01:29:22 +00:00
akr
5bf4c6a635
* io.c (nogvl_copy_stream_sendfile): jump to retry_sendfile directly
...
to avoid select() on a socket which TCP state is CLOSED.
patch by Eric Wong. [ruby-core:31053]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-06 13:59:12 +00:00
usa
80b9fb5a7b
* io/console/console.c (winsize_row): should return actual screen
...
size, not buffer size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-06 12:47:18 +00:00
tenderlove
ff10d93563
* ext/dl/lib/dl/import.rb (handler): add a more helpful error message
...
when calling import_symbol or import_function without calling
dlload. Thanks nobu! [ruby-core:30996]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-05 23:38:35 +00:00
mame
68ab3ede30
* vm.c (thread_free): free altstack to prevent memory leak. a patch
...
from Tomoyuki Chikanaga in [ruby-dev:41815]. [Bug #3537 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-05 15:57:20 +00:00
mame
4f7b82475a
* string.c (NONASCII_MASK): NONASCII_MASK must be unsigned.
...
[ruby-dev:41782]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-05 15:32:35 +00:00
knu
78a78b45d6
* vm_method.c (rb_method_boundp): Return false for protected
...
methods when called from Kernel#respond_to?. [ruby-dev:40461]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-05 07:11:44 +00:00
tenderlove
ce2e7368d7
* ext/psych/lib/psych/scalar_scanner.rb (parse_string): support
...
timezones that are not one hour off. [ruby-core:31023]
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-05 03:33:56 +00:00
akr
9f56a870af
* test/ruby/test_syntax.rb: split test_syntax from test_system.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-04 13:50:34 +00:00
akr
c5de4d4cbd
* test/ruby/test_system.rb (test_syntax): unified with test_syntax2.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-04 13:03:04 +00:00
akr
16923c25a1
* test/ruby/test_system.rb (test_syntax2): moved from sample/test.rb
...
[ruby-dev:41721]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-04 12:01:46 +00:00
nobu
6fb59decd0
* io.c (swallow, prepare_getline_args, rb_io_getline_1): fix for
...
paragraph mode reading in non-ascii-compatible encoding.
[ruby-dev:41803]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-04 08:13:15 +00:00
mrkn
1c3e07f0d6
* ext/bigdecimal/bigdecimal.c (Init_bigdecimal): add two new constants BigDecimal::INFINITY and BigDecimal::NAN.
...
* ext/bigdecimal/lib/bigdecimal/math.rb (BigMath.exp): modify the behaviors for infinity arguments as same as Math.exp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-03 07:47:00 +00:00
tenderlove
59cad45f99
* ext/psych/lib/psych/visitors/to_ruby.rb(visit_Psych_Nodes_Scalar):
...
teaching Psych to deserialize DateTime objects. [Bug #1390 ]
* ext/psych/lib/psych/visitors/yaml_tree.rb(visit_DateTime): added a
method for serializing DateTime objects.
* ext/psych/lib/psych/scalar_scanner.rb(parse_time): add method for
parsing times objects from a string.
* test/psych/test_date_time.rb: tests for dumping DateTime objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-03 00:52:43 +00:00
tenderlove
6fe92a3cd6
* ext/psych/lib/psych/visitors/yaml_tree.rb (visit_Time): use
...
Time#nsec to accurately serialize time objects. [ruby-core:29233]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-03 00:15:51 +00:00
usa
09ee12bb20
* io.c (argf_inplace_mode_set): prohibits an assignment of a tainted
...
value.
* file.c (ruby_find_basename, ruby_find_extname): split from
rb_file_s_basename() and rb_file_s_extname().
* util.c (ruby_add_suffix): support arbitrary length of the suffix
to get rid of the potential buffer overflow.
reported by tarui.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-02 14:31:26 +00:00
akr
26202fba93
* numeric.c (rb_num2long): accept LONG_MAX < x < LONG_MAX+1 and
...
LONG_MIN-1 < x < LONG_MIN as well because they are converted
into the valid range of long by truncation.
(rb_num2ulong): accept ULONG_MAX < x < ULONG_MAX+1 and
LONG_MIN-1 < x < LONG_MIN as well.
(rb_num2ll): accept LLONG_MAX < x < LLONG_MAX+1 and
LLONG_MIN-1 < x < LLONG_MIN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-01 20:39:32 +00:00
jeg2
5d229db887
* lib/csv.rb: Improving documentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-01 14:11:02 +00:00
akr
8bab1aff2c
* numeric.c (rb_num2ulong): fix the lower limit for float.
...
[ruby-dev:41361]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-01 13:34:13 +00:00
nobu
e12c43ee8c
* ChangeLog: revert deleted logs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-01 13:09:04 +00:00
nobu
57ba9de9e0
* test/ruby/envutil.rb (EnvUtil#invoke_ruby): integrated with
...
runexec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-01 12:37:58 +00:00
naruse
6957c6d9cf
* thread_pthread.c (thread_start_func_1): don't call
...
native_thread_init_stack(th) on cygwin to avoid the segv
introduced by r27789. Cygwin's signal implementation is half
baked so USE_SIGNALSTACK is not defined and it needs another
treatment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-01 07:25:20 +00:00
nobu
678f6b3716
* common.mk (test-knownbug): ignore known bugs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-01 04:00:56 +00:00
nobu
12b0ccc204
* marshal.c (w_object): suppress empty instance variable entry on
...
compatible dump objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-30 23:40:37 +00:00
nobu
1f7eb6e7ae
* test/ruby/test_rubyoptions.rb (test_script_from_stdin): by using
...
a pipe, get rid of not-well-defined behavior after the child
process terminated in pty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 22:29:12 +00:00
kanemoto
78d48a330d
* thread_pthread.c (get_stack): use pthread_getthrds_np() for AIX.
...
* configure.in: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 17:29:27 +00:00
tarui
a9ffa5cecf
* ChangeLog: remove an extra newline.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 12:20:52 +00:00
tarui
952b1bf355
* ext/stringio/stringio.c (strio_write): add RB_GC_GUARD.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 12:12:07 +00:00
suke
835da2f07b
* test/win32ole/test_win32ole_method.rb (is_ruby64): check
...
ruby binary is mswin64 or mingw64. [ruby-dev:41756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 10:49:38 +00:00
usa
e2f4729d42
* file.c (rb_realpath_internal, realpath_rec): skip UNC share root
...
on DOSISH platforms.
http://pc12.2ch.net/test/read.cgi/tech/1272248179/600
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 05:20:06 +00:00
nari
12b76ec890
* gc.c (unlink_heap_slot, slot_sweep): unlink heaps_slot of
...
heaps_slot linked list if heaps_slot is empty at slot_sweep.
fixed [ruby-dev:41543], [ruby-core:24894].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 03:11:05 +00:00
tenderlove
50bb2544bb
* ext/fiddle/fiddle.h: added FFI type detection to avoid bug in ffi
...
header files. Thanks Yugui! [ruby-core:30917]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-28 16:26:59 +00:00
mame
5b5c6378c7
* test/rdoc/test_rdoc_ri_driver.rb (TestRDocRIDriver#test_formatter):
...
fix a test accordingly to r28455.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-28 13:16:17 +00:00
mame
d9d650ecfd
* thread.c (rb_fd_resize, rb_fd_copy): avoid NULL dereference upon
...
failed realloc by using xrealloc instead of not realloc. a patch
from Jim Meyering <meyering at redhat.com> in [ruby-core:30920]
[Bug #3489 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-28 12:58:03 +00:00
suke
392255310c
* test/win32ole/test_win32ole_method.rb (test_offset_vtbl): check
...
that Ruby is 32bit or 64bit binary in order to get correct offset
value. [ruby-dev:41741]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-28 11:38:48 +00:00
mame
19e835f952
* lib/rdoc/ri/driver.rb (RDoc::RI::Driver#formatter): should use bs
...
format when stdout is piped. [ruby-core:30734]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-27 20:36:12 +00:00
mame
be1c68caeb
* bootstraptest/test_class.rb: add a test for [ruby-core:30843].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-27 18:13:06 +00:00
mame
9b94dabe77
* class.c (rb_mod_init_copy): when class is dup'ed, a metaclass of the
...
class should be attached to the dup'ed class, not the original
class. [ruby-core:30843] [Bug #3461 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-27 17:47:21 +00:00
nobu
a67f1a9534
* include/ruby/io.h, io.c: reverted r21709.
...
* ruby.c (load_file_internal): nothing to read if EOF reached
while reading shebang. [ruby-core:30910]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-27 14:31:19 +00:00
akr
d9edd4ca87
* io.c (simple_sendfile): don't try to send data more than SSIZE_MAX
...
with single sendfile call..
based on the patch by Eric Wong. [ruby-core:30908]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-27 04:30:31 +00:00
nobu
3ca40d2531
* lib/rubygems/require_paths_builder.rb (write_require_paths_file_if_needed):
...
no reason that bin directory should be included in $LOAD_PATH.
it is for executable files, but not libraries. [ruby-core:25936]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-27 01:41:40 +00:00
nobu
967e3a3598
* configure.in (enable-debug-env): option for RUBY_DEBUG env.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-26 04:07:20 +00:00
nobu
8508e37b51
* common.mk (clear-installed-list): put redirection before set
...
command, since it seems to be handled by nmake in special way.
[ruby-dev:41711]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-26 02:56:41 +00:00
nobu
6f95792347
* test/ruby/envutil.rb (EnvUtil#invoke_ruby): no needs to copy the
...
original ENV, since it's done in spawn automatically.
[ruby-dev:41733]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-26 01:08:46 +00:00
mame
a2fde3fc79
* NEWS (zlib): new methods. [ruby-dev:41706] [Bug #3472 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25 23:45:42 +00:00
suke
7e195fa734
* test/win32ole/test_win32ole_method.rb (test_offset_vtbl): check
...
that OS is Windows 32bit or Windows 64bit in order to get
correct offset value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25 23:05:32 +00:00
tarui
db4a0d42dd
* ext/dl/lib/dl/func.rb (call): don't overwrite original arguments
...
to defend from GC.
* test/dl/test_func.rb (test_string): add test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25 19:43:15 +00:00
jeg2
b652b55c51
Fixing a spelling error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25 14:17:51 +00:00
jeg2
effa0c76d9
* lib/csv.rb: Fixing a bug that prevented CSV from parsing
...
all multi-line fields correctly. Patch by Rob Biedenham.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25 02:59:20 +00:00
nobu
89a3e2ed7a
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err):
...
return the exit status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25 01:07:29 +00:00
nobu
fdf5a3dd8d
* test/ruby/envutil.rb (EnvUtil#invoke_ruby): change the
...
environment of spawned process only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25 00:58:57 +00:00
nobu
9f16d373f3
* test/ruby/envutil.rb (EnvUtil#invoke_ruby): get rid of possible
...
deadlock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25 00:57:03 +00:00
nobu
13158c4d79
* lib/un.rb (httpd): MaxClients also should be integer.
...
[ruby-dev:41724] [Bug #3477 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-24 21:25:03 +00:00
nobu
4fcc6f1ef1
* lib/un.rb (setup): fix of word splitting. [ruby-dev:41723]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-24 21:15:33 +00:00
nobu
a4d3911503
* lib/un.rb (setup): fix of word splitting. [ruby-dev:41723]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-24 20:49:37 +00:00
tarui
12c2e07a3d
* include/ruby/ruby.h (static inline rb_gc_guarded_ptr): prevent
...
RB_GC_GUARD_PTR being removed by optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-24 16:11:05 +00:00
akr
f77d8722c2
* ext/socket/raddrinfo.c (ruby_getaddrinfo__darwin): the workaround
...
for Mac OS X moved from rsock_getaddrinfo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 21:24:31 +00:00
nobu
23af1d2a4b
* marshal.c (struct dump_arg, struct load_arg): merge taint and
...
untrust flags into infection as bit flags.
* marshal.c (w_nbyte, clear_dump_arg): infect the buffer as soon
as appending, because it might have been finalized already at
exit. based on a patch by Tomoyuki Chikanaga
at [ruby-dev:41672]. [Bug #3463 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 20:44:44 +00:00
akr
512a35693b
* ext/socket/raddrinfo.c (str_is_number): renamed from str_isnumber to
...
avoid confusion to str_isnumber in ext/socket/getaddrinfo.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 15:05:25 +00:00
mame
70003c05a7
* NEWS (stringio): new methods. [ruby-dev:41687] [Bug #3469 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 14:47:00 +00:00
akr
89f2c44d37
* ext/socket/raddrinfo.c: don't use __P.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 13:56:20 +00:00
suke
0864df17fb
* ext/win32ole/win32ole.c (reg_get_typelib_file_path): try win64
...
registry entry at first. [ruby-dev:41674] [Bug #3464 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 12:41:26 +00:00
akr
acb8b3f7a9
* ext/socket/raddrinfo.c (ruby_getaddrinfo__darwin): new workaround for
...
getaddrinfo problem on Mac OS X Snow Leopard. [ruby-core:29427]
patch by Wataru Kimura. [ruby-core:30842]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 12:25:07 +00:00
nobu
c7d001465c
* NEWS (ptr): new method and deprecated methods. [ruby-dev:41681]
...
* ext/pty/{README,README.ja}: ditto.
* ext/pty/pty.c (pty_check): add rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 08:12:54 +00:00
nobu
d514cd3ca0
* test/ruby/test_regexp.rb (test_dup_warn): read in UTF-8
...
encoding regardless environment.
* test/ruby/envutil.rb (invoke_ruby): add encoding option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 03:44:55 +00:00
nobu
596a275035
* ChangeLog: a patch by Eric Wong at [ruby-core:30818].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 22:00:23 +00:00
nobu
419d8cd6a2
* configure.in (fchown): need to check. [ruby-core:30818]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 21:44:37 +00:00
nobu
6e708d72bb
* io.c (argf_next_argv): check for setting owner/group.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 21:43:02 +00:00
akr
bf8cec6db1
* time.c (num_exact): fix for mathn. [ruby-dev:41599]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 14:13:09 +00:00
akr
7d8d8c4f59
* ext/socket/lib/socket.rb: suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 13:41:16 +00:00
nobu
85a4f84e79
* test/optparse/test_summary.rb: fixed superclass so that it run
...
solely.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 12:33:33 +00:00
nobu
2926a585ff
* parse.y (shadowing_lvar_gen): should add lvar to vars and
...
used. [ruby-dev:41666]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 10:57:40 +00:00
marcandre
6233ed4dcd
* lib/delegate.rb: Forward #trust, #untrust, #taint and #untaint
...
to both the delegator and __getobj__ [ruby-core:26138]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 04:23:59 +00:00
wanabe
99299e1961
* eval_error.c (error_print): clear raised_flag while error-printing
...
to avoid hang. [ruby-core:27608]
* test/ruby/test_beginendblock.rb (test_endblock_raise): add test for
above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-21 14:43:58 +00:00
nobu
d31350f827
* id.c (Init_id): add underscore name.
...
* parse.y (warn_unused_var): ignore underscore name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-20 07:17:46 +00:00
nobu
14a15f8b7f
* parse.y (warn_unused_var): use same format as shadowing local
...
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-20 06:14:22 +00:00
nobu
47fb01e35b
* parse.y (shadowing_lvar_gen): get rid of adding extra name for
...
shadowing local variable. [ruby-dev:41628]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-20 05:41:07 +00:00
matz
7a8a264f1d
* lib/irb.rb: remove double exclamation marks. a patch from Diego
...
Viola. [ruby-core:30589]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-19 02:12:40 +00:00
tenderlove
b09ad2b847
* ext/psych/lib/psych/visitors/to_ruby.rb (resolve_klass): fix the
...
exception message when attempting to load an unknown class. Thanks
nobu! [ruby-dev:41399]
* test/psych/test_psych.rb: test for the exception message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-18 18:38:19 +00:00
naruse
da3cdd2ddf
* gc.c (gc_lazy_sweep): clean a warning.
...
"suggest parentheses around assignment used as truth value"
* transcode_data.h (getGB4bt1): clean a warning.
"suggest parentheses around arithmetic in operand of |"
* transcode_data.h (getGB4bt3): ditto.
* vm.c (thread_free): clean a warning. "format 'p' expects type
'void *', but argument 3 has type 'struct rb_mutex_struct *'"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-18 01:44:52 +00:00
naruse
72fa4d34c0
* ruby.c: add prototype of rb_realpath_internal.
...
* load.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-18 01:16:13 +00:00
mame
d35f8ea885
* object.c: Object#public_methods, private_methods, etc. returns
...
method ids that belong to the class or the singleton class(es) of
the object. [ruby-dev:41613]
* class.c: on the other hand, Module#public_instance_methods, etc.
returns method ids that belong to the module itself (even if the
module is singleton, it does not return method ids of super
class(es); see [ruby-core:28837]).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 16:58:25 +00:00
mame
ab408009fc
* lib/webrick/httpservlet/filehandler.rb
...
(prevent_directory_traversal): apply filesystem encoding to path
only during calling File.expand_path. [ruby-dev:41423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 16:26:00 +00:00
mame
2db572514c
* load.c (rb_load_internal): remove call to rb_realpath_internal
...
within rb_load_internal which caused big performance degradation.
Instead, call rb_realpath_internal in the caller of
rb_load_internal. [ruby-dev:41502] [ruby-dev:41610]
* vm.c (rb_vm_call_cfunc): ditto.
* eval_intern.h (rb_vm_call_cfunc): ditto.
* ruby.c (process_options): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 14:32:20 +00:00
usa
4df965f4ed
* file.c (rb_str_encode_ospath): when the encoding of the parameter
...
is ASCII-8BIT, should recognize as filesystem encoding, and convert
to UTF-8 on Windows.
* file.c (realpath_rec): should convert to ospath encoding before
calling lstat().
* file.c (rb_realpath_internal): resolved string should take over
the encoding of base string.
* transcode.c (rb_str_encode): should return new string always.
fixed #3444 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 09:46:30 +00:00
kazu
f4d7a34c01
typo and spaces
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 06:11:08 +00:00
naruse
86d72ac7cf
Revert "* parse.y (warn_unused_var): warn unused variables."
...
This reverts commit r28339 and r28340
because they prevents test-all on boron.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 01:04:09 +00:00
usa
4ac263ce68
* parse.y: ripper needs warn_unused_var(), too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-16 09:35:35 +00:00
nobu
cf79bdc6d0
* parse.y (warn_unused_var): warn unused variables.
...
[ruby-dev:41620]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-16 09:20:14 +00:00
usa
de26eababa
* error.c (rb_bug): existance of _set_abort_behavior() depends on
...
runtime version, not compiler version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-16 06:41:56 +00:00
mame
3ccd6c0aab
* ext/fiddle/extconf.rb: check ffi.h even when pkg-config succeeded.
...
On Debian/lenny, which is a "supported" platform, ffi.h is installed
in /usr/include/i486-linux-gnu/. This causes build error when using
gcc whose target is not i486-linux-gnu.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 16:43:46 +00:00
mame
29b22ba2c6
* test/ruby/test_io.rb (safe_4): does not use Timeout because
...
Timeout.timeout uses Thread#kill which raises SecurityError when
$SAFE == 4. based on a patch from Tomoyuki Chikanaga.
[ruby-dev:41484]
* test/ruby/test_io.rb (test_print_separators): use pipe (test helper
method) instead of IO.pipe. [ruby-dev:41484]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 15:08:29 +00:00
eban
6e10636d32
* ext/fiddle/extconf.rb: De Morgan's laws.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 08:16:33 +00:00
eban
423b4d815f
* ext/fiddle/extconf.rb: use pkg_config to find ffi.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 03:14:34 +00:00
nobu
1d408c933a
* Makefile.in, common.mk (clean-ext, clean-enc): clean up cleaning
...
targets.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 17:32:03 +00:00
akr
3a4231cdf4
* test/socket/test_socket.rb (test_udp_server): rescue Errno::ENOSYS
...
for Windows.
* test/socket/test_nonblock.rb (test_sendmsg_nonblock_error): ditto.
[ruby-dev:41597] reported by Masaya Tarui.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 13:46:06 +00:00
seki
0556fa02de
fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 09:36:44 +00:00
seki
b54b86d898
raise DRbConnError instead of ArgumentError if too many arguments.
...
[ruby-dev:41481]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 08:52:30 +00:00
naruse
7eec027f06
* ext/fiddle/closure.c (dealloc): refix workaround r28300.
...
don't use ffi_closure_alloc, ffi_prep_closure_loc and
ffi_closure_free on MACOSX and __linux__.
[ruby-dev:41483] [ruby-dev:41214]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-13 19:06:25 +00:00
mame
d1dd727533
* test/ruby/test_rubyoptions.rb: add a simple test for __END__ and
...
DATA.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-13 06:47:44 +00:00
marcandre
0486db01fd
* lib/delegate.rb: Delegate !=, eql? and hash [ruby-core:26139]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 19:25:03 +00:00
naruse
78f5b54f1b
* enc/trans/utf8_mac.trans (buf_apply): fix for patterns
...
whose result is 2 bytes. [ruby-core:30751]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 17:13:54 +00:00
naruse
051af24359
* time.c (rb_localtime_r2): fix mixed declarations and code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 16:40:25 +00:00
naruse
75033ea16f
* ext/dl/lib/dl.rb: don't require when already loaded.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 15:28:47 +00:00
naruse
5422161026
* ext/fiddle/closure.c (dealloc): workaround fix for libffi's
...
ffi_closure_free. [ruby-dev:41483] [ruby-dev:41214]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 15:28:40 +00:00
matz
622fb1ca50
* io.c (rb_f_syscall): should check argument string taint before
...
invoking system calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 01:05:20 +00:00
matz
ff0252701e
* variable.c (uninitialized_constant): process through
...
rb_class_real() to remove "Object::" from error message.
[ruby-dev:40951]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 00:20:27 +00:00
mame
5e48356627
* ChangeLog: add an acknowledge.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 15:47:59 +00:00
mame
8af5f01a17
* ext/dbm/extconf.rb: accept Berkley DB version 3, 4 and 5.
...
[ruby-dev:41531]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 15:40:39 +00:00
akr
8c7786bf58
* time.c (init_leap_second_info): check the result of
...
gmtime_with_leapsecond.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 14:26:57 +00:00
naruse
78e3dfd95b
* ext/openssl/ossl_ssl.c (ossl_sslctx_get_ciphers):
...
use sk_SSL_CIPHER_num and sk_SSL_CIPHER_value instead of cast.
patched by Takahiro Kambe [ruby-dev:41530]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 14:06:23 +00:00
akr
b04fa7b8e1
* include/ruby/missing.h (isnan): fix compilation error on OpenBSD.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 14:00:35 +00:00
mame
48c5afeba0
* lib/rubygems/install_update_options.rb
...
(Gem::InstallUpdateOptions#add_install_update_options): deprecate
--test option which has not worked. [ruby-core:21714]
* test/rubygems/test_gem_command_manager.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 13:42:54 +00:00
akr
22ce9f81c3
* time.c (find_time_t): test the result of LOCALTIME.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-10 22:37:40 +00:00
akr
cb962c5ae5
* time.c (rb_localtime_r2): fix localtime overflow check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-10 15:45:34 +00:00
akr
094ca0281e
* time.c (rb_localtime_r2): refine localtime overflow check for
...
FreeBSD 6.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-10 14:10:25 +00:00
matz
020bd635ac
* io.c (rb_io_putc): documentation updated to mention putc would
...
not work well with multi-byte characters. [ruby-core:30697]
* io.c (rb_f_putc): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-10 00:11:26 +00:00
akr
82e646ea7a
* time.c (find_time_t): always outerpolate from past.
...
[ruby-core:30672] reported by Benoit Daloze.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-09 13:54:03 +00:00
akr
2a1d97cc1f
* time.c (calc_tm_yday): extracted from timegmw_noleapsecond.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-09 13:13:44 +00:00
nobu
2b322524cd
* gem_prelude.rb: load full rubygems at LoadError for activation
...
check. [ruby-core:29486]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-07 21:27:16 +00:00
nobu
c9331864f8
* io.c (parse_mode_enc): set set_by_bom bit. [ruby-core:30641]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-07 21:04:56 +00:00
nobu
88eb029a2c
* string.c (rb_str_buf_cat_escaped_char): get rid of buffer
...
overflow on platforms int is bigger than 32bit, and warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-06 13:37:23 +00:00
akr
ec440b0b57
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-06 10:59:50 +00:00
akr
58772d7110
* array.c (rb_ary_product): clear uninitialized elements in temporary
...
array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-06 10:56:45 +00:00
nari
28754d0aa9
* gc.c: set_heaps_increment is not
...
called before gc_makrs of lazy sweeping because live_num not
contain finalize objects. So call set_heaps_increment after lazy
sweeping if free_num are not enough. And move free_min to struct
rb_objspace for above. [ruby-dev:41499]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-06 04:12:20 +00:00