[前][次][番号順一覧][スレッド一覧]

ruby-changes:51834

From: hsbt <ko1@a...>
Date: Wed, 25 Jul 2018 21:28:21 +0900 (JST)
Subject: [ruby-changes:51834] hsbt:r64048 (trunk): Promote Mutex_m to Default gems.

hsbt	2018-07-25 21:28:17 +0900 (Wed, 25 Jul 2018)

  New Revision: 64048

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64048

  Log:
    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.

  Added files:
    trunk/lib/mutex_m.gemspec
  Modified files:
    trunk/lib/mutex_m.rb
    trunk/tool/sync_default_gems.rb
Index: tool/sync_default_gems.rb
===================================================================
--- tool/sync_default_gems.rb	(revision 64047)
+++ tool/sync_default_gems.rb	(revision 64048)
@@ -34,6 +34,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L34
 # * https://github.com/ruby/forwardable
 # * https://github.com/ruby/thwait
 # * https://github.com/ruby/e2mmap
+# * https://github.com/ruby/mutex_m
 #
 
 $repositories = {
@@ -70,7 +71,8 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L71
   shell: 'ruby/shell',
   forwardable: "ruby/forwardable",
   thwait: "ruby/thwait",
-  e2mmap: "ruby/e2mmap"
+  e2mmap: "ruby/e2mmap",
+  mutex_m: "ruby/mutex_m"
 }
 
 def sync_default_gems(gem)
@@ -196,7 +198,7 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L198
     `cp -rf ../sync/lib/* lib`
     `cp -rf ../sync/test/thread test`
     `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
   else
   end
Index: lib/mutex_m.gemspec
===================================================================
--- lib/mutex_m.gemspec	(nonexistent)
+++ lib/mutex_m.gemspec	(revision 64048)
@@ -0,0 +1,22 @@ https://github.com/ruby/ruby/blob/trunk/lib/mutex_m.gemspec#L1
+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@r..."]
+
+  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
Index: lib/mutex_m.rb
===================================================================
--- lib/mutex_m.rb	(revision 64047)
+++ lib/mutex_m.rb	(revision 64048)
@@ -35,6 +35,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/mutex_m.rb#L35
 #   # this obj can be handled like Mutex
 #
 module Mutex_m
+
+  VERSION = "0.1.0"
+
   def Mutex_m.define_aliases(cl) # :nodoc:
     cl.module_eval %q{
       alias locked? mu_locked?

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]