diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-10-19 18:56:19 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-10-19 18:56:19 +0900 |
commit | 3f97940252a37db6e601b4bb1aa1e87204f769df (patch) | |
tree | 6f113a35626019341bb9a66c60aef80ea9056d3a | |
parent | 708413807ae958afb79257b18475424e0a8a4a56 (diff) | |
download | ruby-3f97940252a37db6e601b4bb1aa1e87204f769df.tar.gz |
Followed up with 708413807ae958afb79257b18475424e0a8a4a56
* Added sync task for digest
* Update doc/* for default gems
* Update the latest version of gemspec
-rw-r--r-- | doc/maintainers.rdoc | 5 | ||||
-rw-r--r-- | doc/standard_library.rdoc | 2 | ||||
-rw-r--r-- | ext/digest/digest.gemspec | 13 | ||||
-rw-r--r-- | tool/sync_default_gems.rb | 9 |
4 files changed, 25 insertions, 4 deletions
diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc index 8b30971463..ef3fa932fc 100644 --- a/doc/maintainers.rdoc +++ b/doc/maintainers.rdoc @@ -56,8 +56,6 @@ Zachary Scott (zzak) Koichi Sasada (ko1) [ext/coverage] Yusuke Endoh (mame) -[ext/digest, ext/digest/*] - Akinori MUSHA (knu) [ext/fiber] Koichi Sasada (ko1) [ext/monitor] @@ -112,6 +110,9 @@ Zachary Scott (zzak) [lib/did_you_mean.rb] Yuki Nishijima (yuki24) https://github.com/ruby/did_you_mean +[ext/digest, ext/digest/*] + Akinori MUSHA (knu) + https://github.com/ruby/digest [lib/drb.rb, lib/drb/*] Masatoshi SEKI (seki) https://github.com/ruby/drb diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc index 7d1bff8eb4..75ffaf5d5c 100644 --- a/doc/standard_library.rdoc +++ b/doc/standard_library.rdoc @@ -17,7 +17,6 @@ un.rb:: Utilities to replace common UNIX commands == Extensions Coverage:: Provides coverage measurement for Ruby -Digest:: Provides a framework for message digest libraries Monitor:: Provides an object or module to use safely by more than one thread objspace:: Extends ObjectSpace module to add methods for internal statistics PTY:: Creates and manages pseudo terminals @@ -37,6 +36,7 @@ CGI:: Support for the Common Gateway Interface protocol CSV:: Provides an interface to read and write CSV files and data Delegator:: Provides three abilities to delegate method calls to an object DidYouMean:: "Did you mean?" experience in Ruby +Digest:: Provides a framework for message digest libraries DRb:: Distributed object system for Ruby English.rb:: Require 'English.rb' to reference global variables with less cryptic names ERB:: An easy to use but powerful templating system for Ruby diff --git a/ext/digest/digest.gemspec b/ext/digest/digest.gemspec index 06da1c711b..2b517f0163 100644 --- a/ext/digest/digest.gemspec +++ b/ext/digest/digest.gemspec @@ -3,7 +3,7 @@ Gem::Specification.new do |spec| spec.name = "digest" - spec.version = "0.1.0" + spec.version = "1.0.0" spec.authors = ["Akinori MUSHA"] spec.email = ["knu@idaemons.org"] @@ -24,9 +24,20 @@ Gem::Specification.new do |spec| "ext/digest/sha2/sha2.c", "ext/digest/sha2/sha2.h", "ext/digest/sha2/sha2cc.h", "ext/digest/sha2/sha2init.c", "ext/digest/sha2/sha2ossl.h", "ext/digest/test.sh", "ext/openssl/deprecation.rb", "lib/digest.rb" ] + spec.required_ruby_version = ">= 2.3.0" + spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] + 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.metadata["msys2_mingw_dependencies"] = "openssl" spec.add_development_dependency "bundler" spec.add_development_dependency "rake" diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 57aa347566..86ddfc4fab 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -81,6 +81,7 @@ REPOSITORIES = { prettyprint: "ruby/prettyprint", drb: "ruby/drb", pathname: "ruby/pathname", + digest: "ruby/digest", } def sync_default_gems(gem) @@ -315,6 +316,14 @@ def sync_default_gems(gem) cp_r("#{upstream}/test/pathname", "test") cp_r("#{upstream}/pathname.gemspec", "ext/pathname") `git checkout ext/pathname/depend` + when "digest" + rm_rf(%w[ext/digest test/digest]) + cp_r("#{upstream}/ext/digest", "ext") + mkdir_p("#{upstream}/ext/digest/lib") + cp_r("#{upstream}/lib/digest.rb", "ext/digest/lib") + cp_r("#{upstream}/test/digest", "test") + cp_r("#{upstream}/digest.gemspec", "ext/digest") + `git checkout ext/digest/depend ext/digest/*/depend` else sync_lib gem, upstream end |