mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Promote Mutex_m to Default gems.
* lib/mutex_m.gemspec: Added initial gemspec. * lib/mutex_m.rb: Added Mutex_m::VERSION for gemspec. * tool/sync_default_gems.rb: Support Mutex_m. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
27785eec15
commit
8d884d94aa
3 changed files with 29 additions and 2 deletions
22
lib/mutex_m.gemspec
Normal file
22
lib/mutex_m.gemspec
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
require_relative "mutex_m"
|
||||||
|
|
||||||
|
Gem::Specification.new do |spec|
|
||||||
|
spec.name = "mutex_m"
|
||||||
|
spec.version = Mutex_m::VERSION
|
||||||
|
spec.authors = ["Keiju ISHITSUKA"]
|
||||||
|
spec.email = ["keiju@ruby-lang.org"]
|
||||||
|
|
||||||
|
spec.summary = %q{Mixin to extend objects to be handled like a Mutex.}
|
||||||
|
spec.description = %q{Mixin to extend objects to be handled like a Mutex.}
|
||||||
|
spec.homepage = "https://github.com/ruby/mutex_m"
|
||||||
|
spec.license = "BSD-2-Clause"
|
||||||
|
|
||||||
|
spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/mutex_m.rb", "mutex_m.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
|
|
@ -35,6 +35,9 @@
|
||||||
# # this obj can be handled like Mutex
|
# # this obj can be handled like Mutex
|
||||||
#
|
#
|
||||||
module Mutex_m
|
module Mutex_m
|
||||||
|
|
||||||
|
VERSION = "0.1.0"
|
||||||
|
|
||||||
def Mutex_m.define_aliases(cl) # :nodoc:
|
def Mutex_m.define_aliases(cl) # :nodoc:
|
||||||
cl.module_eval %q{
|
cl.module_eval %q{
|
||||||
alias locked? mu_locked?
|
alias locked? mu_locked?
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
# * https://github.com/ruby/forwardable
|
# * https://github.com/ruby/forwardable
|
||||||
# * https://github.com/ruby/thwait
|
# * https://github.com/ruby/thwait
|
||||||
# * https://github.com/ruby/e2mmap
|
# * https://github.com/ruby/e2mmap
|
||||||
|
# * https://github.com/ruby/mutex_m
|
||||||
#
|
#
|
||||||
|
|
||||||
$repositories = {
|
$repositories = {
|
||||||
|
@ -70,7 +71,8 @@ $repositories = {
|
||||||
shell: 'ruby/shell',
|
shell: 'ruby/shell',
|
||||||
forwardable: "ruby/forwardable",
|
forwardable: "ruby/forwardable",
|
||||||
thwait: "ruby/thwait",
|
thwait: "ruby/thwait",
|
||||||
e2mmap: "ruby/e2mmap"
|
e2mmap: "ruby/e2mmap",
|
||||||
|
mutex_m: "ruby/mutex_m"
|
||||||
}
|
}
|
||||||
|
|
||||||
def sync_default_gems(gem)
|
def sync_default_gems(gem)
|
||||||
|
@ -196,7 +198,7 @@ def sync_default_gems(gem)
|
||||||
`cp -rf ../sync/lib/* lib`
|
`cp -rf ../sync/lib/* lib`
|
||||||
`cp -rf ../sync/test/thread test`
|
`cp -rf ../sync/test/thread test`
|
||||||
`cp -f ../sync/sync.gemspec lib`
|
`cp -f ../sync/sync.gemspec lib`
|
||||||
when "rexml", "rss", "matrix", "irb", "csv", "shell", "logger", "ostruct", "scanf", "webrick", "fileutils", "forwardable", "prime", "tracer", "ipaddr", "cmath"
|
when "rexml", "rss", "matrix", "irb", "csv", "shell", "logger", "ostruct", "scanf", "webrick", "fileutils", "forwardable", "prime", "tracer", "ipaddr", "cmath", "mutex_m"
|
||||||
sync_lib gem
|
sync_lib gem
|
||||||
else
|
else
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue