aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * adjust style.nobu2012-03-156-9/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_arity.rb (TestArity#err_mess): use assert_raise.nobu2012-03-155-7/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (check_funcall): Raise ArgumentError if respond_to?drbrain2012-03-143-1/+29
| | | | | | | | | requires more than three arguments. [Bug #6000] * test/ruby/test_object.rb (class TestObject): Test for respond_to? requiring more than three arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h: Add rb_check_arity, rb_error_arity [#6085]marcandre2012-03-1420-137/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * array.c: Use rb_check_arity / rb_error_arity * class.c: ditto * enumerator.c: ditto * eval.c: ditto * file.c: ditto * hash.c: ditto * numeric.c: ditto * proc.c: ditto * process.c: ditto * random.c: ditto * re.c: ditto * signal.c: ditto * string.c: ditto * struct.c: ditto * transcode.c: ditto * vm_eval.c: ditto * vm_insnhelper.c: ditto & implementation of rb_error_arity * test/ruby/test_arity.rb: tests for above git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c: improve number of arguments error in case ofmarcandre2012-03-143-21/+85
| | | | | | | | | | optional parameters (issue #6085) * include/ruby/intern.h: define UNLIMITED_ARGUMENTS * test/ruby/test_arity.rb: test for above git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-03-15svn2012-03-141-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerable_lazy): fix the documentation ofshugo2012-03-142-4/+13
| | | | | | Enumerable#lazy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix typosnagachika2012-03-141-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (lazy_init_iterator): break when Qundef is returnedshugo2012-03-143-9/+130
| | | | | | | | | | | | | | | to make obj.drop(3).take(2) work properly. * enumerator.c (lazy_take_while): add Enumerable::Lazy#take_while. * enumerator.c (lazy_drop): add Enumerable::Lazy#drop. * enumerator.c (lazy_drop_while): add Enumerable::Lazy#drop_while. * enumerator.c (InitVM_Enumerator): add Enumerable::Lazy#force as an alias of to_a. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (lazy_take): add Enumerable::Lazy#take.shugo2012-03-145-10/+53
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c: use long for array indices.shugo2012-03-142-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c: moved the comment of StopIteration.shugo2012-03-142-47/+51
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flodivmod): must through the same pass if HAVE_FMOD or not.usa2012-03-142-4/+9
| | | | | | | this is a bugfix of r35013. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_tmpdir.rb (TestTmpdir#test_world_writable): skip on Windows.usa2012-03-142-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: fix flodivmod for cornercases [Bug #6044]marcandre2012-03-146-27/+48
| | | | | | | | | | | | | | add ruby_float_mod * insns.def (opt_mod): use ruby_float_mod * internal.h: declare ruby_float_mod * test/ruby/test_float.rb: tests for above * test/ruby/envutil.rb: create helper assert_is_minus_zero git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c: Simplify rdoc for remove_const [Bug #5354]marcandre2012-03-141-4/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more GCablenobu2012-03-141-2/+4
| | | | | | * test/test_weakref.rb (make_weakref): more GCable, probably. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (lazy_grep_func): should use === instead of =~, asnobu2012-03-143-2/+11
| | | | | | well as Enumerable#grep git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* InitVM_Enumeratornobu2012-03-141-2/+8
| | | | | | * enumerator.c (InitVM_Enumerator): split from Init_Enumerator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Init_Enumeratornobu2012-03-142-7/+10
| | | | | | * enumerator.c (Init_Enumerator): initialize method IDs first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* method_idsnobu2012-03-141-24/+21
| | | | | | * template/id.h.tmpl (method_ids): define at once predefined method IDs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (lazy_zip_func): use each for non-Array objects.shugo2012-03-133-8/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (lazy_zip): add Enumerable::Lazy#flat_map.shugo2012-03-133-0/+87
| | | | | | * enumerator.c (lazy_lazy): just returns self. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_core.c (datetime_s_now): [ruby-core:43256].tadf2012-03-132-1/+45
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-03-14svn2012-03-131-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix rippernobu2012-03-131-13/+16
| | | | | | * parse.y (new_args_gen, new_args_tail_gen): fix ripper. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_set_arguments): keyword rest arg without keyword args.nobu2012-03-136-644/+177
| | | | | | | | | | * node.c (dump_node): dump kw_rest_arg too. * parse.y (block_param, f_arg): more kwrest patterns. [ruby-core:42455][Bug #5989] * parse.y (new_args_gen): no extra kw_rest_arg if no keyword rest arg. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (block_param, f_args): add rules for the case argumentsnobu2012-03-133-0/+27
| | | | | | begin with kwrest. [ruby-core:42455][Bug #5989] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_encoding_set): always warn if external encoding and internalnaruse2012-03-133-1/+43
| | | | | | encoding are identical. [ruby-core:40727] [Bug #5568] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix error and show given message and match message.naruse2012-03-131-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bug #5350nobu2012-03-134-46/+249
| | | | | | | * gc.c: add ObjectSpace::WeakMap. [ruby-dev:44565][Bug #5350] * lib/weakref.rb: use WeakMap instead of _id2ref. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* assert_warn, assert_warningnobu2012-03-132-14/+7
| | | | | | | | * test/ruby/envutil.rb (assert_warn): add optional message argument. * test/ruby/envutil.rb (assert_warning): moved from test_io_m17n.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/rbinstall.rb (prepare): skip if basedir is not defined.nobu2012-03-132-14/+31
| | | | | | | | [ruby-core:39135][Bug #5238] * tool/rbinstall.rb (CONFIG.[]): check for mandatory configurations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* re-configurenobu2012-03-131-1/+3
| | | | | | * Makefile.in (reconfig, config.status): re-configure for version numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add missing assert_warning.naruse2012-03-122-60/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-03-13svn2012-03-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerable_lazy): added the documenation of Enumerable#lazy.shugo2012-03-122-0/+25
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb (Dir::tmpdir): test the current directory suitable forakr2012-03-122-4/+12
| | | | | | | temporary directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (fu_have_symlink?): specify TypeError for rescueakr2012-03-122-1/+6
| | | | | | | clause. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_find_encoding): new function find encoding fromnobu2012-03-125-7/+59
| | | | | | | | | | arbitrary object as a pointer to rb_encoding, and return NULL if not found. * io.c (io_encoding_set): just warn unsupported encodings, but not exception. [ruby-core:40726] [Bug #5567] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (Init_eval_method): respond_to? andnobu2012-03-122-5/+10
| | | | | | | respond_to_missing? are public. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h (NEW_YIELD), parse.y (new_yield_gen): array-values flagsnobu2012-03-123-14/+11
| | | | | | | has been already obsolete. patch by Thomas Enebo. [ruby-core:41929][Bug #5847] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (Init_eval_method): copy basic methods to Exception.nobu2012-03-123-0/+39
| | | | | | [ruby-core:40287][Bug #5473] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_jump.c (rb_exec_end_proc): remember the latest exit status.nobu2012-03-123-0/+23
| | | | | | [ruby-core:43173][Bug #5218] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Exclude json/add/complex.rb.naruse2012-03-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb: update document for changingakr2012-03-113-2/+21
| | | | | | | | | | FileUtils.remove_entry_secure to FileUtils.remove_entry. * NEWS: add incompatiblity note for lib/tmpdir.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb (Dir.tmpdir): should not use world-writable butnobu2012-03-113-2/+34
| | | | | | | non-sticky directory. * lib/tmpdir.rb (Dir.mktmpdir): check the parent directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (Init_Random): removed rb_Random_DEFAULT and register asnobu2012-03-112-7/+19
| | | | | | mark-object instead of global variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (random_s_rand): ensure default PRNG is re-initializednobu2012-03-113-2/+37
| | | | | | after fork. patched by Eric Wong. [ruby-core:41209][Bug #5661] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json: properties.nobu2012-03-110-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e