Граф коммитов

33 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 0f1ef19fcd
[ruby/optparse] Fix typo [ci skip]
https://github.com/ruby/optparse/commit/0aec9adfc5
2024-04-18 10:27:19 +09:00
Nobuyoshi Nakada 88a88b56c7
[ruby/optparse] [DOC] Package files for RDoc
https://github.com/ruby/optparse/commit/b49cb996af
2024-04-18 10:27:19 +09:00
Nobuyoshi Nakada c9006ddb88 [ruby/optparse] [DOC] Add description of OptionParser#define_by_keywords
https://github.com/ruby/optparse/commit/451dea51a0
2024-02-11 16:55:41 +00:00
Nobuyoshi Nakada bbccabe6d6 [ruby/optparse] [DOC] Add missing documents
https://github.com/ruby/optparse/commit/33956ce93f
2024-02-11 16:08:14 +00:00
Nobuyoshi Nakada 7d94df63c4
[ruby/optparse] Add rdoc options
Specify the main page and the page directory.  Also in Rakefile,
extract and use the same options from the gemspec file.

https://github.com/ruby/optparse/commit/d182cd60b5
2022-01-12 21:16:01 +09:00
David Rodríguez f0669fb6cb [ruby/optparse] Use `require_relative` for internal requires (https://github.com/ruby/optparse/pull/28)
https://github.com/ruby/optparse/commit/e4f2682128
2022-01-04 16:38:17 +09:00
Nobuyoshi Nakada f89486965b [ruby/optparse] Moved rdoc files to doc/optparse
https://github.com/ruby/optparse/commit/cccb28e0de
2021-04-11 09:03:36 +09:00
Olle Jonsson ec355813b0
[ruby/optparse] gemspec: Explicit files list [ci skip]
This avoid shelling out, and includes a narrower list of files.

https://github.com/ruby/optparse/commit/f3ca83caff

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-04-08 12:37:24 +09:00
BurdetteLamar a5ecce9187
[ruby/optparse] Make use of option_params.rdoc
https://github.com/ruby/optparse/commit/d55d9284c3
2021-04-08 12:11:42 +09:00
Olle Jonsson 2b66b22479 [ruby/optparse] gemspec: Explicitly list 0 executables
This gem exposes no executable files.

https://github.com/ruby/optparse/commit/d14bf83007
2021-04-08 12:09:30 +09:00
Nobuyoshi Nakada e97f21afcd [ruby/optparse] Exclude unnecessary files from the package
https://github.com/ruby/optparse/commit/dfd9380231
2021-03-29 18:24:56 +09:00
BurdetteLamar 7846f3201a
[ruby/optparse] Change *opts to *params, to avoid confusion
https://github.com/ruby/optparse/commit/f5f5e202dd
2021-03-29 15:55:41 +09:00
Hiroshi SHIBATA 0bb8bd7623
Added the missing licenses field to some default gems 2020-08-18 20:26:39 +09:00
Nobuyoshi Nakada b2d96abb42 Extract version number from the source
"requiring version.rb" strategy has some issues.

- cannot work when cross-compiling
- often introduces wrong namespace
- must know the superclasses
- costs at each runtime than at build-time

etc.
2020-07-30 19:03:18 +09:00
Nobuyoshi Nakada ba99eae2a5
[ruby/optparse] Fix ls-files matching regexp
As splitting by NUL means to allow the file names to contain
newlines, path names should match at beginning-of-string instead
of beginning-of-line.

https://github.com/ruby/optparse/commit/df3933aa2b
2020-07-24 11:00:34 +09:00
Nobuyoshi Nakada f120e65200 [ruby/optparse] Define OptionParser::Version
https://github.com/ruby/optparse/commit/4c0021b5b2
2020-07-23 10:57:33 +09:00
Nobuyoshi Nakada cd429e68d2 [ruby/optparse] Update required ruby version
Now needs `DidYouMean#formatter` which is provided since
did_you_mean 1.2, which requires ruby 2.5.

https://github.com/ruby/optparse/commit/d44bb5c715
2020-07-23 10:57:31 +09:00
Hiroshi SHIBATA 7befc0cdfc
Promote optparse to default gems 2020-07-22 18:38:51 +09:00
Nobuyoshi Nakada c9b28fd7ae
Allow --enable/--disable options to take an argument
[Bug #15850]
2019-05-15 17:31:11 +09:00
nobu 0687baaf57 optparse/kwargs.rb
* lib/optparse/kwargs.rb (OptionParser#define_by_keywords):
  [EXPERIMENTAL] extract command line option definitions from the
  information of keyword arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-14 13:26:13 +00:00
naruse 3e92b635fb Add frozen_string_literal: false for all files
When you change this to true, you may need to add more tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
hsbt 448c87008e * lib/cgi/core.rb: remove unused variables.
* lib/erb.rb: ditto.
* lib/mkmf.rb: ditto.
* lib/net/http/response.rb: ditto.
* lib/optparse/version.rb: ditto.
* lib/prime.rb: ditto.
* lib/racc/parser.rb: ditto.
* lib/rexml/document.rb: ditto.
* lib/rexml/dtd/dtd.rb: ditto.
* lib/rexml/element.rb: ditto.
* lib/rexml/functions.rb: ditto.
* lib/rexml/parsers/xpathparser.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-27 11:04:28 +00:00
nobu a59bfa76e5 * lib/optparse/ac.rb: autoconf-like options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-02 04:25:14 +00:00
matz 85bae86cb6 * lib/optparse/version.rb: remove variable shadowing to stop
warning.   [ruby-core:20612]

* lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb,
  lib/rinda/ring.rb, lib/racc/parser.rb,
  lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto.

* lib/racc/parser.rb: remove space before parentheses.

* lib/shell/command-processor.rb, lib/shell/process-controller.rb:
  use parentheses around arguments.

* lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb,
  lib/yaml/baseemitter.rb: indentation fix.

* lib/matrix.rb: small cosmetic change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-18 07:54:50 +00:00
nobu 4c718c753e * lib/optparse.rb (OptionParser::Officious): moved from DefaultList.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-09 05:27:58 +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 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 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
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 11cfb7e0f4 * lib/optparse/time.rb: prior time.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-07 13:13:44 +00:00
nobu 0a85c65859 * lib/optparse/uri.rb: require standard uri module. thanks to
Minero Aoki.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-07 00:47:41 +00:00
nobu d554a55d9b import
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-12 16:40:06 +00:00