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

18624 Коммитов

Автор SHA1 Сообщение Дата
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
nobu be18999699 * test/yaml/test_{boolean,null,omap}.rb: eol-style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 07:59:29 +00:00
nobu 53e884f32d * ext/extmk.rb (command_output): $makeflags are already quoted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 07:57:47 +00:00
nobu 7b5ea0ec2f * configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): moved from
dln.c:dln_find_1().

* lib/mkmf.rb (def find_executable0): use EXECUTABLE_EXTS, not
  only EXEEXT.  [ruby-core:26821]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 07:54:26 +00:00
tenderlove 9713d84b5b Adding tests for YAML types
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 05:12:48 +00:00
nobu b19b496248 * parse.y (parser_yylex): suppress an extra error message after
numeric literal without digits.  based on a patch from ujihisa .
  in [ruby-dev:39811].  [ruby-dev:39798]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 02:00:14 +00:00
svn c52a8112b2 * 2009-11-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-29 18:28:02 +00:00
tenderlove d9d01d03e7 Fixing the ChangeLog to point to [ruby-core:26837]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-29 18:27:57 +00:00
nobu dd7264ac69 * vm_eval.c (check_funcall_failed): pass ID. [ruby-core:26934]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-29 07:56:25 +00:00
nobu c230a0da7d * eol-style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-29 07:53:14 +00:00
svn 060f16e2fa * 2009-11-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-28 21:41:02 +00:00
tenderlove 197eea3404 * lib/rexml/formatters/default.rb (write_attribute): fix an
exception when printing a document when duplicate namespaced
  attributes exist. Thanks, Alexey Froloff [ruby-core:2389]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-28 21:40:59 +00:00
svn d05112b942 * 2009-11-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-28 00:26:30 +00:00
matz be21eb5d0f * vm_eval.c (check_funcall_failed): should rescue user raised
NoMethodError.  rescue all NoMethodError if receiver does not
  respond to the method name.  [ruby-dev:39796]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-28 00:26:27 +00:00
akr 3f664b30fc rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 14:32:15 +00:00
yugui 25caa12d1d * test/ruby/test_complex.rb (@unify): fix the detection if math
loaded. This makes test_complex.rb work fine with the previous
  commit.

* test/ruby/test_rational.rb (@unify): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 12:18:40 +00:00
yugui cdecafff8d * test/test_mathn.rb (TestMathn): new test case.
test for r25067.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 12:18:22 +00:00