12件ヒット
[1-12件を表示]
(0.015秒)
検索結果
先頭1件
-
rubygems (37.0)
-
RubyGems を扱うためのクラスやモジュールが定義されているライブラリです。
...使用方法:
gem -h/--help
gem -v/--version
gem command [arguments...] [options...]
例:
gem install rake
gem list --local
gem build package.gemspec
gem help install
さらにヘルプ:
gem help commands......イブラリの例に加えて executables を追加しています。
また、以下のように Rakefile にタスクを追加することもできます。
//emlist[gemspec][ruby]{
require 'rake/gempackagetask'
PKG_FILES = FileList[
'lib/hello.rb',
'spec/*'
]
spec = Gem::Specification.new......o_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 Gem のホームディレクトリ
* GEM_PATH Gem...