別のキーワード
ライブラリ
- e2mmap (6)
-
rake
/ gempackagetask (1) - rubygems (6)
-
rubygems
/ command (9) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ commands / update _ command (1) -
rubygems
/ dependency (2) -
rubygems
/ dependency _ installer (2) -
rubygems
/ dependency _ list (3) -
rubygems
/ format (1) -
rubygems
/ gem _ path _ searcher (3) -
rubygems
/ indexer (4) -
rubygems
/ installer (4) -
rubygems
/ old _ format (1) -
rubygems
/ package / tar _ header (1) -
rubygems
/ package / tar _ input (4) -
rubygems
/ package / tar _ output (1) -
rubygems
/ package / tar _ reader (1) -
rubygems
/ package / tar _ writer (9) -
rubygems
/ platform (2) -
rubygems
/ remote _ fetcher (3) -
rubygems
/ requirement (3) -
rubygems
/ source _ index (5) -
rubygems
/ source _ info _ cache (1) -
rubygems
/ spec _ fetcher (1) -
rubygems
/ specification (97) -
rubygems
/ uninstaller (1) -
rubygems
/ user _ interaction (21) -
rubygems
/ version (9) -
rubygems
/ version _ option (2)
クラス
-
Gem
:: Command (9) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: Dependency (2) -
Gem
:: DependencyInstaller (2) -
Gem
:: DependencyList (3) -
Gem
:: Format (1) -
Gem
:: GemPathSearcher (3) -
Gem
:: Indexer (4) -
Gem
:: Installer (4) -
Gem
:: LoadError (2) -
Gem
:: OldFormat (1) -
Gem
:: Package :: TarHeader (1) -
Gem
:: Package :: TarInput (4) -
Gem
:: Package :: TarOutput (1) -
Gem
:: Package :: TarReader (1) -
Gem
:: Package :: TarWriter (7) -
Gem
:: Package :: TarWriter :: BoundedStream (1) -
Gem
:: Package :: TarWriter :: RestrictedStream (1) -
Gem
:: Platform (2) -
Gem
:: RemoteFetcher (3) -
Gem
:: Requirement (3) -
Gem
:: SourceIndex (5) -
Gem
:: SourceInfoCache (1) -
Gem
:: SpecFetcher (1) -
Gem
:: Specification (97) -
Gem
:: StreamUI (10) -
Gem
:: Uninstaller (1) -
Gem
:: Version (9) -
Rake
:: GemPackageTask (1)
モジュール
キーワード
- <=> (1)
- === (1)
- =~ (1)
- Fail (1)
- Raise (1)
-
_ dump (1) - abbreviate (1)
-
accept
_ uri _ http (1) -
add
_ bindir (1) -
add
_ bulk _ threshold _ option (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ file (2) -
add
_ file _ simple (2) -
add
_ option (1) -
add
_ platform _ option (1) -
add
_ proxy _ option (1) -
add
_ runtime _ dependency (1) -
add
_ source _ option (1) -
add
_ spec (1) -
add
_ update _ sources _ option (1) -
add
_ version _ option (1) - alert (2)
-
alert
_ error (2) -
alert
_ warning (2) - ask (2)
-
ask
_ yes _ no (2) -
assign
_ defaults (1) - autorequire (1)
- autorequire= (1)
- bind (1)
- bindir (1)
- bindir= (1)
- both? (1)
-
build
_ extensions (1) - bump (1)
-
calculate
_ integers _ for _ gem _ version (1) -
cert
_ chain (1) -
cert
_ chain= (1) -
check
_ closed (1) -
choose
_ from _ list (2) - close (2)
- compress (1)
-
connection
_ for (1) - date (1)
- date= (1)
-
def
_ exception (1) -
default
_ executable (1) -
default
_ executable= (1) - dependencies (1)
-
dependency
_ order (1) -
dependent
_ gems (1) - description (2)
- description= (1)
-
development
_ dependencies (1) -
do
_ rubygems _ update (1) - email (1)
- email= (1)
- eql? (1)
- errs (1)
- executable (1)
- executable= (1)
- executables (1)
- executables= (1)
- extensions (1)
- extensions= (1)
-
extra
_ rdoc _ files (1) -
extra
_ rdoc _ files= (1) - fail (1)
-
file
_ name (1) - files (1)
- files= (1)
- find (1)
-
find
_ all (1) -
find
_ name (2) -
find
_ spec _ by _ name _ and _ version (1) - flush (1)
-
full
_ gem _ path (1) -
full
_ name (1) -
gem
_ spec (1) -
get
_ one _ optional _ argument (1) -
get
_ path (1) -
has
_ rdoc (1) -
has
_ rdoc= (1) -
has
_ rdoc? (1) -
has
_ test _ suite? (1) -
has
_ unit _ tests? (1) - homepage (1)
- homepage= (1)
-
init
_ gemspecs (1) - ins (1)
- install (2)
-
install
_ update _ defaults _ str (1) -
installation
_ path (1) -
installation
_ satisfies _ dependency? (1) -
lib
_ files (1) -
load
_ gemspec (1) - loaded= (1)
- loaded? (1)
-
loaded
_ from (1) -
loaded
_ from= (1) - local? (1)
-
mark
_ version (1) -
marshal
_ dump (1) -
marshal
_ load (1) - mkdir (1)
- name (1)
- name= (1)
- normalize (1)
-
open
_ uri _ or _ path (1) -
original
_ name (1) -
original
_ platform (1) -
original
_ platform= (1) - outs (1)
- paranoid (1)
- platform (1)
- platform= (1)
- prerelease? (1)
-
push
_ all _ highest _ version _ gems _ on _ load _ path (1) -
push
_ gem _ version _ on _ load _ path (1) - release (1)
- remote? (1)
-
remove
_ by _ name (1) -
remove
_ option (1) -
remove
_ spec (1) -
require
_ path (1) -
require
_ path= (1) -
require
_ paths (1) -
require
_ paths= (1) -
required
_ ruby _ version (1) -
required
_ ruby _ version= (1) -
required
_ rubygems _ version (1) -
required
_ rubygems _ version= (1) - requirements (1)
- requirements= (1)
- reset (1)
- rewind (1)
-
rubygems
_ version (1) -
rubygems
_ version= (1) -
runtime
_ dependencies (1) - sanitize (1)
-
satisfied
_ by? (1) -
satisfies
_ requirement? (1) - say (1)
- search (2)
-
show
_ lookup _ failure (1) -
signing
_ key (1) -
signing
_ key= (1) - spec (4)
- specification (1)
-
specification
_ version (1) -
specification
_ version= (1) - summary (1)
- summary= (2)
-
terminate
_ interaction (2) -
test
_ file (1) -
test
_ file= (1) -
test
_ files (1) -
test
_ files= (1) -
test
_ suite _ file (1) -
test
_ suite _ file= (1) -
to
_ ruby (1) -
to
_ s (1) - ui (1)
- ui= (1)
-
use
_ ui (1) - validate (1)
- version (4)
- version= (2)
-
version
_ requirement (1) -
version
_ requirement= (1) -
version
_ requirements (1) -
version
_ requirements= (1) -
warn
_ legacy (1) - write (2)
-
yaml
_ initialize (1) -
zipped
_ stream (1)
検索結果
先頭5件
-
Gem
:: VersionOption # add _ version _ option(task = command , *wrap) (63622.0) -
option parser に対して --version オプションを追加します。
option parser に対して --version オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定します。 -
Kernel
# gem(gem _ name , *version _ requirements) -> bool (55462.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 # rubygems _ version=(version) (55000.0) -
この Gem パッケージを作成した RubyGems のバージョンをセットします。 この属性は Gem パッケージが作成された時に自動的にセットされます。
この Gem パッケージを作成した RubyGems のバージョンをセットします。
この属性は Gem パッケージが作成された時に自動的にセットされます。
@param version RubyGems のバージョンを指定します。 -
Gem
:: Specification # specification _ version=(version) (54970.0) -
この Gem パッケージに用いられている gemspec のバージョンをセットします。
この Gem パッケージに用いられている gemspec のバージョンをセットします。
@param version gemspec のバージョンを指定します。
@see Gem::Specification::SPECIFICATION_VERSION_HISTORY -
Gem
:: Specification # required _ rubygems _ version -> Gem :: Requirement (54955.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。 -
Gem
:: Specification # required _ rubygems _ version=(requirement) (54688.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement -
Gem
:: Specification # rubygems _ version -> String (54652.0) -
この Gem パッケージを作成した RubyGems のバージョンを返します。
この Gem パッケージを作成した RubyGems のバージョンを返します。 -
Gem
:: Specification # specification _ version -> Integer (54652.0) -
この Gem パッケージに用いられている gemspec のバージョンを返します。
この Gem パッケージに用いられている gemspec のバージョンを返します。 -
Gem
:: QuickLoader # calculate _ integers _ for _ gem _ version (45607.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
Gem
:: QuickLoader # push _ gem _ version _ on _ load _ path (45607.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
Gem
:: QuickLoader # push _ all _ highest _ version _ gems _ on _ load _ path (45604.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
Gem
:: VersionOption # add _ platform _ option(task = command , *wrap) (45322.0) -
option parser に対して --platform オプションを追加します。
option parser に対して --platform オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定します。 -
Gem
:: GemPathSearcher # init _ gemspecs -> [Gem :: Specification] (37003.0) -
インストール済みの Gem の Gem::Specification のリストを返します。
インストール済みの Gem の Gem::Specification のリストを返します。
リストはアルファベット順かつバージョンの新しい順にソートされています。 -
Gem
:: Specification # version -> Gem :: Version (36955.0) -
この Gem パッケージのバージョンを返します。
この Gem パッケージのバージョンを返します。 -
Gem
:: Specification # version=(version) (36670.0) -
この Gem パッケージのバージョンをセットします。
この Gem パッケージのバージョンをセットします。
@param version バージョンを文字列か Gem::Version のインスタンスで指定します。 -
Gem
:: Specification # required _ ruby _ version -> Gem :: Requirement (36655.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。 -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (36604.0) -
exception_name という名前の例外クラスを定義します。
exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定します。
省略すると StandardError を使用します。 -
Gem
:: Specification # rdoc _ options=(options) (36604.0) -
API ドキュメントを生成するときに rdoc コマンドに与えるオプションをセットします。
API ドキュメントを生成するときに rdoc コマンドに与えるオプションをセットします。
@param options API ドキュメントを生成するときに rdoc コマンドに与えるオプションを指定します。 -
Gem
:: Specification # dependent _ gems -> Array (36454.0) -
この Gem に依存している全ての Gem の情報のリストを返します。
この Gem に依存している全ての Gem の情報のリストを返します。
それぞれのエントリは配列になっており、各要素は以下のようになっています。
(0) Gem::Specification
(1) Gem::Dependency
(2) Gem::Specification の配列 -
Gem
:: Specification # required _ ruby _ version=(requirement) (36388.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement -
Gem
:: Specification # full _ gem _ path -> String (36355.0) -
この Gem パッケージへのフルパスを返します。
この Gem パッケージへのフルパスを返します。 -
Gem
:: Specification # description -> String (36352.0) -
Gem パッケージの説明を返します。
Gem パッケージの説明を返します。 -
Gem
:: Specification # description=(desc) (36352.0) -
Gem パッケージの説明をセットします。
Gem パッケージの説明をセットします。
@param desc パッケージの詳細を説明する文章を指定します。 -
Gem
:: Specification # installation _ path -> String (36352.0) -
この Gem パッケージのインストール先のパスを返します。
この Gem パッケージのインストール先のパスを返します。 -
Gem
:: InstallUpdateOptions # add _ install _ update _ options (36304.0) -
インストールとアップデートに関するオプションを追加します。
インストールとアップデートに関するオプションを追加します。 -
Gem
:: LocalRemoteOptions # add _ bulk _ threshold _ option (36304.0) -
オプション --bulk-threshold を追加します。
オプション --bulk-threshold を追加します。 -
Gem
:: LocalRemoteOptions # add _ local _ remote _ options (36304.0) -
オプション --local, --remote, --both を追加します。
オプション --local, --remote, --both を追加します。 -
Gem
:: LocalRemoteOptions # add _ proxy _ option (36304.0) -
オプション --http-proxy を追加します。
オプション --http-proxy を追加します。 -
Gem
:: LocalRemoteOptions # add _ source _ option (36304.0) -
オプション --source を追加します。
オプション --source を追加します。 -
Gem
:: LocalRemoteOptions # add _ update _ sources _ option (36304.0) -
オプション --update-source を追加します。
オプション --update-source を追加します。 -
Gem
:: Specification # extensions -> [String] (36304.0) -
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを返します。
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを返します。 -
Gem
:: Specification # extensions=(paths) (36304.0) -
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
@param paths 拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを指定します。 -
Gem
:: Specification # mark _ version -> String (36304.0) -
RubyGems のバージョンを内部にセットします。
RubyGems のバージョンを内部にセットします。 -
Gem
:: Specification # rdoc _ options -> [String] (36304.0) -
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。 -
Gem
:: UserInteraction # terminate _ interaction(*args) -> () (36304.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param args 委譲先のメソッドに与える引数です。 -
Gem
:: DependencyInstaller # find _ spec _ by _ name _ and _ version(gem _ name , version = Gem :: Requirement . default) -> Array (28360.0) -
与えられた Gem の名前とバージョンに関する条件にマッチする Gem::Specification と それの存在する URI を含む配列を返します。
与えられた Gem の名前とバージョンに関する条件にマッチする Gem::Specification と
それの存在する URI を含む配列を返します。
@param gem_name Gem の名前を指定します。
@param version Gem が満たすバージョンに関する条件を指定します。 -
Gem
:: Package :: TarInput # load _ gemspec(io) -> Gem :: Specification | nil (28312.0) -
YAML 形式の gemspec を io から読み込みます。
YAML 形式の gemspec を io から読み込みます。
@param io 文字列か IO オブジェクトを指定します。
@see Gem::Specification.from_yaml -
Gem
:: SourceIndex # specification(full _ name) -> Gem :: Specification | nil (27973.0) -
指定された名前の Gem::Specification オブジェクトを返します。
指定された名前の Gem::Specification オブジェクトを返します。
@param full_name Gem のフルネームを指定します。 -
Rake
:: GemPackageTask # gem _ spec -> Gem :: Specification (27910.0) -
package ターゲットで使用する gemspec を返します。
package ターゲットで使用する gemspec を返します。
gemspec にはパッケージ名、バージョン、パッケージに含まれるファイルなどが定義
されているので、それらを明示的に指定する必要はありません。 -
Gem
:: LoadError # version _ requirement=(version _ requirement) (27706.0) -
ロードに失敗した Gem の必要条件をセットします。
ロードに失敗した Gem の必要条件をセットします。
@param version_requirement Gem::Requirement のインスタンスをセットします。
@see Gem::Requirement, Gem::Dependency#version_requirements -
Gem
:: Dependency # version _ requirements=(version _ requirements) (27622.0) -
依存しているバージョンを設定します。
依存しているバージョンを設定します。
@param version_requirements Gem::Requirement のインスタンスを指定します。 -
Gem
:: Dependency # version _ requirements -> Gem :: Requirement (27607.0) -
依存しているバージョンを返します。
依存しているバージョンを返します。 -
Gem
:: Command # add _ option(*opts) {|value , options| . . . } (27604.0) -
コマンドに対するコマンドラインオプションとハンドラを追加します。
コマンドに対するコマンドラインオプションとハンドラを追加します。
ブロックには、コマンドライン引数の値とそのオプションが渡されます。
オプションはハッシュになっています。
@param opts オプションを指定します。
@see OptionParser#make_switch -
Gem
:: Command # merge _ options(new _ options) -> Hash (27604.0) -
与えられたオプションとデフォルトのオプションをマージします。 しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
与えられたオプションとデフォルトのオプションをマージします。
しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
@param new_options 新しいコマンドオプションをハッシュで指定します。 -
Gem
:: Commands :: UpdateCommand # do _ rubygems _ update(version) (27604.0) -
RubyGems 自体を更新します。
RubyGems 自体を更新します。 -
Gem
:: Platform # version=(version) (27604.0) -
プラットフォームのバージョンをセットします。
プラットフォームのバージョンをセットします。
@param version プラットフォームのバージョンを指定します。 -
Gem
:: LoadError # version _ requirement -> Get :: Requirement (27388.0) -
ロードに失敗した Gem の必要条件を返します。
ロードに失敗した Gem の必要条件を返します。
@see Gem::Requirement, Gem::Dependency#version_requirements -
Gem
:: Installer # installation _ satisfies _ dependency?(dependency) -> bool (27322.0) -
登録されているソースインデックスが与えられた依存関係を 満たすことができる場合は、真を返します。そうでない場合は偽を返します。
登録されているソースインデックスが与えられた依存関係を
満たすことができる場合は、真を返します。そうでない場合は偽を返します。
@param dependency Gem::Dependency のインスタンスを指定します。 -
Gem
:: StreamUI # terminate _ interaction(status = 0) -> () (27322.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param status 終了ステータスを指定します。デフォルトは 0 (成功) です。
@raise Gem::SystemExitException このメソッドを呼び出すと必ず発生する例外です。 -
Gem
:: Version # version -> String (27322.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 (27304.0) -
このメソッドはサブクラスで再定義されます。 コマンドが実行することを説明する文字列を返します。
このメソッドはサブクラスで再定義されます。
コマンドが実行することを説明する文字列を返します。 -
Gem
:: Command # get _ one _ optional _ argument -> String (27304.0) -
コマンドラインからオプショナルな引数を取得して返します。
コマンドラインからオプショナルな引数を取得して返します。
@return 一つ以上、指定した場合は最初の値を返します。一つも指定していない場合は nil を返します。 -
Gem
:: Command # handle _ options(args) (27304.0) -
与えられた引数のリストをパースして結果を記録します。
与えられた引数のリストをパースして結果を記録します。
@param args 引数のリストを指定します。 -
Gem
:: Command # options -> Hash (27304.0) -
コマンドで使用するオプションを返します。
コマンドで使用するオプションを返します。 -
Gem
:: Command # remove _ option(name) (27304.0) -
与えられた名前に一致するコマンドラインオプションを削除します。
与えられた名前に一致するコマンドラインオプションを削除します。
@param name 削除したいコマンドラインオプションの名前を指定します。 -
Gem
:: Installer # build _ extensions (27304.0) -
拡張ライブラリをビルドします。
拡張ライブラリをビルドします。
拡張ライブラリをビルドするためのファイルタイプとして有効であるのは、
extconf.rb, configure script, Rakefile, mkmf_files です。 -
Gem
:: Package :: TarHeader # version -> Integer (27304.0) -
tar のヘッダに含まれる version を返します。
tar のヘッダに含まれる version を返します。 -
Gem
:: Platform # version -> String (27304.0) -
プラットフォームのバージョンを返します。
プラットフォームのバージョンを返します。 -
Gem
:: RemoteFetcher # connection _ for(uri) -> Net :: HTTP (27304.0) -
HTTP コネクションを生成して返します。
HTTP コネクションを生成して返します。
既に接続している URI であれば、生成済みのコネクションを返します。
また、必要があればプロキシを使用します。
@param uri 接続先の URI を指定します。 -
Gem
:: Specification # add _ development _ dependency(gem , *requirements) -> [Gem :: Dependency] (18862.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] (18802.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] (18802.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 # bump -> Gem :: Version (18763.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 (18745.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 (18655.0) -
与えられたパスにマッチする Gem::Specification を一つだけ返します。
与えられたパスにマッチする Gem::Specification を一つだけ返します。
@see Array#find -
Gem
:: GemPathSearcher # find _ all(path) -> [Gem :: Specification] (18655.0) -
与えられたパスにマッチする Gem::Specification を全て返します。
与えられたパスにマッチする Gem::Specification を全て返します。
@see Array#find_all -
Gem
:: Specification # requirements=(informations) (18352.0) -
この Gem パッケージを動作させるのに必要な条件をセットします。 これはユーザのためのシンプルな情報をセットします。
この Gem パッケージを動作させるのに必要な条件をセットします。
これはユーザのためのシンプルな情報をセットします。
@param informations 情報を文字列の配列で指定します。 -
Gem
:: DefaultUserInteraction # ui -> Gem :: ConsoleUI (18325.0) -
デフォルトの UI を返します。
デフォルトの UI を返します。
@see Gem::DefaultUserInteraction.ui -
Exception2MessageMapper
# Fail(exception _ class = nil , *rest) -> () (18304.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) -> () (18304.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 (18304.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) -> () (18304.0) -
登録されている情報を使用して、例外を発生させます。
登録されている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。 -
Gem
:: Version # <=>(other) -> -1 | 0 | 1 | nil (18196.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 (18160.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 # platform=(platform) (18106.0) -
この Gem パッケージを使用できるプラットフォームをセットします。
この Gem パッケージを使用できるプラットフォームをセットします。
@param platform この Gem パッケージを使用できるプラットフォームを指定します。
デフォルトは Gem::Platform::RUBY です。
@see Gem::Platform::RUBY -
Gem
:: Specification # default _ executable -> String | nil (18100.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。 -
Gem
:: Specification # default _ executable=(executable) (18100.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
@param executable 実行ファイルを指定します。 -
Gem
:: Specification # development _ dependencies -> Array (18100.0) -
この Gem が依存している Gem のリストを返します。
この Gem が依存している Gem のリストを返します。 -
Gem
:: Specification # lib _ files -> [String] (18100.0) -
この Gem パッケージに含まれているファイルのうち Gem::Specification#require_paths 以下にあるファイルのリストを返します。
この Gem パッケージに含まれているファイルのうち Gem::Specification#require_paths
以下にあるファイルのリストを返します。 -
Gem
:: Specification # runtime _ dependencies -> Array (18100.0) -
この Gem パッケージが依存している Gem パッケージのリストを返します。
この Gem パッケージが依存している Gem パッケージのリストを返します。 -
Gem
:: Specification # require _ path=(path) (18088.0) -
Gem::Specification#require_paths= の単数バージョンです。
Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths= -
Gem
:: Specification # dependencies -> Array (18070.0) -
依存している Gem のリストを返します。
依存している Gem のリストを返します。
@see Gem::Dependency -
Gem
:: Specification # files=(files) (18070.0) -
この Gem パッケージに含まれるファイル名の配列をセットします。
この Gem パッケージに含まれるファイル名の配列をセットします。
@param files この Gem パッケージに含まれるファイル名の配列を指定します。 -
Gem
:: Specification # homepage=(uri) (18070.0) -
この Gem パッケージを作成しているプロジェクトか作成者のウェブサイトの URI をセットします。
この Gem パッケージを作成しているプロジェクトか作成者のウェブサイトの URI をセットします。
@param uri この Gem パッケージを作成しているプロジェクトか作成者のウェブサイトの URI を指定します。 -
Gem
:: Specification # loaded _ from=(path) (18070.0) -
この Gem パッケージの gemspec がある場所をセットします。
この Gem パッケージの gemspec がある場所をセットします。
@param path この Gem パッケージの gemspec がある場所を指定します。 -
Gem
:: Specification # name=(name) (18070.0) -
この Gem パッケージの名前をセットします。
この Gem パッケージの名前をセットします。
@param name この Gem パッケージの名前を指定します。 -
Gem
:: Specification # require _ path -> String (18070.0) -
Gem::Specification#require_paths の単数バージョンです。
Gem::Specification#require_paths の単数バージョンです。
@see Gem::Specification#require_paths -
Gem
:: Specification # require _ paths=(paths) (18070.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。
@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを指定します。 -
Gem
:: Specification # satisfies _ requirement?(dependency) -> bool (18070.0) -
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
依存関係を満たす場合は真を返します。そうでない場合は偽を返します。
@param dependency チェックしたい依存関係を指定します。
@see Gem::Dependency -
Gem
:: Version # prerelease? -> bool (18058.0) -
self がプレリリースと思われる文字を含むバージョンかどうかを返します。
self がプレリリースと思われる文字を含むバージョンかどうかを返します。
//emlist[例][ruby]{
Gem::Version.new('1.2.0a').prerelease? # => true
Gem::Version.new('1.2.0').prerelease? # => false
//}
@see Gem::Version#release -
Gem
:: InstallUpdateOptions # install _ update _ defaults _ str -> String (18052.0) -
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
デフォルトのオプションは以下の通りです。
--rdoc --no-force --no-test --wrappers -
Gem
:: Specification # file _ name -> String (18052.0) -
生成される Gem パッケージの名前を返します。
生成される Gem パッケージの名前を返します。 -
Gem
:: Specification # files -> [String] (18052.0) -
この Gem パッケージに含まれるファイル名の配列を返します。
この Gem パッケージに含まれるファイル名の配列を返します。 -
Gem
:: Specification # full _ name -> String (18052.0) -
この Gem パッケージのバージョンを含む完全な名前 (name-version) を返します。
この Gem パッケージのバージョンを含む完全な名前 (name-version) を返します。
プラットフォームの情報が指定されている場合は、それも含みます (name-version-platform)。 -
Gem
:: Specification # has _ test _ suite? -> bool (18052.0) -
このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。
このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。 -
Gem
:: Specification # has _ unit _ tests? -> bool (18052.0) -
この Gem パッケージがユニットテストを含むかどうか返します。
この Gem パッケージがユニットテストを含むかどうか返します。
真の場合はユニットテストを含みます。そうでない場合は偽を返します。 -
Gem
:: Specification # homepage -> String (18052.0) -
この Gem パッケージを作成しているプロジェクトか作成者のウェブサイトの URI を返します。
この Gem パッケージを作成しているプロジェクトか作成者のウェブサイトの URI を返します。 -
Gem
:: Specification # loaded=(flag) (18052.0) -
この Gem パッケージの gemspec が既にロードされているかどうかをセットします。
この Gem パッケージの gemspec が既にロードされているかどうかをセットします。
この属性は永続化しません。
@param flag 既にロードされている場合は真を指定します。 -
Gem
:: Specification # loaded? -> bool (18052.0) -
この Gem パッケージの gemspec が既にロードされているかどうかを返します。
この Gem パッケージの gemspec が既にロードされているかどうかを返します。
既にロードされている場合は真を返します。そうでない場合は偽を返します。 -
Gem
:: Specification # loaded _ from -> String (18052.0) -
この Gem パッケージの gemspec がある場所を返します。
この Gem パッケージの gemspec がある場所を返します。
この属性は永続化されません。