ライブラリ
- e2mmap (13)
- logger (1)
-
rake
/ gempackagetask (1) - rubygems (7)
-
rubygems
/ command (8) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ config _ file (21) -
rubygems
/ dependency (1) -
rubygems
/ dependency _ installer (4) -
rubygems
/ dependency _ list (3) -
rubygems
/ doc _ manager (1) -
rubygems
/ ext / configure _ builder (1) -
rubygems
/ ext / ext _ conf _ builder (1) -
rubygems
/ ext / rake _ builder (1) -
rubygems
/ format (1) -
rubygems
/ gem _ path _ searcher (3) -
rubygems
/ indexer (2) -
rubygems
/ installer (4) -
rubygems
/ old _ format (1) -
rubygems
/ package (1) -
rubygems
/ package / tar _ header (1) -
rubygems
/ package / tar _ input (2) -
rubygems
/ package / tar _ output (1) -
rubygems
/ platform (1) -
rubygems
/ remote _ fetcher (3) -
rubygems
/ requirement (5) -
rubygems
/ security (8) -
rubygems
/ server (8) -
rubygems
/ source _ index (7) -
rubygems
/ source _ info _ cache (3) -
rubygems
/ spec _ fetcher (1) -
rubygems
/ specification (83) -
rubygems
/ uninstaller (1) -
rubygems
/ user _ interaction (20) -
rubygems
/ version (13)
クラス
-
Gem
:: Command (8) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: ConfigFile (21) -
Gem
:: Dependency (1) -
Gem
:: DependencyInstaller (4) -
Gem
:: DependencyList (3) -
Gem
:: DocManager (1) -
Gem
:: Ext :: ConfigureBuilder (1) -
Gem
:: Ext :: ExtConfBuilder (1) -
Gem
:: Ext :: RakeBuilder (1) -
Gem
:: FileOperations (1) -
Gem
:: Format (1) -
Gem
:: GemPathSearcher (3) -
Gem
:: Indexer (2) -
Gem
:: Installer (4) -
Gem
:: LoadError (1) -
Gem
:: OldFormat (1) -
Gem
:: Package :: TarHeader (1) -
Gem
:: Package :: TarInput (2) -
Gem
:: Package :: TarOutput (1) -
Gem
:: Platform (1) -
Gem
:: RemoteFetcher (3) -
Gem
:: Requirement (5) -
Gem
:: Security :: Policy (4) -
Gem
:: Server (8) -
Gem
:: SourceIndex (7) -
Gem
:: SourceInfoCache (3) -
Gem
:: SpecFetcher (1) -
Gem
:: Specification (83) -
Gem
:: StreamUI (7) -
Gem
:: StreamUI :: SilentProgressReporter (1) -
Gem
:: StreamUI :: SimpleProgressReporter (1) -
Gem
:: StreamUI :: VerboseProgressReporter (1) -
Gem
:: Uninstaller (1) -
Gem
:: Version (13) -
Rake
:: GemPackageTask (1)
モジュール
- Exception2MessageMapper (13)
- Gem (4)
-
Gem
:: DefaultUserInteraction (2) -
Gem
:: InstallUpdateOptions (1) -
Gem
:: LocalRemoteOptions (6) -
Gem
:: QuickLoader (1) -
Gem
:: Security (4) -
Gem
:: UserInteraction (8) - Kernel (1)
キーワード
- <=> (1)
- === (1)
- =~ (1)
- Application (1)
-
CURRENT
_ SPECIFICATION _ VERSION (1) - ConfigMap (1)
-
DEFAULT
_ BACKTRACE (1) -
DEFAULT
_ BENCHMARK (1) -
DEFAULT
_ BULK _ THRESHOLD (1) -
DEFAULT
_ OPTIONS (1) -
DEFAULT
_ UPDATE _ SOURCES (1) -
DEFAULT
_ VERBOSITY (1) - Fail (2)
- GemVersions (1)
-
MARSHAL
_ FIELDS (1) - Marshal (1)
-
NEWS for Ruby 2
. 0 . 0 (1) -
NONEXISTENT
_ SPECIFICATION _ VERSION (1) -
OPERATING
_ SYSTEM _ DEFAULTS (1) -
PLATFORM
_ DEFAULTS (1) - Raise (2)
- Requirement (1)
- RubyGemsPackageVersion (1)
- RubyGemsVersion (1)
-
SPECIFICATION
_ VERSION _ HISTORY (1) -
SYSTEM
_ WIDE _ CONFIG _ FILE (1) - TODAY (1)
- [] (1)
-
_ dump (1) -
_ load (1) - abbreviate (1)
-
add
_ bindir (1) -
add
_ bulk _ threshold _ option (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ gem _ contents (1) -
add
_ proxy _ option (1) -
add
_ runtime _ dependency (1) -
add
_ spec (1) -
add
_ trusted _ cert (1) -
add
_ update _ sources _ option (1) - alert (2)
-
alert
_ error (2) -
alert
_ warning (2) - args (1)
-
array
_ attribute (1) -
array
_ attributes (1) - ask (2)
-
ask
_ yes _ no (2) -
assign
_ defaults (1) - attribute (1)
-
attribute
_ alias _ singular (1) -
attribute
_ defaults (1) -
attribute
_ names (1) - attributes (1)
- autorequire (1)
- backtrace (1)
- begins? (1)
- benchmark (1)
- bind (1)
- bindir (1)
- both? (1)
- build (3)
-
build
_ cert (1) -
build
_ self _ signed _ cert (1) -
bulk
_ threshold (1) - bump (1)
-
cert
_ chain (1) -
choose
_ from _ list (2) - concat (1)
-
config
_ file _ name (1) -
configured
_ args (1) -
connection
_ for (1) - correct? (1)
- create (1)
- date (1)
-
def
_ exception (2) -
default
_ executable (1) -
default
_ value (1) - dependencies (1)
-
dependency
_ order (1) -
dependent
_ gems (1) - description (2)
-
development
_ dependencies (1) - done (3)
- each (1)
- email (1)
- eql? (1)
- executable (1)
- executables (1)
-
extend
_ object (1) - extensions (1)
-
extra
_ rdoc _ files (1) - fail (1)
-
file
_ name (1) - files (1)
- find (1)
-
find
_ all (1) -
find
_ name (2) -
find
_ spec _ by _ name _ and _ version (1) -
from
_ yaml (1) -
full
_ gem _ path (1) -
full
_ name (1) -
gem
_ spec (1) -
get
_ one _ gem _ name (1) -
get
_ one _ optional _ argument (1) -
get
_ path (1) -
has
_ rdoc (1) -
has
_ rdoc? (1) -
has
_ test _ suite? (1) -
has
_ unit _ tests? (1) - hash (1)
- homepage (1)
-
init
_ gemspecs (1) - install (2)
-
install
_ update _ defaults _ str (1) -
installation
_ path (1) -
installation
_ satisfies _ dependency? (1) -
latest
_ specs (1) -
lib
_ files (1) - list (1)
- load (1)
-
load
_ file (1) -
load
_ gemspec (1) -
load
_ specification (1) - loaded? (1)
-
loaded
_ from (1) - local? (1)
-
mark
_ version (1) -
marshal
_ dump (1) -
marshal
_ load (1) -
marshal
_ version (1) - name (1)
- new (7)
- none? (1)
- normalize (1)
-
normalize
_ yaml _ input (1) -
only
_ signed (1) -
only
_ trusted (1) -
original
_ name (1) -
original
_ platform (1) -
overwrite
_ accessor (1) - path (1)
- platform (1)
- prerelease? (1)
- quick (1)
- rdoc (1)
-
read
_ only (1) -
really
_ verbose (1) - release (1)
- remote? (1)
-
remove
_ by _ name (1) -
remove
_ spec (1) - request (1)
-
require
_ path (1) -
require
_ paths (1) -
required
_ attribute (1) -
required
_ attribute? (1) -
required
_ attributes (1) -
required
_ ruby _ version (1) -
required
_ rubygems _ version (1) - requirements (1)
- reset (1)
- root (1)
-
rubygems
/ commands / contents _ command (1) -
rubygems
/ commands / environment _ command (1) -
rubygems
/ commands / server _ command (1) -
rubygems
/ commands / specification _ command (1) -
rubygems
_ version (1) - run (1)
-
runtime
_ dependencies (1) - sanitize (1)
-
satisfied
_ by? (1) -
satisfies
_ requirement? (1) - say (1)
- search (3)
-
search
_ with _ source (1) -
show
_ lookup _ failure (1) -
sign
_ cert (1) -
signing
_ key (1) - spec (4)
- specification (1)
-
specification
_ version (1) - specs (1)
- summary (1)
-
terminate
_ interaction (2) -
test
/ unit (1) -
test
_ file (1) -
test
_ files (1) -
test
_ suite _ file (1) -
to
_ ruby (1) -
to
_ s (1) -
trusted
_ cert _ path (1) - ui (2)
-
update
_ sources (1) - validate (1)
- verbose (1)
- version (4)
-
version
_ requirement (1) -
version
_ requirements (1) -
warn
_ legacy (1) - yaml (1)
検索結果
先頭5件
-
Gem
:: Specification :: NONEXISTENT _ SPECIFICATION _ VERSION -> -1 (73204.0) -
明確に指定されていない時の gemspec のバージョンを表します。
明確に指定されていない時の gemspec のバージョンを表します。 -
Gem
:: RubyGemsPackageVersion -> String (63901.0) -
このライブラリのバージョンを表す文字列。
このライブラリのバージョンを表す文字列。 -
Gem
:: RubyGemsVersion -> String (63901.0) -
このライブラリのバージョンを表す文字列。
このライブラリのバージョンを表す文字列。 -
Kernel
# gem(gem _ name , *version _ requirements) -> bool (55795.0) -
$LOAD_PATH に Ruby Gem を追加します。
$LOAD_PATH に Ruby Gem を追加します。
指定された Gem をロードする前にその Gem が必要とする Gem をロードします。
バージョン情報を省略した場合は、最も高いバージョンの Gem をロードします。
指定された Gem やその Gem が必要とする Gem が見つからなかった場合は
Gem::LoadError が発生します。
バージョンの指定方法に関しては Gem::Version を参照してください。
rubygems ライブラリがライブラリバージョンの衝突を検出しない限り、
gem メソッドは全ての require メソッドよりも前に実行されます。
... -
Gem
:: Specification # required _ rubygems _ version -> Gem :: Requirement (55252.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。 -
Gem
:: Specification # rubygems _ version -> String (54949.0) -
この Gem パッケージを作成した RubyGems のバージョンを返します。
この Gem パッケージを作成した RubyGems のバージョンを返します。 -
Gem
:: Specification # specification _ version -> Integer (54949.0) -
この Gem パッケージに用いられている gemspec のバージョンを返します。
この Gem パッケージに用いられている gemspec のバージョンを返します。 -
Gem
:: Specification :: CURRENT _ SPECIFICATION _ VERSION -> 2 (54901.0) -
現在の gemspec のバージョンを表す定数です。
現在の gemspec のバージョンを表す定数です。 -
Gem
:: Specification :: SPECIFICATION _ VERSION _ HISTORY -> Hash (54901.0) -
gemspec ファイルのバージョンの歴史を表す定数です。
gemspec ファイルのバージョンの歴史を表す定数です。 -
Gem
:: Package :: TarOutput # add _ gem _ contents {|data _ tar _ writer| . . . } -> self (46036.0) -
gem-format な tar ファイル内の data.tar.gz にファイルを追加するためのメ ソッドです。
gem-format な tar ファイル内の data.tar.gz にファイルを追加するためのメ
ソッドです。
ブロックには data.tar.gz に紐付いた Gem::Package::TarWriter のイ
ンスタンスが渡されます。このブロックパラメータには
Gem::Specification を追加するための metadata, metadata= という特
異メソッドが追加されています。 -
Gem
:: Command # get _ one _ gem _ name -> String (45988.0) -
コマンドラインで与えられた Gem の名前を一つ取得して返します。
コマンドラインで与えられた Gem の名前を一つ取得して返します。
@raise Gem::CommandLineError コマンドライン引数から Gem の名前を一つだけ取得できない場合に発生します。 -
Gem
:: Command # get _ one _ optional _ argument -> String (45901.0) -
コマンドラインからオプショナルな引数を取得して返します。
コマンドラインからオプショナルな引数を取得して返します。
@return 一つ以上、指定した場合は最初の値を返します。一つも指定していない場合は nil を返します。 -
Gem
:: Command . common _ options -> Array (45901.0) -
共通の引数を返します。
共通の引数を返します。 -
Gem
:: QuickLoader :: GemVersions -> Hash (45901.0) -
prelude.c で定義されている内部用の定数です。
prelude.c で定義されている内部用の定数です。 -
Gem
:: RemoteFetcher # connection _ for(uri) -> Net :: HTTP (45901.0) -
HTTP コネクションを生成して返します。
HTTP コネクションを生成して返します。
既に接続している URI であれば、生成済みのコネクションを返します。
また、必要があればプロキシを使用します。
@param uri 接続先の URI を指定します。 -
Gem
. # marshal _ version -> String (45601.0) -
Marshal のバージョンを表す文字列を返します。
Marshal のバージョンを表す文字列を返します。 -
Gem
:: ConfigMap -> Hash (45601.0) -
RbConfig::CONFIG の中からこのライブラリで使用するものを抽出して定義したハッシュ。
RbConfig::CONFIG の中からこのライブラリで使用するものを抽出して定義したハッシュ。 -
Gem
:: GemPathSearcher # init _ gemspecs -> [Gem :: Specification] (37300.0) -
インストール済みの Gem の Gem::Specification のリストを返します。
インストール済みの Gem の Gem::Specification のリストを返します。
リストはアルファベット順かつバージョンの新しい順にソートされています。 -
Gem
:: Specification # version -> Gem :: Version (37252.0) -
この Gem パッケージのバージョンを返します。
この Gem パッケージのバージョンを返します。 -
Gem
:: Specification # required _ ruby _ version -> Gem :: Requirement (36952.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。 -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (36901.0) -
exception_name という名前の例外クラスを定義します。
exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定します。
省略すると StandardError を使用します。 -
Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class (36901.0) -
exception_name という名前の例外クラスを定義します。
exception_name という名前の例外クラスを定義します。
@param klass 一階層上となるクラス名を指定します。
@param exception_name 例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます。
@param superklass 定義する例外クラスのスーパークラスを指定します。
省略すると StandardError を使用... -
Gem
:: Specification # dependent _ gems -> Array (36751.0) -
この Gem に依存している全ての Gem の情報のリストを返します。
この Gem に依存している全ての Gem の情報のリストを返します。
それぞれのエントリは配列になっており、各要素は以下のようになっています。
(0) Gem::Specification
(1) Gem::Dependency
(2) Gem::Specification の配列 -
Gem
:: Specification # full _ gem _ path -> String (36652.0) -
この Gem パッケージへのフルパスを返します。
この Gem パッケージへのフルパスを返します。 -
Gem
:: Specification # description -> String (36649.0) -
Gem パッケージの説明を返します。
Gem パッケージの説明を返します。 -
Gem
:: Specification # installation _ path -> String (36649.0) -
この Gem パッケージのインストール先のパスを返します。
この Gem パッケージのインストール先のパスを返します。 -
Gem
:: ConfigFile # config _ file _ name -> String (36601.0) -
設定ファイルの名前を返します。
設定ファイルの名前を返します。 -
Gem
:: ConfigFile :: SYSTEM _ WIDE _ CONFIG _ FILE -> String (36601.0) -
システム全体の設定ファイルのパスです。
システム全体の設定ファイルのパスです。 -
Gem
:: Specification # extensions -> [String] (36601.0) -
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを返します。
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを返します。 -
Gem
:: Specification # mark _ version -> String (36601.0) -
RubyGems のバージョンを内部にセットします。
RubyGems のバージョンを内部にセットします。 -
Gem
:: Specification # rdoc _ options -> [String] (36601.0) -
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。 -
Gem
:: Specification . read _ only(*names) -> () (36601.0) -
与えられた属性名を読み取り専用にします。
与えられた属性名を読み取り専用にします。
@param names 属性名を一つ以上指定します。 -
Gem
:: UserInteraction # terminate _ interaction(*args) -> () (36601.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param args 委譲先のメソッドに与える引数です。 -
rubygems
/ commands / specification _ command (36409.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
Usage: gem specification [GEMFILE] [options]
Options:
-v, --version VERSION Specify version of gem to examine
--platform PLATFORM Specify the platform of gem to specification
--all ... -
rubygems
/ commands / contents _ command (36355.0) -
インストールされている Gem パッケージに含まれているファイルリストを表示するためのライブラリです。
インストールされている Gem パッケージに含まれているファイルリストを表示するためのライブラリです。
Usage: gem contents GEMNAME [options]
Options:
-v, --version VERSION 指定されたバージョンの Gem パッケージの内容を表示します
-s, --spec-dir a,b,c 指定されたパス以下にある Gem パッケージを検索します
-l, --[no-]lib-only Gem パッケージの lib ディ... -
Gem
:: LocalRemoteOptions # add _ bulk _ threshold _ option (36349.0) -
オプション --bulk-threshold を追加します。
オプション --bulk-threshold を追加します。 -
Gem
:: LocalRemoteOptions # add _ proxy _ option (36349.0) -
オプション --http-proxy を追加します。
オプション --http-proxy を追加します。 -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (36349.0) -
オプション --update-source を追加します。
オプション --update-source を追加します。 -
rubygems
/ commands / environment _ command (36181.0) -
RubyGems の環境に関する情報を表示するためのライブラリです。
RubyGems の環境に関する情報を表示するためのライブラリです。
Usage: gem environment [arg] [options]
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイル... -
Gem
:: DependencyInstaller # find _ spec _ by _ name _ and _ version(gem _ name , version = Gem :: Requirement . default) -> Array (28657.0) -
与えられた Gem の名前とバージョンに関する条件にマッチする Gem::Specification と それの存在する URI を含む配列を返します。
与えられた Gem の名前とバージョンに関する条件にマッチする Gem::Specification と
それの存在する URI を含む配列を返します。
@param gem_name Gem の名前を指定します。
@param version Gem が満たすバージョンに関する条件を指定します。 -
Gem
:: SourceIndex # specification(full _ name) -> Gem :: Specification | nil (28270.0) -
指定された名前の Gem::Specification オブジェクトを返します。
指定された名前の Gem::Specification オブジェクトを返します。
@param full_name Gem のフルネームを指定します。 -
Gem
:: SourceIndex . load _ specification(file _ name) -> Gem :: Specification | nil (28252.0) -
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして
Gem::Specification のインスタンスを返します。
@param file_name ファイル名を指定します。
@raise SignalException gemspec をロードしているときに発生します。
@raise SystemExit gemspec をロードしているときに発生します。 -
Gem
:: Package :: TarInput # load _ gemspec(io) -> Gem :: Specification | nil (28222.0) -
YAML 形式の gemspec を io から読み込みます。
YAML 形式の gemspec を io から読み込みます。
@param io 文字列か IO オブジェクトを指定します。
@see Gem::Specification.from_yaml -
Rake
:: GemPackageTask # gem _ spec -> Gem :: Specification (28207.0) -
package ターゲットで使用する gemspec を返します。
package ターゲットで使用する gemspec を返します。
gemspec にはパッケージ名、バージョン、パッケージに含まれるファイルなどが定義
されているので、それらを明示的に指定する必要はありません。 -
Gem
:: Dependency # version _ requirements -> Gem :: Requirement (27904.0) -
依存しているバージョンを返します。
依存しているバージョンを返します。 -
Gem
:: Command # merge _ options(new _ options) -> Hash (27901.0) -
与えられたオプションとデフォルトのオプションをマージします。 しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
与えられたオプションとデフォルトのオプションをマージします。
しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
@param new_options 新しいコマンドオプションをハッシュで指定します。 -
Gem
:: LoadError # version _ requirement -> Get :: Requirement (27685.0) -
ロードに失敗した Gem の必要条件を返します。
ロードに失敗した Gem の必要条件を返します。
@see Gem::Requirement, Gem::Dependency#version_requirements -
Gem
:: Security :: Policy # only _ signed -> bool (27649.0) -
この値が真である場合は、署名付きの Gem のみインストールします。
この値が真である場合は、署名付きの Gem のみインストールします。 -
Gem
:: Security :: Policy # only _ trusted -> bool (27649.0) -
この値が真である場合は、検証済みの Gem のみインストールします。
この値が真である場合は、検証済みの Gem のみインストールします。 -
Gem
:: Installer # installation _ satisfies _ dependency?(dependency) -> bool (27619.0) -
登録されているソースインデックスが与えられた依存関係を 満たすことができる場合は、真を返します。そうでない場合は偽を返します。
登録されているソースインデックスが与えられた依存関係を
満たすことができる場合は、真を返します。そうでない場合は偽を返します。
@param dependency Gem::Dependency のインスタンスを指定します。 -
Gem
:: Requirement # concat(requirements) -> Array (27619.0) -
新しい条件(配列)を自身の条件に破壊的に加えます。
新しい条件(配列)を自身の条件に破壊的に加えます。
@param requirements 条件の配列を指定します。
//emlist[][ruby]{
req = Gem::Requirement.new("< 5.0")
req.concat(["= 1.9"])
puts req # => < 5.0, = 1.9
//} -
Gem
:: Requirement # none? -> bool (27619.0) -
自身が条件を持たない場合は、true を返します。
自身が条件を持たない場合は、true を返します。
//emlist[][ruby]{
req = Gem::Requirement.new(">= 0")
p req.none? # => true
//} -
Gem
:: StreamUI # terminate _ interaction(status = 0) -> () (27619.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param status 終了ステータスを指定します。デフォルトは 0 (成功) です。
@raise Gem::SystemExitException このメソッドを呼び出すと必ず発生する例外です。 -
Gem
:: Version # version -> String (27619.0) -
バージョン情報を文字列として返します。
バージョン情報を文字列として返します。
//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//} -
Gem
:: Command # description -> String (27601.0) -
このメソッドはサブクラスで再定義されます。 コマンドが実行することを説明する文字列を返します。
このメソッドはサブクラスで再定義されます。
コマンドが実行することを説明する文字列を返します。 -
Gem
:: Command # options -> Hash (27601.0) -
コマンドで使用するオプションを返します。
コマンドで使用するオプションを返します。 -
Gem
:: DependencyInstaller :: DEFAULT _ OPTIONS -> Hash (27601.0) -
自身を初期化する際に使用するデフォルトのオプションです。
自身を初期化する際に使用するデフォルトのオプションです。
:env_shebang => false,
:domain => :both, # HACK dup
:force => false,
:format_executable => false, # HACK dup
:ignore_dependencies => false,
:security_policy => nil, # HACK NoSecurity requires OpenSSL. Al... -
Gem
:: DocManager . configured _ args -> Array (27601.0) -
RDoc に渡す引数を返します。
RDoc に渡す引数を返します。 -
Gem
:: Package :: TarHeader # version -> Integer (27601.0) -
tar のヘッダに含まれる version を返します。
tar のヘッダに含まれる version を返します。 -
Gem
:: Platform # version -> String (27601.0) -
プラットフォームのバージョンを返します。
プラットフォームのバージョンを返します。 -
Gem
:: StreamUI :: SilentProgressReporter # done -> nil (27601.0) -
何もしません。
何もしません。 -
Gem
:: StreamUI :: SimpleProgressReporter # done -> nil (27601.0) -
終了メッセージを表示します。
終了メッセージを表示します。 -
Gem
:: StreamUI :: VerboseProgressReporter # done -> nil (27601.0) -
終了メッセージを表示します。
終了メッセージを表示します。 -
Gem
:: Version . new(version) -> Gem :: Version (19342.0) -
バージョンを表す文字列から、Gem::Version インスタンスを作成します。
バージョンを表す文字列から、Gem::Version インスタンスを作成します。
引数のバージョンを表す文字列とは、 数字かASCII文字の連続であり、ドットで区切られたものです。
//emlist[][ruby]{
p Gem::Version.new('1.2.0a') # => #<Gem::Version "1.2.0a">
# Ruby 2.4.1より、空白文字以外の文字がない場合、バージョンは "0" になります。
p Gem::Version.new(' ') #=> #<Gem::Version "0">
//}
@param version
@raise Argum... -
Gem
:: Specification # add _ development _ dependency(gem , *requirements) -> [Gem :: Dependency] (19159.0) -
この gem の DEVELOPMENT 依存性を追加します。 この gem の開発時に必要となる gem を指定します。
この gem の DEVELOPMENT 依存性を追加します。
この gem の開発時に必要となる gem を指定します。
//emlist[][ruby]{
gem "rack", "~> 1.6", ">= 1.6.12"
//}
@param gem 依存する gem の名前か Gem::Dependency のインスタンスを指定します。
@param requirements バージョンの必要条件を 0 個以上指定します。デフォルトは ">= 0" です。
@see Gem::Specification#add_runtime_dependency, Gem::Depende... -
Gem
:: Specification # add _ dependency(gem , *requirements) -> [Gem :: Dependency] (19117.0) -
この gem の RUNTIME 依存性を追加します。 実行時に必要となる gem を指定します。
この gem の RUNTIME 依存性を追加します。
実行時に必要となる gem を指定します。
//emlist[][ruby]{
# https://github.com/rurema/bitclust/blob/v1.2.3/bitclust-core.gemspec#L25
s.add_runtime_dependency "progressbar", ">= 1.9.0", "< 2.0"
//}
@param gem 依存する gem の名前か Gem::Dependency のインスタンスを指定します。
@param requirements バージョンの必要条件を 0... -
Gem
:: Specification # add _ runtime _ dependency(gem , *requirements) -> [Gem :: Dependency] (19117.0) -
この gem の RUNTIME 依存性を追加します。 実行時に必要となる gem を指定します。
この gem の RUNTIME 依存性を追加します。
実行時に必要となる gem を指定します。
//emlist[][ruby]{
# https://github.com/rurema/bitclust/blob/v1.2.3/bitclust-core.gemspec#L25
s.add_runtime_dependency "progressbar", ">= 1.9.0", "< 2.0"
//}
@param gem 依存する gem の名前か Gem::Dependency のインスタンスを指定します。
@param requirements バージョンの必要条件を 0... -
Gem
:: Version . create(input) -> Gem :: Version | nil (19078.0) -
Gem::Version のインスタンスを作成するためのファクトリメソッドです。
Gem::Version のインスタンスを作成するためのファクトリメソッドです。
//emlist[][ruby]{
ver1 = Gem::Version.create('1.3.17') # => #<Gem::Version "1.3.17">
ver2 = Gem::Version.create(ver1) # => #<Gem::Version "1.3.17">
ver3 = Gem::Version.create(nil) # => nil
//}
@param input Gem::Version のインスタンスか文字列を指定します。
@r... -
Gem
:: Version # bump -> Gem :: Version (19060.0) -
最後の一桁を切り上げた新しい Gem::Version のインスタンスを返します。
最後の一桁を切り上げた新しい Gem::Version のインスタンスを返します。
ただし、英字のプレリリースの部分は、無視されます。
//emlist[][ruby]{
p Gem::Version.new('5.3.1').bump # => #<Gem::Version "5.4">
p Gem::Version.new('5.3.1.a.1').bump # => #<Gem::Version "5.4">
p Gem::Version.new('5.3.1.3.1').bump # => #<Gem::Version "5.3.1.4">
//} -
Gem
:: Version # release -> Gem :: Version (19042.0) -
self をリリースバージョンにした Gem::Version オブジェクトを返します。
self をリリースバージョンにした Gem::Version オブジェクトを返します。
プレリリースではないバージョンであれば self を返します。
//emlist[例][ruby]{
Gem::Version.new('1.2.0a').release # => #<Gem::Version "1.2.0">
Gem::Version.new('1.2.0').release # => #<Gem::Version "1.2.0">
//}
@see Gem::Version#prerelease? -
Gem
:: GemPathSearcher # find(path) -> Gem :: Specification | nil (18952.0) -
与えられたパスにマッチする Gem::Specification を一つだけ返します。
与えられたパスにマッチする Gem::Specification を一つだけ返します。
@see Array#find -
Gem
:: GemPathSearcher # find _ all(path) -> [Gem :: Specification] (18952.0) -
与えられたパスにマッチする Gem::Specification を全て返します。
与えられたパスにマッチする Gem::Specification を全て返します。
@see Array#find_all -
Gem
:: DefaultUserInteraction # ui -> Gem :: ConsoleUI (18922.0) -
デフォルトの UI を返します。
デフォルトの UI を返します。
@see Gem::DefaultUserInteraction.ui -
Gem
:: Specification . from _ yaml(input) -> Gem :: Specification (18922.0) -
YAML ファイルから gemspec をロードします。
YAML ファイルから gemspec をロードします。
YAML ファイルから Gem::Specification をロードすると、通常の Ruby オブジェクトの
初期化ルーチン (#initialize) を通りません。このメソッドは初期化ルーチンの一部を実行し、
gemspec のバージョンチェックも行います。
@param input 文字列か IO オブジェクトを指定します。 -
Gem
:: DefaultUserInteraction . ui -> Gem :: ConsoleUI (18904.0) -
デフォルトの UI を返します。
デフォルトの UI を返します。 -
Gem
:: FileOperations . new(logger = nil) -> Gem :: FileOperations (18904.0) -
このクラスを初期化します。
このクラスを初期化します。
@param logger ロガーを指定します。ロガーは log という名前のメソッドを持っている必要があります。 -
Gem
:: Specification . _ load(str) -> Gem :: Specification (18904.0) -
マーシャルされたデータをロードするためのメソッドです。
マーシャルされたデータをロードするためのメソッドです。
@param str マーシャルされたデータを指定します。 -
Gem
:: Specification . load(filename) -> Gem :: Specification (18904.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename gemspec のファイル名を指定します。
@raise StandardError gemspec ファイル内でこのメソッドを呼んでいる場合に発生します。 -
Gem
:: Version . correct?(version) -> 0 | nil (18655.0) -
version が正しいバージョンであれば 0 を返します。そうでなければ nil を返します。
version が正しいバージョンであれば 0 を返します。そうでなければ nil を返します。
//emlist[][ruby]{
p Gem::Version.correct?("9.1") # => 0
p Gem::Version.correct?("incorrect") # => nil
p Gem::Version.correct?(nil) # => 0
//}
@param version バージョンを文字列か数値で指定します。 -
Gem
:: Ext :: ConfigureBuilder . build(extension , directory , dest _ path , results) -> Array (18619.0) -
@todo
@todo
Makefile が存在しない場合は、configure スクリプトを実行して
Makefile を作成してから make を実行します。
@param extension このメソッドでは使用しません。
@param directory
@param dest_path
@param results コマンドの実行結果を格納します。破壊的に変更されます。
@see Gem::Ext::Builder.make -
Gem
:: Ext :: ExtConfBuilder . build(extension , directory , dest _ path , results) -> Array (18619.0) -
@todo
@todo
Makefile が存在しない場合は、extconf.rb を実行して
Makefile を作成してから make を実行します。
@param extension ファイル名を指定します。
@param directory このメソッドでは使用していません。
@param dest_path ???
@param results コマンドの実行結果を格納します。破壊的に変更されます。
@see Gem::Ext::Builder.make -
Exception2MessageMapper
# Fail(exception _ class = nil , *rest) -> () (18601.0) -
登録されている情報を使用して、例外を発生させます。
登録されている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>... -
Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () (18601.0) -
登録されている情報を使用して、例外を発生させます。
登録されている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>... -
Exception2MessageMapper
# def _ e2message(exception _ class , message _ format) -> Class (18601.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
すでに存在する例外クラス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。
このフォーマットは Exception2MessageMapper#Raise,
Exception2MessageMapper#Fail で使用します。
@param exception_class メッセージを登録する例外クラスを指定します。
@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます... -
Exception2MessageMapper
# fail(exception _ class = nil , *rest) -> () (18601.0) -
登録されている情報を使用して、例外を発生させます。
登録されている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。 -
Exception2MessageMapper
. Fail(klass = E2MM , exception _ class = nil , *rest) -> () (18601.0) -
登録されている情報を使用して、例外を発生させます。
登録されている情報を使用して、例外を発生させます。
@param klass 一階層上となるクラス名を指定します。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。 -
Exception2MessageMapper
. Raise(klass = E2MM , exception _ class = nil , *rest) -> () (18601.0) -
登録されている情報を使用して、例外を発生させます。
登録されている情報を使用して、例外を発生させます。
@param klass 一階層上となるクラス名を指定します。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。 -
Exception2MessageMapper
. def _ e2message(klass , exception _ class , message _ format) -> Class (18601.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
すでに存在する例外クラス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。
@param klass 一階層上となるクラス名を指定します。
@param exception_class メッセージを登録する例外クラスを指定します。
@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます。
@return exception_class を返します。 -
Gem
:: Version # <=>(other) -> -1 | 0 | 1 | nil (18562.0) -
self と other を比較して、self が小さい時に -1、 等しい時に 0、大きい時に 1 の整数を返します。 また、other が Gem::Version ではなく比較できないとき、 nil を返します。
self と other を比較して、self が小さい時に -1、
等しい時に 0、大きい時に 1 の整数を返します。
また、other が Gem::Version ではなく比較できないとき、 nil を返します。
//emlist[][ruby]{
p Gem::Version.new("3.9.0") <=> Gem::Version.new("3.10.0") # => -1
p Gem::Version.new("3.0.0") <=> Gem::Version.new("3.0.0") # => 0
p Gem::Version.new("3.0.0") <=> G... -
Gem
:: Version # eql?(other) -> bool (18457.0) -
self と other の Gem::Version#version のバージョンが等しいとき true を返します。 そうでなければ false を返します。
self と other の Gem::Version#version のバージョンが等しいとき true を返します。
そうでなければ false を返します。
Comparable を include して作られた == と異なり、"1.0" と "1" は異なるものと判定します。
//emlist[][ruby]{
ver0 = Gem::Version.create('1.0') # #<Gem::Version "1.0">
ver1 = Gem::Version.create('1.0') # #<Gem::Version "1.0">
ver2 = Gem::Ver... -
Gem
:: Specification # full _ name -> String (18433.0) -
この Gem パッケージのバージョンを含む完全な名前 (name-version) を返します。
この Gem パッケージのバージョンを含む完全な名前 (name-version) を返します。
プラットフォームの情報が指定されている場合は、それも含みます (name-version-platform)。 -
Gem
:: Specification # default _ executable -> String | nil (18397.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。 -
Gem
:: Specification # development _ dependencies -> Array (18397.0) -
この Gem が依存している Gem のリストを返します。
この Gem が依存している Gem のリストを返します。 -
Gem
:: Specification # lib _ files -> [String] (18397.0) -
この Gem パッケージに含まれているファイルのうち Gem::Specification#require_paths 以下にあるファイルのリストを返します。
この Gem パッケージに含まれているファイルのうち Gem::Specification#require_paths
以下にあるファイルのリストを返します。 -
Gem
:: Specification # runtime _ dependencies -> Array (18397.0) -
この Gem パッケージが依存している Gem パッケージのリストを返します。
この Gem パッケージが依存している Gem パッケージのリストを返します。 -
Gem
:: InstallUpdateOptions # install _ update _ defaults _ str -> String (18385.0) -
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
デフォルトのオプションは以下の通りです。
--rdoc --no-force --no-test --wrappers -
Gem
:: Version :: Requirement -> Class (18385.0) -
Gem::Requirement のエイリアスです。
Gem::Requirement のエイリアスです。
//emlist[][ruby]{
p Gem::Version::Requirement == Gem::Requirement # => true
//} -
Gem
:: Specification # dependencies -> Array (18367.0) -
依存している Gem のリストを返します。
依存している Gem のリストを返します。
@see Gem::Dependency -
Gem
:: Specification # require _ path -> String (18367.0) -
Gem::Specification#require_paths の単数バージョンです。
Gem::Specification#require_paths の単数バージョンです。
@see Gem::Specification#require_paths -
Gem
:: Specification # satisfies _ requirement?(dependency) -> bool (18367.0) -
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
依存関係を満たす場合は真を返します。そうでない場合は偽を返します。
@param dependency チェックしたい依存関係を指定します。
@see Gem::Dependency