usa
8e1455a16e
* instruby.rb: for cross compile.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-02 06:55:16 +00:00
usa
d752282786
* instruby.rb: batfile should be CRLF'ed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-02 06:50:14 +00:00
nobu
5cfcbb2aca
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-01 16:25:37 +00:00
nobu
536cbbb200
2006-10-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-01 16:24:52 +00:00
nobu
b004fa2428
* Makefile.in, common.mk, ext/extmk.rb, win{32,ce}/Makefile.in: keep
...
LIBRUBY_SO unless need to be removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-01 15:00:45 +00:00
nobu
eba3d4587f
* lib/optparse.rb (OptionParser#make_switch): pass arguments directly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-01 14:13:16 +00:00
nobu
4d24c82ccf
2006-10-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-01 14:13:06 +00:00
tadf
41b80c47d0
updated based on date2 3.9.4.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-30 06:13:17 +00:00
tadf
cd408b970e
2006-09-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-30 06:13:07 +00:00
knu
480496a806
* ext/digest/lib/digest.rb (Digest): Require digest.so and fix the
...
breakage. Point out by NAKAMURA Usaku in [ruby-dev:29619].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-29 04:21:30 +00:00
eban
cab3b4e92f
* jcode.rb (succ!): call original succ! if $KCODE == 'n'.
...
fixed: [ruby-talk:216845]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-29 03:31:01 +00:00
nobu
5f1caf89e4
* lib/mkmf.rb (try_func): revert fallback checking undeclared function.
...
fixed: [ruby-core:08949]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-29 02:44:37 +00:00
nobu
60a289741c
* lib/optparse.rb (OptionParser::Switch#conv_arg): unsplat by
...
Proc#call if no conversion is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-29 00:57:47 +00:00
nobu
d5195959bf
* ext/extmk.rb: extout is needed for also clean.
...
fixed: [ruby-core:08944]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-29 00:37:20 +00:00
nobu
05c1ab35fc
* lib/optparse.rb (parse_in_order): splat arguments to callback block.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-29 00:30:49 +00:00
nobu
402d2ca7a9
2006-09-29
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-28 15:01:06 +00:00
nobu
562b6f1db2
* node.h (struct thread): declare win32_exception_list on cygwin and
...
win32 regardless if it is implemented. Provisional fix for
[ruby-core:08917].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-28 15:01:04 +00:00
usa
406479b3b5
* lib/tmpdir.rb: use return value of getdir.call for length.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-28 11:54:37 +00:00
usa
31fd0d6029
2006-09-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-28 11:53:52 +00:00
knu
3c29f3feef
* ext/digest/md5/md5init.c (Init_md5): Now that we have digest.rb,
...
require "digest" rather than "digest.so".
* 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@11042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-27 14:34:49 +00:00
matz
62ad417517
* string.c (rb_str_startwith): rename startwith? to start_with?,
...
endwith? to endwith?, respectively. [ruby-talk:216685]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-27 12:45:29 +00:00
matz
02a8f15c9b
* lib/cgi.rb (CGI::TagMaker::nOE_element_def): replace to_s by
...
join. some other methods as well. [ruby-dev:29613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-27 08:37:48 +00:00
matz
9856258cd0
socket.c: a rdoc patch from Daniel Berger <djberg96 at gmail.com>
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 23:31:35 +00:00
matz
1113d54ede
* array.c (rb_ary_shift): shift/unshift performance boost patch,
...
based on the patch from Eric Mahurin <eric_mahurin at yahoo.com>.
[ruby-core:05861]
* array.c (rb_ary_unshift_m): ditto.
* array.c (ary_make_shared): ditto.
* array.c (RESIZE_CAPA): ditto.
* array.c (rb_ary_free): new function to free memory. code moved
from gc.c.
* string.c (rb_str_free): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 22:46:16 +00:00
nobu
4f6f0b1066
* lib/mkmf.rb (try_func): check function pointer first and macro next.
...
* lib/mkmf.rb (have_type): simplified with typedef and sizeof.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 16:05:52 +00:00
nobu
f3846ac51b
* lib/optparse.rb (OptionParser#parse_in_order): wrong splat for
...
callbacks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 15:49:44 +00:00
nobu
a65ee0811c
2006-09-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 15:20:07 +00:00
nobu
3986bdc4a7
* test/optparse/test_getopts.rb: added short and long tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 15:20:05 +00:00
nobu
6b55a46114
* test/optparse/test_getopts.rb: added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 14:59:20 +00:00
nobu
5da1743e3f
* lib/optparse.rb (OptionParser#getopts): use strings as key.
...
fixed: [ruby-dev:29614]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 14:57:48 +00:00
usa
c24faf6703
* {win32,wince}/Makefile.sub (CPP): check predefined value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 06:34:15 +00:00
usa
8af68b08a0
* win32/Makefile.sub (CPP): check predefined value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 06:32:09 +00:00
matz
d2dd0c30d1
2006-09-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-25 22:58:15 +00:00
matz
94fa180c07
* array.c (rb_ary_shift): should not move memory region if array
...
body is shared. a patch from Kent Sibilev <ksruby at gmail.com>.
[ruby-core:08922]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-25 22:58:13 +00:00
matz
500a5c34ac
* dir.c (rb_push_glob): need not to check by FilePathValue().
...
[ruby-dev:29599]
* dir.c (dir_globs): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-25 14:19:57 +00:00
nobu
c7908b19b0
* lib/mkmf.rb (rm_f): get rid of NUL.
...
* lib/mkmf.rb (init_mkmf): set default $LDFLAGS. Patch by Michal
Suchanek <hramrach at centrum.cz>. [ruby-talk:216256]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-25 13:26:40 +00:00
nobu
b96af08add
* file.c (rb_path_end): skip root directory. fixed: [ruby-core:08913]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-25 12:25:29 +00:00
matz
db7f24b362
* sample/test.rb: "print nil" now prints empty string.
...
* test/ruby/test_system.rb (TestSystem::test_system): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-25 06:07:36 +00:00
matz
5cc2093ccd
* hash.c (recursive_hash): remove unused local variable.
...
* parse.y (parser_yylex): ditto.
* parse.y (rb_gc_mark_symbols): fix unmatched prototype .
* file.c (rb_get_path): check NUL byte in the path string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-25 05:57:37 +00:00
matz
8366008bcf
array.c (rb_ary_shift): small bug fix
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-25 00:59:03 +00:00
matz
fe2b0129cc
* array.c (rb_ary_shift): should clear shifting top element.
...
[ruby-talk:216055]
* array.c (rb_ary_shift): avoid creating shared object if array
size is small.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24 23:17:42 +00:00
matz
860b9bf47f
2006-09-25
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24 23:14:16 +00:00
matz
2a0c02c27d
* random.c (rb_f_rand): RDoc typo fix. a patch from Frederick
...
Cheung <fred at 82ask.com>. [ruby-talk:216047]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24 23:14:14 +00:00
matz
8410314961
add ML entry
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24 14:51:08 +00:00
matz
830573a7f7
* gc.c (gc_mark_children): NODE_POSTEXE holds Ruby VALUE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24 14:47:43 +00:00
nobu
8ec17dab6a
* runruby.rb: extension library scripts moved into common directory.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24 13:28:53 +00:00
tadf
ffc6df2b67
updated based on date2 3.9.3.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24 03:11:56 +00:00
nobu
3537afda47
* io.c (rb_io_print): no special handling for nil as well as puts.
...
fixed: [ruby-dev:29586]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-23 21:55:46 +00:00
why
e441b922b9
2006-09-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-23 21:29:51 +00:00
why
dcb6131f78
* eval.c (rb_thread_save_context, rb_thread_restore_context):
...
sandbox hook to save and restore sandbox state.
* eval.c (thread_no_ensure): added THREAD_NO_ENSURE thread flag.
* eval.c (rb_thread_kill_bang): Thread#kill! uses the above flag
to circumvent ensure, in order to prevent endless loops.
contributed by MenTaLguY. [ruby-core:08768]
* eval.c (rb_thread_kill): fix Thread#kill docs, which returns
the thread object in all cases.
* node.h: expose the rb_jmpbuf_t and rb_thread_t structs, along
with the thread flags. used by the sandbox extension.
* ruby.h: extern rb_eThreadError, so sandbox can swap it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-23 21:29:47 +00:00