summaryrefslogtreecommitdiff
path: root/ext/digest/digest.gemspec
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@idaemons.org>2021-09-27 16:31:55 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-10-12 20:53:16 +0900
commitb245b67d9e325824f3869d839a16d06c6a1e8392 (patch)
tree547cc3f299d0edaca28a6036892ee0bcf71e919b /ext/digest/digest.gemspec
parent5e1d2c5c9770118713857499c28cd55a2c483631 (diff)
[ruby/digest] Place common parts in lib and engine specific parts under ext/**/lib
https://github.com/ruby/digest/commit/8d7496c3be
Diffstat (limited to 'ext/digest/digest.gemspec')
-rw-r--r--ext/digest/digest.gemspec55
1 files changed, 11 insertions, 44 deletions
diff --git a/ext/digest/digest.gemspec b/ext/digest/digest.gemspec
index f9357b0f23..151d1607b6 100644
--- a/ext/digest/digest.gemspec
+++ b/ext/digest/digest.gemspec
@@ -12,60 +12,27 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/ruby/digest"
spec.licenses = ["Ruby", "BSD-2-Clause"]
- spec.files = [
- "LICENSE.txt", "README.md",
-
- "ext/digest/defs.h", "ext/digest/digest.c", "ext/digest/digest.h",
- "ext/digest/digest_conf.rb", "ext/digest/extconf.rb",
- "ext/digest/lib/digest.rb",
-
- "ext/digest/bubblebabble/bubblebabble.c",
- "ext/digest/bubblebabble/extconf.rb",
-
- "ext/digest/md5/extconf.rb", "ext/digest/md5/md5.c",
- "ext/digest/md5/md5.h", "ext/digest/md5/md5cc.h",
- "ext/digest/md5/md5init.c",
-
- "ext/digest/rmd160/extconf.rb", "ext/digest/rmd160/rmd160.c",
- "ext/digest/rmd160/rmd160.h", "ext/digest/rmd160/rmd160init.c",
-
- "ext/digest/sha1/extconf.rb", "ext/digest/sha1/sha1.c",
- "ext/digest/sha1/sha1.h", "ext/digest/sha1/sha1cc.h",
- "ext/digest/sha1/sha1init.c",
-
- "ext/digest/sha2/extconf.rb", "ext/digest/sha2/lib/sha2.rb",
- "ext/digest/sha2/sha2.c", "ext/digest/sha2/sha2.h",
- "ext/digest/sha2/sha2cc.h", "ext/digest/sha2/sha2init.c",
-
- "ext/openssl/deprecation.rb",
- "ext/digest/test.sh",
+ spec.files = [
+ "LICENSE.txt",
+ "README.md",
+ *Dir["lib/digest{.rb,/**/*.rb}"],
]
spec.required_ruby_version = ">= 2.5.0"
spec.bindir = "exe"
spec.executables = []
- spec.require_paths = ["lib"]
if Gem::Platform === spec.platform and spec.platform =~ 'java' or RUBY_ENGINE == 'jruby'
spec.platform = 'java'
- spec.files.concat [
- "lib/digest.jar",
- "lib/digest/md5.rb",
- "lib/digest/sha1.rb",
- "lib/digest/sha2.rb",
- "lib/digest/rmd160.rb",
- "lib/digest/bubblebabble.rb"
- ]
+
+ spec.files += Dir["ext/java/**/*.{rb,java}"]
+ spec.require_paths = %w[lib ext/java/org/jruby/ext/digest/lib]
else
- spec.extensions = %w[
- ext/digest/extconf.rb
- ext/digest/bubblebabble/extconf.rb
- ext/digest/md5/extconf.rb
- ext/digest/rmd160/extconf.rb
- ext/digest/sha1/extconf.rb
- ext/digest/sha2/extconf.rb
- ]
+ spec.extensions = Dir["ext/digest/**/extconf.rb"]
+
+ spec.files += Dir["ext/digest/**/*.{rb,c,h,sh}"]
+ spec.require_paths = %w[lib]
end
spec.metadata["msys2_mingw_dependencies"] = "openssl"