mirror of
https://github.com/samsonjs/wordexp.git
synced 2026-03-25 08:45:54 +00:00
37 lines
1.2 KiB
Ruby
37 lines
1.2 KiB
Ruby
require_relative 'lib/wordexp/version'
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = 'wordexp'
|
|
spec.version = Wordexp::VERSION
|
|
spec.authors = ['Sami Samhuri']
|
|
spec.email = ['sami@samhuri.net']
|
|
|
|
spec.summary = 'A Ruby gem for performing shell word expansion using wordexp'
|
|
spec.homepage = 'https://github.com/samsonjs/wordexp'
|
|
spec.license = 'MIT'
|
|
spec.required_ruby_version = '>= 3.0.0'
|
|
|
|
spec.metadata = {
|
|
'bug_tracker_uri' => 'https://github.com/samsonjs/wordexp/issues',
|
|
'changelog_uri' => 'https://github.com/samsonjs/wordexp/releases',
|
|
'source_code_uri' => 'https://github.com/samsonjs/wordexp',
|
|
'homepage_uri' => spec.homepage,
|
|
'rubygems_mfa_required' => 'true',
|
|
}
|
|
|
|
# Specify which files should be added to the gem when it is released.
|
|
files = `git ls-files -z`.split("\x0")
|
|
if files.empty?
|
|
glob = %w[LICENSE.txt README.md exe/**/* lib/**/* ext/**/*]
|
|
files = Dir.glob(glob).reject do |f|
|
|
File.directory?(f) ||
|
|
f.end_with?('.bundle', '.o', '.so') ||
|
|
f.end_with?('Makefile')
|
|
end
|
|
end
|
|
spec.files = files
|
|
spec.bindir = 'exe'
|
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
spec.extensions = %w[ext/wordexp_ext/extconf.rb]
|
|
spec.require_paths = %w[ext lib]
|
|
end
|