nobu
fab47c96c5
* ksvndifftest/date/test_date_parse.rb: use UTF-8 literals.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 08:18:52 +00:00
tenderlove
8f90252c52
Adding yaml tests [ruby-core:26732]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 17:27:05 +00:00
akr
31ee9fd966
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 13:45:59 +00:00
shugo
3dc8a69df7
* vm_insnhelper.c (vm_call_method): protected singleton methods of
...
an object should not be able to called from other instances of the
class of the object. [ruby-core:26761]
* vm_eval.c (rb_method_call_status): ditto.
* test/ruby/test_module.rb (test_protected_singleton_method): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 07:01:44 +00:00
akr
8c3f13f98d
fix previous change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 23:57:00 +00:00
akr
5f221c31ed
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 17:58:14 +00:00
akr
e88009f40e
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 17:14:43 +00:00
akr
453890a972
tests refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 17:11:54 +00:00
akr
43bd807c43
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 16:24:45 +00:00
marcandre
c07e7d167d
* ext/bigdecimal/bigdecimal.c (BigDecimalCmp): Fix comparisons [ruby-core:26646]
...
* test/bigdecimal/test_bigdecimal.rb (class): Fix and improve tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-14 00:17:07 +00:00
tenderlove
9a9cc65035
* test/dl/test_cptr.rb (**): using ruby_xfree instead of libc's free
...
* test/dl/test_func.rb (test_strdod): strtod needs a char ** argument
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-13 07:19:59 +00:00
tenderlove
17ccd5d013
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): when wrapping a pointer it should
...
keep a reference to the object it's wrapping
* test/dl/test_func.rb use standard test methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-12 22:41:07 +00:00
xibbar
f97d8eec10
* test/cgi/test_cgi_multipart.rb (_read):
...
performance improvement in windows.[ruby-dev:39650]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-12 14:53:35 +00:00
nobu
55179696b2
* lib/tempfile.rb (Tempfile#initialize): option hash may not be
...
given. [ruby-core:26681]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-11 21:42:40 +00:00
tenderlove
f0e0b77864
* test/dl/test_func.rb (test_strtod): strtod test should not rely on
...
memory layout
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-10 22:51:24 +00:00
yugui
c33d5a80c7
* test/matrix/test_matrix.rb (TestMatrix#test_rank):
...
added a test method for r24969.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-10 17:18:31 +00:00
nobu
6ef3d123dd
* test/ruby/test_comparable.rb (TestComparable#cmp): suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-08 03:59:42 +00:00
tenderlove
912c42bebf
* test/dl/test_callback.rb (**) adding a callback test file
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-08 00:21:50 +00:00
tenderlove
5de564634d
* ext/dl/cfunc.c (**) updating documentation
...
* test/dl/test_cfunc.rb (test_ptr=, test_ptr) testing the pointer
accessor methods on CFunc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-08 00:21:41 +00:00
tenderlove
a56bd8c31a
* ext/dl/cptr.c (rb_dlptr_inspect): making inspect consistent across
...
platforms
* test/dl/test_cptr.rb (test_inspect): testing inspect
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-07 21:37:27 +00:00
akr
4319b48ab6
* lib/pp.rb (PP::ObjectMixin#pretty_print): use to_s regardless of
...
instance variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-07 12:05:38 +00:00
tenderlove
35da6fdcf1
* ext/dl/cfunc.c (rb_dlcfunc_initialize): cleaning up C macros
...
* ext/dl/cfunc.c (**): adding documentation
* test/dl/test_cfunc.rb (test_set_calltype) testing calltype
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06 22:50:40 +00:00
tenderlove
bc52ea0fde
* ext/dl/cptr.c (rb_dlptr_s_malloc, rb_dlptr_initialize): adding
...
documentation
* test/dl/test_cptr.rb (**): testing that malloc works when passed free
functions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06 22:50:05 +00:00
tenderlove
5296367cf4
* ext/dl/cptr.c (rb_dlptr_to_str, rb_dlptr_to_s) adding documentation
...
* test/dl/test_cptr.rb (test_to_str, test_to_s) testing the
stringification of DL::Ptr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06 18:29:31 +00:00
tenderlove
c2d7621d8d
* ext/dl/cptr.c (rb_dlptr_inspect, rb_dlptr_plus, rb_dlptr_minus)
...
documenting +, -, inspect
* text/dl/test_cptr.rb (test_minus, test_plus, test_inspect) testing
minus, plus, and inspect
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06 18:02:30 +00:00
kazu
e83d7c4eca
* test/ruby/test_case.rb: merged r25658 from ruby_1_8.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05 22:48:53 +00:00
naruse
c47c38de93
Retry on checking signal_received.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05 02:03:18 +00:00
naruse
a07b764f9e
300 should be enough for testing cyclic byte succ.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05 00:57:57 +00:00
naruse
c5b4aedab6
Decrease counts of tests which spend so long time.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-04 19:01:41 +00:00
tenderlove
02d55ac989
* test/dl/test_cptr.rb (test_to_ptr*): testing DL::CPtr#to_ptr
...
* ext/dl/cptr.c (rb_dlptr_free_set, rb_dlptr_free_get,
rb_dlptr_s_to_ptr): adding documentation, fixing indentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 20:28:20 +00:00
tenderlove
c30e32d075
* ext/dl/cptr.c (rb_dlptr_eql, rb_dlptr_cmp): DL::CPtr#== and DL::CPtr#<=>
...
should not raise an exception when compared to a different object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 17:12:46 +00:00
naruse
a1fc9cd582
* string.c (rb_str_upto): make next object before yield its block.
...
fix: can modify original begin string of String#upto.
[ruby-dev:26384] [ruby-dev:39626] #2327
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-03 15:16:55 +00:00
tenderlove
a9e662ac7a
* ext/dl/cptr.c (rb_dlptr_ptr, rb_dlptr_ref) adding documentation
...
* test/dl/test_cptr.rb (test_ref_ptr) testing CPtr#ref and CPtr#ptr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:47:08 +00:00
tenderlove
4b76900a55
* ext/dl/cptr.c (rb_dlptr_to_value) added documentation
...
* test/dl/test_cptr.rb (test_to_value) testing DL::CPtr#to_value
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:46:56 +00:00
tenderlove
6cf6d8556c
* ext/dl/cptr.c (rb_dlptr_size) splitting function to reduce complexity
...
* ext/dl/cptr.c (rb_dlptr_null_p, rb_dlptr_aref, rb_dlptr_aset) adding
documentation
* ext/dl/dl.c (rb_dl_free) adding documentation
* test/dl/test_cptr.rb (test_null?, test_size, test_size=,
test_aref_aset) Improving test coverage
* test/dl/test_dl2.rb (test_free_secure) improving test coverage
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:46:44 +00:00
tenderlove
5f3d0f5233
* test/dl/test_dl2.rb (**) testing malloc and realloc
...
* ext/dl/dl.c (**) adding documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:46:27 +00:00
nahi
d1cb4a5ba7
* lib/net/http.rb (Net::HTTPResponse#each_response_header):
...
accept multiline message header of HTTP response. see #1796 .
cf. RFC 2616 '4.2 Message Header'.
* test/net/http/test_httpresponse.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 13:09:03 +00:00
nobu
db196eef24
* test/ruby/test_enum.rb (test_count): marked as an implementation
...
specific test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 08:05:31 +00:00
nobu
166a53c560
* vm_eval.c (vm_call0, vm_call_super, rb_f_send, rb_f_public_send):
...
fixed call_type. [ruby-dev:39581]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 07:57:21 +00:00
nobu
35b88be02b
* vm_eval.c (rb_search_method_emtry, rb_method_call_status): split
...
from rb_call0().
* vm_eval.c (rb_check_funcall): get rid of raising exceptions and
hiding further exceptions. [ruby-dev:39584]
* vm_eval.c (rb_funcall_no_recursive): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 07:42:04 +00:00
nobu
bb385e2386
* test/ruby/test_enum.rb (test_count): test for [ruby-core:24794].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 07:28:03 +00:00
nobu
0afb3e381d
* test/ruby/enc/test_gb18030.rb (test_left_adjust_char_head):
...
String#chop no longer raises ArgumentError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-29 19:28:49 +00:00
matz
0580ba0611
* array.c (rb_ary_to_ary): do not use #respond_to? to detect
...
to_ary. Just call. [ruby-core:23738]
* eval.c (rb_check_funcall): new function with method existence
check. returns Qundef when the method does not exist.
* enumerator.c (enumerator_rewind): just call method, using
rb_check_funcall(). [ruby-core:23738]
* error.c (exc_equal): ditto.
* object.c (convert_type): ditto.
* error.c (rb_name_err_mesg_new): export function.
* eval.c (make_exception): ditto.
* io.c (pop_last_hash): return early when the last argument is nil.
* io.c (rb_io_puts): treat T_STRING specially for small
optimization.
* vm_eval.c (raise_method_missing): skip method call if possible
using rb_method_basic_definition_p().
* vm_eval.c (method_missing): ditto.
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_debug): test
suites changed to ignore exceptions caused by just-call policy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-29 04:55:10 +00:00
naruse
7a884fe466
* encoding.c (get_filesystem_encoding): removed.
...
* encoding.c (rb_locale_encindex): added.
* encoding.c (rb_filesystem_encindex): added.
* encoding.c (rb_filesystem_encindex): add an alias 'filesystem'.
[ruby-dev:39574]
* encoding.c (enc_find): add rdoc about special aliases.
* gem_prelude.rb (Gem.set_home): use Encoding.find('filesystem').
* gem_prelude.rb (Gem.set_paths): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-28 07:34:24 +00:00
nobu
8252adfd5a
* ext/stringio/stringio.c (Init_stringio): added read_nonblock and
...
write_nonblock aliases. [ruby-dev:39551]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 13:22:40 +00:00
nobu
121d15ddda
* string.c (chopped_length): get rid of unexpected exception.
...
see [ruby-core:26336].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 07:36:54 +00:00
kazu
ab77f00b04
* parse.y (ripper_filename): add Ripper#filename. [ruby-dev:37856] * test/ripper/test_filter.rb: add more tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 23:11:59 +00:00
nobu
9350a57463
* io.c (io_fwrite): adjust stdio file position after direct write on
...
BSDish platforms. [ruby-core:26300]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 03:06:29 +00:00
tenderlove
3f6f9f87ca
* ext/dl/handle.c (**) adding documentation
...
* test/dl/test_handle.rb (test_NEXT) testing the NEXT handle
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:56 +00:00
tenderlove
1578edbafc
* ext/dl/handle.c (rb_dlhandle_close_enabled_p) testing that handles can
...
be enabled and disabled for closure on GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:41 +00:00
tenderlove
159e6439c0
* ext/dl/handle.c (**) adding documentation
...
* test/dl/test_handle.rb (**) testing to_i and initialize
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:29 +00:00
tenderlove
60f86b2edb
* ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)
...
* test/dl/test_handle.rb (**) testing sym behavior
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:15 +00:00
tenderlove
c30de1e38e
* ext/dl/handle.c (rb_dlhandle_sym) removing unnecessary code. Adding
...
documentation and tests for current functionality.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:02 +00:00
tenderlove
a631b5df36
* ext/dl/handle.c (rb_dlhandle_close) check return value of dlclose()
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 21:56:50 +00:00
matz
5d6440c748
* class.c (rb_class_new): move class check to rb_check_inheritable().
...
* class.c (rb_check_inheritable): should not allow subclass of
class Class. [ruby-core:26225]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 23:37:14 +00:00
tenderlove
5ee251bdad
* ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2)
...
[ruby-core:25762]
* ext/dl/dl.c (rb_dl_dlopen) removed rb_secure(2)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 16:44:41 +00:00
akr
4079c46912
* test/ruby/envutil.rb (assert_in_out_err): test_stdout and
...
test_stderr should be an array.
* test/ruby/test_rubyoptions.rb (test_notfound): test_stdin of
assert_in_out_err should be a string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-22 11:22:11 +00:00
nobu
d9f27b5609
* test/scanf/test_scanfio.rb (TestScanfIO): needs to inherit
...
TestCase.
* test/scanf/test_scanfio.rb (TestScanfIO#test_io): fixed a typo.
close test data file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-21 03:44:56 +00:00
nobu
4e786ee162
* test/ruby/{marshaltestlib,test_marshal}.rb: suppressed warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-21 03:37:40 +00:00
nobu
f04debed3b
* test/logger/test_logger.rb (TestLogDevice#test_write): check
...
also error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 23:17:19 +00:00
naruse
b32bae3fbb
Use Array#permutation for permutation tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 15:59:43 +00:00
nahi
070cbd942e
* added monitor.rb test. see #2240 the bug on ruby_1_8.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 15:57:39 +00:00
nahi
8906bf2c1b
* lib/logger.rb: imported upstream version (logger/1.2.7) see #2238 .
...
* do not raise an exception even if log writing failed.
* do not raise ShiftingError if an aged file already exists.
(no ShiftingError will be raised from 1.2.7, just warn() instead)
* test/logger/test_logger.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 15:08:38 +00:00
nobu
28d97e63d6
* test/ripper/test_*.rb: fixed indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 06:35:26 +00:00
nobu
e3e93bb53e
* parse.y (method_call): dispatch symbols. a patch from Andy Keep in
...
[ruby-core:26169]. [ruby-core:26165]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 06:28:51 +00:00
nobu
14f13abb85
* parse.y (mlhs_basic): fixed handling splat in middle of mlhs. a
...
patch from Andy Keep in [ruby-core:26163]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 06:07:39 +00:00
nobu
b907ee320d
* parse.y (parser_here_document): dispatch delayed heredoc
...
contents. based on a patch from Andy Keep in [ruby-core:24855].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 05:50:53 +00:00
nobu
321c94af8e
* iseq.c (prepare_iseq_build, rb_iseq_build_for_ruby2cext):
...
untrust mark array. [ruby-core:26137]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-19 01:59:38 +00:00
naruse
a07cef02a9
Retry until the signal is trapped.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-18 11:19:33 +00:00
yugui
c0b42eedea
* test/test_prime.rb
...
(TestPrime#test_eratosthenes_works_fine_after_timeout):
test for [ruby-dev:39465].
* lib/prime.rb (Prime::EratosthenesSieve):
fixed [ruby-dev:39465].
suppressed memory reallocation.
constantified some magic numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-18 00:55:34 +00:00
nobu
79a8955f8d
* marshal.c (id2encidx): register encoding name.
...
(r_object0): register object before encoding name.
[ruby-core:24882]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-17 13:11:05 +00:00
yugui
9cf0627944
* test/rake/test_fileutils.rb (Rake::TestFileUtils#test_sh): uses
...
FileUtils::RUBY instead of fixed "ruby" so that the ruby command
works fine in Ruby's "make test-all".
(test_sh_with_a_single_string_argument): ditto.
(test_sh_with_multiple_arguments): ditto.
(test_sh_failure): ditto
(test_sh_special_handling): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-17 09:04:16 +00:00
yugui
984177a000
* test/rake/data/unittest/subdir/.gitignore: dummy entry for ensuring
...
existance of "subdir" directory with git.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-17 09:02:40 +00:00
nobu
b4a9962e85
* test/ruby/test_thread.rb (test_status_and_stop_p): reduce the risk
...
of race condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 03:10:31 +00:00
nobu
585f8fcf0d
* test/ruby/test_object.rb (test_respond_to_missing):
...
respond_to_missing? should accept two arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 03:07:21 +00:00
nobu
e0eb17f887
* test/ruby/test_object.rb (test_remove_method): test for Bug#2202.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 00:53:18 +00:00
nobu
9fff5f0fab
* io.c (io_encoding_set): get rid of parsing non-ascii string, and
...
refine messages for invalid name encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-15 06:14:16 +00:00
nobu
6069202867
* io.c (io_reopen): unread current buffer before telling the
...
position, for the case of reopening same file. [ruby-dev:39479]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-15 05:58:00 +00:00
nobu
c7afd1aef4
* ext/iconv/iconv.c (iconv_create): cannot retry with given block.
...
[ruby-dev:39487]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-15 05:21:00 +00:00
nobu
1af93d6a49
* test/iconv/test_option.rb: removed particular implementation
...
specific tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-15 05:17:06 +00:00
nobu
0e4121aa5b
* ruby.c (process_options): script name should not be shown in an
...
error message before loaded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-14 04:24:16 +00:00
nobu
7a063b7416
* test/ruby/test_regexp.rb (TestRegexp#test_parse_kg): suppress
...
warnings while tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-12 10:55:40 +00:00
naruse
8ab0220352
* marshal.c (has_encoding): added for check the regexp
...
is dumped by 1.8 or 1.9.
* marshal.c (r_object0): use has_encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-11 18:49:41 +00:00
nobu
433073cf7c
* test/rake/test_application.rb: not executable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-11 04:54:31 +00:00
nobu
bbaf596678
* test/rake/test_namespace.rb: not executable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-11 04:53:47 +00:00
naruse
866c79e2de
* tool/enc-unicode.rb: parse range notation of UnicodeData.txt.
...
* enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
follow above change. [ruby-dev:39444]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-08 02:49:11 +00:00
matz
e1797bc7dd
* lib/delegate.rb (Delegator::public_api): take snapshot of
...
public method at the beginning time.
* lib/delegate.rb (SimpleDelegator#initialize): use
Delegator.public_api since public_method might be added after
initialization. [ruby-dev:39383]
* lib/delegate.rb (DelegateClass): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-06 13:07:12 +00:00
nobu
f6f89b880a
* marshal.c (struct {dump,load}_arg): manage with dfree, instead
...
of using local variable which may be moved by context switch.
[ruby-dev:39425]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 10:30:56 +00:00
akr
4530644186
wrap by a module.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 05:44:27 +00:00
nobu
47dfb32c43
* test/rubygems/test_gem_installer.rb (test_build_extensions_extconf_bad):
...
escaped meta charater.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 04:59:11 +00:00
nobu
da63c5ca4b
* test/rubygems/gemutilities.rb (setup): use ENV["RUBY"] before
...
installation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 04:55:23 +00:00
nobu
57940c0323
* test/rubygems/test_gem.rb (TestGem#test_self_find_files): "."
...
is no longer included in $LOAD_PATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 04:53:57 +00:00
akr
ea56a70eb8
add assertion message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 00:00:18 +00:00
nobu
19bad26c5a
* test/rubygems: use require_relative.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 15:59:29 +00:00
nobu
041fc407b0
* test/rake/contrib/test_ftp.rb: moved.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 14:57:12 +00:00
nobu
74b5825136
* test/rake: get rid of name collision.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 14:54:18 +00:00
nobu
746fe8af5a
* test/rake: get rid of name collision.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 14:47:46 +00:00
nobu
664c7ef4f6
* test/rake/test_package_task.rb (Rake::TestPackageTask),
...
(Rake::TestGemPackageTask): get rid of name collision with
rubygems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 13:37:52 +00:00
nobu
72ad8595f2
* parse.y (bv_decls, bvar): fix for block variables.
...
[ruby-dev:39423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 13:14:19 +00:00
nobu
7b26a97142
* test/ripper/test_scanner_events.rb: workaround for ruby-mode.el confusion.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 12:57:54 +00:00
nobu
2957020491
* test/ripper/dummyparser.rb: suppress redefinition warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 12:25:32 +00:00
nobu
9603cd2f62
* vm_method.c (rb_add_method_def): no redefinition warning on
...
undef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 12:19:19 +00:00
matz
74926fefb7
* object.c (rb_f_integer): now Integer() takes optional base
...
argument. base will be ignored for non string values.
suggested by Sam Carr at RubyFoo Lounge at London.
* test/ruby/test_integer.rb (TestInteger#test_Integer): test
updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 10:18:14 +00:00
nobu
719b0f8e30
* lib/rake: updated to rake code to rake-0.8.7 source code base.
...
* lib/rake/loaders/makefile.rb (Rake::MakefileLoader#process_line):
respace dependencies too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 19:07:55 +00:00
nobu
1457dca5d8
* test/ripper/dummyparser.rb (DummyParser): improvement by Magnus
...
Holm in [ruby-core:25884].
* remove scanner events which simply returned the first argument.
* all parser events are now automatically generated.
* simplify blocks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 15:47:54 +00:00
akr
2e70b9e70d
* enum.c (enum_slice_before): take a pattern if no block given.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 11:50:11 +00:00
nobu
aec8a4b0a4
* parse.y (ripper_yylval_id, ripper_get_{id,value}): wrap ID by
...
NODE to track local variable assignment.
* parse.y (lvar_defined_gen, assignable_gen): enable local
variable check. [ruby-core:24923]
* parse.y (validate): use value only.
* test/ripper/test_parser_events.rb (test_local_variables): tests
based on a patch from Magnus Holm in [ruby-core:25885].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 11:37:44 +00:00
nobu
a71d47a380
* vm_method.c (rb_add_method_def): show the location where
...
overwritten method was defined. [ruby-dev:39400]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-30 04:15:46 +00:00
naruse
5b2d54be66
Escape as \x{XXXX} other than Unicode chars.
...
* string.c (rb_str_inspect): escape as \x{XXXX} when the encoding is
other than Unicode. [ruby-dev:39388]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 15:02:59 +00:00
nobu
aed9218981
* test/ruby/test_class.rb (test_method_redefinition): commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 07:03:11 +00:00
nobu
811c2d5100
* test/ruby/test_{class,module}.rb (test_method_redefinition): include
...
warned line number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 06:59:42 +00:00
nobu
e6fb96e691
* test/ruby/test_{class,module}.rb (test_method_redefinition): refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 06:26:46 +00:00
nobu
f5654b4dfc
* test/ruby/test_module.rb: suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 05:47:21 +00:00
nobu
1fe57a4b5d
* vm_method.c (rb_add_method_def): nothing to do if old method had
...
same definition. [ruby-dev:39397]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 04:37:52 +00:00
nobu
00be97da7e
* test/ruby/test_class.rb (test_module_function): tests for warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 03:53:44 +00:00
naruse
b3854e7162
Refine tests arround String#inspect.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 02:19:58 +00:00
naruse
3058eec581
* string.c (rb_str_inspect): dump as \uXXXX when the
...
string is in Unicode. [ruby-dev:39388]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 00:34:06 +00:00
matz
102918a3ee
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-28 03:09:16 +00:00
naruse
b07650769e
* stringio/stringio.c (strio_read): set ASCII-8BIT encoding
...
when length argument is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-28 01:08:24 +00:00
akr
4319c0235d
* lib/pp.rb (PP:ObjectMixin#pretty_print): delegates has no inspect
...
method. [ruby-core:25804]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 04:08:31 +00:00
nobu
9d72cb269c
* proc.c (missing_wrap): reverted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 04:48:54 +00:00
nobu
66a97945e3
* proc.c (mnew): fix for instance method of Module, BasicObject
...
and subclass of a class which overrides respond_to_missing?.
based on a patch from Nikolai Lugovoi <nlugovoi AT gmail.com> in
[ruby-core:25748].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 04:04:48 +00:00
matz
c4b0b4c91c
* proc.c (mnew): generate method object that wraps method_missing,
...
when #respond_to_missing? is defined.
* test/ruby/test_object.rb (test_respond_to_missing): add test
suites for #respond_to_missing? changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 04:42:28 +00:00
nobu
39ea1c8c7c
* ext/bigdecimal/lib/bigdecimal/math.rb (atan): atan(Infinity) is
...
PI/2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 17:21:26 +00:00
nobu
bda0b012a8
* parse.y (assign_in_cond): also should warn assignment to dvar in
...
conditional. [ruby-dev:39363]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 08:08:32 +00:00
nobu
1b541acd69
* string.c (rb_str_upto): keep first width. [ruby-dev:39361]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 04:14:23 +00:00
akr
475074d5da
* enum.c (enum_chunk): new method Enumerable#chunk.
...
* enum.c (enum_slice_before): new method Enumerable#slice_before.
[ruby-dev:38392] [ruby-dev:39240]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-22 01:35:53 +00:00
nobu
d9bfa822ea
* ext/bigdecimal/bigdecimal.c (GetVpValue): support conversion from
...
Rational. [ruby-core:25697]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 19:47:39 +00:00
nobu
f331b5584e
* proc.c (proc_binding): allow proc from method. [ruby-core:25589]
...
* vm.c (collect_local_variables_in_env): block iseq can be NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 08:12:12 +00:00
nobu
cd4f59bc5e
* ext/bigdecimal/lib/bigdecimal/math.rb (sin, cos, atan, exp, log):
...
improved precision and performance. based on a patch from Makoto
Yamashita in [ruby-core:25600] and [ruby-core:25602].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-20 15:07:38 +00:00
nobu
a1485dbea0
* dir.c (GlobPathValue), file.c (rb_get_path_check): path names
...
must be ASCII compatible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-19 08:33:01 +00:00
nobu
1aa21e630f
* marshal.c (r_object0): entry regexp object before its encoding
...
name. [ruby-core:25625]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-18 14:51:18 +00:00
nobu
8686840960
* compile.c (iseq_compile_each), parse.y (stmt, arg): arg_concat()
...
on op_asgn was inversed. [ruby-core:25629] [Bug #2050 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-18 07:15:06 +00:00
nobu
f2b68df43e
* test/fileutils/test_fileutils.rb: fixed indent by splitting methods.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-18 02:20:39 +00:00
kazu
263abf2963
* test/fileutils/test_fileutils.rb: add a test for [ruby-dev:39345]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-17 22:08:32 +00:00
matz
5529a03271
* test/ruby/test_thread.rb (TestThread#test_recursive): remove
...
implementation dependent test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 10:33:14 +00:00
marcandre
1796522f10
* thread.c (rb_exec_recursive_outer, rb_exec_recursive): Added method to short-circuit to the outermost level in case of recursion
...
* test/ruby/test_thread.rb (test_recursive_outer): Test for above
* hash.c (rb_hash_hash): Return a sensible hash for in case of recursion [ruby-core:24648]
* range.c (rb_range_hash): ditto
* struct.c (rb_struct_hash): ditto
* array.c (rb_array_hash): ditto
* test/ruby/test_array.rb (test_hash2): test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-15 21:30:50 +00:00
naruse
a8154060ab
Use rb_isspace for ASCII-incompatible strings.
...
* string.c (rb_str_split_m): use rb_isspace when the string
may be ASCII-incompatible.
(rb_str_lstrip_bang): ditto.
(rb_str_rstrip_bang): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-15 05:27:29 +00:00
matz
5860ba548e
* string.c (rb_str_lstrip_bang): use ascii_isspace(). [ruby-dev:39322]
...
* string.c (rb_str_rstrip_bang): ditto.
* string.c (rb_str_split_m): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-14 18:10:00 +00:00
akr
242e2aaec2
remove temporally files explicitly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 17:59:49 +00:00
akr
98697d3617
make tempfile prefix more descriptive.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 05:46:38 +00:00
nobu
35e17cbe21
* test/ruby/test_process.rb (test_rlimit_value): rlim_max may be
...
higher than rlim_cur.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 02:43:52 +00:00
akr
0cde80d36a
* lib/open-uri.rb (OpenURI::Meta#content_type_parse): strip quotes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 02:29:47 +00:00
naruse
6bbed0e31b
* test: use require_relative.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 17:00:51 +00:00
akr
945b604e3a
extra commas removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 16:33:44 +00:00
akr
0466f33486
test read_timeout.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 16:26:05 +00:00
akr
db2be749b4
* lib/open-uri.rb (URI::FTP#buffer_open): fix the %2F handling.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 16:18:03 +00:00
nobu
c8f6174008
* test/ruby/test_require.rb (test_relative): test without current
...
directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 15:52:03 +00:00
akr
33d5c13775
test invalid redirect location.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 15:34:35 +00:00
akr
0ab4b21d81
fix tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 15:22:44 +00:00
nobu
efa4ed8cce
* vm_method.c (rb_alias): hooks are called from rb_add_method_def.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 15:21:03 +00:00
nobu
d7feab06cc
* vm_method.c (rb_add_method, rb_add_method_me): call method added
...
hook after definition. [ruby-core:25536]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 15:03:02 +00:00
akr
797749c219
test ftp over http proxy.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 14:19:58 +00:00
akr
188e9667dc
* lib/open-uri.rb (URI::FTP#buffer_open): use the port specified in
...
the URI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 13:49:07 +00:00
akr
c35f659524
test CA certs dir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 11:56:12 +00:00
akr
5ee445bc0c
test proxy log.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 11:07:05 +00:00
akr
f34cf072a4
add https test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 09:50:57 +00:00
akr
ffad7d737c
refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 03:47:18 +00:00
akr
8933356469
more tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 03:11:49 +00:00
akr
726caa59a9
more tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 12:49:14 +00:00
naruse
f20d759cd0
* test/fileutils: use require_relative to require fileasserts.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 09:53:50 +00:00
akr
8f0b4e49ca
renamed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10 23:42:49 +00:00
akr
717b5a5f2d
add tests for open-uri.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10 17:59:48 +00:00
akr
3ce642f5af
* test/dl: use require_relative to require test_base.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10 17:14:53 +00:00
akr
3707fd4941
* test/dl/test_cptr.rb (test_free=): test SEGV at first.
...
[ruby-dev:39269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10 12:22:59 +00:00
akr
5ced9a4395
* test/ruby/envutil.rb (assert_normal_exit): Don't use
...
AssertionMessage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10 12:21:48 +00:00
nobu
ee647e1b96
* lib/fileutils.rb (FileUtils::Entry_#copy_file): open the source
...
file first to ensure it can be copied. [ruby-core:25498]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 13:02:04 +00:00
nobu
098d8d11e1
* test/dl/test_dl2.rb (test_call_double, test_sin): fixed argument
...
order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 12:04:29 +00:00
nobu
481a6476ce
* test/ruby/test_require.rb (test_relative): tests for require_relative.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 07:21:49 +00:00
nobu
31a6d50863
* load.c (rb_feature_provided): fixed for autoloading extension
...
library without suffix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 06:46:31 +00:00
nobu
922bc54adb
* test/dl/test_{cfunc,ptr}.rb: added tests from Aaron Patterson.
...
see [ruby-dev:39249].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-07 23:32:32 +00:00
nobu
a5c2f8843f
* io.c (rb_io_tell): adjustment for ungotten data.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-07 08:23:00 +00:00
nobu
c76e698fd8
* compile.c (iseq_compile_each): op_asgn to aref should return rhs.
...
[ruby-core:25387]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-05 06:21:15 +00:00
nobu
8a9960a374
* compile.c (iseq_compile_each): &&= and ||= should return rhs.
...
[ruby-dev:39163] (#1996 ), [ruby-core:25143]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-05 01:50:18 +00:00
nobu
96c50e47c5
* compile.c (iseq_compile_each): &&= and ||= should return rhs.
...
[ruby-dev:39163] (#1996 ), [ruby-core:25143]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-05 01:38:47 +00:00
nobu
605e7d4a60
* re.c (update_char_offset): position should be long.
...
* re.c (match_hash, match_equal): new methods. [ruby-core:24748]
* re.c (reg_match_pos, rb_reg_eqq, rb_reg_s_quote): get rid of use
VALUE as int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-04 23:51:44 +00:00
nobu
15ec8e6548
* test/ruby/test_io.rb (test_binmode_after_closed): test for [ruby-core:25363].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-04 21:30:52 +00:00
nobu
3fe5402dfa
* math.c (math_gamma): get rid of direct comparison between too
...
big double and integer, with gcc on x86_64. [ruby-core:25257]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-02 07:50:16 +00:00
naruse
d99ac4f829
Add tests of JSON 1.1.9.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-01 17:34:50 +00:00
nobu
7fed54570f
* test/ruby/test_argf.rb (assert_src_expected): refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-31 01:41:35 +00:00
naruse
80918e2ac9
* ext/zlib/zlib.c (gzfile_read_all): use gzfile_newstr;
...
set and convert its encoding. [ruby-dev:38304]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-29 16:17:26 +00:00
nobu
84255e0485
* vm_method.c (rb_remove_method_id): exported.
...
* numeric.c (num_sadded): fix for non-ascii method name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-27 09:31:11 +00:00
naruse
a20bd463a8
* re.c (rb_reg_preprocess_dregexp): set encoding as ASCII-8BIT
...
when /n is specified and the embeded string is escaped text.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-27 06:10:30 +00:00
nobu
2ef382231f
* ext/strscan/strscan.c (strscan_set_string): set string should not be
...
dupped or frozen, because freezing it causes #concat method failure,
and unnecessary to dup without freezing. a patch from Aaron
Patterson at [ruby-core:25145].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 23:16:40 +00:00
nobu
31875e97b4
* random.c (random_rand): fixed for edge cases of ranges.
...
[ruby-dev:39166]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 14:58:44 +00:00
nobu
9676023607
* random.c (random_rand): unified random_int and random_float.
...
[ruby-dev:39158]. and fixes [ruby-core:24655], [ruby-core:24677],
[ruby-core:24679].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 10:20:30 +00:00
nobu
47a1a7b67d
* test/test_tempfile.rb: merged from Hongli Lai's fork.
...
cf [ruby-core:25131].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 10:00:03 +00:00
kou
b0947c5e04
* lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: fix a bug
...
that RSS Maker doesn't accept 'false' as guid's isPermaLink.
Reported by Joe Holt. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-24 12:31:22 +00:00
akr
461bd62fec
* enumerator.c (ary2sv): add dup argument.
...
(enumerator_next): call ary2sv with dup=0.
(enumerator_peek): call ary2sv with dup=1 to return duplicated array.
(enumerator_peek_values_m): new function to return duplicated array.
(Init_Enumerator): use enumerator_peek_values_m as
Enumerator#peek_value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-21 15:51:35 +00:00
naruse
f7207fa2fc
Change modestr syntax for BOM to "BOM|UTF-*".
...
* io .c (rb_io_fmode_modestr): change modestr syntax for BOM
to "BOM|UTF-*".
* io.c (parse_mode_enc): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-21 06:16:53 +00:00
akr
0c0f754400
* enumerator.c (next_init): don't clear feedvalue.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-19 17:32:56 +00:00
akr
3b4949ffa8
* enumerator.c: implement Enumerator#{next_values,peek_values,feed}
...
and StopIteration#result. [ruby-dev:39109]
(struct enumerator): replace no_next by stop_exc.
new field feedvalue.
(enumerator_mark): mark feedvalue and stop_exc.
(enumerator_init): initialize feedvalue and stop_exc.
(enumerator_init_copy): initialize feedvalue.
(next_ii): send yield arguments as an array. return feedvalue.
(next_i): generate StopIteration exception here. set result.
(next_init): initialize feedvalue.
(enumerator_next_values): new method Enumerator#next_values.
(ary2sv): new function.
(enumerator_peek_values): new method Enumerator#peek_values.
(enumerator_feed): new method Enumerator#feed.
(yielder_yield): return the yield value.
(generator_each): return the iterator value.
(stop_result): new method StopIteration#result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-19 16:36:00 +00:00
mame
43d0c7263b
* test/ruby/test_settracefunc.rb (test_return, test_return2): add two
...
tests for [ruby-dev:38701] and [ruby-core:24463].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-18 17:55:26 +00:00
akr
2772c80ce0
* enumerator.c (enumerator_peek): new method Enumerator#peek.
...
(enumerator_next): don't rewind at end.
[ruby-dev:38932]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-18 12:02:53 +00:00
takano32
7e41da2cdf
Tue Aug 18 13:46:14 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
...
* touch test/rdoc/empty.dat to run test_rdoc_parser.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-18 04:52:41 +00:00
wanabe
38a22404db
* vm_insnhelper.c (vm_call_cfunc): ensure hook c-return.
...
[Bug #1588 ]
* test/ruby/test_settracefunc.rb (TestSetTraceFunc#test_raise):
follow above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-18 02:44:10 +00:00
matz
95e77269a9
* range.c (range_step): treat symbols specially so that iterating
...
over symbols should work like strings. [ruby-core:24780]
* range.c (range_each): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-17 17:00:47 +00:00
matz
554786aedc
* range.c (range_each): should honor to_str conversion.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-17 16:41:00 +00:00
nobu
b5e6b46e90
* parse.y (lex_get_str, lex_io_gets, rb_parser_compile_string):
...
must be ascii compatible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-17 05:35:10 +00:00
tadf
cfed2cefb2
* lib/date/format.rb (strptime): removed \v; since \s includes \v.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 23:22:13 +00:00
tadf
df21038777
* complex.c (nucomp_rationalize) added. [experimental]
...
* rational.c ({nurat,nilclass,integer,float}_rationalize) ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 23:17:14 +00:00
matz
b21088b431
* string.c (rb_str_upto): generate numerical sequence when
...
characters in both edges are all digits. [ruby-talk:343186]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 22:43:48 +00:00
nobu
114f01bd9d
* parse.y (yylex): should dispatch scan-event even when follows
...
just after delayed-token. [ruby-dev:37855] [Bug #1071 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 14:58:27 +00:00
naruse
066b30245b
rescue Encoding::ConverterNotFoundError.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 06:31:31 +00:00
naruse
c0ec326b7b
* regparse.c (add_ctype_to_cc_by_range): fix the first
...
character bigger than sb_out was dropped.
* test/ruby/test_regexp.rb (TestRegexp#test_posix_bracket):
add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-15 16:27:13 +00:00
naruse
249697855e
\d, \s and \w are now non Unicode class. [ruby-dev:39026]
...
* include/ruby/oniguruma.h
(ONIGENC_CTYPE_SPECIAL_MASK): added.
(ONIGENC_CTYPE_D): ditto.
(ONIGENC_CTYPE_S): ditto.
(ONIGENC_CTYPE_W): ditto.
* regparse.c: \d, \s and \w are now non Unicode class.
[ruby-dev:39026]
(fetch_token_in_cc): use ONIGENC_CTYPE_[DSW] for \d/\s/\w.
(fetch_token): ditto.
(add_ctype_to_cc): add routines for ONIGENC_CTYPE_[DSW].
(parse_exp): ditto.
* test/ruby/test_regexp.rb (TestRegexp#test_char_class):
add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-15 16:01:33 +00:00
naruse
4155811dc1
* re.c (rb_reg_preprocess_dregexp): change Exception class to
...
RegexpError.
* test/ruby/test_m17n.rb (test_regexp_usascii): follow above.
* test/ruby/test_m17n.rb (test_regexp_embed): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 09:05:44 +00:00
nobu
be245c09e6
* test/ruby/test_marshal.rb (test_class_nonascii): test for non-ascii name class.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 06:34:59 +00:00
nobu
31f4a82942
* class.c (rb_define_class_id_under, rb_define_module_id_under):
...
new functions to define a nested class/module with non-ascii
name.
* struct.c (make_struct): use name with encoding.
* struct.c (inspect_struct): ditto. [ruby-core:24849]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 06:32:21 +00:00
nobu
c00428ed9e
* test/ruby/test_struct.rb (test_inspect): use assert_match.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 06:15:30 +00:00
nobu
265bd9e661
* string.c (rb_str_new_frozen): must not change encoding of frozen
...
shared string. [ruby-dev:39068]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 04:00:03 +00:00
naruse
e666111955
* encoding.c (rb_enc_compatible): If a string is empty and
...
other's encoding is US-ASCII, returns the empty string's encoding.
[ruby-list:46274]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 22:52:39 +00:00
nobu
d26cfd565d
* test/ruby/test_rubyoptions.rb (test_shebang): fix for new behavior.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 15:06:51 +00:00
tadf
8e6a754b5d
* lib/date.rb (complete_frags): Monday must be suitable for %W's
...
default day.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 14:14:41 +00:00
naruse
e56bf07b16
New API Encoding#ascii_compatible?.
...
* encoding.c (enc_ascii_compatible_p): added. [ruby-core:24793]
(Init_Encoding): New API Encoding#ascii_compatible?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 23:25:32 +00:00
nobu
ac2557e09f
* marshal.c (w_symbol r_symlink, r_symbol, r_object0): fix for
...
non-ascii symbols. loading such symbols can cause segfaults in
older versions. [ruby-core:24788]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-07 21:18:33 +00:00
nobu
f86f669cf3
* test/mkmf/base.rb (TestMkmf): was turned into a class, because
...
MiniUnit doesn't complain even if a testcase has no tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:30:15 +00:00
nobu
a032b1bdb8
* test/mkmf/base.rb: split from test_sizeof.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:14:50 +00:00
nobu
c6ada1e7e0
* lib/mkmf.rb (check_sizeof): added optional compiler option
...
argument. [ruby-core:24785]
* lib/mkmf.rb (create_makefile): suppressed shadowing outer local
variable warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:00:38 +00:00
nobu
8bc6c71547
* ruby.c (load_file_internal): assumes -x flag if no "ruby" is in
...
the shebang line. [ruby-dev:39015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 10:19:18 +00:00
matz
da19797648
* range.c (range_eql, range_eq): fixed equality to work for
...
subclasses of Range. a patch from Marc-Andre Lafortune.
[ruby-core:22190]
* test/ruby/test_range.rb: add assertions for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 05:01:12 +00:00
naruse
d857a1b0d7
Fix test for previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 01:40:15 +00:00
mame
528574c2e2
* lib/pp.rb (guard_inspect_key): untrust internal hash to prevent
...
unexpected SecurityError.
* test/ruby/test_object.rb: add a test for [ruby-dev:38982].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 16:44:05 +00:00
nobu
a194550e5c
* random.c (rb_random_int): arguments have to be converted to
...
integer. [ruby-core:24679]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-02 15:32:04 +00:00
mame
dfd3d1fb29
* test/ruby/test_rand.rb: add tests for Random#float's rejection
...
against Infinity and NaN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-02 08:40:52 +00:00
nobu
e626e0bdec
* random.c (rand_int): prevent from GC.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-02 05:20:51 +00:00
mame
22acf29509
* test/ruby/test_module.rb (test_ancestors, test_included_modules):
...
ignore rake mixins.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 15:57:06 +00:00
mame
045136d475
* test/ruby/test_rand.rb: add tests for Random class.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 12:57:02 +00:00
duerst
5e85648b77
* transcode.c: added check for frozen string for encode! (see Bug #1836 )
...
* test/ruby/test_transcode.rb: added tests for the above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 09:40:06 +00:00
nobu
b8b083dbd5
* insns.def (defineclass): preserve encoding of class/module
...
names. [ruby-core:24600]
* variable.c (rb_set_class_path_string): set class path with a
string value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 07:45:42 +00:00
xibbar
8bc2fb5ba4
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 07:39:09 +00:00
xibbar
1976ef38a7
* lib/cgi/util.rb (CGI::unescape): support encoding option.
...
* lib/cgi/cookie.rb (CGI::Cookie.parse): fix for the encoded value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-30 05:34:02 +00:00
ko1
9050b61dcb
* proc.c (rb_method_entry_arity): support optimized method (send).
...
* test/ruby/test_method.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-28 10:41:11 +00:00
nobu
1ac307dddc
* lib/rdoc/parser.rb (RDoc::Parser.binary?): fix for empty files.
...
[ruby-dev:38848]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-27 01:25:01 +00:00
nobu
b7f26835da
* io.c (argf_eof): go to the next file if called after ARGF.close
...
or ARGF.skip. [ruby-core:24561]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-26 10:17:39 +00:00
nobu
00d61f1fe5
* vm_insnhelper.c (vm_call_method): __send__ can call protected
...
methods. [ruby-core:24500]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-26 09:30:08 +00:00
nobu
c689ee1a89
* io.c (argf_eof): should not have reached EOF before trying to
...
read. based on a patch by Heesob Park <phasis AT gmail.com> at
[ruby-core:24559]. [ruby-core:24557]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-25 08:49:08 +00:00
nobu
d6ab828369
* complex.c (nucomp_hash), rational.c (nurat_hash): not to use
...
hash value of class so that equality against subclasses can
work. [ruby-dev:38850]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-25 04:44:36 +00:00
duerst
2886207584
* enc/trans/big5.trans, big5-hkscs-tbl.rb:
...
new Chinese BIG5-HKSCS transcoding (with Tatsuya Mizuno)
* test/ruby/test_transcode.rb: added tests for the above
(with Tatsuya Mizuno)
* enc/big5.c: Added BIG5-HKSCS as a replicate encoding of BIG5
(short term solution, needs more work; with Tatsuya Mizuno)
* tool/transcode-tblgen.rb: made 'pat' directly accessible in
class StrSet
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-24 10:26:18 +00:00
shugo
9914a16ca9
* lib/net/imap.rb (idle): leaves IDLE in a ensure clause. a patch
...
from Eric Hodel.
* test/net/imap/test_imap.rb (setup, teardown): turn on
Socket.do_not_reverse_lookup in tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-24 09:09:04 +00:00
shugo
4676ede3d1
* lib/net/imap.rb (resp_text_code): accepts response codes without
...
text. [ruby-core:24194]
* lib/net/imap.rb (idle, idle_done): new methods for the IMAP4 IDLE
command (RFC 2177). Thanks, Eric Hodel.
* lib/net/imap.rb (format_date, format_datetime): new method to
format IMAP-style date/datetime. Thanks, Eric Hodel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-23 15:20:47 +00:00
matz
7a5d48f6ab
* test/ruby/test_module.rb (TestModule#test_alias): warning
...
message updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-22 18:21:32 +00:00
matz
9ce6eb65bb
* test/ruby/test_enum.rb (TestEnumerable#each): recursive join now
...
raises ArgumentError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-22 17:53:56 +00:00
mame
31c561f66a
* vm_core.h (struct rb_iseq_t): add a new field line_no. This field
...
represents line number from which the original code of the iseq
starts. [ruby-dev:38698]
* iseq.c, compile.c: ditto.
* parse.y: line number hack (for Proc#source_location) is no longer
needed.
* test/ruby/test_settracefunc.rb: line number of set_trace_func is now
compatible with 1.8's.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-22 13:37:26 +00:00
nobu
2e4ad56fc2
* test/ruby/test_rand.rb (test_big_seed): tests also instance methods.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-21 23:38:23 +00:00
mame
4516f623b8
* random.c (rand_init): array length of random seed was broken, which
...
causes memory error with srand(2**1000000-1).
* test/ruby/test_rand.c: test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-21 14:51:17 +00:00
suke
904abb1d9b
* ext/win32ole/win32ole.c (vtdate2rbtime): VT_DATE variant object
...
is converted to Time object now.
* test/win32ole/test_win32ole_variant.rb (test_s_new_with_nil,
test_conversion_time2date, test_conversion_str2date,
test_conversion_vt_date, test_set_value): ditto.
* ext/win32ole/win32ole.c (rbtime2vtdate): refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-21 07:27:08 +00:00
nobu
5a392c71db
* compile.c (compile_dstr_fragments): reduced needless literal.
...
* parse.y (xstring, regexp, dsym, literal_concat, evstr2dstr):
literal at the top of dstr is no longer needed if it is empty,
since concatstrings and toregexp always create new strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-20 10:01:05 +00:00
akr
666049981f
Use UDP for sendmsg/recvmsg tests.
...
sendmsg/recvmsg doesn't work with SOCK_STREAM on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-19 08:53:11 +00:00
nobu
2737b90e36
* io.c (io_read): should taint the result. [ruby-dev:38826]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-19 08:32:44 +00:00
nobu
33fc55acef
* vm_method.c (me_opts): fixed optimized method aliasing.
...
[ruby-dev:38824]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-19 02:00:27 +00:00
usa
828d7a368a
* test_socket.rb (test_udp_server): cannot check the existance of sendmsg by
...
respond_to?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-19 00:48:40 +00:00
akr
bdfe1c7f8e
fix skip condition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-17 22:28:28 +00:00
usa
229b4e4c37
* ext/socket/socket.c (socket_s_ip_address_list): drop inactive
...
adapters.
* test/socket/test_{nonblock,addrinfo,socket}.rb: skip some tests on
Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-17 13:40:59 +00:00
akr
0101958745
* array.c (recursive_hash): reject recursive key.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-17 07:49:06 +00:00
matz
ae487eda6e
* array.c (recursive_join): raise ArgumentError for joining
...
recursive array.
* array.c (ary_join_1): ditto.
* test/ruby/test_array.rb (TestArray#test_join2): test updated for
recursive join.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-17 02:04:37 +00:00
akr
6dc1fea552
remove test for recursive hash key. [ruby-core:22921]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-17 00:18:34 +00:00
suke
6d7ddc3b29
* test/win32ole/test_win32ole.rb (test_s_codepage_changed,
...
test_s_locale_set, test_s_locale_change): skip test if Japanese
locale is not installed. [ruby-core:23806]
* test/win32ole/test_win32ole_variant.rb (test_conversion_str2cy):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 12:06:23 +00:00
nobu
415d5ebc2f
* id.c (Init_id), vm.c (vm_exec): @#__ThrowState__ is no longer
...
used. [ruby-dev:38760]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 09:28:12 +00:00
ko1
b5dd85f049
* vm_method.c (rb_alias): fix a case which try non-existing method alias.
...
* test/ruby/test_alias.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 08:44:23 +00:00
nobu
53163f8138
* io.c (io_reopen): discards read buffer. [ruby-core:24240]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 07:00:23 +00:00
nobu
eb9bc2d265
* random.c (rb_random_t): objectified. [EXPERIMENTAL]
...
[ruby-dev:30954]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 06:00:35 +00:00
naruse
ed55083246
Set tempfile name with literal.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-14 19:26:59 +00:00
nobu
9681409e36
* io.c (rb_io_initialize): check if the descriptor can be accessed
...
in the specified open mode. [ruby-dev:38571]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-14 07:13:11 +00:00
naruse
5cc1edcd0d
Follow tests for changes of ENV's encoding.
...
* test/ruby/test_m17n.rb (TestM17N#test_env): the encoding of ENV
is now locale encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-13 16:32:00 +00:00
yugui
d41195a3bc
* test/ruby/test_case.rb (TestCase#test_deoptimization):
...
test for [ruby-core:23190].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-13 15:47:20 +00:00
yugui
7287b852da
* lib/prime.rb (Prime#prime_division): now decomposes
...
negative integer into a decomposition with element [-1, 1].
* test/test_prime.rb: test for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-13 13:51:49 +00:00
naruse
cb7075a6a2
* test/ruby/test_io_m17n.rb (test_strip_bom): added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-11 05:46:36 +00:00
nobu
38867cc115
* array.c (ary_join_1): should recurse for element array.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 15:11:43 +00:00
kouji
257c314fbb
* ext/readline/extconf.rb: checked rl_refresh_line in readline.
...
* ext/readline/readline.c (readline_s_refresh_line): add new
method, a patch from Koichiro Ohba. see [ruby-list:45922].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 13:03:40 +00:00
kouji
89fd521319
* ext/readline/extconf.rb: checked rl_line_buffer and rl_point in
...
readline.
* ext/readline/readline.c (readline_s_get_line_buffer): new method.
(readline_s_get_point): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 12:13:18 +00:00
nobu
5d8b373b05
* test/ruby/test_array.rb (test_join2): fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 11:41:27 +00:00
nobu
af8f8e5b0e
* array.c (recursive_join): use obj to tell if recursion occurs.
...
[ruby-core:24150]
* enum.c (enum_join): reverted r23966. [ruby-core:24196]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 07:30:08 +00:00
naruse
5e2a28d13d
Add test for marshaling regexp.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 05:51:28 +00:00
nobu
bee49b3494
* vm_insnhelper.c (vm_search_superclass): checks for implicit
...
argument passing before method search. [ruby-core:24244]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 01:25:26 +00:00
nobu
ca93e00559
* file.c (rb_file_s_basename): returns new string instead of
...
shared string from FilePathStringValue(). [ruby-core:24199]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-08 07:47:09 +00:00
nobu
e895bc3cdb
* enum.c (rb_enum_join): non-nil separator must be convertible to
...
String. [ruby-core:24172]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 04:34:34 +00:00
nobu
06b9094f96
* proc.c (make_curry_proc): should propagate lambda-ness.
...
[ruby-core:24127]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-06 00:31:55 +00:00
matz
ed86848563
* test/ruby/test_module.rb (TestModule#test_undef): adjust to
...
message change.
* test/ruby/test_object.rb (TestObject#test_redefine_method_which_may_case_serious_problem): ditto.
* test/ruby/test_object.rb (TestObject#test_remove_method): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-06 00:15:29 +00:00
nobu
7c3fff4f54
* enum.c (enum_join): deals with self recursive objects to get rid
...
of infinite recursion. [ruby-core:24150]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-06 00:09:59 +00:00
nobu
b35d1e714c
* thread.c (rb_threadptr_exec_event_hooks): new function to
...
execute event hooks, with preserving errinfo. [ruby-core:24118]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-05 05:04:41 +00:00
nobu
918fefb7f7
* vm_insnhelper.c (vm_yield_setup_block_args): restores the first
...
arg where is overwritten at funcall. [ruby-core:24139]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-04 23:08:32 +00:00
tadf
0d2d098660
* complex.c (nucomp_equal_p): removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-03 12:31:26 +00:00
tadf
bac1841a93
* rational.c: renamed equal_p to eqeq_p.
...
* complex.c: ditto.
* complex.c (nucomp_equal_p): added.
Complex(NaN).equal?(Complex(NaN)) should return true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-03 12:19:54 +00:00
tadf
b61ab11f49
* complex.c: undef-ed shome methods. [ruby-core:24110]
...
* complex.c (Numeric#arg): NaN for NaN. [ruby-core:24116]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-03 10:50:17 +00:00
akr
6897fddd65
don't use a string for Time.at argument.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-02 11:04:11 +00:00
akr
2f8b6234cd
* include/ruby/intern.h (rb_time_num_new): declared.
...
* time.c (nsec2timev): extracted from time_new_internal.
(time_new_internal): change argument to VALUE.
(rb_time_new): follow the argument change.
(rb_time_nano_new): ditto.
(rb_time_num_new): new function.
* ext/socket/ancdata.c (ancillary_timestamp): use rb_time_num_new to
represent struct bintime preciously.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 12:11:53 +00:00
nobu
ae9c138e2d
* test/ruby/test_marshal.rb (TestMarshal#test_limit): test for
...
[ruby-core:24100].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 02:32:24 +00:00
nobu
ee5add4a79
* dln.c (dln_find_1): fix for files with dots. [ruby-dev:38588]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 09:56:03 +00:00
tadf
f94228c8bd
* rational.c (nurat_cmp): use rb_num_coerce_cmp.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 07:58:15 +00:00
kou
4365f6710d
* NEWS, lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: add
...
item.guid.permanent_link? and item.guid.permanent_link=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 04:45:24 +00:00
kou
23c14c3613
* NEWS: rss: 0.2.5 -> 0.2.7.
...
* lib/rss/rss.rb, test/rss/test_version.rb: 0.2.6 -> 0.2.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 04:41:36 +00:00
matz
cadee06b2a
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_rubyopt):
...
test suite add '.' to RUBYLIB. remove checks.
* test/ruby/test_require.rb (TestRequire#test_tainted_loadpath):
the default tempdir directory /tmp is world writable, so
SecrurityError would be raised. check removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-26 12:48:15 +00:00
akr
2f262b2351
reduce tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-26 12:41:25 +00:00
akr
cb5eb54da7
$: doesn't contains "." now.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-22 17:17:25 +00:00
matz
fa31dda1f8
* ext/stringio/stringio.c (strio_each_codepoint): new method.
...
[ruby-core:23949]
* ext/stringio/stringio.c (strio_each_codepoint): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-22 08:23:30 +00:00
tadf
d82ed7e2c6
* numeric.c (num_div): don't use num_floor which is actually
...
flo_floor.
* numeric.c (num_modulo): don't call '%'.
* numeric.c (num_divmod): use num_modulo.
* numeric.c: defined '%'.
* rational.c (nurat_idiv,nurat_mod,nurat_divmod,nurat_rem): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-20 12:37:13 +00:00
akr
32004e3c46
don't use /tmp as example socket path.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 14:04:54 +00:00
tadf
67f93ddc21
* rational.c (nurat_s_convert): calls to_r when the given argument
...
is non-integer.
* rational.c (nurat_s_convert): raises TypeError when the given
argument is nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 13:41:44 +00:00
ryan
58cfb41d2a
Imported minitest 1.4.0 r5083.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 07:31:39 +00:00