summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-10-20* ext/digest: Prefix C constants with RUBY_ and C type names withknu
rb_ to avoid name clash in writing extensions. * ext/digest: Introduce Digest::Class and Digest::Instance for ease of implementing subclasses and add-ons, inspried by gotoyuzo. * ext/digest: The Digest::Instance module now requires and assumes that any instance be resettable and clonable, and add some convenient instance methods such as "new()", for creating a new copy, parameter taking "digest()" and "hexdigest()", for instant calculation. These methods make digest instances work just like digest classes. * ext/digest/sha2/lib/digest/sha2.rb: Add the Digest::SHA2 class to wrap up SHA2 variants: SHA256, SHA384 and SHA512, hoping this module would make a decent example of a digest subclass written in Ruby. * ext/digest/lib/digest.rb: Adjust autoload entries for SHA2 classes. * ext/digest/lib/digest/hmac.rb: Follow the framework updates. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-20* lib/mkmf.rb: fixed the bug of handling COMMON_MACROS.eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-19* common.mk (NULLCMD): dummy command.nobu
* bcc32/Makefile.sub (post-install-*): Borland make cannot ignore command-less double-colon rules. [ruby-dev:29676] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-19* ext/extmk.rb: Borland make needs also -D flags to override variablesnobu
in Makefile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-19* bcc32/Makefile.sub ($(LIBRUBY_SO)): execute pre-link hook.nobu
* ext/extmk.rb: workaround for Borland make. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-192006-10-20nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-18* win32/win32.c (rb_w32_utime): allow NULL to set the current time.nobu
[ruby-talk:219248] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-18* signal.c (Init_signal): handle SIGTERM. fixed: [ruby-list:42895]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-18* array.c (rb_ary_shift): shorten copy size. fixed: [ruby-list:42907]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-18* string.c (rb_str_each_line): String#lines now works when a blockmatz
is given. in other words, lines become an alias to each_line. [ruby-core:09218] * string.c (rb_str_each_byte): ditto for bytes in place of lines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-18* array.c (ary_shared_array): should set NOEMBED flag for a copiedmatz
array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-172006-10-18nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-17* parse.y (parser_yylex): use particular enums. [ruby-core:09221]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-17* lib/erb.rb: String#each was removed, use #each_line instead.aamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-162006-10-17matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-16* string.c (rb_str_lines): now takes optional argument for thematz
line separator. * io.c (rb_io_lines, rb_io_bytes): new methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-16* array.c (rb_ary_unshift_m): a bug in lfree shift lengthmatz
calculation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-15* mkconfig.rb: *OBJS are not needed for extension libraries.nobu
* {bcc32,wince,win32}/Makefile.sub (config.status): fixed typo, missing comma. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-152006-10-16matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-15* pack.c (pack_unpack): execute block if given with unpacked valuematz
instead of creating an array. an idea from Tim Bray. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-14* lib/test/unit/collector/dir.rb (Collector::Dir#collect): append basenobu
directory but not prepend. * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): do not join with dot. fixed: [ruby-core:09179] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-142006-10-15nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-14* parse.y (singleton): no need to re-create NODE_SELF() again.matz
[ruby-core:09177] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-14* parse.y (parser_warning, parser_warn): some error message maymatz
contain format specifiers. a patch from Akinori MUSHA <knu at iDaemons.org>. [ruby-dev:29657] * regparse.c (onig_rb_warning, onig_rb_warn): ditto. * ext/bigdecimal/bigdecimal.c (VpException): ditto. * ext/dl/handle.c (rb_dlhandle_initialize): ditto. * ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13rephrase an entryknu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ext/digest/digest.c, ext/digest/digest.h,knu
ext/digest/md5/md5init.c, ext/digest/rmd160/rmd160init.c, ext/digest/sha1/sha1init.c, ext/digest/sha2/sha2init.c: Introduce API versioning. * ext/digest/digest.c, ext/digest/digest.h, ext/digest/md5/md5init.c, ext/digest/rmd160/rmd160init.c, ext/digest/sha1/sha1init.c, ext/digest/sha2/sha2init.c: Remove the constants DIGEST_LENGTH and BLOCK_LENGTH and turn them into instance methods digest_length() and block_length(). Class methods with the same names are also provided, which take extra parameters for a digest method. * ext/digest/lib/digest/hmac.rb: Completely redesign the API which is similar to Perl's, now that Digest classes can take hashing parameters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ext/digest/digest.c: Improve RDoc documentation further more.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ext/digest/digest.c: Improve RDoc documentation.knu
* ext/digest/digest.c (Init_digest, rb_digest_base_s_digest, rb_digest_base_s_hexdigest): Make Digest::Base::digest() and Digest::Base::hexdigest() take extra arguments, which are passed through to the constructor in an internal call. * ext/digest/bubblebabble/bubblebabble.c (rb_digest_base_s_bubblebabble): Ditto for Digest::Base::bubblebabble(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13Add .cvsignoreknu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* bcc32/Makefile.sub (post-install-ext): no longer needed.nobu
* bcc32/configure.bat: get rid of a quirk of Borland make, which sets empty macro in command line to "1". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-132006-10-14nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13*** empty log message ***tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ChangeLog: fixed broken time stamps again.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13updated based on date2 3.9.5.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ChangeLog: fixed broken time stamps.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ext/digest/lib/digest.rb (Digest): Try to auto-load non-standardknu
digest modules when a specified digest class is missing. * ext/digest/lib/digest.rb: Define Digest(name) for ease of dynamically selecting a hashing algorithm. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ext/digest/digest.c (Init_digest): Digest::Base.new() does noknu
longer take an initial string to feed. This change allows subclasses to take hashing parameters. A statement such as ``md = Digest::MD5.new(s)'' can be easily rewritten as ``md = Digest::MD5.new << s'' or ``md = Digest::MD5.new.update(s)''. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ext/digest/digest.c, ext/digest/md5/md5init.c,knu
ext/digest/rmd160/rmd160init.c, ext/digest/sha1/sha1init.c, ext/digest/sha2/sha2init.c: Add RDoc documentation. * ext/digest/digest.txt, ext/digest/digest.txt.ja: Removed in favor of embedded RDoc documentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ext/digest/bubblebabble, ext/digest/digest.c: Rip BubbleBabbleknu
support out of the base class and have a separate module named digest/bubblebabble. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* ext/digest/digest.c (rb_digest_base_equal): Again, should callknu
digest() of a subclass instead of the one defined in the base class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-13* object.c: Class#inherited RDoc added. a patch from Danielmatz
Berger <djberg96 at gmail.com> [ruby-core:08942] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-12* ext/digest/digest.c (rb_digest_base_equal): Should call digest()knu
of a subclass instead of the one defined in the base class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-12* lib/test/unit/collector/dir.rb (Collector::Dir#collect): prependnobu
base directory to load path. * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): should use the given File-like interface, but not File directly. * test/testunit/collector/test_dir.rb (TestDir::FileSystem): implement File-like methods correctly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-12* lib/date.rb (Date::self.complete_hash): need to check if g ismatz
nil before dereference. [ruby-core:09116] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-12* string.c (rb_str_partition): RDoc update. a patch frommatz
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-122006-10-13matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-12* object.c (rb_mod_cvar_defined): wrong id check. a patch frommatz
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
2006-10-12* hash.c (rb_hash_compare_by_id): somehow we lost renaming frommatz
Hash#identical. [ruby-core:09163] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-12* ext/tk/tkutil/tkutil.c (cbsubst_table_setup): need to handle newmatz
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
2006-10-11fix wordingknu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e