diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-17 12:21:29 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-17 12:21:29 +0000 |
commit | e749134f0a38fca202aacc0ff65db882646749c2 (patch) | |
tree | 6fc116a3afc76b4d694853be1ee6941c8c2afab2 | |
parent | c982cbd16a97e74be42463580c8dea0c1c4bb280 (diff) |
Promote Synchronizer to default gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | doc/maintainers.rdoc | 4 | ||||
-rw-r--r-- | doc/standard_library.rdoc | 2 | ||||
-rw-r--r-- | lib/sync.gemspec | 22 | ||||
-rw-r--r-- | lib/sync.rb | 3 | ||||
-rw-r--r-- | tool/sync_default_gems.rb | 7 |
5 files changed, 35 insertions, 3 deletions
diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc index ee7dcd312e..344ed677fe 100644 --- a/doc/maintainers.rdoc +++ b/doc/maintainers.rdoc @@ -123,8 +123,6 @@ Zachary Scott (zzak) 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) [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/ diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc index 4522c4dfa1..5c1e2dc4c3 100644 --- a/doc/standard_library.rdoc +++ b/doc/standard_library.rdoc @@ -50,7 +50,6 @@ Set:: Provides a class to deal with collections of unordered, unique values 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 documentation for Ruby 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 diff --git a/lib/sync.gemspec b/lib/sync.gemspec new file mode 100644 index 0000000000..5c664657c6 --- /dev/null +++ b/lib/sync.gemspec @@ -0,0 +1,22 @@ +require_relative "sync" + +Gem::Specification.new do |spec| + spec.name = "sync" + spec.version = Sync::VERSION + spec.authors = ["Keiju ISHITSUKA"] + spec.email = ["keiju@ruby-lang.org"] + + 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 diff --git a/lib/sync.rb b/lib/sync.rb index 6e203bc8f0..ba80d372a7 100644 --- a/lib/sync.rb +++ b/lib/sync.rb @@ -316,6 +316,9 @@ Synchronizer_m = Sync_m # details. class Sync + + VERSION = "0.1.0" + include Sync_m end diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index dc21982298..63e43964e0 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -28,6 +28,7 @@ # * 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 = { 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) `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 |