ko1
9da12c5850
* compile.c (defined_expr), insns.def (defined): fix to pass a Symbol
...
object such as :$foo for the "defined?($foo)" expression
on defined instruction. This patch fixes ISeq#to_a/load.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 19:21:37 +00:00
mame
bbcb186ae6
* test/dl/test_method.rb: delete a residual test for dl on libffi.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 11:52:02 +00:00
nobu
8e9c90ba58
* **/*emoji*: eol-style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 09:31:25 +00:00
muraken
62f8df2d3c
* enc/trans/EMOJI/*.src, enc/trans/emoji*, enc/x-emoji.c, test/ruby/enc/test_emoji.rb, tool/enc-emoji-citrus-gen.rb, tool/enc-emoji4unicode.rb, tool/jisx0208.rb, tool/test/test_jisx0208.rb: new encodings to support emoji charsets, which are used by Japanese mobile phones [ruby-dev:40528]. Thanks Yoji Shidara for a lot of contribution.
...
* tool/transcode-tblgen.rb: modified for enc-emoji4unicode.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 09:15:42 +00:00
naruse
c4636043cc
* tool/transcode-tblgen.rb (ActionMap#generate_node):
...
remove useless dup.
* tool/transcode-tblgen.rb (transcode_tbl_only): remove duplicated
method call for encode_utf8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 06:00:58 +00:00
naruse
10317605f0
* re.c (rb_reg_to_s): remove unused variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 05:56:39 +00:00
svn
9ec530270a
* 2010-03-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 03:21:15 +00:00
mame
4400822b45
* tool/transcode-tblgen.rb (StrSet#parse, ActionMap#generate_node):
...
optimization (reusing object and improving memoize).
[ruby-dev:40582]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 03:21:07 +00:00
azav
6951f8f99a
* dln.c [DLN_NEEDS_ALT_SEPARATOR] (translit_separator): small typo fixed.
...
* 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@26849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 17:39:41 +00:00
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