[前][次][番号順一覧][スレッド一覧]

ruby-changes:63373

From: Hiroshi <ko1@a...>
Date: Mon, 19 Oct 2020 19:00:18 +0900 (JST)
Subject: [ruby-changes:63373] 3f97940252 (master): Followed up with 708413807ae958afb79257b18475424e0a8a4a56

https://git.ruby-lang.org/ruby.git/commit/?id=3f97940252

From 3f97940252a37db6e601b4bb1aa1e87204f769df Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Mon, 19 Oct 2020 18:56:19 +0900
Subject: Followed up with 708413807ae958afb79257b18475424e0a8a4a56

  * Added sync task for digest
  * Update doc/* for default gems
  * Update the latest version of gemspec

diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 8b30971..ef3fa93 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -56,8 +56,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L56
   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) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L110
 [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 7d1bff8..75ffaf5 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -17,7 +17,6 @@ un.rb:: Utilities to replace common UNIX commands https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L17
 == 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 https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L36
 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 06da1c7..2b517f0 100644
--- a/ext/digest/digest.gemspec
+++ b/ext/digest/digest.gemspec
@@ -3,7 +3,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/digest/digest.gemspec#L3
 
 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@i..."]
 
@@ -24,9 +24,20 @@ Gem::Specification.new do |spec| https://github.com/ruby/ruby/blob/trunk/ext/digest/digest.gemspec#L24
     "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 57aa347..86ddfc4 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -81,6 +81,7 @@ REPOSITORIES = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L81
   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) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L316
     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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]