ruby-changes:51775
From: hsbt <ko1@a...>
Date: Tue, 17 Jul 2018 21:21:35 +0900 (JST)
Subject: [ruby-changes:51775] hsbt:r63987 (trunk): Promote Synchronizer to default gems.
hsbt 2018-07-17 21:21:29 +0900 (Tue, 17 Jul 2018) New Revision: 63987 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63987 Log: Promote Synchronizer to default gems. Added files: trunk/lib/sync.gemspec Modified files: trunk/doc/maintainers.rdoc trunk/doc/standard_library.rdoc trunk/lib/sync.rb trunk/tool/sync_default_gems.rb Index: doc/maintainers.rdoc =================================================================== --- doc/maintainers.rdoc (revision 63986) +++ doc/maintainers.rdoc (revision 63987) @@ -123,8 +123,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L123 Akinori MUSHA (knu) [lib/singleton.rb] Yukihiro Matsumoto (matz) -[lib/sync.rb] - Keiju ISHITSUKA (keiju) [lib/tempfile.rb] _unmaintained_ [lib/tmpdir.rb] @@ -223,6 +221,8 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L221 [lib/scanf.rb] David A. Black (dblack) https://github.com/ruby/scanf +[lib/sync.rb] + Keiju ISHITSUKA (keiju) [lib/webrick.rb, lib/webrick/*] Eric Wong (normalperson) https://bugs.ruby-lang.org/ Index: doc/standard_library.rdoc =================================================================== --- doc/standard_library.rdoc (revision 63986) +++ doc/standard_library.rdoc (revision 63987) @@ -50,7 +50,6 @@ Set:: Provides a class to deal with coll https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L50 Shell:: An idiomatic Ruby interface for common UNIX shell commands Shellwords:: Manipulates strings with word parsing rules of UNIX Bourne shell Singleton:: Implementation of the Singleton pattern for Ruby -Synchronizer:: A module that provides a two-phase lock with a counter Tempfile:: A utility class for managing temporary files ThreadsWait:: Watches for termination of multiple threads Time:: Extends the Time class with methods for parsing and conversion @@ -95,6 +94,7 @@ RDoc:: Produces HTML and command-line do https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L94 REXML:: An XML toolkit for Ruby RSS:: Family of libraries that support various formats of XML "feeds" Scanf:: A Ruby implementation of the C function scanf(3) +Synchronizer:: A module that provides a two-phase lock with a counter WEBrick:: An HTTP server toolkit for Ruby == Extensions Index: lib/sync.gemspec =================================================================== --- lib/sync.gemspec (nonexistent) +++ lib/sync.gemspec (revision 63987) @@ -0,0 +1,22 @@ https://github.com/ruby/ruby/blob/trunk/lib/sync.gemspec#L1 +require_relative "sync" + +Gem::Specification.new do |spec| + spec.name = "sync" + spec.version = Sync::VERSION + spec.authors = ["Keiju ISHITSUKA"] + spec.email = ["keiju@r..."] + + spec.summary = %q{A module that provides a two-phase lock with a counter.} + spec.description = %q{A module that provides a two-phase lock with a counter.} + spec.homepage = "https://github.com/ruby/sync" + spec.license = "BSD-2-Clause" + + spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/sync.rb", "sync.gemspec"] + spec.bindir = "exe" + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] + + spec.add_development_dependency "bundler" + spec.add_development_dependency "rake" + spec.add_development_dependency "test-unit" +end Index: lib/sync.rb =================================================================== --- lib/sync.rb (revision 63986) +++ lib/sync.rb (revision 63987) @@ -316,6 +316,9 @@ Synchronizer_m = Sync_m https://github.com/ruby/ruby/blob/trunk/lib/sync.rb#L316 # details. class Sync + + VERSION = "0.1.0" + include Sync_m end Index: tool/sync_default_gems.rb =================================================================== --- tool/sync_default_gems.rb (revision 63986) +++ tool/sync_default_gems.rb (revision 63987) @@ -28,6 +28,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L28 # * https://github.com/ruby/rexml # * https://github.com/ruby/rss # * https://github.com/ruby/irb +# * https://github.com/ruby/sync # $repositories = { @@ -59,6 +60,7 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L60 rexml: 'ruby/rexml', rss: 'ruby/rss', irb: 'ruby/irb', + sync: 'ruby/sync' } def sync_default_gems(gem) @@ -212,6 +214,11 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L214 `cp -rf ../ostruct/lib/* lib` `cp -rf ../ostruct/test/ostruct test` `cp -f ../ostruct/ostruct.gemspec lib` + when "sync" + `rm -rf lib/sync.rb test/thread/test_sync.rb` + `cp -rf ../sync/lib/* lib` + `cp -rf ../sync/test/thread test` + `cp -f ../sync/sync.gemspec lib` when "rexml", "rss", "matrix", "irb", "csv" sync_lib gem else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/