0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Ruby】.gemspecについて

Posted at

.gemspecについて

sample_gem.gemspec
Gem::Specification.new do |spec|
  spec.name = "sample_gem"
  spec.version = "Gemのバージョン"
  spec.authors = ["作成者"]
  spec.email = ["メールアドレス"]
  spec.homepage = "ホームページ"
  spec.summary = "要約"
  spec.license = "ライセンス"

  spec.metadata = {
    "bug_tracker_uri" => "https://github.com/username/sample_gem/issues",
    "documentation_uri" => "https://github.com/username/sample_gem",
    "label" => "Gem名",
    "rubygems_mfa_required" => "真偽値",
    "source_code_uri" => "https://github.com/username/sample_gem"
  }

  spec.signing_key = Gem.default_key_path
  spec.cert_chain = [Gem.default_cert_path]

  spec.required_ruby_version = "~> 3.1"
  spec.add_dependency "auto_injector", "~> 0.5"
  spec.add_dependency "cogger", "~> 0.2"
  spec.add_dependency "dry-container", "~> 0.10"
  spec.add_dependency "git_plus", "~> 1.4"
  spec.add_dependency "pastel", "~> 0.8"
  spec.add_dependency "refinements", "~> 9.6"
  spec.add_dependency "runcom", "~> 8.5"
  spec.add_dependency "spek", "~> 0.3"
  spec.add_dependency "zeitwerk", "~> 2.5"

  spec.bindir = "exe"
  spec.executables << "sample-gem"
  spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
  spec.files = Dir["*.gemspec", "lib/**/*"]
end

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?