nobu
75c1cac7f3
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 21:51:01 +00:00
nobu
3657e15519
* lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 03:30:59 +00:00
nobu
c737e6d90d
* lib/optparse.rb (Switch#summarize): strips an equal sign from
...
short option, and fills right sides in shorter lines.
[ruby-talk:326414]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-01 07:14:38 +00:00
nobu
112aac90f7
* lib/optparse.rb (OptionParser::List#summarize): gives priority
...
to latter switches. [ruby-dev:36692]
* lib/optparse.rb (OptionParser#summarize): do not append
unnecessary line terminator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-26 06:50:55 +00:00
nobu
3e23c0c8c1
* lib/optparse.rb (SPLAT_PROC): fix for regexp. [ruby-dev:37514]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-21 03:23:19 +00:00
nobu
6270997509
* lib/optparse.rb (OptionParser::make_switch): makes default
...
conversion to splat. [ruby-list:45645]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-18 00:42:18 +00:00
nobu
29be7a1536
* lib/optparse.rb (ParseError.filter_backtrace): removes internal
...
backtrace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-09 15:21:42 +00:00
nobu
9de8ab8b98
* lib/optparse.rb (OptionParser::ParseError#set_backtrace): omits
...
OptionParser internal backtraces unless debug flag is set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 11:38:24 +00:00
nobu
40bbf21432
* lib/optparse.rb (OptionParser#environment): requires shellwords.
...
[ruby-dev:35466]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-13 21:02:28 +00:00
matz
6a7b828892
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
...
<evanfarrar at gmail.com> in [ruby-doc:1382] applied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 09:39:55 +00:00
nobu
e55f7cf6c3
* lib/optparse.rb (OptionParser::Switch::summarize): fix for long form
...
option with very long argument. a patch from Kobayashi Noritada
<nori1 AT dolphin.c.u-tokyo.ac.jp> in [ruby-list:44179].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 20:17:06 +00:00
nobu
4fbc945d5a
* lib/optparse.rb (OptionParser::List::summarize): use each_line if
...
defined rather than each. [ruby-Patches-14096]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-21 21:02:13 +00:00
nobu
2a50650ceb
* lib/optparse.rb: fix to override conv proc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20 03:26:19 +00:00
nobu
5c1b68e95a
* lib/optparse.rb (make_switch): do not clobber converter if pattern
...
has no convert method. reported by sheepman in [ruby-dev:30709].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 08:07:20 +00:00
tadf
4e4f355b87
just a minor change
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-19 15:35:01 +00:00
nobu
bcae240ca5
* lib/optparse.rb (OptionParser#make_switch): pass arguments directly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-01 14:13:16 +00:00
nobu
1dd0654b6a
* 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/branches/ruby_1_8@11049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-29 00:57:47 +00:00
nobu
0d94606158
* lib/optparse.rb (parse_in_order): splat arguments to callback block.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-29 00:30:49 +00:00
nobu
33ae7493f9
* lib/optparse.rb (OptionParser#parse_in_order): wrong splat for
...
callbacks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 15:49:44 +00:00
nobu
83cba51beb
* lib/optparse.rb (OptionParser#getopts): use strings as key.
...
fixed: [ruby-dev:29614]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 14:57:48 +00:00
nobu
d79408b703
* lib/optparse.rb (OptionParser#getopts): works with pre-registered
...
options. [ruby-core:08826]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-12 16:14:50 +00:00
drbrain
91edcb053b
Merge RDoc changes from HEAD.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-04 22:00:31 +00:00
drbrain
d5fbc2ab1d
RDoc patch by Robin Stocker <robin@nibor.org>
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-28 22:48:58 +00:00
nobu
3a1f31129e
* lib/optparse.rb (OptionParser::Arguable#getopts): pass self to the
...
parser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-11 14:21:08 +00:00
nobu
6bcd94726d
* lib/optparse.rb (OptionParser#getopts): new methods.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-10 23:31:32 +00:00
nobu
d1f1aa820f
* lib/optparse.rb: match incomplete (in current enconding) multibyte
...
string. http://inamode6.tokuhirom.dnsalias.org/show/1551
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 14:53:16 +00:00
nobu
54ca4e2269
*** empty log message ***
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-26 12:44:47 +00:00
nobu
2a92b1e588
* lib/optparse.rb (RequiredArgument#parse): not consume unmatched
...
argument. fixed [ruby-dev:27316]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-25 22:56:15 +00:00
nobu
3f0e6bb6d2
* lib/optparse.rb (default_argv, Arguable#options): defaults strings
...
to be parsed to Arguable instance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 22:45:06 +00:00
nobu
80f73a071b
* lib/optparse.rb (OptionParser::Completion#complete): new parameter
...
to direct case insensitiveness.
* lib/optparse.rb (OptionParser#order!): ignore case only for long
option. [ruby-dev:25048]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-05 10:39:58 +00:00
nobu
4f302c1558
* lib/optparse.rb (OptionParser::Officious): moved from DefaultList.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-09 05:27:58 +00:00
nobu
b2afa63f41
* lib/optparse.rb (OptionParser#warn, OptionParser#abort): Exception
...
no longer has to_str method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-15 14:54:01 +00:00
gsinclair
c5d3b2b1f7
Backported revisions 1.40 -> 1.41 to ruby_1_8 branch (documentation)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-11 12:52:59 +00:00
gsinclair
fd4a3ee4ac
* lib/optparse.rb: incomplete RDoc documentation added in place of
...
existing RD comments. Tabs converted to spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 13:27:42 +00:00
nobu
07507fe37a
* lib/optparse.rb (OptionParser::Completion::complete): wrong
...
Regexp for word boundary. pointed out by Gavin Sinclair.
* lib/optparse.rb (OptionParser::make_switch): [no-] prefix was
missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-20 07:07:19 +00:00
nobu
bc94ec8f4c
* lib/optparse.rb (OptionParser::Completion::complete): allow least
...
common completion for three or more candidates.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-17 01:50:31 +00:00
nobu
87bb4b5468
* lib/optparse.rb (OptionParser::Completion#complete): prior shorter
...
name to containing longer name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-13 02:31:17 +00:00
nobu
2a40bbeea0
* lib/optparse.rb (OptionParser::Completion#complete): default not to
...
ignore case on completion. [ruby-talk:84726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-06 02:01:23 +00:00
nobu
4dada1c8a2
* lib/optparse.rb (OptionParser::Switch::PlacedArgument::parse):
...
do not remove next argument if empty value is placed.
* test/optparse: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-05 10:09:58 +00:00
matz
525336fcc9
* eval.c (proc_invoke): single array value to normal Proc#call
...
(i.e. not via lambda call), should be treated just like yield.
[ruby-dev:21726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29 17:47:24 +00:00
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