wanabe
91533255f8
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 11:44:17 +00:00
wanabe
c46f71399a
* proc.c (rb_method_location): return attr's location if it is setup.
...
[Feature #2084 ]
* NEWS: follow above.
* vm_method.c (rb_add_method): save attr's location.
* gc.c (mark_method_entry): mark attr's location.
* method.h (rb_method_definition_t): add member to save attr's location.
* vm_eval.c (vm_call0): follow above.
* vm_insnhelper.c (vm_call_method): ditto.
* vm_method.c (rb_method_definition_eq): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 11:44:01 +00:00
tadf
5d8f695032
* lib/date.rb (Date#>>): fixed. [ruby-core:28011]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 10:32:10 +00:00
akr
652484598d
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 09:45:57 +00:00
nobu
0edceaa7c7
* configure.in (RMDIRS): use rmdir -p if possible.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 09:01:19 +00:00
nobu
cce8bbb794
* Makefile.in ({dist,real}clean-ext): fix for removing ext
...
directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 08:38:10 +00:00
akr
1561d3fb8b
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 03:33:14 +00:00
akr
1a40be09d6
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 01:24:28 +00:00
akr
062780c834
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 00:48:51 +00:00
akr
0647517bda
* ext/socket/.document: extracted from ext/.document.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 00:06:48 +00:00
akr
c9e4e4400c
* ext/socket/rubysocket.h (rsock_revlookup_flag): declared.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 15:51:07 +00:00
azav
e98ffd97c7
* symbian/setup (config.h): RUBY_EXEC_PREFIX defined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 15:03:00 +00:00
svn
5befc5d5c9
* 2010-03-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 15:02:23 +00:00
azav
f0c0d98dc3
* symbian/setup (config.h): RUBY_EXEC_PREFIX defined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 15:02:19 +00:00
naruse
83c2f60b88
* lib/uri/common.rb (URI.encode_www_form_component):
...
convert strings of HTML5 ASCII incompatible encoding
to UTF-8.
* lib/uri/common.rb (URI.encode_www_form_component):
"\x83\x41" of Shift_JIS should be encoded as "%83A".
This follows real implementations.
* lib/uri/common.rb (URI.decode_www_form_component):
use given encoding for force_encoding. [ruby-dev:40721]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 12:36:14 +00:00
akr
66390013a1
* lib/resolv-replace.rb: specify super class for rdoc.
...
* lib/ipaddr.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 12:10:53 +00:00
nobu
ed2dd5e3f4
* io.c (rb_io_initialize): add autoclose argument to control close
...
at finalization. [ruby-core:26222]
* io.c (rb_io_autoclose_p, rb_io_set_autoclose): new methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 10:52:31 +00:00
akr
daa739876f
* ext/socket: make sources rdoc friendly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 10:50:52 +00:00
nobu
cce4892c1f
* io.c (IO_RBUF_CAPA_FOR): use large buffer as cbuf if readconv is
...
needed for performance improvement. based on a patch by Roger Pack
in [ruby-core:28163]. [ruby-core:28162]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 08:57:55 +00:00
akr
8e63c340b9
* tool/transcode-tblgen.rb: reuse hash object.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 08:15:16 +00:00
akr
49d993729f
* tool/transcode-tblgen.rb (transcode_compile_tree): make
...
valid_encoding mandatory unless from_encoding is registered in
ValidEncoding.
(transcode_tbl_only): ditto.
(transcode_tblgen): ditto.
(ValidEncoding): new function.
* enc/trans/escape.trans: specify valid_encoding.
* enc/trans/emoji_sjis_docomo.trans: ditto.
* enc/trans/emoji.trans: ditto.
* enc/trans/emoji_iso2022_kddi.trans: ditto.
* enc/trans/big5.trans: ditto.
* enc/trans/emoji_sjis_softbank.trans: ditto.
* enc/trans/emoji_sjis_kddi.trans: ditto.
* enc/trans/chinese.trans: use ValidEncoding() instead of
ValidEncoding[].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 03:38:58 +00:00
nobu
f623979f65
* io.c (IO_[CRW]BUF_CAPA_MIN): replaced magic numbers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 00:43:07 +00:00
svn
9a83683190
* 2010-03-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 00:24:54 +00:00
akr
82488cf2b9
* object.c (rb_obj_hash): use LONG2FIX to avoid Bignum allocation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 00:24:44 +00:00
akr
d0fa628d06
* string.c (rb_str_sum): use UCHAR_MAX.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 13:52:34 +00:00
akr
750c9916e2
* tool/transcode-tblgen.rb (ActionMap.unambiguous_action): use
...
Array#delete.
(ActionMap.merge2): defined.
(ActionMap::PostMemo): removed.
(transcode_compile_tree): use ActionMap.merge2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 10:18:55 +00:00
wanabe
b7ed43e941
* test/dl/test_handle.rb: skip some tests on mswin/mingw.
...
because RTLD_DEFAULT and RTLD_NEXT don't work well on windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 09:47:07 +00:00
akr
4b6a7a46e8
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 05:17:19 +00:00
akr
9ce419a45c
* array.c (rb_ary_uniq_bang): the array is already unique if the
...
length is zero or one.
(rb_ary_uniq): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 04:27:32 +00:00
nobu
c9dd4823d9
* lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 03:30:59 +00:00
akr
772cc7a4f2
* tool/transcode-tblgen.rb (each_firstbyte_range): tuned for less
...
method calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 02:32:40 +00:00
wanabe
7fde261963
* test/dl/test_cfunc.rb (test_to_s): a result of sprintf("%x", ptr)
...
may contain 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:39:16 +00:00
wanabe
7e2fa5adf4
* ext/dl/lib/dl/pack.rb (DL#pack): allow LLP64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:20:56 +00:00
wanabe
e40c43a1bf
* test/dl/test_dl2.rb (DL::TestDL#ptr2num): add for LLP64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:18:05 +00:00
svn
faee1b6f78
* 2010-03-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:16:26 +00:00
wanabe
c28b2b9be2
* test/dl/test_dl2.rb: require 'dl/func' to refer DL::Function.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:16:22 +00:00
akr
b5388e8538
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 12:54:01 +00:00
akr
4f74adc503
add test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 23:11:12 +00:00
svn
642305dae6
* 2010-03-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 20:35:27 +00:00
akr
053d89ca2b
* string.c (rb_str_sum): don't call method for each byte.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 20:35:18 +00:00
nobu
bd5e925cc4
* Makefile.in (miniruby): link $(NORMALMAINOBJ).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 12:24:28 +00:00
akr
f9d64323c8
* tool/transcode-tblgen.rb: scan singleton mappings sequentially.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 10:53:38 +00:00
naruse
e0250f59e0
Add NEWS and fix ChangeLog.
...
* new methods:
* URI.encode_www_form
* URI.decode_www_form
* URI.encode_www_form_component
* URI.decode_www_form_component
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 00:05:10 +00:00
nobu
43ab72099b
* configure.in (RUBY_EXEC_PREFIX): added to config.h.
...
* ruby.c (ruby_init_loadpath_safe): TMP_RUBY_PREFIX should be
exec_prefix, not rubylibprefix. [ruby-core:28718]
* version.c (RUBY_LIB_PREFIX): fallback to RUBY_EXEC_PREFIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 21:28:36 +00:00
nobu
ad41699b47
* ext/bigdecimal/bigdecimal.c (BigDecimal_{to_i,mod,divmod,div2}):
...
removed unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 20:58:34 +00:00
nobu
83b8f94f4e
* parse.y (rb_intern3): get rid of type-punning cast.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 19:41:00 +00:00
mame
d47e0b989f
* compile.c (iseq_build_body): add mark to jump table hash of case.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 17:33:01 +00:00
naruse
9eb68d7c44
* util.c (ruby_strtod): Add support for Hexadecimal
...
floating-point expression [ruby-dev:40650] #2969
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 16:21:45 +00:00
akr
5f0be51c21
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 16:00:00 +00:00
svn
c18d939fab
* 2010-03-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 15:35:49 +00:00