mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
c982cbd16a
commit
e749134f0a
5 changed files with 35 additions and 3 deletions
|
@ -123,8 +123,6 @@ Zachary Scott (zzak)
|
||||||
Akinori MUSHA (knu)
|
Akinori MUSHA (knu)
|
||||||
[lib/singleton.rb]
|
[lib/singleton.rb]
|
||||||
Yukihiro Matsumoto (matz)
|
Yukihiro Matsumoto (matz)
|
||||||
[lib/sync.rb]
|
|
||||||
Keiju ISHITSUKA (keiju)
|
|
||||||
[lib/tempfile.rb]
|
[lib/tempfile.rb]
|
||||||
_unmaintained_
|
_unmaintained_
|
||||||
[lib/tmpdir.rb]
|
[lib/tmpdir.rb]
|
||||||
|
@ -223,6 +221,8 @@ Zachary Scott (zzak)
|
||||||
[lib/scanf.rb]
|
[lib/scanf.rb]
|
||||||
David A. Black (dblack)
|
David A. Black (dblack)
|
||||||
https://github.com/ruby/scanf
|
https://github.com/ruby/scanf
|
||||||
|
[lib/sync.rb]
|
||||||
|
Keiju ISHITSUKA (keiju)
|
||||||
[lib/webrick.rb, lib/webrick/*]
|
[lib/webrick.rb, lib/webrick/*]
|
||||||
Eric Wong (normalperson)
|
Eric Wong (normalperson)
|
||||||
https://bugs.ruby-lang.org/
|
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
|
Shell:: An idiomatic Ruby interface for common UNIX shell commands
|
||||||
Shellwords:: Manipulates strings with word parsing rules of UNIX Bourne shell
|
Shellwords:: Manipulates strings with word parsing rules of UNIX Bourne shell
|
||||||
Singleton:: Implementation of the Singleton pattern for Ruby
|
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
|
Tempfile:: A utility class for managing temporary files
|
||||||
ThreadsWait:: Watches for termination of multiple threads
|
ThreadsWait:: Watches for termination of multiple threads
|
||||||
Time:: Extends the Time class with methods for parsing and conversion
|
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
|
REXML:: An XML toolkit for Ruby
|
||||||
RSS:: Family of libraries that support various formats of XML "feeds"
|
RSS:: Family of libraries that support various formats of XML "feeds"
|
||||||
Scanf:: A Ruby implementation of the C function scanf(3)
|
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
|
WEBrick:: An HTTP server toolkit for Ruby
|
||||||
|
|
||||||
== Extensions
|
== Extensions
|
||||||
|
|
22
lib/sync.gemspec
Normal file
22
lib/sync.gemspec
Normal file
|
@ -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.
|
# details.
|
||||||
|
|
||||||
class Sync
|
class Sync
|
||||||
|
|
||||||
|
VERSION = "0.1.0"
|
||||||
|
|
||||||
include Sync_m
|
include Sync_m
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
# * https://github.com/ruby/rexml
|
# * https://github.com/ruby/rexml
|
||||||
# * https://github.com/ruby/rss
|
# * https://github.com/ruby/rss
|
||||||
# * https://github.com/ruby/irb
|
# * https://github.com/ruby/irb
|
||||||
|
# * https://github.com/ruby/sync
|
||||||
#
|
#
|
||||||
|
|
||||||
$repositories = {
|
$repositories = {
|
||||||
|
@ -59,6 +60,7 @@ $repositories = {
|
||||||
rexml: 'ruby/rexml',
|
rexml: 'ruby/rexml',
|
||||||
rss: 'ruby/rss',
|
rss: 'ruby/rss',
|
||||||
irb: 'ruby/irb',
|
irb: 'ruby/irb',
|
||||||
|
sync: 'ruby/sync'
|
||||||
}
|
}
|
||||||
|
|
||||||
def sync_default_gems(gem)
|
def sync_default_gems(gem)
|
||||||
|
@ -212,6 +214,11 @@ def sync_default_gems(gem)
|
||||||
`cp -rf ../ostruct/lib/* lib`
|
`cp -rf ../ostruct/lib/* lib`
|
||||||
`cp -rf ../ostruct/test/ostruct test`
|
`cp -rf ../ostruct/test/ostruct test`
|
||||||
`cp -f ../ostruct/ostruct.gemspec lib`
|
`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"
|
when "rexml", "rss", "matrix", "irb", "csv"
|
||||||
sync_lib gem
|
sync_lib gem
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue