504件ヒット
[1-100件を表示]
(0.028秒)
キーワード
- cgi (12)
- getoptlong (12)
- irb (12)
-
irb
/ version (12) -
net
/ imap (12) -
net
/ pop (12) - open-uri (12)
- optparse (12)
- rake (12)
-
rake
/ gempackagetask (12) -
rake
/ packagetask (12) - rdoc (12)
-
rexml
/ document (12) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) - rss (12)
- rubygems (12)
-
rubygems
/ commands / check _ command (12) -
rubygems
/ commands / contents _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / environment _ command (12) -
rubygems
/ commands / fetch _ command (12) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / list _ command (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / pristine _ command (12) -
rubygems
/ commands / query _ command (12) -
rubygems
/ commands / rdoc _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ commands / uninstall _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ server (12) -
rubygems
/ specification (12) -
rubygems
/ version (12) -
rubygems
/ version _ option (12) - uri (12)
-
webrick
/ httpversion (12) - yaml (12)
検索結果
-
rubygems
/ version _ option (6017.0) -
Gem::Command の --version, --platform オプションのためのモジュールを 定義したライブラリです。
...Gem::Command の --version, --platform オプションのためのモジュールを
定義したライブラリです。... -
irb
/ version (6001.0) -
irb ライブラリのバージョンを定義したサブライブラリです。
irb ライブラリのバージョンを定義したサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。 -
rubygems
/ version (6001.0) -
Gem パッケージのバージョンを扱うためのライブラリです。
Gem パッケージのバージョンを扱うためのライブラリです。 -
webrick
/ httpversion (6001.0) -
-
optparse (55.0)
-
コマンドラインのオプションを取り扱うためのライブラリです。
...プ
デフォルトで --help と --version オプションを認識します。
ruby ./sample.rb --help
# => Usage: sample [options]
ruby ./sample.rb --version
# => *出力なし*
--version は、トップレベルに Version 定数が定義されていると出......す。
(優先度は低いが VERSION 定数も参照します。Ruby のバージョンを示す VERSION
定数が ruby 1.8 までは定義されているので注意)
//emlist[][ruby]{
require 'optparse'
opt = OptionParser.new
Version = "1.2.3" # opt.version = "1.2.3"
opt.parse!(ARGV)
//}......↓
ruby ./sample.rb --version
# => sample 1.2.3
OptionParser#on の引数にそのオプションの説明を加えると --help の
出力に反映されます。
//emlist[][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on('-a', 'description of -a') {|v| p v }
opt.on('-b'... -
rubygems (55.0)
-
RubyGems を扱うためのクラスやモジュールが定義されているライブラリです。
...報へのポインタを含んでいる基本的なヘルプメッセージです。
使用方法:
gem -h/--help
gem -v/--version
gem command [arguments...] [options...]
例:
gem install rake
gem list --local
gem build package.gemspec......ッケージをインストールするには以下のようにします。
$ gem install rak --version 0.8.1 # バージョン 0.8.1 をインストールする
$ gem install rak --version '>= 0.5' # バージョン 0.5 以上のものをインストールする
Proxy サーバ経由で Ge......rak
特定のバージョンの Gem パッケージをアンインストールするには以下のようにします。
$ gem uninstall rak --version 0.8.1
==== Gem パッケージを更新する
インストールされている Gem パッケージを更新するには以下のようにし... -
rubygems
/ commands / generate _ index _ command (43.0) -
ある Gem サーバに対するインデックスを作成するためのライブラリです。
...<version>/<gemname>.gemspec.rz # Marshal quick index file
Marshal.<version>
Marshal.<version>.Z # Marshal full index
yaml
yaml.Z # legacy YAML full index
The .Z and .rz extension files are compressed with the inflate algorithm.
The
Marshal version......number comes from ruby's Marshal::MAJOR_VERSION and
Marshal::MINOR_VERSION constants. It is used to ensure compatibility. The
yaml indexes exist for legacy RubyGems clients and fallback in case of
Marshal
version changes.
Defaults:
--directory .... -
yaml (43.0)
-
構造化されたデータを表現するフォーマットであるYAML (YAML Ain't Markup Language) を扱うためのライブラリです。
...0
target: YAML
version: 4
log: |
例を加えた。
アブストラクトを修正した。
---
time: 2008-02-24 17:00:35 +09:00
target: YAML
version: 3
log: |
アブストラクトを書いた。
YAML_EOT
YAML.load_stream(strio_r).sort_by{ |a| a["version"] }.each do |o......bj|
puts "version %d\ntime %s\ntarget:%s\n%s\n" % obj.values_at("version", "time", "target", "log")
end
# =>
# version 3
# time 2008-02-24 17:00:35 +0900
# target:YAML
# アブストラクトを書いた。
#
# version 4
# time 2008-02-25 17:03:12 +0900
# target:YAML
# 例を加えた。... -
getoptlong (37.0)
-
getoptlong は、GNU の getopt_long() とまったく同じ方式でコマンド 行オプションの解析を行う Ruby のライブラリです。
...。長
いオプションは `-' の代わりに `--' で始まります (例: `--version')。
* 長いオプションは、一意に定まる限り後方を省略することができます
(例: `--version' は、`--ver' と略すことができます。ただし、他のオプ
ション......ize
-q --quiet --silence Suppress all warnings
--help Output this help, then exit
--version Output version number, then exit
まず、`getoptlong.rb' を Ruby で書かれたあなたのプログラムに取り込みま
す。
req......NT],
['--quiet', '--silence', '-q', GetoptLong::NO_ARGUMENT],
['--help', GetoptLong::NO_ARGUMENT],
['--version', GetoptLong::NO_ARGUMENT])
getopts モジュールが行っているように、与えられたオプションを
`$OPT_...'...