summaryrefslogtreecommitdiff
path: root/ext/win32/win32-registry.gemspec
blob: 9bd57bd7d1368f5bc1092ec343162cb4ba10ec2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true
Gem::Specification.new do |spec|
  spec.name = "win32-registry"
  spec.version = "0.1.2"
  spec.authors = ["U.Nakamura"]
  spec.email = ["usa@garbagecollect.jp"]

  spec.summary = %q{Provides an interface to the Windows Registry in Ruby}
  spec.description = spec.summary
  spec.homepage = "https://github.com/ruby/win32-registry"
  spec.required_ruby_version = ">= 2.6.0"

  spec.metadata["homepage_uri"] = spec.homepage
  spec.metadata["source_code_uri"] = spec.homepage

  # Specify which files should be added to the gem when it is released.
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
  excludes = %w[
    bin/ test/ spec/ features/ rakelib/
    .git* .mailmap appveyor Rakefile Gemfile
  ]
  git_files = %w[git ls-files -z --] + excludes.map {|x| ":^/#{x}"}
  spec.files = IO.popen(git_files, chdir: __dir__, &:read).split("\x0")
  spec.bindir = "exe"
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
  spec.require_paths = ["lib"]

  spec.add_dependency "fiddle", "~> 1.0"
end