Debian Codegraph @

ext/syslog/syslog.gemspec

raw
1 source_version = %w[. ext/syslog].find do |dir|
2 break $1 if File.foreach(File.join(__dir__, dir, "syslog.c")).any?(/^#define\s+SYSLOG_VERSION\s+"(.+)"/)
3 rescue Errno::ENOENT
4 end
5
6 Gem::Specification.new do |spec|
7 spec.name = "syslog"
8 spec.version = source_version
9 spec.authors = ["Akinori MUSHA"]
10 spec.email = ["[email protected]"]
11
12 spec.summary = %q{Ruby interface for the POSIX system logging facility.}
13 spec.description = %q{Ruby interface for the POSIX system logging facility.}
14 spec.homepage = "https://github.com/ruby/syslog"
15 spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
16 spec.licenses = ["Ruby", "BSD-2-Clause"]
17
18 spec.metadata["homepage_uri"] = spec.homepage
19 spec.metadata["source_code_uri"] = spec.homepage
20
21 spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22 `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23 end
24 spec.extensions = ["ext/syslog/extconf.rb"]
25 spec.bindir = "exe"
26 spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27 spec.require_paths = ["lib"]
28 end