mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
d23b3d9b7d
http://rubyci.s3.amazonaws.com/ubuntu1804/ruby-master/log/20211117T033003Z.log.html.gz ``` installing default gems from ext: /home/chkbuild/chkbuild/tmp/build/20211117T033003Z/lib/ruby/gems/3.1.0 /home/chkbuild/chkbuild/tmp/build/20211117T033003Z/ruby/ext/digest/lib/digest/version.rb:4: warning: already initialized constant Digest::VERSION /home/chkbuild/chkbuild/tmp/build/20211117T033003Z/ruby/.ext/common/digest/version.rb:4: warning: previous definition of VERSION was here ``` This hack is copied from ext/psych/psych.gemspec
44 lines
1.3 KiB
Ruby
44 lines
1.3 KiB
Ruby
# coding: utf-8
|
|
# frozen_string_literal: true
|
|
|
|
version_module = Module.new do
|
|
version_rb = File.join(__dir__, "lib/digest/version.rb")
|
|
module_eval(File.read(version_rb), version_rb)
|
|
end
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = "digest"
|
|
spec.version = version_module::Digest::VERSION
|
|
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"
|
|
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
|