Debian Codegraph @

ext/win32ole/win32ole.gemspec

raw
1 source_version = ["", "ext/win32ole/"].find do |dir|
2 begin
3 break File.open(File.join(__dir__, "#{dir}win32ole.c")) {|f|
4 f.gets("\n#define WIN32OLE_VERSION ")
5 f.gets[/\s*"(.+)"/, 1]
6 }
7 rescue Errno::ENOENT
8 end
9 end
10
11 Gem::Specification.new do |spec|
12 spec.name = "win32ole"
13 spec.version = source_version
14 spec.authors = ["Masaki Suketa"]
15 spec.email = ["[email protected]"]
16
17 spec.summary = %q{Provides an interface for OLE Automation in Ruby}
18 spec.description = spec.summary
19 spec.homepage = "https://github.com/ruby/win32ole"
20 spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
21 spec.licenses = ["Ruby", "BSD-2-Clause"]
22
23 spec.metadata["homepage_uri"] = spec.homepage
24 spec.metadata["source_code_uri"] = spec.homepage
25
26 spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
27 `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28 end
29 spec.bindir = "exe"
30 spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31 spec.require_paths = ["lib"]
32 end