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

19269 Коммитов

Автор SHA1 Сообщение Дата
azav ab442cdc39 * dln.c [DLN_NEEDS_ALT_SEPARATOR] (translit_separator): small typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 17:38:48 +00:00
svn eed5e11d3b * 2010-03-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 17:38:17 +00:00
azav 46c965c709 * symbian/setup (*.pkg): Shared library installation path fixed to match changes in version.c.
* symbian/setup (ruby.mmp): SOURCE dln_find.c added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 17:38:12 +00:00
akr 70d72bf807 * bignum.c (rb_big_pack): use DIGSPERLONG and BITSPERDIG.
(rb_big_unpack): use DIGSPERLONG.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 14:15:24 +00:00
marcandre 51ae7f6e9a * io.c: Fix documentation for each/each_line/lines, bytes/each_byte,
codepoints/each_code_point [ruby-core:23948]

* string.c: ditto

* ext/stringio/stringio.c: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 10:22:05 +00:00
akr dc50480f6f describe new optional arugment for Pathname#realpath and Pathname#realdirpath.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 07:13:31 +00:00
akr 57d414a1c7 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 06:54:29 +00:00
akr 785b31bed4 * file.c: add optional basedir argument for realpath/realdirpath.
(realpath_internal): handle basedir.
  (rb_file_s_realpath): extract basedir from argument list.
  (rb_file_s_realdirpath): extract basedir from argument list.

* lib/pathname.rb (realpath): pass basedir.
  (realdirpath): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 04:55:34 +00:00
naruse 8a144fdedc * encoding.c (enc_set_filesystem_encoding):
filesystem encoding on Mac OS X is now
  default external encoding. so Mac OS X is now
  treated as one of Unix. [ruby-dev:40439]

