Debian Codegraph @

lib/shellwords.gemspec

raw
1 name = File.basename(__FILE__, ".gemspec")
2 version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
3 break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
4 /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
5 end rescue nil
6 end
7
8
9 Gem::Specification.new do |spec|
10 spec.name = name
11 spec.version = version
12 spec.authors = ["Akinori MUSHA"]
13 spec.email = ["[email protected]"]
14
15 spec.summary = %q{Manipulates strings with word parsing rules of UNIX Bourne shell.}
16 spec.description = %q{Manipulates strings with word parsing rules of UNIX Bourne shell.}
17 spec.homepage = "https://github.com/ruby/shellwords"
18 spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
19 spec.licenses = ["Ruby", "BSD-2-Clause"]
20
21 spec.metadata["homepage_uri"] = spec.homepage
22 spec.metadata["source_code_uri"] = spec.homepage
23
24 spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
25 `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26 end
27 spec.bindir = "exe"
28 spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29 spec.require_paths = ["lib"]
30 end