別のキーワード
ライブラリ
- csv (1)
- e2mmap (13)
-
rake
/ gempackagetask (1) - rubygems (6)
-
rubygems
/ command (6) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ dependency (1) -
rubygems
/ dependency _ installer (4) -
rubygems
/ dependency _ list (3) -
rubygems
/ ext / configure _ builder (1) -
rubygems
/ ext / ext _ conf _ builder (1) -
rubygems
/ ext / rake _ builder (1) -
rubygems
/ format (2) -
rubygems
/ gem _ path _ searcher (3) -
rubygems
/ indexer (2) -
rubygems
/ installer (4) -
rubygems
/ old _ format (2) -
rubygems
/ package (1) -
rubygems
/ package / tar _ header (2) -
rubygems
/ package / tar _ input (3) -
rubygems
/ package / tar _ output (2) -
rubygems
/ package / tar _ reader (2) -
rubygems
/ package / tar _ writer (10) -
rubygems
/ platform (1) -
rubygems
/ remote _ fetcher (3) -
rubygems
/ requirement (3) -
rubygems
/ security (6) -
rubygems
/ server (1) -
rubygems
/ source _ index (7) -
rubygems
/ source _ info _ cache (2) -
rubygems
/ spec _ fetcher (1) -
rubygems
/ specification (83) -
rubygems
/ uninstaller (1) -
rubygems
/ user _ interaction (20) -
rubygems
/ version (13)
クラス
- CSV (1)
-
Gem
:: Command (6) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: Dependency (1) -
Gem
:: DependencyInstaller (4) -
Gem
:: DependencyList (3) -
Gem
:: Ext :: ConfigureBuilder (1) -
Gem
:: Ext :: ExtConfBuilder (1) -
Gem
:: Ext :: RakeBuilder (1) -
Gem
:: FileOperations (1) -
Gem
:: Format (2) -
Gem
:: GemPathSearcher (3) -
Gem
:: Indexer (2) -
Gem
:: Installer (4) -
Gem
:: LoadError (1) -
Gem
:: OldFormat (2) -
Gem
:: Package :: TarHeader (2) -
Gem
:: Package :: TarInput (3) -
Gem
:: Package :: TarOutput (2) -
Gem
:: Package :: TarReader (2) -
Gem
:: Package :: TarWriter (6) -
Gem
:: Package :: TarWriter :: BoundedStream (2) -
Gem
:: Package :: TarWriter :: RestrictedStream (2) -
Gem
:: Platform (1) -
Gem
:: RemoteFetcher (3) -
Gem
:: Requirement (3) -
Gem
:: Security :: Policy (2) -
Gem
:: Server (1) -
Gem
:: SourceIndex (7) -
Gem
:: SourceInfoCache (2) -
Gem
:: SpecFetcher (1) -
Gem
:: Specification (83) -
Gem
:: StreamUI (10) -
Gem
:: Uninstaller (1) -
Gem
:: Version (13) -
Rake
:: GemPackageTask (1)
モジュール
- Exception2MessageMapper (13)
- Gem (3)
-
Gem
:: DefaultUserInteraction (2) -
Gem
:: InstallUpdateOptions (1) -
Gem
:: LocalRemoteOptions (6) -
Gem
:: QuickLoader (1) -
Gem
:: Security (4) -
Gem
:: UserInteraction (8) - Kernel (1)
キーワード
- <=> (1)
- === (1)
- =~ (1)
-
CURRENT
_ SPECIFICATION _ VERSION (1) -
DEFAULT
_ OPTIONS (1) - Fail (2)
- GemVersions (1)
-
MARSHAL
_ FIELDS (1) -
NEWS for Ruby 2
. 0 . 0 (1) -
NEWS for Ruby 2
. 1 . 0 (1) -
NEWS for Ruby 2
. 2 . 0 (1) -
NEWS for Ruby 2
. 3 . 0 (1) -
NEWS for Ruby 2
. 4 . 0 (1) -
NEWS for Ruby 2
. 5 . 0 (1) -
NONEXISTENT
_ SPECIFICATION _ VERSION (1) - Raise (2)
- ReFe (1)
- Requirement (1)
- RubyGemsPackageVersion (1)
- RubyGemsVersion (1)
-
SPECIFICATION
_ VERSION _ HISTORY (1) - TODAY (1)
-
_ dump (1) -
_ load (1) - abbreviate (1)
-
add
_ bindir (1) -
add
_ bulk _ threshold _ option (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ file (2) -
add
_ file _ simple (2) -
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) -
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)
- bind (1)
- bindir (1)
- both? (1)
- build (3)
-
build
_ cert (1) -
build
_ self _ signed _ cert (1) - bump (1)
-
cert
_ chain (1) -
choose
_ from _ list (2) -
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) - email (1)
- eql? (1)
- errs (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 (1)
-
from
_ io (2) -
from
_ yaml (1) -
full
_ gem _ path (1) -
full
_ name (1) -
gem
_ spec (1) - generate (1)
-
get
_ one _ optional _ argument (1) -
get
_ path (1) -
has
_ rdoc (1) -
has
_ rdoc? (1) -
has
_ test _ suite? (1) -
has
_ unit _ tests? (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) - list (1)
- load (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) - mkdir (1)
- name (1)
- new (11)
- normalize (1)
-
normalize
_ yaml _ input (1) - open (1)
-
open
_ uri _ or _ path (1) -
original
_ name (1) -
original
_ platform (1) - outs (1)
-
overwrite
_ accessor (1) - platform (1)
- prerelease? (1)
-
read
_ only (1) - release (1)
- remote? (1)
-
remove
_ by _ name (1) -
remove
_ spec (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)
- rewind (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)
-
show
_ lookup _ failure (1) -
sign
_ cert (1) -
signing
_ key (1) - spec (4)
- specification (1)
-
specification
_ version (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)
- validate (1)
- version (4)
-
version
_ requirement (1) -
version
_ requirements (1) -
warn
_ legacy (1) - write (2)
-
zipped
_ stream (1)
検索結果
先頭5件
-
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 :: NONEXISTENT _ SPECIFICATION _ VERSION -> -1 (54904.0) -
明確に指定されていない時の gemspec のバージョンを表します。
明確に指定されていない時の gemspec のバージョンを表します。 -
Gem
:: Specification :: CURRENT _ SPECIFICATION _ VERSION -> 2 (54901.0) -
現在の gemspec のバージョンを表す定数です。
現在の gemspec のバージョンを表す定数です。 -
Gem
:: Specification :: SPECIFICATION _ VERSION _ HISTORY -> Hash (54901.0) -
gemspec ファイルのバージョンの歴史を表す定数です。
gemspec ファイルのバージョンの歴史を表す定数です。 -
Gem
:: QuickLoader :: GemVersions -> Hash (45901.0) -
prelude.c で定義されている内部用の定数です。
prelude.c で定義されている内部用の定数です。 -
Gem
. # marshal _ version -> String (45601.0) -
Marshal のバージョンを表す文字列を返します。
Marshal のバージョンを表す文字列を返します。 -
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
:: 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
:: 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 ... -
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 を追加します。 -
Gem
:: OldFormat . from _ io(io , gem _ path = & # 39;(io)& # 39;) -> Gem :: OldFormat (29002.0) -
Gem ファイルからデータを読み込んだ IO を受け取り、自身を初期化して返します。
Gem ファイルからデータを読み込んだ IO を受け取り、自身を初期化して返します。
@param io Gem パッケージの内容を読み込んだ IO オブジェクトを指定します。
@param gem_path Gem ファイルのパスを指定します。 -
Gem
:: Format . from _ io(io , gem _ path = & # 39;(io)& # 39; , security _ policy = nil) -> Gem :: Format (28942.0) -
@todo security_policy
@todo security_policy
Gem ファイルからデータを読み込んだ IO を受け取り、自身を初期化して返します。
@param io Gem パッケージの内容を読み込んだ IO オブジェクトを指定します。
@param gem_path Gem ファイルのパスを指定します。
@param security_policy ??? -
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
:: Package :: TarInput # load _ gemspec(io) -> Gem :: Specification | nil (28609.0) -
YAML 形式の gemspec を io から読み込みます。
YAML 形式の gemspec を io から読み込みます。
@param io 文字列か IO オブジェクトを指定します。
@see Gem::Specification.from_yaml -
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 をロードしているときに発生します。 -
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
:: Installer # installation _ satisfies _ dependency?(dependency) -> bool (27619.0) -
登録されているソースインデックスが与えられた依存関係を 満たすことができる場合は、真を返します。そうでない場合は偽を返します。
登録されているソースインデックスが与えられた依存関係を
満たすことができる場合は、真を返します。そうでない場合は偽を返します。
@param dependency Gem::Dependency のインスタンスを指定します。 -
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 # get _ one _ optional _ argument -> String (27601.0) -
コマンドラインからオプショナルな引数を取得して返します。
コマンドラインからオプショナルな引数を取得して返します。
@return 一つ以上、指定した場合は最初の値を返します。一つも指定していない場合は nil を返します。 -
Gem
:: Command # options -> Hash (27601.0) -
コマンドで使用するオプションを返します。
コマンドで使用するオプションを返します。 -
Gem
:: Command . common _ options -> Array (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
:: Package :: TarHeader # version -> Integer (27601.0) -
tar のヘッダに含まれる version を返します。
tar のヘッダに含まれる version を返します。 -
Gem
:: Platform # version -> String (27601.0) -
プラットフォームのバージョンを返します。
プラットフォームのバージョンを返します。 -
Gem
:: RemoteFetcher # connection _ for(uri) -> Net :: HTTP (27601.0) -
HTTP コネクションを生成して返します。
HTTP コネクションを生成して返します。
既に接続している URI であれば、生成済みのコネクションを返します。
また、必要があればプロキシを使用します。
@param uri 接続先の URI を指定します。 -
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
:: Specification . from _ yaml(input) -> Gem :: Specification (18940.0) -
YAML ファイルから gemspec をロードします。
YAML ファイルから gemspec をロードします。
YAML ファイルから Gem::Specification をロードすると、通常の Ruby オブジェクトの
初期化ルーチン (#initialize) を通りません。このメソッドは初期化ルーチンの一部を実行し、
gemspec のバージョンチェックも行います。
@param input 文字列か IO オブジェクトを指定します。 -
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) -> bool (18655.0) -
version が正しいバージョンであれば true を返します。そうでなければ false を返します。
version が正しいバージョンであれば true を返します。そうでなければ false を返します。
//emlist[][ruby]{
p Gem::Version.correct?("9.1") # => true
p Gem::Version.correct?("incorrect") # => false
p Gem::Version.correct?(nil) # => true
# nil versions are discouraged and will be deprecated in Rubygems 4
# version が nil... -
Gem
:: DefaultUserInteraction # ui -> Gem :: ConsoleUI (18622.0) -
デフォルトの UI を返します。
デフォルトの UI を返します。
@see Gem::DefaultUserInteraction.ui -
Gem
:: DefaultUserInteraction . ui -> Gem :: ConsoleUI (18604.0) -
デフォルトの UI を返します。
デフォルトの UI を返します。 -
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 -
Gem
:: Specification . array _ attribute(name) -> () (18367.0) -
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
@param name 属性の名前を指定します。
@see Gem::Specification.attribute -
Gem
:: Version # prerelease? -> bool (18355.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
:: Specification # file _ name -> String (18349.0) -
生成される Gem パッケージの名前を返します。
生成される Gem パッケージの名前を返します。 -
Gem
:: Specification # files -> [String] (18349.0) -
この Gem パッケージに含まれるファイル名の配列を返します。
この Gem パッケージに含まれるファイル名の配列を返します。 -
Gem
:: Specification # has _ test _ suite? -> bool (18349.0) -
このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。
このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。 -
Gem
:: Specification # has _ unit _ tests? -> bool (18349.0) -
この Gem パッケージがユニットテストを含むかどうか返します。
この Gem パッケージがユニットテストを含むかどうか返します。
真の場合はユニットテストを含みます。そうでない場合は偽を返します。 -
Gem
:: Specification # homepage -> String (18349.0) -
この Gem パッケージを作成しているプロジェクトか作成者のウェブサイトの URI を返します。
この Gem パッケージを作成しているプロジェクトか作成者のウェブサイトの URI を返します。 -
Gem
:: Specification # loaded? -> bool (18349.0) -
この Gem パッケージの gemspec が既にロードされているかどうかを返します。
この Gem パッケージの gemspec が既にロードされているかどうかを返します。
既にロードされている場合は真を返します。そうでない場合は偽を返します。 -
Gem
:: Specification # loaded _ from -> String (18349.0) -
この Gem パッケージの gemspec がある場所を返します。
この Gem パッケージの gemspec がある場所を返します。
この属性は永続化されません。 -
Gem
:: Specification # name -> String (18349.0) -
この Gem パッケージの名前を返します。
この Gem パッケージの名前を返します。 -
Gem
:: Specification # normalize -> [String] (18349.0) -
この Gem パッケージの含まれるファイルリストから重複を取り除きます。
この Gem パッケージの含まれるファイルリストから重複を取り除きます。 -
Gem
:: Specification # original _ platform -> String (18349.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。 -
Gem
:: Specification # platform -> String (18349.0) -
この Gem パッケージを使用できるプラットフォームを返します。
この Gem パッケージを使用できるプラットフォームを返します。 -
Gem
:: Specification # require _ paths -> [String] (18349.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストを返します。
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを返します。 -
Gem
:: Specification # requirements -> Array (18349.0) -
この Gem パッケージを動作させるのに必要な条件を返します。 これはユーザのためのシンプルな情報です。
この Gem パッケージを動作させるのに必要な条件を返します。
これはユーザのためのシンプルな情報です。 -
Gem
:: Specification # signing _ key -> String (18349.0) -
この Gem パッケージの署名に使用するキーを返します。
この Gem パッケージの署名に使用するキーを返します。