348件ヒット
[1-100件を表示]
(0.102秒)
キーワード
-
drb
/ extservm (12) - getoptlong (12)
-
irb
/ extend-command (12) -
net
/ ftp (12) -
optparse
/ date (12) -
optparse
/ shellwords (12) -
optparse
/ time (12) -
optparse
/ uri (12) - rdoc (12)
-
rubygems
/ commands / cert _ command (12) -
rubygems
/ commands / check _ command (12) -
rubygems
/ commands / contents _ 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 / outdated _ command (12) -
rubygems
/ commands / pristine _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ commands / stale _ command (12) -
rubygems
/ commands / uninstall _ command (12) -
rubygems
/ commands / update _ command (12) -
rubygems
/ version _ option (12) -
shell
/ builtin-command (6) -
shell
/ system-command (6) - tsort (12)
-
win32
/ registry (12)
検索結果
先頭5件
-
tsort (26151.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
...tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
=== Example
//emlist[][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
{1=>[2, 3],......=>[]}.tsort
#=> [3, 2, 1, 4]
{1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}
=== より現実的な例
非常に単純な `make' に似たツールは以下のように実装できます。
//emlist[][ruby]{
require 'tsort'
class Make
def initialize......default = []
end
def rule(outputs, inputs=[], &block)
triple = [outputs, inputs, block]
outputs.each {|f| @dep[f] = [triple]}
@dep[triple] = inputs
end
def build(target)
each_strongly_connected_component_from(target) {|ns|
if ns.length != 1
fs = ns.delete_if {... -
rubygems
/ commands / pristine _ command (18019.0) -
インストールされている Gem パッケージを初期状態にするためのライブラリです。
...インストールされている Gem パッケージを初期状態にするためのライブラリです。
Usage: gem pristine [args] [options]
Options:
--all インストールされている全ての Gem パッケージを......初期状態に戻します
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--c......cktrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMNAME gem to restore to pristine condition (unless --all)
Summary:
Restores installed gems to... -
rubygems
/ commands / generate _ index _ command (18013.0) -
ある Gem サーバに対するインデックスを作成するためのライブラリです。
...ンデックスを作成するためのライブラリです。
Usage: gem generate_index [options]
Options:
-d, --directory=DIRNAME repository base dir containing gems subdir
Common Options:
-h, --help このコマンドのヘルプを表示し......-[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します
--backtrace バックトレースを表示します......Generates the index files for a gem server directory
Description:
The generate_index command creates a set of indexes for serving gems
statically. The command expects a 'gems' directory under the path given to
the --directory option. When done, it will generate a set of fil... -
rubygems
/ commands / install _ command (18007.0) -
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
...カルリポジトリにインストールするためのライブラリです。
Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [options]
Options:
--platform PLATFORM 指定されたプラットフォームの Gem パッケージをインストール......-v, --version VERSION 指定されたバージョンの Gem パッケージをインストールします
Install/Update Options:
-i, --install-dir DIR Gem パッケージのインストー先を指定します
-n, --bindir DIR Gem パッ......-t, --[no-]test インストール時にユニットテストを実行します
-w, --[no-]wrappers Use bin wrappers for executables
DOSHISH なプラットフォーム上では無効です
-P, --trust-policy POL... -
rubygems
/ commands / cert _ command (18001.0) -
Gem パッケージの証明書や署名の設定を管理するためのライブラリです。
...です。
Usage: gem cert [options]
Options:
-a, --add CERT 信頼された証明書を追加します
-l, --list 信頼されている証明書の一覧を表示します
-r, --remove STRING STRING を含む証明書を......ます
-C, --certificate CERT --sign で使用する証明書を指定します
-K, --private-key KEY --sign で使用する秘密鍵を指定します
-s, --sign NEWCERT 証明書に秘密鍵で署名します
Common Options:
-h, --help......-[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します
--backtrace バックトレースを表示します... -
rubygems
/ commands / contents _ command (18001.0) -
インストールされている Gem パッケージに含まれているファイルリストを表示するためのライブラリです。
...いる Gem パッケージに含まれているファイルリストを表示するためのライブラリです。
Usage: gem contents GEMNAME [options]
Options:
-v, --version VERSION 指定されたバージョンの Gem パッケージの内容を表示します
-s,......ファイルのみを表示します
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--c......された設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMNAME Gem パッケージの名前を指定... -
rubygems
/ commands / environment _ command (18001.0) -
RubyGems の環境に関する情報を表示するためのライブラリです。
...ブラリです。
Usage: gem environment [arg] [options]
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します......された設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
packageversion gem のバージョンを表示し......gempath Gem パッケージを探索するディレクトリを表示します
version Gem パッケージのフォーマットのバージョンを表示します
remotesources Gem パッケージを検索するサーバを表示します
<omitted>... -
rubygems
/ commands / fetch _ command (18001.0) -
Gem パッケージをダウンロードしてカレントディレクトリに保存するためのライブラリです。
...fetch GEMNAME [GEMNAME ...] [options]
Options:
-v, --version VERSION 指定されたバージョンの Gem を取得します
--platform PLATFORM 指定されたプラットフォームの Gem を取得します
Local/Remote Options:
-B, --bulk-thre......shold COUNT Threshold for switching to bulk
synchronization (default 1000)
-p, --[no-]http-proxy [URL] リモートの操作に HTTP プロクシを使用します
--source URL Gem パッケージのリモートリポ......ジトリの URL を指定します
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file F... -
rubygems
/ commands / list _ command (18001.0) -
Gem パッケージの名前を前方一致で検索するためのライブラリです。
...ライブラリです。
Usage: gem list [STRING] [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION 指定されたバージョンの一覧を出力します
-d, --[no-]details Gem パッケージの詳....../Remote Options:
-l, --local 操作をローカルに限定します
-r, --remote 操作をリモートに限定します
-b, --both ローカルとリモートの両方の操作を許可します
-B, --bulk-thres......COUNT Threshold for switching to bulk
synchronization (default 1000)
--source URL Gem パッケージのリモートリポジトリの URL を指定します
--[no-]http-proxy [URL] リモートの操作に HTTP...