るりまサーチ

最速Rubyリファレンスマニュアル検索!
48件ヒット [1-48件を表示] (0.023秒)
トップページ > クエリ:spec[x] > クエリ:require_path=[x]

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. specification require_path=

検索結果

Gem::Specification#require_path=(path) (21100.0)

Gem::Specification#require_paths= の単数バージョンです。

...Gem::Specification#require_paths= の単数バージョンです。

@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。

@see Gem::Specification#require_paths=...

Gem::Specification.attribute_alias_singular(singular, plural) -> () (3006.0)

既に存在する複数形の属性の単数形バージョンを定義します。

...ttribute_alias_singular :require_path, :require_paths
# こう書くかわりに
s.require_paths = ['mylib']
# こう書くことができます。
s.require_path = 'mylib'

@param singular 属性名の単数形を指定します。

@param plural 属性名の複数形を指定します。...

rubygems (36.0)

RubyGems を扱うためのクラスやモジュールが定義されているライブラリです。

...ersion
gem command [arguments...] [options...]

例:
gem install rake
gem list --local
gem build package.gemspec
gem help install

さらにヘルプ:
gem help commands 全ての 'gem' コマンドをリストアップしま...
...作成する

作成した gemspec ファイルを元にして Gem パッケージを簡単に作成することができます。

$ gem build <gemspec filename>

最小の gemspec は以下のようになります。ビルドするために必要な最小の gemspec なので出来上がるの...
...= 'Hello Gem'
s.files = PKG_FILES.to_a
s.require_path = 'lib'
s.has_rdoc = false
s.extra_rdoc_files = ['README']
end

Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
//}

@see Gem::Specification, rake

=== gem コマンドの設定
* GEM_HOME G...

rake/gempackagetask (34.0)

Gem Spec ファイルを元にして Gem パッケージを作成するタスクを定義するためのライブラリです。

...Gem Spec ファイルを元にして Gem パッケージを作成するタスクを定義するためのライブラリです。

Gem パッケージだけでなく zip, tgz, tar.gz, tar.bz2 の各ファイルを作成する事もできます。

以下のタスクを定義します。

: PACKAGE_DI...
...す。

例:
require 'rubygems'

spec
= Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.summary = "Ruby based make-like utility."
s.name = 'rake'
s.version = PKG_VERSION
s.requirements << 'none'
s.require_path = 'lib'
s.autorequire = 'rake...
...'
s.files = PKG_FILES
s.description = <<EOF
Rake is a Make-like program implemented in Ruby. Tasks
and dependencies are specified in standard Ruby syntax.
EOF
end

Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end...