diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-11-05 20:21:02 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-11-05 20:21:31 +0900 |
commit | b2ca183cc94c3de89c68d81d086c7884d142fb17 (patch) | |
tree | ecf84dab0d2d6fff8fba2c46196d25de911f95f6 /lib | |
parent | 4dba0c1a8e3cc08664872e637099c4e7d58d24d3 (diff) | |
download | ruby-b2ca183cc94c3de89c68d81d086c7884d142fb17.tar.gz |
Promote un.rb to the default gems. It's preparation for 3.0.0-preview2.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/un.gemspec | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/un.gemspec b/lib/un.gemspec new file mode 100644 index 0000000000..1b89ffa2fb --- /dev/null +++ b/lib/un.gemspec @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +Gem::Specification.new do |spec| + spec.name = "un" + spec.version = "0.1.0" + 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") + + 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" + spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] +end |