Граф коммитов

18540 Коммитов

Автор SHA1 Сообщение Дата
mame 38828fa8d1 * node.c: node management added. Currently, only pretty-dumper is
implemented.  [ruby-dev:39853]

* ruby.c: --dump=parsetree and --dump=parsetree_with_comment options
  added.  This is just for debug or research purpose.  Note that the
  compatibility of these options are not supported at all.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-09 14:05:59 +00:00
nobu c9c095fc7b * string.c (rb_str_justify): fixed the case a fill size is a
multiple of the length of the padding.  [ruby-dev:39856]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-09 00:50:37 +00:00
usa 0f406d278f * win32/configure.bat: now recognize --with-*-{dir,include,lib} options
and pass them to mkmf.

* win32/configure.bat: general conversion from ``/'' to ``\'' of
  configure_args is not necessary any longer.

* win32/setup.mak: BASERUBY is used as command, so always need to
  convert ``/'' to ``\'' within it.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 14:53:55 +00:00
usa dd00d45244 * numeric.c (flo_eq): supress a warning on VC++ for x64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 14:41:17 +00:00
nobu ed5d5c5829 * lib/rubygems: update to 1.3.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 07:19:09 +00:00
nobu 6c0f2b097e * lib/rubygems/defaults.rb (Gem::default_dir): removed a clause
doing nothing.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 07:16:49 +00:00
nobu 1963713205 * test/ripper/test_parser_events.rb: more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 01:01:04 +00:00
akr 507f700dd4 rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 19:06:11 +00:00
akr 3512a38d3b * file.c (rb_f_test): use string form in unknown command error
message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 18:51:42 +00:00
svn f3b8aa1a60 * 2009-12-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 16:53:35 +00:00
akr 785191b12d add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 16:53:34 +00:00
nobu 1d10aa8bfc * marshal.c (w_object): reverted r26007. [ruby-dev:39845]
* test/test_delegate.rb (test_marshal): moved from test_marshal.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 05:11:10 +00:00
yugui 1c2ef61035 * string.c (rb_str_justify): CVE-2009-4124.
Fixes a bug reported by 
  Emmanouel Kellinis <Emmanouel.Kellinis AT kpmg.co.uk>, KPMG London;
  Patch by nobu.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 04:11:26 +00:00
