зеркало из https://github.com/github/ruby.git
Promote Synchronizer to default gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c982cbd16a
Коммит
e749134f0a
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -316,6 +316,9 @@ Synchronizer_m = Sync_m
|
|||
# details.
|
||||
|
||||
class Sync
|
||||
|
||||
VERSION = "0.1.0"
|
||||
|
||||
include Sync_m
|
||||
end
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче