-
Notifications
You must be signed in to change notification settings - Fork 28
/
digest.gemspec
44 lines (34 loc) · 1.31 KB
/
digest.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
36
37
38
39
40
41
42
43
44
# coding: utf-8
# frozen_string_literal: true
Gem::Specification.new do |spec|
version_module = Module.new do
version_rb = File.join(__dir__, "lib/digest/version.rb")
module_eval(File.read(version_rb), version_rb)
end
spec.name = "digest"
spec.version = version_module::Digest::VERSION
spec.authors = ["Akinori MUSHA"]
spec.email = ["[email protected]"]
spec.summary = %q{Provides a framework for message digest libraries.}
spec.description = %q{Provides a framework for message digest libraries.}
spec.homepage = "https://github.com/ruby/digest"
spec.licenses = ["Ruby", "BSD-2-Clause"]
spec.files = [
"LICENSE.txt",
"README.md",
*Dir["lib/digest{.rb,/**/*.rb}"],
]
spec.required_ruby_version = ">= 2.5.0"
spec.bindir = "exe"
spec.executables = []
if Gem::Platform === spec.platform and spec.platform =~ 'java' or RUBY_ENGINE == 'jruby'
spec.platform = 'java'
spec.files += Dir["ext/java/**/*.{rb,java}", "lib/digest.jar"]
spec.require_paths = %w[lib ext/java/org/jruby/ext/digest/lib]
else
spec.extensions = Dir["ext/digest/**/extconf.rb"]
spec.files += Dir["ext/digest/**/{*.{rb,c,h,sh},depend}"]
spec.require_paths = %w[lib]
end
spec.metadata["msys2_mingw_dependencies"] = "openssl"
end