nobu
22bb1debf9
* lib/optparse.rb, lib/optparse/version.rb: search also all
...
capital versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-08 11:00:17 +00:00
nobu
44785befea
* lib/optparse.rb (OptionParser#order, #permute, #parse): allow an
...
array as argument.
* test/ruby/test_*.rb: moved invariants to left side in
assert_equal, and use assert_nil, assert_raises and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-05 15:15:43 +00:00
nobu
73e4384a23
* lib/optparse.rb (--version): fix assignment/reference order.
...
* lib/optparse.rb (OptionParser#help): new; OptionParser#to_s may
be deprecated in future.
* lib/optparse/version.rb (OptionParser#show_version): hide Object.
* test/runner.rb: fix optparse usage.
* test/runner.rb: glob all testsuits if no tests given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-05 02:32:24 +00:00
nobu
89c73f237e
* lib/optparse.rb: --version takes an optional argument; "all" or a list of package names.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-31 03:25:11 +00:00
nobu
e06379839c
removed garbage
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-18 06:34:49 +00:00
matz
909c2274f9
* eval.c (rb_f_missing): VCALL is called only for LOCAL_ID. no
...
check required.
* parse.y (primary): pritmary:tFID generates NODE_FCALL.
[ruby-dev:20641]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-18 05:29:46 +00:00
matz
590a37880c
* eval.c (proc_alloc): re-unification of Block and Proc. Block
...
class is no longer available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-16 07:14:50 +00:00
matz
c5fc4bca6d
* eval.c (rb_call_super): inheritance line adjustment moved from
...
rb_call(). [ruby-core:01113]
* eval.c (rb_eval): use rb_call_super() to follow DRY principle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-03 09:40:21 +00:00
matz
6125313d69
* array.c (push_values_at): Array#values_at should work with
...
ranges too.
* range.c (rb_range_beg_len): length calculation was wrong.
* eval.c (rb_call): should set T_ICLASS in the frame->last_class.
[ruby-core:01110]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-02 04:49:46 +00:00
nobu
1ce0018ba1
remove conflict
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-30 16:50:41 +00:00
matz
979f006b9e
* io.c (rb_f_syscall): type dispatch should be based on
...
rb_check_string_type(), not FIXNUM_P(), because values may be a
bignum. [ruby-talk:72257]
* eval.c (rb_call0): should pass the current klass value to
block_invoke, which may be called via "super". [ruby-core:01077]
* eval.c (block_invoke): now takes 4th argument "klass".
* eval.c (block_alloc): should propagate BLOCK_PROC to
ruby_block.
* marshal.c (r_object0): should not use "yield" method, use "call"
instead. (ruby-bugs-ja PR#476)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-30 16:08:03 +00:00
nobu
7d9628ef02
* eval.c (rb_Array): exclude Kernel#to_a instead of Object#to_a.
...
(ruby-bugs-ja:PR#483)
* lib/optparse.rb (OptionParser::Switch#parse_arg): not splat.
* lib/optparse.rb (OptionParser::Switch#conv_arg): splat if no
conversion supplied.
* lib/optparse.rb (OptionParser::Switch::PlacedArgument#parse):
override next switch after argument conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-30 05:55:50 +00:00
nobu
4ca5e66ee7
backout
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-29 21:35:50 +00:00
nobu
5ddce4f7bc
* eval.c (ev_const_defined, ev_const_get), variable.c
...
(rb_const_get_at, rb_const_get, rb_mod_remove_const): use Qundef
as autoload marker. [ruby-dev:18103], [ruby-dev:18184]
* eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;
Module#autoload, Module#autoload?.
* variable.c (rb_autoload, rb_autoload_load, rb_autoload_p):
manage autoload constants per classes/modules.
* variable.c (rb_const_defined_at, rb_const_defined): return false
for autoloading constants.
* class.c (rb_define_class, rb_define_module), eval.c (rb_eval),
variable.c (rb_mod_const_at, rb_const_assign): removed autoload
stuff.
* intern.h: prototypes; rb_autoload, rb_autoload_load,
rb_autoload_p.
* lib/optparse.rb (OptionParser::Switch::PlacedArgument::parse):
do not treat unmatched argument as an option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-29 00:11:11 +00:00
nobu
7712407048
* lib/mkmf.rb, lib/optparse.rb, lib/tracer.rb: use Method#to_block
...
instead of deprecated Method#to_proc. (ruby-bugs-ja:PR#477)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-26 13:17:07 +00:00
nobu
6e242d868e
* lib/optparse.rb (OptionParser::Switch::parse,
...
OptionParser::order): use {Block,Proc}#call instead of deprecated
#yield.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-26 12:21:24 +00:00
nobu
564c80b10a
* lib/optparse.rb: get rid of warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-21 04:27:06 +00:00
akr
0977fe1705
* instruby.rb, ext/extmk.rb, lib/benchmark.rb, lib/cgi.rb,
...
lib/debug.rb, lib/getoptlong.rb, lib/optparse.rb, lib/time.rb,
lib/date/format.rb, lib/irb/ruby-lex.rb lib/uri/common.rb: revert
escape for `-' in character class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-29 06:39:50 +00:00
nobu
8478ba513f
backout
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-26 06:23:17 +00:00
akr
e689d077e3
* lib/optparse.rb, lib/jcode.rb, ext/tk/lib/tk.rb: reorder character
...
class /[\]\[]/ to /[\[\]]/ to readability.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-22 04:31:24 +00:00
akr
58ef7c2088
* regex.c (re_compile_pattern): fix previous change.
...
* instruby.rb, ext/extmk.rb, ext/tk/lib/tk.rb, lib/benchmark.rb,
lib/cgi.rb, lib/debug.rb, lib/getoptlong.rb, lib/jcode.rb,
lib/optparse.rb, lib/time.rb, lib/date/format.rb,
lib/irb/ruby-lex.rb: escape `[', `]', `-' in chracter class in
regexp to avoid warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-21 15:13:23 +00:00
nobu
eac185d848
*** empty log message ***
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-20 09:33:40 +00:00
nobu
d666a5183c
* lib/optparse.rb (OptionParser#order!): follow recent change
...
of proc argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-20 09:31:41 +00:00
nobu
e13bfb1509
* lib/optparse.rb (OptionParser::make_switch): NoArgument doesn't
...
override other styles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-31 00:41:40 +00:00
nobu
1c37352f8a
* lib/optparse.rb (OptionParser::List::accept): default
...
pattern must not be nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-30 17:50:37 +00:00
nobu
4cad680bc2
* lib/optparse.rb (OptionParser::Switch::PlacedArgument): added.
...
if the next argument doesn't start with '-', use it as the
value.
* lib/optparse.rb (OptionParser::make_switch): fixed a bug of
pattern.
* lib/optparse.rb (Array): no need to guard.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-30 08:11:21 +00:00
nobu
b480079083
renamed OptionParser#new to #define.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-02 09:40:44 +00:00
nobu
96986a7a90
* lib/optparse.rb (OptionParser::new): same as OptionParser#on but
...
returns new OptionParser::switch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-01 14:10:51 +00:00
nobu
29cef5f795
use Object#class instead of deprecated Object#type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-02 16:45:35 +00:00
nobu
8f6b1e000a
* lib/optparse.rb (String): must provide conversion block.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-08 00:38:28 +00:00
nobu
8a7fbc6fec
* lib/optparse.rb (OptionParser::Switch::parse_arg): require block
...
always.
* lib/optparse.rb (NilClass): must provide conversion block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-07 23:48:47 +00:00
nobu
e20d6139f4
* optparse.rb (OptionParser::Completion::convert): returned all
...
values not first one.
* optparse.rb (OptionParser::Switch::parse): return values as is.
* optparse.rb (OptionParser::order): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-07 13:00:10 +00:00
nobu
6af4aebc95
* lib/resolv.rb (Resolv::DNS::open, close): new.
...
* lib/optparse.rb, lib/optparse: import.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-12 16:34:02 +00:00