* time.c (time_dup): duplicate the class of original time.
[ruby-core:09357]
* lib/time.rb (Time::make_time, Time::rfc2822, Time::httpdate):
should respect subclasses. [ruby-core:09357]
14 lines of code changed in:
2006-10-31
3 lines of code changed in:
* array.c (ary_shared_first): should address offset after
ary_shared_array(). [ruby-core:09358]
6 lines of code changed in:
* Makefile.in (miniruby): add XLDFLAGS.
* configure.in (aix): use -bE option for miniruby. [ruby-dev:29698]
19 lines of code changed in:
* dir.c (glob_helper): get rid of possible memory leak.
* win32/win32.c (cmdglob, rb_w32_cmdvector, rb_w32_opendir,
rb_w32_get_environ): not to use GC before initialization.
[ruby-core:09024]
108 lines of code changed in:
* bignum.c (rb_big2str0): use better approximation.
6 lines of code changed in:
ChangeLog: add patch submitter.
2 lines of code changed in:
* bignum.c (rb_big2str0): wrong allocation length.
[ruby-dev:29710]
6 lines of code changed in:
* eval.c (rb_eval): fix commit miss. [ruby-dev:29707]
5 lines of code changed in:
2006-10-30
3 lines of code changed in:
* sprintf.c (rb_str_format): should preserve leading zero
information for negative %b and %x. [ruby-talk:221347]
31 lines of code changed in:
fix offset value in STATE_CHECK_BUFF_INIT()
9 lines of code changed in:
merge Oniguruma 4.4.5
97 lines of code changed in:
2006-10-28
3 lines of code changed in:
* marshal.c (r_object0): missing break. [ruby-core:09345]
5 lines of code changed in:
2006-10-27
3 lines of code changed in:
* enumerator.c (enum_each_cons): move RETURN_ENUMERATOR() after
argument check.
6 lines of code changed in:
* ext/openssl/ossl_pkcs7.c (ossl_pkcs7_verify): should clear error.
(fix http://bugs.debian.org/394336)
* ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): ditto.
10 lines of code changed in:
* enumerator.c: remove by_slice and by_cons.
10 lines of code changed in:
* ext/digest/digest.c (Init_digest): typo.
5 lines of code changed in:
2006-10-26
3 lines of code changed in:
* test/digest/test_digest_hmac.rb: added.
7 lines of code changed in:
* ext/digest/test.sh: make this script work again.
5 lines of code changed in:
* enumerator.c (enumerator_by_slice): new method added.
* enumerator.c (enumerator_by_cons): ditto.
70 lines of code changed in:
* enumerator.c (enum_each_slice, enum_each_cons): returns
Enumerable::Enumerator if no block is given. [ruby-dev:29246]
* enumerator.c: remove methods: enum_with_index, enum_slice,
enum_cons. [ruby-dev:29246]
10 lines of code changed in:
* enum.c (enum_zip): add RETURN_ENUMERATOR() to zip method.
5 lines of code changed in:
updated based on date2 3.9.6.
10 lines of code changed in:
* win32/mkexports.rb, win32/resource.rb: use unique variable names.
7 lines of code changed in:
2006-10-25
3 lines of code changed in:
ChangeLog: typo fixed
1 lines of code changed in:
* marshal.c (r_object0): use return value from prov given as the
second argument to Marshal#load() to allow value replacement in
the restoring data.
32 lines of code changed in:
*** empty log message ***
0 lines of code changed in:
* configure.in: alloca is broken; use C_ALLOCA instead.
[ruby-dev:29416]
5 lines of code changed in:
2006-10-23
3 lines of code changed in:
*** empty log message ***
16 lines of code changed in:
* signal.c (Init_signal): avoid duplicated installation of SIGCHLD
handler.
7 lines of code changed in:
* string.c (rb_str_upcase, rb_str_downcase, rb_str_downcase,
rb_str_upcase_bang, rb_str_downcase_bang, rb_str_swapcase_bang):
add RDoc description that case conversion to be effective only
in ASCII region.
15 lines of code changed in:
2006-10-22
3 lines of code changed in:
* string.c (rb_str_substr): should be infected with only original
string, but not the shared string. fixed: [ruby-core:09152]
* strnig.c (rb_str_new4): keep shared string untainted when orignal
string is tainted. fixed: [ruby-dev:29672]
15 lines of code changed in:
* ext/digest/lib/digest.rb: Follow the framework updates.
16 lines of code changed in:
2006-10-21
3 lines of code changed in:
* ext/digest/lib/digest/hmac.rb: Complete half-boiled updates.
* ext/digest/sha2/lib/digest/sha2.rb: Fix #initialize_clone().
16 lines of code changed in:
* ext/digest: Prefix C constants with RUBY_ and C type names with
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.
520 lines of code changed in:
* lib/mkmf.rb: fixed the bug of handling COMMON_MACROS.
5 lines of code changed in:
* common.mk (NULLCMD): dummy command.
* bcc32/Makefile.sub (post-install-*): Borland make cannot ignore
command-less double-colon rules. [ruby-dev:29676]
26 lines of code changed in:
* ext/extmk.rb: Borland make needs also -D flags to override variables
in Makefile.
7 lines of code changed in:
* bcc32/Makefile.sub ($(LIBRUBY_SO)): execute pre-link hook.
* ext/extmk.rb: workaround for Borland make.
16 lines of code changed in:
2006-10-20
3 lines of code changed in:
* win32/win32.c (rb_w32_utime): allow NULL to set the current time.
[ruby-talk:219248]
14 lines of code changed in:
* signal.c (Init_signal): handle SIGTERM. fixed: [ruby-list:42895]
6 lines of code changed in:
* array.c (rb_ary_shift): shorten copy size. fixed: [ruby-list:42907]
5 lines of code changed in:
* string.c (rb_str_each_line): String#lines now works when a block
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.
28 lines of code changed in:
* array.c (ary_shared_array): should set NOEMBED flag for a copied
array.
6 lines of code changed in:
2006-10-18
3 lines of code changed in:
* parse.y (parser_yylex): use particular enums. [ruby-core:09221]
6 lines of code changed in:
* lib/erb.rb: String#each was removed, use #each_line instead.
7 lines of code changed in:
2006-10-17
3 lines of code changed in:
* string.c (rb_str_lines): now takes optional argument for the
line separator.
* io.c (rb_io_lines, rb_io_bytes): new methods.
44 lines of code changed in:
* array.c (rb_ary_unshift_m): a bug in lfree shift length
calculation.
50 lines of code changed in:
* mkconfig.rb: *OBJS are not needed for extension libraries.
* {bcc32,wince,win32}/Makefile.sub (config.status): fixed typo,
missing comma.
13 lines of code changed in:
2006-10-16
3 lines of code changed in:
* pack.c (pack_unpack): execute block if given with unpacked value
instead of creating an array. an idea from Tim Bray.
51 lines of code changed in:
* lib/test/unit/collector/dir.rb (Collector::Dir#collect): append base
directory but not prepend.
* lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): do not
join with dot. fixed: [ruby-core:09179]
11 lines of code changed in:
2006-10-15
3 lines of code changed in:
* parse.y (singleton): no need to re-create NODE_SELF() again.
[ruby-core:09177]
7 lines of code changed in:
* parse.y (parser_warning, parser_warn): some error message may
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.
24 lines of code changed in:
rephrase an entry
2 lines of code changed in:
* 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:
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.
207 lines of code changed in:
* ext/digest/digest.c: Improve RDoc documentation further more.
17 lines of code changed in:
* ext/digest/digest.c: Improve RDoc documentation.
* 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().
55 lines of code changed in:
Add .cvsignore
4 lines of code changed in:
* bcc32/Makefile.sub (post-install-ext): no longer needed.
* bcc32/configure.bat: get rid of a quirk of Borland make, which
sets empty macro in command line to "1".
19 lines of code changed in:
2006-10-14
3 lines of code changed in:
*** empty log message ***
1 lines of code changed in:
* ChangeLog: fixed broken time stamps again.
3375 lines of code changed in:
updated based on date2 3.9.5.
5 lines of code changed in:
* ChangeLog: fixed broken time stamps.
3401 lines of code changed in:
* ext/digest/lib/digest.rb (Digest): Try to auto-load non-standard
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.
23 lines of code changed in:
* ext/digest/digest.c (Init_digest): Digest::Base.new() does no
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)''.
11 lines of code changed in:
* ext/digest/digest.c, ext/digest/md5/md5init.c,
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.
98 lines of code changed in:
* ext/digest/bubblebabble, ext/digest/digest.c: Rip BubbleBabble
support out of the base class and have a separate module named
digest/bubblebabble.
145 lines of code changed in:
* ext/digest/digest.c (rb_digest_base_equal): Again, should call
digest() of a subclass instead of the one defined in the base
class.
7 lines of code changed in:
* object.c: Class#inherited RDoc added. a patch from Daniel
Berger <djberg96 at gmail.com> [ruby-core:08942]
33 lines of code changed in:
* ext/digest/digest.c (rb_digest_base_equal): Should call digest()
of a subclass instead of the one defined in the base class.
8 lines of code changed in:
* lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend
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.
39 lines of code changed in:
* lib/date.rb (Date::self.complete_hash): need to check if g is
nil before dereference. [ruby-core:09116]
6 lines of code changed in:
* string.c (rb_str_partition): RDoc update. a patch from
Mauricio Fernandez <mfp at acm.org>. [ruby-core:09160]
* hash.c (rb_hash_compare_by_id): ditto.
10 lines of code changed in:
2006-10-13
3 lines of code changed in:
* object.c (rb_mod_cvar_defined): wrong id check. a patch from
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.
13 lines of code changed in:
* hash.c (rb_hash_compare_by_id): somehow we lost renaming from
Hash#identical. [ruby-core:09163]
14 lines of code changed in:
* ext/tk/tkutil/tkutil.c (cbsubst_table_setup): need to handle new
character literal (1 char string).
* lib/mkmf.rb: shut up some warnings from tk's extconf.rb.
11 lines of code changed in:
fix wording
3 lines of code changed in:
* ext/digest/lib/digest/hmac.rb: Make use of String#bytes.
5 lines of code changed in:
* ext/digest/digest.c (get_digest_base_metadata): Use an instance
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.
25 lines of code changed in:
2006-10-12
3 lines of code changed in:
* ext/digest/digest.c (rb_digest_base_alloc,
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.
23 lines of code changed in:
* eval.c (rb_obj_define_method): add half boiled RDoc document.
15 lines of code changed in:
* array.c: revert modify check during iteration.
13 lines of code changed in:
* array.c (rb_ary_replace): should shift lfree pointer before
calling xfree.
10 lines of code changed in:
* array.c (each_internal): patch miss.
0 lines of code changed in:
* ext/digest/lib/digest/hmac.rb: Add digest/hmac, which implements
HMAC keyed-hashing algorithm.
268 lines of code changed in:
* ext/digest/digest.c (rb_digest_base_reset): Do not make
recursive calls, but call initialize() when reset() is not
defined in a subclass.
15 lines of code changed in:
* array.c (rb_ary_each): prohibit array modification during each
iteration. [ruby-core:09104]
41 lines of code changed in:
* ext/digest/sha1/sha1ossl.h: libssl 0.9.8c-3 defines no
SHA_BLOCK_LENGTH.
30 lines of code changed in:
* 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]
64 lines of code changed in:
2006-10-11
3 lines of code changed in:
* ext/digest/digest.c (hexdigest_str_new, bubblebabble_str_new):
Perform StringValue() checks properly.
17 lines of code changed in:
* ext/digest/sha1/depend, ext/digest/sha2/depend: Remove obsolete
dependencies.
5 lines of code changed in:
2006-10-10
3 lines of code changed in:
* lib/parsedate.rb: documentation patch from Konrad Meyer
<konrad.meyer@gmail.com>. [ruby-doc:1238]
* lib/open3.rb, lib/ping.rb: ditto.
110 lines of code changed in:
* ext/extmk.rb, lib/fileutils.rb, lib/mkmf.rb, lib/optparse.rb,
lib/shellwords.rb: get rid of shadowing outer local variable.
45 lines of code changed in:
* 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.
10 lines of code changed in:
* eval.c (rb_obj_define_method): add new method
Kernel#define_singleton_method. [ruby-list:42851]
15 lines of code changed in:
2006-10-09
3 lines of code changed in:
use __send! instead of funcall.
4 lines of code changed in:
* string.c (rb_str_scan): small documentation fix.
[ruby-core:09007]
6 lines of code changed in:
2006-10-08
3 lines of code changed in:
* bignum.c (rb_big_rshift): a bug in right shift of negative
bignums. [ruby-core:09020]
9 lines of code changed in:
* eval.c (formal_assign): packed post splat arguments may conflict
with normal arguments. [ruby-core:09021]
* eval.c (rb_call0): ditto.
12 lines of code changed in:
* object.c (rb_mod_initialize): since module_eval no longer passes
self, use module_exec instead. fixed: [ruby-dev:29637]
6 lines of code changed in:
2006-10-07
3 lines of code changed in:
* class.c (rb_include_module): remove unnecessary check.
[ruby-talk:218402]
5 lines of code changed in:
* ext/digest/depend: Fix header installation when the build
directory is different from srcdir. [Pointed out by: eban]
6 lines of code changed in:
* {bcc32,win32,wince}/Makefile.sub (config.status): shouldn't use
copy command instead of install. use -run install.
5 lines of code changed in:
* sample/test.rb: revert debug print.
3 lines of code changed in:
* eval.c (rb_yield_0): small refactoring.
* parse.y (bparam_item): fixed bugs in handling parenthesized LHS.
49 lines of code changed in:
* ext/digest/depend: Install digest.h.
10 lines of code changed in:
* sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
5 lines of code changed in:
* ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Remove those
compatibility stub libraries.
5 lines of code changed in:
* ext/digest/digest.c: Make hexdigest() always call digest() internally.
* ext/digest/digest.c: Add bubblebabble().
78 lines of code changed in:
* ext/digest/digest.c: Allow subclassing in Ruby.
4 lines of code changed in:
* ext/digest/digest.c: Allow subclassing in Ruby.
82 lines of code changed in:
* ext/digest/digest.c (hexdigest_str_new): Add a string size check.
12 lines of code changed in:
2006-10-06
3 lines of code changed in:
* 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.
123 lines of code changed in:
2006-10-05
3 lines of code changed in:
* 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.
147 lines of code changed in:
* eval.c (rb_call): check protected visibility based on real self,
not ruby_frame->self. [ruby-talk:217822]
33 lines of code changed in:
* parse.y (block_param): should interpret single parenthesized
left hand side expression.
6 lines of code changed in:
* test/optparse/test_getopts.rb: changed the class name of test case
to get rid of conflict with test_optparse.rb.
6 lines of code changed in:
* 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.
65 lines of code changed in:
* parse.y (mlhs): simplifies the rule a bit.
5 lines of code changed in:
2006-10-04
3 lines of code changed in:
* parse.y (dyna_in_block): inline using macro.
5 lines of code changed in:
* 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.
56 lines of code changed in:
2006-10-03
3 lines of code changed in:
* string.c (rb_str_lines): returns an Enumerator instead of an
array of lines.
* string.c (rb_str_bytes): a new method.
27 lines of code changed in:
* lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
load expanded path. fixed: [ruby-dev:29621]
5 lines of code changed in:
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::COLLECTORS):
base directory should be lower precedence. fixed: [ruby-dev:29622]
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): typo.
9 lines of code changed in:
* instruby.rb: for cross compile.
2 lines of code changed in:
* instruby.rb: batfile should be CRLF'ed.
6 lines of code changed in:
* common.mk (test-all): separate directory where running test cases
from source tree.
* lib/test/unit/autorunner.rb (options): added --basedir, --workdir
and --load-path options.
* lib/test/unit/collector/dir.rb (recursive_collect, collect_file):
base directory support.
48 lines of code changed in:
2006-10-02
3 lines of code changed in:
* Makefile.in, common.mk, ext/extmk.rb, win{32,ce}/Makefile.in: keep
LIBRUBY_SO unless need to be removed.
18 lines of code changed in:
* lib/optparse.rb (OptionParser#make_switch): pass arguments directly.
14 lines of code changed in:
2006-10-01
4 lines of code changed in: