matz
51281b961b
* bignum.c (rb_big_hash): use rb_memhash().
...
* numeric.c (flo_hash): simplified. klass need not to affect
resulting hash value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 22:52:38 +00:00
matz
5b950717b7
* string.c (str_new3): embed shorter strings more eagerly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 22:50:32 +00:00
nobu
e4800cabfb
* .cvsignore: ignore timestamp files and installed list file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 17:06:50 +00:00
nobu
f0a108f408
* instruby.rb: include FileUtils unconditionally.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 16:37:05 +00:00
nobu
c550f673c0
2006-09-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 15:36:20 +00:00
nobu
ae7ea70a3a
* numeric.c (Init_Numeric): fix_odd_p and fix_even_p are for Fixnum.
...
patch from Ondrej Bilka <neleai at seznam.cz>. [ruby-core:08904]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 15:36:17 +00:00
nobu
e8454ae776
* common.mk (no-install): not install rdoc actually.
...
* common.mk (install-doc, no-install-doc): use instruby.rb.
* instruby.rb: rdoc installation.
* ext/extmk.rb: expand ruby executable names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 13:58:33 +00:00
matz
f5ec2b0d75
* string.c (rb_str_startwith): a new method to check if a string
...
starts with given prefix.
* string.c (rb_str_endwith): the opposite of String#startwith?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 08:47:03 +00:00
eban
ee9bae8cd7
* rubytest.rb: use each_line instead of each.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 07:29:56 +00:00
matz
255702be8c
* numeric.c (int_odd_p): a new method to check even or odd.
...
[RCR#337]
* numeric.c (int_even_p): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 06:09:26 +00:00
matz
4e37427ee5
* string.c (Init_String): Strings are no longer Enumerable. use
...
each_lines or lines method explicitly.
* string.c (Init_String): remove each method. use each_lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 05:57:20 +00:00
matz
c35290824a
* ext/etc/etc.c (etc_getpwuid): uid integer should be wraped in
...
uid_t value. [ruby-core:08897]
* ext/etc/etc.c (etc_getpwuid): uid_t may be bigger than plain
'int' type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 05:12:57 +00:00
matz
77fef79f10
* string.c (rb_str_partition): RDoc typo fixed. [ruby-core:08898]
...
* string.c (rb_str_rpartition): fixed separation seek bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 01:10:25 +00:00
matz
e79002a022
* string.c (rb_str_lines): new method to split a string into lines.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-21 00:43:16 +00:00
matz
3b9c221378
2006-09-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 16:41:59 +00:00
matz
71afefd5d1
* string.c (rb_str_partition): a new method to separate the string
...
by a separator. taken from Python 2.5.
* string.c (rb_str_rpartition): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 16:41:56 +00:00
nobu
8978bfe7f9
* common.mk (pre-install-doc): create data directory before install.
...
* lib/mkmf.rb (dir_re): fixed typo.
* lib/mkmf.rb (install_dirs): remove extra slash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 14:18:19 +00:00
nobu
4e259f9094
* numeric.c (fix_mul): typo again. patch from Tadashi Saito
...
<shiba at mail2.accsnet.ne.jp>. fixed: [ruby-core:08893]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 13:41:55 +00:00
matz
803591e900
* string.c (sym_eql): fail early to gain performance.
...
* string.c (sym_hash): cache hash value in aux.shared if possible.
* gc.c (rb_obj_id): no need to treat symbols specially.
* lib/fileutils.rb (FileUtils::FileUtils): singleton_methods() no
longer return an array of strings, but of symbols.
* lib/delegate.rb (DelegateClass): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 04:18:25 +00:00
shugo
2ec2878d55
* swapped ChangeLog entries. Sorry....
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 01:42:03 +00:00
shugo
a0a0a0fb72
* forgot to commit ChangeLog. Sorry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 01:36:49 +00:00
usa
a32b61147b
* {bcc32,win32,wince}/Makefile.sub (INSTALLED_LIST): need to define
...
this macro to install.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 00:54:45 +00:00
shugo
92d28f6b8f
* lib/net/imap.rb: allow extra spaces in responses.
...
Thanks, Tom Soderlund.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 00:45:08 +00:00
matz
d3f545235a
* ext/gdbm/gdbm.c: add RDoc documentation. a patch from Peter
...
Adolphs <futzilogik at users dot sourceforge dot net>.
[ruby-doc:1223]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 00:30:38 +00:00
matz
eede22f0bb
2006-09-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 00:30:30 +00:00
nobu
a388c7dd9e
* object.c (rb_obj_ivar_defined, rb_mod_cvar_defined): new methods,
...
Kernel#instance_variable_defined? and Module#class_variable_defined?.
[ruby-dev:29587]
* lib/date/format.rb (Date::Bag#method_missing): use new method,
instance_variable_defined? to check if an instance variable is
defined. fixed: [ruby-dev:29554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-18 15:43:06 +00:00
nobu
e273f67f6b
2006-09-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-18 15:42:58 +00:00
matz
6bf30a90ef
* dir.c (dir_s_glob): restore GC protection volatile variable.
...
[ruby-dev:29588]
* re.c (rb_reg_regcomp): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-18 06:33:03 +00:00
nobu
3851ac03b5
* numeric.c (fix_mul): get rid of shift overflow.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-18 03:17:06 +00:00
matz
4048548f7f
2006-09-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-18 01:59:03 +00:00
matz
749df1d0fd
* dir.c (dir_s_glob): remove unused variable.
...
* math.c (math_log): ditto.
* re.c (rb_reg_regcomp): ditto.
* eval.c (break_jump): ditto.
* eval.c (rb_thread_yield_0): remove unused function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-18 01:59:00 +00:00
nobu
392f342f04
* lib/rdoc/rdoc.rb (RDoc::RDoc#document): scan only files modified
...
after the previous generation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-17 14:46:13 +00:00
nobu
8114a2edb0
* common.mk (install-doc): reverted.
...
* instruby.rb: stores file name list without destdir prefix.
* lib/rdoc/generators/ri_generator.rb: do not chdir twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-17 08:43:19 +00:00
nobu
cd5cfab0e7
* numeric.c (fix_mul): fixed typo. fixed: [ruby-core:08885]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-17 01:42:28 +00:00
akr
6580c02605
2006-09-17
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 15:30:51 +00:00
akr
026cc75b9a
use assert_same instead of assert_equal.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 15:30:49 +00:00
matz
f208b3ad51
* README.EXT: should mention new macros: RSTRING_PTR, RSTRING_LEN,
...
RARRAY_PTR, RARRAY_LEN.
* README.EXT.ja: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 10:51:35 +00:00
nobu
46799937ee
* ChangeLog: commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 07:41:07 +00:00
nobu
4b6a1b7f9c
* lib/mkmf.rb (checking_for): improved the messages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 07:22:49 +00:00
nobu
b1ad30b2f7
* ext/pty/pty.c (establishShell): parent pid is not used.
...
* ext/pty/pty.c (freeDevice): not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 07:21:02 +00:00
nobu
006f77a2f1
* ext/io/wait/extconf.rb: suspicious checking_for.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 07:15:22 +00:00
nobu
5e6bf721d5
* ext/dbm/extconf.rb: allow multiple candidates for dbm-type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 07:14:37 +00:00
nobu
f06362a4f9
* Makefile.in, common.in, instruby.rb, ext/extmk.rb, lib/mkmf.rb:
...
use instruby.rb to install extensions instead of ext/extmk.rb.
* instruby.rb: store installed list into the file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 07:06:57 +00:00
matz
efc605aead
* array.c (ary_shared_first): should create embedded copies
...
instead of sharing memory region for smaller arrays.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 02:24:58 +00:00
matz
23c5ee8a9d
2006-09-16
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 02:21:01 +00:00
matz
de4f255da2
* struct.c (inspect_struct): do not display a class name for
...
anonymous struct. The member fields are sufficient.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 02:20:59 +00:00
naruse
5300eecfb3
* ext/nkf/nkf-8/nkf.c: imported nkf 2.0.8 rev.110.
...
* Fix: check_bom cuts \xfe\xff\xXX\xXX of UTF-32.
* Add support --ic=UTF-32.
* Fix: can't guess UTF-16 and UTF-32.
* Fix: can't decode beyond BMP of UTF-16LE.
* ext/nkf/nkf.c (guess): Support UTF-32.
* ext/nkf/lib/kconv.rb (kconv): Support UTF-32.
* ext/nkf/lib/kconv.rb (to_utf32): new method.
* ext/nkf/lib/kconv.rb (to_utf32): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-15 11:26:07 +00:00
naruse
976b4e5f8b
* ext/nkf/nkf-8/nkf.c: imported nkf 2.0.8 2006-09-15.
...
Add support for U+10000 - U+10FFFF
Add support UTF-32
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-14 20:27:56 +00:00
akr
2043c39808
* ext/digest/lib/digest.rb (Digest::Base.file): open a file in binary
...
mode. suggested by Kazuhiro NISHIYAMA. [ruby-dev:29579]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-14 15:05:22 +00:00
akr
af05fa6a40
2006-09-15
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-14 15:05:18 +00:00