tenderlove 753de85e40 * test/dl/test_callback.rb testing callback removal
* test/dl/test_func.rb testing function names, to_i

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 00:49:09 +00:00
svn 241cd8c72b * 2009-12-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 22:35:46 +00:00
marcandre 553b55f6e6 ext/bigdecimal/bigdecimal_en.html: Remove obsolete information, fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 22:35:45 +00:00
naruse c121f78b9a * strftime.c: %l should be 1..12 instead of 0..12 [ruby-core:27072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 14:55:22 +00:00
akr 5e795ef8f6 * lib/find.rb (Find.find): reduce stat system call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 14:17:33 +00:00
akr 89214aac7a fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 09:01:50 +00:00
naruse 604f01f2b8 * lib/webrick/httpservlet/filehandler.rb: escape filename of index.
[ruby-dev:37768]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 07:04:50 +00:00
azav ee68e26859 * symbian/setup (config.h): EXECUTABLE_EXTS moved from dln.c:dln_find_1().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 15:38:24 +00:00
svn fdf5d6dad4 * 2009-12-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 15:37:47 +00:00
azav 0a457ee0b7 * symbian/setup (config.h): EXECUTABLE_EXTS moved from dln.c:dln_find_1().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 15:37:46 +00:00
nobu 11aa6c4107 * marshal.c (w_object): dump instance variables when using
marshal_dump.   [ruby-core:24211]

* variable.c (rb_ivar_count): added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 10:25:28 +00:00
nobu 1cc1ea378a * marshal.c (w_object): dump instance variables when using
marshal_dump.   [ruby-core:24211]

* variable.c (rb_ivar_count): added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 06:35:07 +00:00
nobu 7b154ee93e * variable.c (obj_ivar_i): fixed argument types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 05:45:29 +00:00
nobu 276653a6f5 * configure.in: default ac_cv_prog_CC to CC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 04:19:31 +00:00
nobu b271ca8c62 * lib/irb/extend-command.rb (def_extend_command): fixed argument
number for negative arity.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 01:18:28 +00:00
svn 8237d170ee * 2009-12-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 23:21:03 +00:00
tenderlove 6a1aebaabf * ext/dl/cptr.c (to_int): DL::CPtr supports to_int
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 23:21:01 +00:00
matz beb486d55e * insns.def (defined): should respect #respond_to_missing? as
#respond_to? does.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 10:53:21 +00:00
nobu 826aa8c376 * insns.def (defined): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 08:34:16 +00:00
nobu 9ad065375f * parse.y (k_def): adjust the location of method definition to the
line of def.  [Bug #2427]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 07:50:15 +00:00
matz 2c2cf71b04 * time.c (num_exact): should not accept strings as operands, even
though they respond to #to_r.  ideally, strict rational
  conversion should be done by a method like #to_rational, not #to_r.
  [ruby-core:23729]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 07:37:10 +00:00
shugo 4cec4edd0b fixed tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 07:09:21 +00:00
shugo 6ac5764dd5 added a ChangeLog entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 07:09:19 +00:00
shugo 78b2714b60 avoid SEGV in instance_eval without block.
instance_eval does not yield self.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 07:09:17 +00:00
nahi 39802186b2 * ext/stringio/stringio.c (ungetc): RDoc updated. trunk allows
pushing back behind the beginning of the pseudo stream.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 04:14:37 +00:00
tenderlove d5e1b514f9 * test/dl/test_callback.rb (**): using DL::Function to test callbacks
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 00:15:26 +00:00
svn 3e3f66e482 * 2009-12-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03 18:26:01 +00:00
shugo 7dbfe89630 * compile.c (compile_cpath, iseq_compile_each): reverted
constant/class variable lookup in instance_eval etc. to the
  behavior of 1.8.
* eval.c (rb_mod_nesting): ditto.
* insns.def (putspecialobject, defineclass): ditto.
* node.h (NODE_FL_CREF_PUSHED_BY_EVAL): ditto.
* vm_core.h (VM_SPECIAL_OBJECT_CONST_BASE): ditto.
* vm_eval.c (yield_under, eval_under): ditto.
* vm_insnhelper.c (vm_cref_push, vm_get_const_base,
  vm_get_ev_const, vm_get_cvar_base): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03 18:25:57 +00:00
duerst 9998481d4e * enc/trans/gb18030-tbl.rb: Fix omission of C1 region in code table
(from Tatsuya Mizuno)

* test/ruby/test_transcode.rb: Added test for converting full range of
  Unicode codepoints from/to GB18030 (from Tatsuya Mizuno)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03 11:29:33 +00:00
svn 342ed0ab03 * 2009-12-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03 03:04:29 +00:00
tenderlove f28a0b6b98 * test/dl/test_callback.rb (**): testing return values of dl callbacks
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03 03:04:27 +00:00
svn 0f0a744ed6 * 2009-12-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-02 14:54:53 +00:00
nahi 46e086910e * ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid
warning at SSLSocket#connect.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-02 14:54:50 +00:00
nahi 115fa14f28 * test/digest/test_digest_extend.rb: added tests for digest framework.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-01 09:03:29 +00:00
nobu 8f6cdd7927 * parse.y (dyna_push_gen, dyna_pop_gen): no needs to save both of
args and vars.  [ruby-core:26961]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-01 03:01:15 +00:00
nobu 79446bfb70 * parse.y (dyna_push_gen): use rb_node_newnode() for ripper.
[ruby-core:26961]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 21:51:08 +00:00
nobu 9b02e165d3 * parse.y (dyna_push_gen, dyna_pop_gen): adjust local vtable level
for the case of syntax errors in method name or argument inside
  do block.   [ruby-core:26961]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 21:16:31 +00:00