matz
76f721470b
* eval.c (rb_obj_define_method): add half boiled RDoc document.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 08:12:17 +00:00
matz
11674f4a3e
* array.c: revert modify check during iteration.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 08:06:16 +00:00
matz
9681d8791b
* array.c (rb_ary_replace): should shift lfree pointer before
...
calling xfree.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 08:01:25 +00:00
matz
513d286ed0
* array.c (each_internal): patch miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 07:38:47 +00:00
knu
02d76d0387
* ext/digest/lib/digest/hmac.rb: Add digest/hmac, which implements
...
HMAC keyed-hashing algorithm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 07:00:29 +00:00
knu
8eb7570850
* ext/digest/digest.c (rb_digest_base_reset): Do not make
...
recursive calls, but call initialize() when reset() is not
defined in a subclass.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 06:05:32 +00:00
matz
4d49ec8d3f
* array.c (rb_ary_each): prohibit array modification during each
...
iteration. [ruby-core:09104]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 05:59:41 +00:00
matz
fedfa6e5fa
* ext/digest/sha1/sha1ossl.h: libssl 0.9.8c-3 defines no
...
SHA_BLOCK_LENGTH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 05:57:19 +00:00
knu
cd58f3313e
* ext/digest/digest.c (rb_digest_base_reset, Init_digest): Add
...
Digest::Base#reset.
* ext/digest/digest.h: Update the header comment.
* ext/digest/md5/md5ossl.h, ext/digest/md5/md5init.c (Init_md5):
Define DIGEST_LENGTH and BLOCK_LENGTH.
* ext/digest/rmd160/rmd160init.c (Init_rmd160): Ditto.
* ext/digest/sha1/sha1init.c (Init_sha1): Ditto.
* ext/digest/sha2/sha2init.c (Init_sha2): Ditto.
* ext/digest/depend, ext/digest/extconf.rb: Use $INSTALLFILES
rather than adding make targets. [Pointed out by: nobu]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 05:15:15 +00:00
knu
55b9887f97
2006-10-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-11 05:15:09 +00:00
knu
775e54fe7b
* ext/digest/digest.c (hexdigest_str_new, bubblebabble_str_new):
...
Perform StringValue() checks properly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-10 07:49:00 +00:00
knu
f7579abcec
* ext/digest/sha1/depend, ext/digest/sha2/depend: Remove obsolete
...
dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-10 04:22:30 +00:00
knu
e658017628
2006-10-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-10 04:22:26 +00:00
matz
bb9f40a725
* lib/parsedate.rb: documentation patch from Konrad Meyer
...
<konrad.meyer@gmail.com>. [ruby-doc:1238]
* lib/open3.rb, lib/ping.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-09 14:49:49 +00:00
nobu
88d6c083ea
* ext/extmk.rb, lib/fileutils.rb, lib/mkmf.rb, lib/optparse.rb,
...
lib/shellwords.rb: get rid of shadowing outer local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-09 14:41:24 +00:00
matz
c009be97e8
* lib/rexml/encoding.rb (REXML::Encoding::check_encoding): spaces
...
are allowed around equal sign. [ruby-core:09032]
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-09 14:00:59 +00:00
matz
bd62057a8b
* eval.c (rb_obj_define_method): add new method
...
Kernel#define_singleton_method. [ruby-list:42851]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-09 13:46:56 +00:00
tadf
f84ef3d3c3
2006-10-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-09 13:44:28 +00:00
tadf
616044e47e
use __send! instead of funcall.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-09 13:44:26 +00:00
matz
d2133ab996
* string.c (rb_str_scan): small documentation fix.
...
[ruby-core:09007]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-07 15:55:17 +00:00
matz
f25b74a4e0
2006-10-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-07 15:49:02 +00:00
matz
2b972a7f80
* bignum.c (rb_big_rshift): a bug in right shift of negative
...
bignums. [ruby-core:09020]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-07 15:49:00 +00:00
matz
b067aef7c0
* eval.c (formal_assign): packed post splat arguments may conflict
...
with normal arguments. [ruby-core:09021]
* eval.c (rb_call0): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-07 14:35:19 +00:00
nobu
4632511aa9
* object.c (rb_mod_initialize): since module_eval no longer passes
...
self, use module_exec instead. fixed: [ruby-dev:29637]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-07 02:53:24 +00:00
matz
dd529e9804
2006-10-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-06 15:32:11 +00:00
matz
f6fcd86351
* class.c (rb_include_module): remove unnecessary check.
...
[ruby-talk:218402]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-06 15:32:09 +00:00
knu
0522cf503c
* ext/digest/depend: Fix header installation when the build
...
directory is different from srcdir. [Pointed out by: eban]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-06 06:22:56 +00:00
usa
cbefc993ac
* {bcc32,win32,wince}/Makefile.sub (config.status): shouldn't use
...
copy command instead of install. use -run install.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-06 00:59:09 +00:00
matz
4c6084c4cd
* sample/test.rb: revert debug print.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 22:33:56 +00:00
matz
2d09685150
* eval.c (rb_yield_0): small refactoring.
...
* parse.y (bparam_item): fixed bugs in handling parenthesized LHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 22:32:04 +00:00
knu
8d6db94ec7
* ext/digest/depend: Install digest.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 19:48:11 +00:00
knu
8f0bce5ddc
* sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 19:31:50 +00:00
knu
ed6886efb5
* ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Remove those
...
compatibility stub libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 19:25:31 +00:00
knu
60f63ff93d
* ext/digest/digest.c: Make hexdigest() always call digest() internally.
...
* ext/digest/digest.c: Add bubblebabble().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 19:13:00 +00:00
knu
17398b1960
* ext/digest/digest.c: Allow subclassing in Ruby.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 19:05:33 +00:00
knu
0ad60d4f28
* ext/digest/digest.c: Allow subclassing in Ruby.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 17:39:51 +00:00
knu
8d0e66afdf
* ext/digest/digest.c (hexdigest_str_new): Add a string size check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 17:07:59 +00:00
knu
d93a35b554
2006-10-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 17:07:55 +00:00
knu
b9673f64f1
* ext/digest/digest.[ch]: Since the argument order of
...
hash_final_func_t was inconsistent with others, change it and
rename to hash_finish_func_t to avoid confusion.
* ext/digest/digest.[ch]: Remove and eliminate the use of
hash_end_func_t. Implement hexdigest conversion in the base
class.
* ext/digest/md5/md5.c, ext/digest/md5/md5.h,
ext/digest/md5/md5init.c, ext/digest/md5/md5ossl.c,
ext/digest/md5/md5ossl.h: Remove MD5_End() and change
MD5_Final() to MD5_Finish().
* ext/digest/rmd160/depend, ext/digest/rmd160/extconf.rb,
ext/digest/rmd160/rmd160.c, ext/digest/rmd160/rmd160.h,
ext/digest/rmd160/rmd160hl.c, ext/digest/rmd160/rmd160init.c,
ext/digest/rmd160/rmd160ossl.c, ext/digest/rmd160/rmd160ossl.h:
Remove unused functions RMD160_End(), RMD160_File(),
RMD160_Data() and change RMD160_Final() to RMD160_Finish().
* ext/digest/sha1/extconf.rb, ext/digest/sha1/sha1.c,
ext/digest/sha1/sha1.h, ext/digest/sha1/sha1hl.c,
ext/digest/sha1/sha1init.c, ext/digest/sha1/sha1ossl.c,
ext/digest/sha1/sha1ossl.h: Likewise.
* ext/digest/sha2/extconf.rb, ext/digest/sha2/sha2.c,
ext/digest/sha2/sha2.h, ext/digest/sha2/sha2hl.c,
ext/digest/sha2/sha2init.c: Likewise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 11:09:42 +00:00
knu
9b616442e2
2006-10-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 11:09:36 +00:00
nagai
438e33e3d2
* ext/tk/lib/tkextlib/tile.rb, lib/tkextlib/tile/* : support Tile 0.7.6.
...
* ext/tk/lib/tkextlib/SUPPORT_STATUS: [ruby-talk:211939] check links
of extensions.
* ext/tk/lib/tkextlib/blt/container.rb: define instance methods properly.
* ext/tk/lib/tkextlib/tile/tcombobox.rb: bug fix [ruby-talk:213003].
* ext/tk/lib/tkextlib/tile/tnotebook.rb: ditto.
* ext/tk/lib/tkextlib/tile/treeview.rb: ditto.
* ext/tk/lib/tkextlib/tile/sizegrip.rb: [new] add 'ttk::sizegrip' widget.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-04 09:52:54 +00:00
matz
feafc46363
* eval.c (rb_call): check protected visibility based on real self,
...
not ruby_frame->self. [ruby-talk:217822]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-04 08:38:23 +00:00
matz
ffedafffba
* parse.y (block_param): should interpret single parenthesized
...
left hand side expression.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-04 07:17:16 +00:00
nobu
004d00757a
* test/optparse/test_getopts.rb: changed the class name of test case
...
to get rid of conflict with test_optparse.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-03 23:53:24 +00:00
matz
c4e5ec23d3
* parse.y (block_param): restrict block parameters to be local
...
variables only.
* test/ruby/test_iterator.rb (TestIterator::test_nested_iterator):
update test suite to conform the last change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-03 15:59:45 +00:00
matz
eebdfca0b2
* parse.y (mlhs): simplifies the rule a bit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-03 15:58:17 +00:00
matz
3f700df9af
2006-10-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-03 15:09:14 +00:00
matz
c8d3d9ed3d
* parse.y (dyna_in_block): inline using macro.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-03 15:09:12 +00:00
matz
9317700a5d
* eval.c (splat_value): use "to_splat" instead of "to_ary" to
...
prepare splat values as an array.
* array.c (Init_Array): define to_splat.
* range.c (range_to_splat): new method.
* enumerator.c (enumerator_to_splat): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-02 17:39:57 +00:00
matz
2c875a0fde
2006-10-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-02 16:39:24 +00:00