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

18807 Коммитов

Автор SHA1 Сообщение Дата
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
yugui 2c3a48614a * test/openssl/test_config.rb (OpenSSL::TestConfig): new test case.
test for r25017.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 12:18:04 +00:00
yugui 21c32a3c7a * test/ruby/test_range.rb (TestRange#test_comparison_when_recursive):
test for r25010.

* test/ruby/test_struct.rb (TestStruct#test_comparison_when_recursive):
  ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 12:17:47 +00:00
naruse 303b1d7fad * gem_prelude.rb (Gem.set_home): must dup before force_encoding
and must force_encoding before gsub.
  cf. Yen Sign problem of SJIS [ruby-core:26910]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 11:22:44 +00:00
usa 39e457b4e7 * win32/{configure.bat, setup.mak, Makefile.sub}: add new configure
option ``--with-ntver''.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 08:55:34 +00:00
nobu 4d786d21e3 * removed spaces just before tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 05:25:08 +00:00
nobu f5202fdbc7 * test: eol-style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 02:44:33 +00:00
nobu f1be083f09 * test/mkmf/base.rb: use $INCFLAGS to add -I option. [Bug#2387]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-26 02:42:24 +00:00
wanabe 12b637a65d * marshal.c (mark_dump_arg): mark str. see also [ruby-dev:39735]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 22:27:44 +00:00
svn c5dd8feb29 * 2009-11-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 15:08:09 +00:00
nahi c7b0dbd002 * test/digest/test_digest_extend.rb: Added tests for current digest
framework.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 15:08:06 +00:00
akr fe97646743 * vm_eval.c (rb_search_method_entry): refine error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 11:47:19 +00:00
knu e6f670242c * ext/digest/digest.c (rb_digest_instance_method_unimpl): Do not
call rb_inspect() on an object that does not implement necessary
  methods; reported by NaHi.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 10:31:58 +00:00
duerst 80b54214b2 * transcode.c: Added a check for an internal error
(with Tatsuya Mizuno)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 10:28:45 +00:00
svn 1adc3d1c4f * 2009-11-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 04:10:00 +00:00
usa d3eb005737 * bootsraptest/test_io.rb: skip the test of io/nonblock on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 04:09:59 +00:00
akr 9585749e8e * test/ruby/envutil.rb (EnvUtil.invoke_ruby): raise Timeout::Error
instead of flunk.  reported by Yusuke Endoh.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-24 13:59:10 +00:00
mame b317738edc * vm.c (ruby_vm_destruct, thread_memsize): fix argument type to make
RUBY_MARK_FREE_DEBUG available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-24 13:33:44 +00:00