aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * string.c (rb_str_partition): RDoc update. a patch frommatz2006-10-123-6/+10
| | | | | | | | | Mauricio Fernandez <mfp at acm.org>. [ruby-core:09160] * hash.c (rb_hash_compare_by_id): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2006-10-13matz2006-10-121-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_mod_cvar_defined): wrong id check. a patch frommatz2006-10-122-4/+13
| | | | | | | | | | | Mauricio Fernandez <mfp at acm.org>. [ruby-core:09158] * object.c (rb_mod_cvar_get): typo fixed. [ruby-core:09168] * object.c (rb_mod_cvar_set): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_compare_by_id): somehow we lost renaming frommatz2006-10-122-9/+14
| | | | | | | Hash#identical. [ruby-core:09163] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tkutil/tkutil.c (cbsubst_table_setup): need to handle newmatz2006-10-123-3/+11
| | | | | | | | | character literal (1 char string). * lib/mkmf.rb: shut up some warnings from tk's extconf.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix wordingknu2006-10-111-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/lib/digest/hmac.rb: Make use of String#bytes.knu2006-10-112-7/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (get_digest_base_metadata): Use an instanceknu2006-10-116-10/+25
| | | | | | | | | | | | | | | | | variable of a class object instead of a class variable for metadata. This change is crucial for ruby 1.8 and applying it also to the trunk will assure compatibilities. * ext/digest/md5/md5init.c (Init_md5): Ditto. * ext/digest/rmd160/rmd160init.c (Init_rmd160): Ditto. * ext/digest/sha1/sha1init.c (Init_sha1): Ditto. * ext/digest/sha2/sha2init.c (Init_sha2): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2006-10-12knu2006-10-111-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_base_alloc,knu2006-10-1121-120/+25
| | | | | | | | | | | | | rb_digest_base_equal): Simplify the equality check and just compare resulted digests since state-level equality should not be significant. * ext/digest/digest.h: Ditto. * ext/digest/*/*.[ch]: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_obj_define_method): add half boiled RDoc document.matz2006-10-112-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: revert modify check during iteration.matz2006-10-112-26/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_replace): should shift lfree pointer beforematz2006-10-112-1/+10
| | | | | | | calling xfree. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (each_internal): patch miss.matz2006-10-111-36/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/lib/digest/hmac.rb: Add digest/hmac, which implementsknu2006-10-112-0/+268
| | | | | | | HMAC keyed-hashing algorithm. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_base_reset): Do not makeknu2006-10-112-5/+15
| | | | | | | | 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
* * array.c (rb_ary_each): prohibit array modification during eachmatz2006-10-112-0/+41
| | | | | | | iteration. [ruby-core:09104] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/sha1/sha1ossl.h: libssl 0.9.8c-3 defines nomatz2006-10-113-13/+30
| | | | | | | SHA_BLOCK_LENGTH. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_base_reset, Init_digest): Addknu2006-10-1110-9/+64
| | | | | | | | | | | | | | | | | | | | | 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-11knu2006-10-111-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (hexdigest_str_new, bubblebabble_str_new):knu2006-10-102-4/+17
| | | | | | | Perform StringValue() checks properly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/sha1/depend, ext/digest/sha2/depend: Remove obsoleteknu2006-10-103-4/+5
| | | | | | | dependencies. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2006-10-10knu2006-10-101-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/parsedate.rb: documentation patch from Konrad Meyermatz2006-10-094-35/+110
| | | | | | | | | <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
* * ext/extmk.rb, lib/fileutils.rb, lib/mkmf.rb, lib/optparse.rb,nobu2006-10-096-43/+45
| | | | | | | 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
* * lib/rexml/encoding.rb (REXML::Encoding::check_encoding): spacesmatz2006-10-093-3/+10
| | | | | | | | | 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
* * eval.c (rb_obj_define_method): add new methodmatz2006-10-092-0/+15
| | | | | | | 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-09tadf2006-10-091-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use __send! instead of funcall.tadf2006-10-091-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_scan): small documentation fix.matz2006-10-072-1/+6
| | | | | | | [ruby-core:09007] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2006-10-08matz2006-10-071-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_rshift): a bug in right shift of negativematz2006-10-072-0/+9
| | | | | | | bignums. [ruby-core:09020] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (formal_assign): packed post splat arguments may conflictmatz2006-10-072-2/+12
| | | | | | | | | 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
* * object.c (rb_mod_initialize): since module_eval no longer passesnobu2006-10-072-1/+6
| | | | | | | 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-07matz2006-10-061-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_include_module): remove unnecessary check.matz2006-10-062-3/+5
| | | | | | | [ruby-talk:218402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/depend: Fix header installation when the buildknu2006-10-062-1/+6
| | | | | | | 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
* * {bcc32,win32,wince}/Makefile.sub (config.status): shouldn't useusa2006-10-064-9/+5
| | | | | | | 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
* * sample/test.rb: revert debug print.matz2006-10-051-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_yield_0): small refactoring.matz2006-10-054-60/+49
| | | | | | | * 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
* * ext/digest/depend: Install digest.h.knu2006-10-052-0/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.knu2006-10-052-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Remove thoseknu2006-10-053-28/+5
| | | | | | | compatibility stub libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c: Make hexdigest() always call digest() internally.knu2006-10-052-45/+78
| | | | | | | * ext/digest/digest.c: Add bubblebabble(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c: Allow subclassing in Ruby.knu2006-10-051-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c: Allow subclassing in Ruby.knu2006-10-051-12/+82
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (hexdigest_str_new): Add a string size check.knu2006-10-052-1/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2006-10-06knu2006-10-051-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.[ch]: Since the argument order ofknu2006-10-0528-631/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-05knu2006-10-051-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e