* file.c (file_path_convert): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 17:11:28 +00:00
svn f6a23214da * 2010-03-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 17:03:51 +00:00
marcandre 69fd8a9011 * hash.c (Hash#merge doc): Added explanation for form with block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 17:03:48 +00:00
akr c3c8c1e37c useless lines removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 13:52:03 +00:00
akr 9ff10a20b5 * pack.c: fix the prototype of rb_big2ulong_pack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 13:12:24 +00:00
mame e796e95ec8 * io.c (rb_io_s_write, rb_io_s_binwrite): delete File#write and
#binwrite.  It may take a long time to make them stable, so 1.9.2
  should not include them.  We need refactoring to implement them
  again.

* test/ruby/test_io.rb: delete tests for them.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 04:52:31 +00:00
mame 127cfd1174 * io.c (rb_io_s_binwrite): use mode "r+b" instead of "ab" to handle
offset correctly.  [ruby-core:28517]

* test/ruby/test_io.rb: use assert_equal instead of assert.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 01:06:57 +00:00
svn 61337683b3 * 2010-03-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 16:09:43 +00:00
usa de1cd22816 * win32/Makefile.sub (config.h): VC6 has __int64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 16:09:35 +00:00
naruse f453c3c0da * transcode.c (econv_opts): set :undef => :replace when
:replace is given and :invalid is not given. [ruby-dev:40554]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 10:39:56 +00:00
nobu 4bcae18e37 * io.c (pipe_open): suppressed a warning.
* win32/win32.c (rb_w32_map_errno, winnt_stat, rb_chsize): ditto.

* win32/win32.c (rb_w32_aspawn): get rid of overflow.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 08:51:12 +00:00
svn 29b94d7752 * 2010-03-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 02:59:40 +00:00
nobu ee48a91993 * win32/win32.c (signbit): defined on mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 02:59:33 +00:00
akr ef7d0431a0 add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-04 14:20:49 +00:00
mame 6bec06674c * eval.c (setup_exception): avoid line number 0 when setting
$DEBUG=true.  [ruby-dev:39116]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-04 13:54:13 +00:00
mame ae2065a285 * io.c (io_s_write, io_s_binwrite): add File#write and #binwrite.
[ruby-core:21701]

* test/ruby/test_io.rb: add tests for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-04 13:48:20 +00:00
wanabe 323e4f1cf0 add ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-04 05:13:22 +00:00
wanabe 4d8d6d9d63 * gc.c (gc_profile_total_time): add GC::Profiler.total_time.
* NEWS: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-04 04:51:43 +00:00
marcandre e09838c691 * NEWS: Adding Enumerable#each_entry to the new method list
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-04 02:29:07 +00:00
naruse 556152ada3 * complex.c (m_log, m_exp): remove unused functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-04 01:16:37 +00:00
nobu 4e637b320f * ext/json/lib/**/*.rb: not executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-04 01:05:00 +00:00
mame 9a026aec0a * test/ruby/test_env.rb (TestEnv#test_select_bang): add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 17:36:39 +00:00
kazu 43ad8929df * test/ruby/test_hash.rb (TestHash#test_keep_if): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 17:33:45 +00:00
akr 373ed885c6 fix rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 15:14:21 +00:00
svn 27942ec2c3 * 2010-03-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 15:12:02 +00:00
akr 5521b78fc3 * tool/transcode-tblgen.rb (HEX2): extracted from regexps.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 15:11:56 +00:00
marcandre 215b8092a7 * complex.c (nucomp_real_check): raise TypeError instead of ArgumentError
when argument is not a real as expected [ruby-core:28395]

* rational.c (nurat_int_check): ditto (for integers)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 14:18:26 +00:00
marcandre b81e045712 * lib/matrix.rb (Vector#each): Return self and optimization [ruby-core:28405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 14:07:53 +00:00
matz 871e9d175e * hash.c (rb_hash_select_bang): add #select! and keep_if to Hash.
* hash.c (env_select_bang): ..and to ENV.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 09:44:44 +00:00
matz 800dda6c28 * lib/matrix.rb (Vector#each2, collect2): small refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 07:21:21 +00:00
matz 2cfb894d2a * lib/matrix.rb (Vector#each): make Vector enumerable.
[ruby-core:28405]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 07:19:21 +00:00
matz 006a8ba77f * array.c (rb_ary_select_bang): select! removes all elements for
which block returns false.  [ruby-core:27286]

* array.c (rb_ary_keep_if): #keep_if, new method.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 05:35:08 +00:00
nobu 35345f1c09 * win32/win32.c (signbig): defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 21:19:33 +00:00
nobu d20440ab6f * win32/Makefile.sub, symbian/setup (config.h): pack.c requires
SIZEOF_INT*_T now.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 20:49:02 +00:00
mame a0ff5cae7c * io.c (rb_io_lines, rb_io_bytes, rb_io_chars, rb_io_codepoints):
change to alias to each_*, in similar way to ARGF and String.
  [ruby-core:23948]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 12:19:24 +00:00
naruse 76a5c00be6 * regcomp.c (noname_disable_map): add NT_ANCHOR case.
Without this change, captured groups in anchors (look-ahead,
  look-behind, and so on) are not removed and
  unintended invalid backref error occur. [ruby-core:28235]

* regcomp.c (renumber_by_map): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 09:40:27 +00:00
muraken 1c0dfeef41 * test/dl/test_closure.rb: forget to revert at r26764.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 05:48:05 +00:00
nobu 9c45868b41 * file.c (rb_find_file_ext_safe, rb_find_file_safe): skip argument
checks in file_expand_path().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 05:29:27 +00:00
marcandre b25434f6a9 * test/ruby/test_math.rb: Fix lgamma test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 04:55:04 +00:00
svn 4f19ce8376 * 2010-03-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-01 21:55:05 +00:00
matz db37773e13 * include/ruby/oniguruma.h: updated to follow Oniguruma 5.9.2.
* re.c (make_regexp): use onig_new() instead of onig_alloc_init().

* re.c (rb_reg_to_s): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-01 21:54:59 +00:00
akr e1c33162cf * ext/pty/pty.c (pty_open): refine the path for master IO.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-01 14:28:04 +00:00