2020-11-05 14:21:02 +03:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-04-13 12:09:27 +03:00
|
|
|
name = File.basename(__FILE__, ".gemspec")
|
|
|
|
version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
|
|
|
|
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
|
|
|
|
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
|
|
|
|
end rescue nil
|
|
|
|
end
|
|
|
|
|
2020-11-05 14:21:02 +03:00
|
|
|
Gem::Specification.new do |spec|
|
2023-04-13 12:09:27 +03:00
|
|
|
spec.name = name
|
|
|
|
spec.version = version
|
2020-11-05 14:21:02 +03:00
|
|
|
spec.authors = ["WATANABE Hirofumi"]
|
|
|
|
spec.email = ["eban@ruby-lang.org"]
|
|
|
|
|
|
|
|
spec.summary = "Utilities to replace common UNIX commands"
|
|
|
|
spec.description = spec.summary
|
|
|
|
spec.homepage = "https://github.com/ruby/un"
|
|
|
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
2020-12-03 10:31:51 +03:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2020-11-05 14:21:02 +03:00
|
|
|
|
|
|
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
|
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
|
|
|
|
|
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
|
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
|
|
|
end
|
|
|
|
spec.bindir = "exe"
|
2021-04-06 12:41:35 +03:00
|
|
|
spec.executables = []
|
2020-11-05 14:21:02 +03:00
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
end
|