eban
2f7275db77
* io.c (prep_stdio, Init_io): always set binmode on Cygwin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-15 18:16:52 +00:00
nobu
f2d07eb82d
* file.c (file_expand_path): fix surplus path separators while
...
expanding at root directory. [ruby-dev:19572]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-14 16:09:07 +00:00
akira
bfa0275833
* lib/uri/generic.rb, lib/uri/ldap.rb, lib/uri/mailto.ldap: all foo=()
...
returns arguments passed by caller.
* lib/uri/generic.rb (Generic#to_str, Generic#to_s): removed to_str.
Suggested by Tanaka Akira <akr@m17n.org> at [ruby-dev:19475].
* lib/uri/generic.rb (Generic#==): should not generate an URI object
from argument. Suggested by Tanaka Akira <akr@m17n.org> at
[ruby-dev:19475].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-14 05:32:48 +00:00
nobu
246800d42b
*** empty log message ***
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-13 09:58:57 +00:00
matz
937092b820
* range.c (range_step): step might be float 0 < x < 1.
...
* eval.c (rb_thread_schedule): pause if no runnable thread when
there's only one thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-13 09:11:11 +00:00
nobu
050f2d8460
* ruby.c (proc_options): script argument is in effect only when -e is not given.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-13 03:02:19 +00:00
nobu
2f7ee35065
2003-02-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-13 00:59:22 +00:00
nobu
2f6595c1ed
* ruby.c (ruby_init_loadpath): ensures buffer terminated
...
before use strncpy().
* ruby.c (proc_options): avoid SEGV at -S with no arguments.
(ruby-bugs-ja:PR#391)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-13 00:59:00 +00:00
nobu
168f2f470f
* eval.c (rb_thread_schedule): current thread may be dead when
...
deadlock. (ruby-bugs:PR#588)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-12 16:30:13 +00:00
nobu
4ef1062c6f
* file.c (rb_file_s_dirname): append "." if drive only.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-12 15:10:51 +00:00
nobu
6f780a30fc
2003-02-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-12 14:56:49 +00:00
nobu
7dd303419e
* file.c (strrdirsep): ignore trailing directory separators.
...
* file.c (rb_file_s_expand_path): File.expand_path(".","/") should
return "/". (ruby-bugs-ja:PR#389)
* file.c (rb_file_s_basename): also ignore trailing directory
separators, in compliance with SUSv3. (ruby-bugs-ja:PR#390)
* file.c (rb_file_s_dirname, rb_file_s_extname): ditto.
* file.c (rb_file_s_split): get rid of converting twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-12 14:56:45 +00:00
nobu
b3ec759e4b
convert EOL code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-12 06:20:19 +00:00
ntalbott
f29a009cc1
This commit was generated by cvs2svn to compensate for changes in r3481,
...
which included commits to RCS files with non-trunk default branches.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-12 04:22:38 +00:00
ntalbott
04f2b8f7bf
Initial revision
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-12 03:12:14 +00:00
eban
4a44a6d474
* typo fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-10 12:01:22 +00:00
eban
986bfd904c
* ext/extmk.rb (parse_args): add '-n' to $mflags BEFORE "--".
...
do not add DESTDIR if already included in $fmlags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-10 11:59:26 +00:00
aamine
dc502aea7e
* lib/fileutils.rb (FileUtils#uptodate?): use mtime for comparison.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-10 10:48:38 +00:00
matz
ab24be4e98
* array.c (rb_ary_to_a): return value should be an Array if the
...
receiver is an instance of subclass of Array.
* string.c (rb_str_to_s): return value should be a String if the
receiver is an instance of subclass of String.
* eval.c (rb_call): calls method_missing when superclass method
does not exist.
* eval.c (rb_f_missing): now handles "no super" case.
* object.c (rb_obj_ivar_get): Object#instance_variable_get: new
method to get instance variable value without eval(). [new]
* object.c (rb_obj_ivar_set): Object#instance_variable_set: new
method to set instance variable value without eval(). [new]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-10 09:40:13 +00:00
eban
b53549941d
* io.c (rb_file_sysopen): rb_file_sysopen_internal() needs four
...
arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-09 18:36:22 +00:00
eban
7f9964c14e
2003-02-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-09 06:58:31 +00:00
nobu
8fc90b887b
* intern.h (HAVE_RB_DEFINE_ALLOC_FUNC, RB_CVAR_SET_4ARGS):
...
define to 1.
* ruby.h (NORETURN_STYLE_NEW): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-09 06:16:08 +00:00
nobu
7aa4cb1f06
* lib/mkmf.rb (init_mkmf): add libdir to LIBPATH unless cross
...
compiling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-09 03:28:22 +00:00
aamine
e3ab724e00
* lib/net/http.rb: 4xx raises Net::ProtoServerError, 5xx raises Net::ProtoFatalError (for backward compatibility).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-08 23:29:07 +00:00
aamine
9952524a74
* lib/fileutils.rb: new method FileUtils.pwd (really).
...
* lib/fileutils.rb: FileUtils.pwd, cmp, identical?, uptodate? does not accept any option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-08 22:01:53 +00:00
akr
a9da9667d0
fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-08 10:37:43 +00:00
nobu
8f9e39b141
Sorry, missed contributer's name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-08 09:57:32 +00:00
nobu
075e9a5555
* misc/ruby-mode.el (ruby-forward-string): fixed void variable
...
error.
* misc/ruby-mode.el (ruby-font-lock-keywords): method name can
be delimited by tab.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-08 09:35:36 +00:00
knu
718b4e9ea0
* lib/irb/workspace.rb, lib/irb/ext/math-mode.rb,
...
lib/irb/ext/multi-irb.rb, lib/irb/lc/error.rb,
lib/irb/lc/help-message, lib/irb/lc/ja/error.rb,
lib/shell/command-processor.rb, lib/shell/error.rb,
lib/shell/filter.rb: Fix typos and grammos. [approved by: keiju]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-07 19:00:21 +00:00
knu
916f41d717
2003-02-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-07 18:47:06 +00:00
knu
9a4111c794
s/Mon 01/Mon 1/.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-07 18:45:54 +00:00
knu
0644ac3f8e
* intern.h (HAVE_RB_DEFINE_ALLOC_FUNC): New boolean macro to make
...
it easier to write extensions that work with both ~1.6 and 1.8~.
* intern.h (RB_CVAR_SET_4ARGS): Ditto.
* ruby.h (NORETURN_STYLE_NEW): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-07 18:37:03 +00:00
eban
59483da886
2003-02-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-07 09:31:41 +00:00
nobu
a4d9a91b96
re-indented.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-07 06:36:53 +00:00
nobu
34033db665
* intern.h, re.c (rb_memsearch): returns long.
...
* string.c (rb_str_index): should return offset position.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-07 06:35:26 +00:00
nobu
b89cbf192b
* eval.c (proc_invoke): should propagate self to super
...
methods. [ruby-dev:19510]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-07 06:30:18 +00:00
matz
766f2adb74
* re.c (rb_reg_initialize_m): shoule not preset "kcode" unless
...
encoding is explicitly specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-06 10:06:47 +00:00
aamine
f3607247c8
* lib/fileutils.rb: new method FileUtils.pwd.
...
* lib/fileutils.rb: default label is ''.
* lib/fileutils.rb: using module_eval again, to avoid ruby's bug.
* lib/fileutils.rb: fix wrong examples in rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-06 09:56:13 +00:00
matz
117b4df7c7
* lib/complex.rb (Complex#==): should not raise error by type
...
mismatch.
* lib/rational.rb (Rational#==): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-06 09:49:12 +00:00
eban
9a4c662771
2003-02-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-06 08:40:44 +00:00
matz
e2b92403d5
* re.c (rb_reg_initialize_m): 3rd argument was ignored.
...
* string.c (rb_str_count): return 0 for empty string (was
returning nil).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-06 08:25:12 +00:00
akr
da19d16b1c
* lib/open-uri.rb: dispatch code restructured to make it openable
...
that has `open' method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-05 10:44:05 +00:00
akr
5504f490a6
* lib/open-uri.rb: Location: field may has a relative URI.
...
pointed out by erik eriksson <ee@opera.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-05 09:58:18 +00:00
eban
b50100a769
2003-02-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-05 08:54:42 +00:00
matz
bb7085084e
* parse.y (yylex): no .<digit> floating literal anymore.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-05 08:11:27 +00:00
nobu
aa8b38793f
typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-04 07:40:52 +00:00
eban
6f83a60747
2003-02-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-04 07:31:08 +00:00
matz
1d5e19f624
* array.c (rb_ary_equal): a == b is true when b is non T_ARRAY
...
object, if b has "to_ary" and b == a.
* hash.c (rb_hash_equal): a == b is true when b is non T_HASH
object, if b has "to_hash" and b == a.
* string.c (rb_str_equal): a == b is true when b is non T_STRING
object, if b has "to_str" and b == a.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-04 07:27:43 +00:00
gsinclair
c46774cdb3
Added RDoc comments. See comments at EOF for remaining issues.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-04 03:47:42 +00:00
gsinclair
bed06ae87d
Added RDoc comments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-03 13:52:21 +00:00