-
Notifications
You must be signed in to change notification settings - Fork 7
/
win32ole.gemspec
35 lines (31 loc) · 1.24 KB
/
win32ole.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
source_version = ["", "ext/win32ole/"].find do |dir|
begin
break File.open(File.join(__dir__, "#{dir}win32ole.c")) {|f|
f.gets("\n#define WIN32OLE_VERSION ")
f.gets[/\s*"(.+)"/, 1]
}
rescue Errno::ENOENT
end
end
Gem::Specification.new do |spec|
spec.name = "win32ole"
spec.version = source_version
spec.authors = ["Masaki Suketa"]
spec.email = ["[email protected]"]
spec.summary = %q{Provides an interface for OLE Automation in Ruby}
spec.description = spec.summary
spec.homepage = "https://github.com/ruby/win32ole"
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
spec.licenses = ["Ruby", "BSD-2-Clause"]
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
pathspecs = %W[
:(exclude,literal)#{File.basename(__FILE__)}
:^/bin/ :^/test/ :^/rakelib/ :^/.git* :^/Gemfile* :^/Rakefile*
]
spec.files = IO.popen(%w[git ls-files -z --] + pathspecs, chdir: __dir__, err: IO::NULL, exception: false, &:read).split("\x0")
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.extensions = "ext/win32ole/extconf.rb"
spec.require_paths = ["lib"]
end