2020-10-15 16:01:43 +03:00
|
|
|
# coding: utf-8
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
spec.name = "digest"
|
2021-09-30 20:29:37 +03:00
|
|
|
spec.version = "3.1.0.pre2"
|
2020-10-15 16:01:43 +03:00
|
|
|
spec.authors = ["Akinori MUSHA"]
|
|
|
|
spec.email = ["knu@idaemons.org"]
|
|
|
|
|
|
|
|
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"
|
2021-07-07 15:29:57 +03:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2020-10-15 16:01:43 +03:00
|
|
|
|
2021-09-27 10:31:55 +03:00
|
|
|
spec.files = [
|
|
|
|
"LICENSE.txt",
|
|
|
|
"README.md",
|
|
|
|
*Dir["lib/digest{.rb,/**/*.rb}"],
|
2020-10-15 16:01:43 +03:00
|
|
|
]
|
2020-12-16 11:53:37 +03:00
|
|
|
|
2021-06-01 15:15:46 +03:00
|
|
|
spec.required_ruby_version = ">= 2.5.0"
|
2020-10-19 12:56:19 +03:00
|
|
|
|
2020-10-15 16:01:43 +03:00
|
|
|
spec.bindir = "exe"
|
2021-04-01 17:13:58 +03:00
|
|
|
spec.executables = []
|
2021-06-12 19:49:57 +03:00
|
|
|
|
|
|
|
if Gem::Platform === spec.platform and spec.platform =~ 'java' or RUBY_ENGINE == 'jruby'
|
|
|
|
spec.platform = 'java'
|
2021-09-27 10:31:55 +03:00
|
|
|
|
2021-09-30 18:22:07 +03:00
|
|
|
spec.files += Dir["ext/java/**/*.{rb,java}", "lib/digest.jar"]
|
2021-09-27 10:31:55 +03:00
|
|
|
spec.require_paths = %w[lib ext/java/org/jruby/ext/digest/lib]
|
2021-06-12 19:49:57 +03:00
|
|
|
else
|
2021-09-27 10:31:55 +03:00
|
|
|
spec.extensions = Dir["ext/digest/**/extconf.rb"]
|
|
|
|
|
|
|
|
spec.files += Dir["ext/digest/**/*.{rb,c,h,sh}"]
|
|
|
|
spec.require_paths = %w[lib]
|
2021-06-12 19:49:57 +03:00
|
|
|
end
|
|
|
|
|
2020-10-19 12:56:19 +03:00
|
|
|
spec.metadata["msys2_mingw_dependencies"] = "openssl"
|
2020-10-15 16:01:43 +03:00
|
|
|
end
|