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

ruby-changes:51830

From: hsbt <ko1@a...>
Date: Wed, 25 Jul 2018 21:15:51 +0900 (JST)
Subject: [ruby-changes:51830] hsbt:r64044 (trunk): Promote ThWait to Default gems.

hsbt	2018-07-25 21:15:45 +0900 (Wed, 25 Jul 2018)

  New Revision: 64044

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

  Log:
    Promote ThWait to Default gems.
    
      * lib/thwait.gemspec: Added initial gemspec.
      * lib/thwait/version.rb: Added ThWait::VERSION for gemspec.
      * tool/sync_default_gems.rb: Support ThWait.

  Added directories:
    trunk/lib/thwait/
  Added files:
    trunk/lib/thwait/version.rb
    trunk/lib/thwait.gemspec
  Modified files:
    trunk/tool/sync_default_gems.rb
Index: lib/thwait.gemspec
===================================================================
--- lib/thwait.gemspec	(nonexistent)
+++ lib/thwait.gemspec	(revision 64044)
@@ -0,0 +1,21 @@ https://github.com/ruby/ruby/blob/trunk/lib/thwait.gemspec#L1
+require_relative "thwait/version"
+
+Gem::Specification.new do |spec|
+  spec.name          = "thwait"
+  spec.version       = ThreadsWait::VERSION
+  spec.authors       = ["Keiju ISHITSUKA"]
+  spec.email         = ["keiju@r..."]
+
+  spec.summary       = %q{Watches for termination of multiple threads.}
+  spec.description   = %q{Watches for termination of multiple threads.}
+  spec.homepage      = "https://github.com/ruby/thwait"
+  spec.license       = "BSD-2-Clause"
+
+  spec.files         = [".gitignore", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/thwait.rb", "lib/thwait/version.rb", "thwait.gemspec"]
+  spec.bindir        = "exe"
+  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+  spec.require_paths = ["lib"]
+
+  spec.add_development_dependency "bundler", "~> 1.16"
+  spec.add_development_dependency "rake", "~> 10.0"
+end
Index: lib/thwait/version.rb
===================================================================
--- lib/thwait/version.rb	(nonexistent)
+++ lib/thwait/version.rb	(revision 64044)
@@ -0,0 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/lib/thwait/version.rb#L1
+class ThreadsWait
+  VERSION = "0.1.0"
+end
Index: tool/sync_default_gems.rb
===================================================================
--- tool/sync_default_gems.rb	(revision 64043)
+++ tool/sync_default_gems.rb	(revision 64044)
@@ -32,6 +32,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L32
 # * https://github.com/ruby/tracer
 # * https://github.com/ruby/shell
 # * https://github.com/ruby/forwardable
+# * https://github.com/ruby/thwait
 #
 
 $repositories = {
@@ -66,7 +67,8 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L67
   sync: 'ruby/sync',
   tracer: 'ruby/tracer',
   shell: 'ruby/shell',
-  forwardable: "ruby/forwardable"
+  forwardable: "ruby/forwardable",
+  thwait: "ruby/thwait"
 }
 
 def sync_default_gems(gem)
@@ -172,6 +174,10 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L174
     `cp -rf ../fcntl/ext/fcntl ext`
     `cp -f ../fcntl/fcntl.gemspec ext/fcntl`
     `git checkout ext/fcntl/depend`
+  when "thwait"
+    `rm -rf lib/thwait*`
+    `cp -rf ../thwait/lib/* lib`
+    `cp -rf ../thwait/thwait.gemspec lib`
   when "strscan"
     `rm -rf ext/strscan test/strscan`
     `cp -rf ../strscan/ext/strscan ext`

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

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