ライブラリ
- ビルトイン (3)
-
rake
/ gempackagetask (3) -
rubygems
/ commands / dependency _ command (1) -
rubygems
/ commands / specification _ command (1) -
rubygems
/ commands / which _ command (1) -
rubygems
/ dependency (1) -
rubygems
/ dependency _ installer (2) -
rubygems
/ dependency _ list (6) -
rubygems
/ doc _ manager (2) -
rubygems
/ exceptions (1) -
rubygems
/ format (2) -
rubygems
/ gem _ path _ searcher (5) -
rubygems
/ indexer (4) -
rubygems
/ installer (3) -
rubygems
/ old _ format (2) -
rubygems
/ package / tar _ input (2) -
rubygems
/ package / tar _ output (1) -
rubygems
/ platform (1) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ source _ index (9) -
rubygems
/ source _ info _ cache (4) -
rubygems
/ specification (121) -
rubygems
/ uninstaller (7) -
rubygems
/ validator (1)
クラス
- Array (1)
-
Gem
:: Commands :: DependencyCommand (1) -
Gem
:: Commands :: WhichCommand (1) -
Gem
:: Dependency (1) -
Gem
:: DependencyInstaller (2) -
Gem
:: DependencyList (6) -
Gem
:: DocManager (2) -
Gem
:: Format (2) -
Gem
:: GemPathSearcher (5) -
Gem
:: Indexer (4) -
Gem
:: Installer (3) -
Gem
:: OldFormat (2) -
Gem
:: Package :: TarInput (2) -
Gem
:: Package :: TarOutput (1) -
Gem
:: Platform (1) -
Gem
:: RemoteFetcher (1) -
Gem
:: SourceIndex (9) -
Gem
:: SourceInfoCache (4) -
Gem
:: Specification (120) -
Gem
:: Uninstaller (7) -
Gem
:: Validator (1) -
Rake
:: GemPackageTask (3) - String (1)
モジュール
- Process (1)
キーワード
-
CURRENT
_ SPECIFICATION _ VERSION (1) - InvalidSpecificationException (1)
-
MARSHAL
_ FIELDS (1) -
NEWS for Ruby 2
. 0 . 0 (1) -
NONEXISTENT
_ SPECIFICATION _ VERSION (1) - RUBY (1)
-
SPECIFICATION
_ VERSION _ HISTORY (1) - Specification (1)
- SpecificationCommand (1)
- TODAY (1)
- TYPES (1)
-
_ dump (1) -
_ load (1) - abbreviate (1)
- add (1)
-
add
_ bindir (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ gem _ contents (1) -
add
_ runtime _ dependency (1) -
add
_ spec (1) -
array
_ attribute (1) -
array
_ attributes (1) -
ask
_ if _ ok (1) -
assign
_ defaults (1) - attribute (1)
-
attribute
_ alias _ singular (1) -
attribute
_ defaults (1) -
attribute
_ names (1) - attributes (1)
- autorequire (1)
- autorequire= (1)
- bindir (1)
- bindir= (1)
-
cert
_ chain (1) -
cert
_ chain= (1) -
clock
_ gettime (1) -
collect
_ specs (1) -
compact
_ specs (1) - date (1)
- date= (1)
-
default
_ executable (1) -
default
_ executable= (1) -
default
_ value (1) - dependencies (1)
-
dependencies
_ ok? (1) -
dependency
_ order (1) -
dependent
_ gems (1) - description (1)
- description= (1)
-
development
_ dependencies (1) - download (1)
- email (1)
- email= (1)
-
ensure
_ dependency (1) - executable (1)
- executable= (1)
- executables (1)
- executables= (1)
- extensions (1)
- extensions= (1)
-
extra
_ rdoc _ files (1) -
extra
_ rdoc _ files= (1) -
file
_ name (1) - files (1)
- files= (1)
- find (1)
-
find
_ all (1) -
find
_ gems _ with _ sources (1) -
find
_ name (2) -
find
_ spec _ by _ name _ and _ version (1) -
from
_ yaml (1) -
full
_ gem _ path (1) -
full
_ name (1) -
gem
_ paths (1) -
gem
_ spec (1) -
gem
_ spec= (1) -
generate
_ rdoc (1) -
generate
_ ri (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) - install (1)
-
installation
_ path (1) -
latest
_ specs (1) -
lib
_ files (1) - list (1)
- load (1)
-
load
_ gemspec (1) -
load
_ specification (1) - loaded= (1)
- loaded? (1)
-
loaded
_ from (1) -
loaded
_ from= (1) -
mark
_ version (1) -
matching
_ file? (1) -
matching
_ files (1) - name (1)
- name= (1)
-
net
/ http (1) - new (2)
- normalize (1)
-
normalize
_ yaml _ input (1) - ok? (1)
-
ok
_ to _ remove? (1) -
original
_ name (1) -
original
_ platform (1) -
original
_ platform= (1) - outdated (1)
-
overwrite
_ accessor (1) - pack (1)
- pack テンプレート文字列 (1)
-
path
_ ok? (1) - platform (1)
- platform= (1)
-
print
_ dependencies (1) -
rake
/ gempackagetask (1) -
read
_ only (1) - remove (1)
-
remove
_ by _ name (1) -
remove
_ executables (1) -
remove
_ spec (1) -
require
_ path (1) -
require
_ path= (1) -
require
_ paths (1) -
require
_ paths= (1) -
required
_ attribute (1) -
required
_ attribute? (1) -
required
_ attributes (1) -
required
_ ruby _ version (1) -
required
_ ruby _ version= (1) -
required
_ rubygems _ version (1) -
required
_ rubygems _ version= (1) - requirements (1)
- requirements= (1)
-
rubygems
/ commands / specification _ command (1) -
rubygems
/ specification (1) -
rubygems
_ version (1) -
rubygems
_ version= (1) -
runtime
_ dependencies (1) - sanitize (1)
-
satisfies
_ requirement? (1) - search (3)
-
search
_ with _ source (2) -
signing
_ key (1) -
signing
_ key= (1) - spec (4)
- spec= (2)
-
specification
_ version (1) -
specification
_ version= (1) - summary (1)
- summary= (1)
-
test
_ file (1) -
test
_ file= (1) -
test
_ files (1) -
test
_ files= (1) -
test
_ suite _ file (1) -
test
_ suite _ file= (1) -
to
_ ruby (1) -
uninstall
_ gem (1) -
unit
_ test (1) - unpack (1)
- validate (1)
- version (1)
- version= (1)
- yaml (1)
-
yaml
_ initialize (1)
検索結果
先頭5件
-
Gem
:: SourceIndex # specification(full _ name) -> Gem :: Specification | nil (73255.0) -
指定された名前の Gem::Specification オブジェクトを返します。
指定された名前の Gem::Specification オブジェクトを返します。
@param full_name Gem のフルネームを指定します。 -
Gem
:: Specification # specification _ version=(version) (54640.0) -
この Gem パッケージに用いられている gemspec のバージョンをセットします。
この Gem パッケージに用いられている gemspec のバージョンをセットします。
@param version gemspec のバージョンを指定します。
@see Gem::Specification::SPECIFICATION_VERSION_HISTORY -
Gem
:: Specification # specification _ version -> Integer (54604.0) -
この Gem パッケージに用いられている gemspec のバージョンを返します。
この Gem パッケージに用いられている gemspec のバージョンを返します。 -
Gem
:: Specification :: CURRENT _ SPECIFICATION _ VERSION -> 2 (54604.0) -
現在の gemspec のバージョンを表す定数です。
現在の gemspec のバージョンを表す定数です。 -
Gem
:: Specification :: NONEXISTENT _ SPECIFICATION _ VERSION -> -1 (54604.0) -
明確に指定されていない時の gemspec のバージョンを表します。
明確に指定されていない時の gemspec のバージョンを表します。 -
Gem
:: Specification :: SPECIFICATION _ VERSION _ HISTORY -> Hash (54604.0) -
gemspec ファイルのバージョンの歴史を表す定数です。
gemspec ファイルのバージョンの歴史を表す定数です。 -
Gem
:: InvalidSpecificationException (54001.0) -
不正な gemspec に関する例外です。
不正な gemspec に関する例外です。 -
Gem
:: Package :: TarInput # metadata -> Gem :: Specification (45904.0) -
メタデータを返します。
メタデータを返します。 -
Gem
:: SourceIndex . load _ specification(file _ name) -> Gem :: Specification | nil (37255.0) -
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして
Gem::Specification のインスタンスを返します。
@param file_name ファイル名を指定します。
@raise SignalException gemspec をロードしているときに発生します。
@raise SystemExit gemspec をロードしているときに発生します。 -
Gem
:: Specification # has _ test _ suite? -> bool (36649.0) -
このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。
このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。 -
Gem
:: Specification # test _ suite _ file -> String (36649.0) -
この属性は非推奨です。 Gem::Specification#test_files を使用してください。
この属性は非推奨です。 Gem::Specification#test_files を使用してください。 -
Gem
:: Specification # test _ suite _ file=(file) (36649.0) -
この属性は非推奨です。 Gem::Specification#test_files= を使用してください。
この属性は非推奨です。 Gem::Specification#test_files= を使用してください。
@param file テストスイートのファイルを指定します。 -
Gem
:: Specification # rdoc _ options=(options) (36601.0) -
API ドキュメントを生成するときに rdoc コマンドに与えるオプションをセットします。
API ドキュメントを生成するときに rdoc コマンドに与えるオプションをセットします。
@param options API ドキュメントを生成するときに rdoc コマンドに与えるオプションを指定します。 -
Gem
:: Specification # description -> String (36301.0) -
Gem パッケージの説明を返します。
Gem パッケージの説明を返します。 -
Gem
:: Specification # description=(desc) (36301.0) -
Gem パッケージの説明をセットします。
Gem パッケージの説明をセットします。
@param desc パッケージの詳細を説明する文章を指定します。 -
Gem
:: Specification # installation _ path -> String (36301.0) -
この Gem パッケージのインストール先のパスを返します。
この Gem パッケージのインストール先のパスを返します。 -
Gem
:: Specification # rdoc _ options -> [String] (36301.0) -
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。 -
Gem
:: Specification # runtime _ dependencies -> Array (36301.0) -
この Gem パッケージが依存している Gem パッケージのリストを返します。
この Gem パッケージが依存している Gem パッケージのリストを返します。 -
Gem
:: Specification # satisfies _ requirement?(dependency) -> bool (36301.0) -
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
依存関係を満たす場合は真を返します。そうでない場合は偽を返します。
@param dependency チェックしたい依存関係を指定します。
@see Gem::Dependency -
Gem
:: Specification # yaml _ initialize (36301.0) -
@todo
@todo -
rubygems
/ commands / specification _ command (36037.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
/ specification (36037.0) -
Gem パッケージのメタデータを扱うためのライブラリです。
Gem パッケージのメタデータを扱うためのライブラリです。
通常 gemspec ファイルや Rakefile でメタデータを定義します。
例:
spec = Gem::Specification.new do |s|
s.name = 'rfoo'
s.version = '1.0'
s.summary = 'Example gem specification'
...
end -
Gem
:: Commands :: SpecificationCommand (36001.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのクラスです。
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのクラスです。 -
Gem
:: Specification (36001.0) -
Gem パッケージのメタデータを扱うためのクラスです。
Gem パッケージのメタデータを扱うためのクラスです。 -
Gem
:: Specification # require _ path=(path) (27667.0) -
Gem::Specification#require_paths= の単数バージョンです。
Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths= -
Gem
:: Installer # install -> Gem :: Specification (27622.0) -
Gem をインストールします。
Gem をインストールします。
以下のディレクトリ構造で Gem をインストールします。
@gem_home/
cache/<gem-version>.gem #=> インストールした Gem のコピー
gems/<gem-version>/... #=> インストール時に展開したファイル
specifications/<gem-version>.gemspec #=> gemspec ファイル
@return ロードされた Gem::Specification のインスタンスを返します。
@r... -
Gem
:: Specification # date=(date) (27601.0) -
@param date 日付をセットします。デフォルトは今日です。
@param date 日付をセットします。デフォルトは今日です。 -
Gem
:: Specification # executable=(executable) (27601.0) -
実行可能ファイル名をセットします。
実行可能ファイル名をセットします。
@param executable 実行可能ファイル名を指定します。 -
Gem
:: Specification # executables=(executables) (27601.0) -
実行可能ファイル名のリストをセットします。
実行可能ファイル名のリストをセットします。
@param executables 実行可能ファイル名のリストを指定します。 -
Gem
:: Specification # extra _ rdoc _ files -> [String] (27601.0) -
RDoc でドキュメントを作成する際に使用する特別なファイルのリストを返します。
RDoc でドキュメントを作成する際に使用する特別なファイルのリストを返します。 -
Gem
:: Specification # original _ platform=(platform) (27601.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
@param platform プラットフォームを指定します。 -
Gem
:: Specification # platform=(platform) (27601.0) -
この Gem パッケージを使用できるプラットフォームをセットします。
この Gem パッケージを使用できるプラットフォームをセットします。
@param platform この Gem パッケージを使用できるプラットフォームを指定します。
デフォルトは Gem::Platform::RUBY です。
@see Gem::Platform::RUBY -
Gem
:: Specification # require _ paths=(paths) (27601.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。
@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを指定します。 -
Gem
:: Specification # require _ path -> String (27367.0) -
Gem::Specification#require_paths の単数バージョンです。
Gem::Specification#require_paths の単数バージョンです。
@see Gem::Specification#require_paths -
Gem
:: Specification . array _ attribute(name) -> () (27367.0) -
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
@param name 属性の名前を指定します。
@see Gem::Specification.attribute -
Gem
:: Uninstaller # remove _ executables(gemspec) (27367.0) -
与えられた Gem::Specification に対応する実行ファイルを削除します。
与えられた Gem::Specification に対応する実行ファイルを削除します。
@param gemspec アンインストール指定されている Gem の Gem::Specification を指定します。 -
Gem
:: Specification # test _ file -> String (27349.0) -
Gem::Specification#test_files の単数バージョンです。
Gem::Specification#test_files の単数バージョンです。 -
Gem
:: Specification # test _ file=(file) (27349.0) -
Gem::Specification#test_files= の単数バージョンです。
Gem::Specification#test_files= の単数バージョンです。 -
Gem
:: Specification . list -> Array (27349.0) -
実行中の Ruby のインスタンスで作成された Gem::Specification のインスタンスを返します。
実行中の Ruby のインスタンスで作成された Gem::Specification のインスタンスを返します。 -
Gem
:: Specification # dependent _ gems -> Array (27337.0) -
この Gem に依存している全ての Gem の情報のリストを返します。
この Gem に依存している全ての Gem の情報のリストを返します。
それぞれのエントリは配列になっており、各要素は以下のようになっています。
(0) Gem::Specification
(1) Gem::Dependency
(2) Gem::Specification の配列 -
Gem
:: Specification # add _ development _ dependency(gem , *requirements) -> [Gem :: Dependency] (27319.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 _ runtime _ dependency(gem , *requirements) -> [Gem :: Dependency] (27319.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 . required _ attribute(name , default = nil) -> () (27319.0) -
必須の属性を作成します。
必須の属性を作成します。
@param name 属性名を指定します。
@param default デフォルト値を指定します。
@see Gem::Specification.attribute -
Gem
:: Uninstaller # uninstall _ gem(spec , specs) (27319.0) -
与えられた spec に対応する Gem をアンインストールします。
与えられた spec に対応する Gem をアンインストールします。
@param spec アンインストール指定されている Gem の Gem::Specification を指定します。
@param specs アンインストールする Gem のリストを指定します。
このパラメータは破壊的に変更されます。 -
Gem
:: Specification # assign _ defaults -> () (27301.0) -
全ての属性にデフォルト値をセットします。
全ての属性にデフォルト値をセットします。
これはアクセサメソッドを使用して行われるので、ブロックを用いた特別な初期化も
きちんと実行されます。セットされる値はデフォルト値のコピーです。 -
Gem
:: Specification # author -> String (27301.0) -
作成者の名前を返します。
作成者の名前を返します。 -
Gem
:: Specification # author=(name) (27301.0) -
作成者の名前をセットします。
作成者の名前をセットします。 -
Gem
:: Specification # authors -> Array (27301.0) -
作成者の名前の配列を返します。
作成者の名前の配列を返します。 -
Gem
:: Specification # authors=(names) (27301.0) -
作成者の名前の配列をセットします。
作成者の名前の配列をセットします。 -
Gem
:: Specification # autorequire -> String (27301.0) -
非推奨の属性です。
非推奨の属性です。 -
Gem
:: Specification # autorequire=(lib) (27301.0) -
非推奨の属性です。
非推奨の属性です。 -
Gem
:: Specification # cert _ chain -> Array (27301.0) -
@todo
@todo -
Gem
:: Specification # cert _ chain=(arr) (27301.0) -
@todo
@todo
@param arr デフォルトは空の配列です。 -
Gem
:: Specification # date -> Time (27301.0) -
日付を返します。
日付を返します。 -
Gem
:: Specification # default _ executable -> String | nil (27301.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。 -
Gem
:: Specification # default _ executable=(executable) (27301.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
@param executable 実行ファイルを指定します。 -
Gem
:: Specification # development _ dependencies -> Array (27301.0) -
この Gem が依存している Gem のリストを返します。
この Gem が依存している Gem のリストを返します。 -
Gem
:: Specification # executable -> String (27301.0) -
実行可能ファイル名を返します。
実行可能ファイル名を返します。 -
Gem
:: Specification # executables -> [String] (27301.0) -
実行可能ファイル名のリストを返します。
実行可能ファイル名のリストを返します。 -
Gem
:: Specification # extensions -> [String] (27301.0) -
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを返します。
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを返します。 -
Gem
:: Specification # extensions=(paths) (27301.0) -
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
@param paths 拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを指定します。 -
Gem
:: Specification # extra _ rdoc _ files=(paths) (27301.0) -
RDoc でドキュメントを作成する際に使用する特別なファイルのリストをセットします。
RDoc でドキュメントを作成する際に使用する特別なファイルのリストをセットします。
@param paths RDoc でドキュメントを作成する際に使用する特別なファイルのリストを指定します。 -
Gem
:: Specification # full _ gem _ path -> String (27301.0) -
この Gem パッケージへのフルパスを返します。
この Gem パッケージへのフルパスを返します。 -
Gem
:: Specification # has _ unit _ tests? -> bool (27301.0) -
この Gem パッケージがユニットテストを含むかどうか返します。
この Gem パッケージがユニットテストを含むかどうか返します。
真の場合はユニットテストを含みます。そうでない場合は偽を返します。 -
Gem
:: Specification # original _ platform -> String (27301.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。 -
Gem
:: Specification # platform -> String (27301.0) -
この Gem パッケージを使用できるプラットフォームを返します。
この Gem パッケージを使用できるプラットフォームを返します。 -
Gem
:: Specification # post _ install _ message -> String (27301.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
Gem
:: Specification # post _ install _ message=(message) (27301.0) -
インストール完了後に表示するメッセージをセットします。
インストール完了後に表示するメッセージをセットします。
@param message メッセージを指定します。 -
Gem
:: Specification # require _ paths -> [String] (27301.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストを返します。
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを返します。 -
Gem
:: Specification # requirements -> Array (27301.0) -
この Gem パッケージを動作させるのに必要な条件を返します。 これはユーザのためのシンプルな情報です。
この Gem パッケージを動作させるのに必要な条件を返します。
これはユーザのためのシンプルな情報です。 -
Gem
:: Specification # requirements=(informations) (27301.0) -
この Gem パッケージを動作させるのに必要な条件をセットします。 これはユーザのためのシンプルな情報をセットします。
この Gem パッケージを動作させるのに必要な条件をセットします。
これはユーザのためのシンプルな情報をセットします。
@param informations 情報を文字列の配列で指定します。 -
Gem
:: Specification # test _ files -> [String] (27301.0) -
ユニットテストのファイルのリストを返します。
ユニットテストのファイルのリストを返します。 -
Gem
:: Specification # test _ files=(files) (27301.0) -
ユニットテストのファイルのリストをセットします。
ユニットテストのファイルのリストをセットします。
@param files ユニットテストのファイルのリストを指定します。 -
Gem
:: Specification # to _ ruby -> String (27301.0) -
自身を再現するための Ruby スクリプトを文字列で返します。
自身を再現するための Ruby スクリプトを文字列で返します。
省略されている値はデフォルト値が使用されます。 -
Gem
:: Specification # validate -> bool (27301.0) -
必須属性のチェックと自身の基本的な正当性チェックを行います。
必須属性のチェックと自身の基本的な正当性チェックを行います。
チェックにパスした場合は常に true を返します。そうでない場合は例外が発生します。
@raise Gem::InvalidSpecificationException チェックにパスしなかった場合に発生します。 -
Gem
:: Specification . array _ attributes -> Array (27301.0) -
@@array_attributes の複製を返します。
@@array_attributes の複製を返します。
@see Object#dup -
Gem
:: Specification . attribute(name) -> () (27301.0) -
デフォルト値を指定したアクセサを定義するために使用します。
デフォルト値を指定したアクセサを定義するために使用します。
以下の副作用があります。
* クラス変数 @@attributes, @@default_value を変更します。
* 通常の属性書き込みメソッドを定義します。
* デフォルト値を持つ属性読み取りメソッドのように振る舞うメソッドを定義します。 -
Gem
:: Specification . attribute _ alias _ singular(singular , plural) -> () (27301.0) -
既に存在する複数形の属性の単数形バージョンを定義します。
既に存在する複数形の属性の単数形バージョンを定義します。
これは単に一つの引数を受け取りそれを配列に追加するようなヘルパーメソッドを定義するということです。
例:
# このように定義すると
attribute_alias_singular :require_path, :require_paths
# こう書くかわりに
s.require_paths = ['mylib']
# こう書くことができます。
s.require_path = 'mylib'
@param singular 属性名の単数形を指定します。
@param plural 属性名の複数形を... -
Gem
:: Specification . attribute _ defaults -> Array (27301.0) -
@todo
@todo
@@attributes の複製を返します。 -
Gem
:: Specification . attribute _ names -> Array (27301.0) -
属性名の配列を返します。
属性名の配列を返します。 -
Gem
:: Specification . attributes(*args) -> () (27301.0) -
複数の属性を一度に作成するために使用します。
複数の属性を一度に作成するために使用します。
各属性のデフォルト値は nil になります。
@param args 属性名を一つ以上指定します。 -
Gem
:: Specification . default _ value(name) -> object (27301.0) -
与えられた名前の属性のデフォルト値を返します。
与えられた名前の属性のデフォルト値を返します。
@param name 属性名を指定します。 -
Gem
:: Specification . normalize _ yaml _ input(input) -> String (27301.0) -
YAML 形式の gemspec を正しくフォーマットします。
YAML 形式の gemspec を正しくフォーマットします。
@param input 文字列か IO オブジェクトを指定します。 -
Gem
:: Specification . overwrite _ accessor(name) { . . . } -> () (27301.0) -
呼び出し時に特別な動作をする必要のある属性があります。 このメソッドはそういうことを可能にします。
呼び出し時に特別な動作をする必要のある属性があります。
このメソッドはそういうことを可能にします。
ブロックパラメータは任意のものを使用することができます。
@param name 属性名を指定します。 -
Gem
:: Specification . required _ attribute?(name) -> bool (27301.0) -
必須属性であれば真を返します。
必須属性であれば真を返します。
@param name 属性名を指定します。 -
Gem
:: Specification . required _ attributes -> Array (27301.0) -
必須属性のリストを返します。
必須属性のリストを返します。 -
Gem
:: Specification :: TODAY -> Time (27301.0) -
本日の日付を返します。
本日の日付を返します。 -
Gem
:: Indexer # sanitize(spec) -> Gem :: Specification (18904.0) -
与えられたスペックの詳細を表す属性をサニタイズします。
与えられたスペックの詳細を表す属性をサニタイズします。
non-ASCII の文字列は、サイトインデックスを文字化けさせることがあります。
non-ASCII の文字列を XML エンティティに置換します。 -
Gem
:: Indexer # abbreviate(spec) -> Gem :: Specification (18670.0) -
ダウンロードを速くするために与えられた Gem::Specification の持つデータを 小さくします。
ダウンロードを速くするために与えられた Gem::Specification の持つデータを
小さくします。
@param spec Gem::Specification を指定します。 -
Gem
:: GemPathSearcher # init _ gemspecs -> [Gem :: Specification] (18652.0) -
インストール済みの Gem の Gem::Specification のリストを返します。
インストール済みの Gem の Gem::Specification のリストを返します。
リストはアルファベット順かつバージョンの新しい順にソートされています。 -
Gem
:: Specification . from _ yaml(input) -> Gem :: Specification (18622.0) -
YAML ファイルから gemspec をロードします。
YAML ファイルから gemspec をロードします。
YAML ファイルから Gem::Specification をロードすると、通常の Ruby オブジェクトの
初期化ルーチン (#initialize) を通りません。このメソッドは初期化ルーチンの一部を実行し、
gemspec のバージョンチェックも行います。
@param input 文字列か IO オブジェクトを指定します。 -
Gem
:: Package :: TarOutput # add _ gem _ contents {|data _ tar _ writer| . . . } -> self (18619.0) -
gem-format な tar ファイル内の data.tar.gz にファイルを追加するためのメ ソッドです。
gem-format な tar ファイル内の data.tar.gz にファイルを追加するためのメ
ソッドです。
ブロックには data.tar.gz に紐付いた Gem::Package::TarWriter のイ
ンスタンスが渡されます。このブロックパラメータには
Gem::Specification を追加するための metadata, metadata= という特
異メソッドが追加されています。 -
Gem
:: Specification . _ load(str) -> Gem :: Specification (18604.0) -
マーシャルされたデータをロードするためのメソッドです。
マーシャルされたデータをロードするためのメソッドです。
@param str マーシャルされたデータを指定します。 -
Gem
:: Specification . load(filename) -> Gem :: Specification (18604.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename gemspec のファイル名を指定します。
@raise StandardError gemspec ファイル内でこのメソッドを呼んでいる場合に発生します。 -
Gem
:: DependencyList # ok _ to _ remove?(full _ name) -> bool (18385.0) -
与えられた名前を持つ Gem::Specification を自身から削除しても OK な場合は真を返します。 そうでない場合は、偽を返します。
与えられた名前を持つ Gem::Specification を自身から削除しても OK な場合は真を返します。
そうでない場合は、偽を返します。
与えられた名前を持つ Gem::Specification を自身から削除すると、
依存関係を壊してしまう場合が、それを削除してはいけない場合です。
@param full_name バージョンを含むフルネームで Gem の名前を指定します。
@see Gem::Specification#full_name -
Gem
:: Commands :: WhichCommand # gem _ paths(spec) -> Array (18367.0) -
与えられた Gem::Specification のインスタンスからその Gem が require するファイルのあるディレクトリをまとめて返します。
与えられた Gem::Specification のインスタンスからその Gem が
require するファイルのあるディレクトリをまとめて返します。
@param spec Gem::Specification のインスタンスを指定します。 -
Gem
:: SourceInfoCache # search _ with _ source(pattern , only _ platform = false , all = false) -> Array (18367.0) -
与えられた条件を満たす Gem::Specification と URL のリストを返します。
与えられた条件を満たす Gem::Specification と URL のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param only_platform 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。
@param all 真を指定するとキャッシュを更新してから検索を実行します。
@return 第一要素を Gem::Specification、第二要素を取得元の URL とする配列を要素とする配列を返します。 -
Process
. # clock _ gettime(clock _ id , unit=:float _ second) -> Float | Integer (18355.0) -
POSIX の clock_gettime() 関数の時間を返します。
POSIX の clock_gettime() 関数の時間を返します。
例:
p Process.clock_gettime(Process::CLOCK_MONOTONIC) #=> 896053.968060096
@param clock_id クロックの種類を以下の定数のいずれかで指定します。
サポートされている定数は OS やバージョンに依存します。
: Process::CLOCK_REALTIME
SUSv2 to 4, Linux 2.5.63, FreeBSD 3.0, NetBSD 2.0, OpenBSD 2.1, macOS... -
Gem
:: DependencyInstaller # find _ gems _ with _ sources(dep) -> Array (18349.0) -
与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを 返します。
与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを
返します。
Gem はローカル (Dir.pwd) とリモート (Gem.sources) の両方から検索します。
結果は、バージョンの新しい順が先にきます。また、ローカルの Gem も先にきます。
@param dep Gem::Dependency のインスタンスを指定します。 -
Gem
:: DocManager # generate _ rdoc (18349.0) -
自身にセットされている Gem::Specification の情報をもとに RDoc のドキュメントを生成します。
自身にセットされている Gem::Specification の情報をもとに RDoc のドキュメントを生成します。