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

ruby-changes:51792

From: hsbt <ko1@a...>
Date: Fri, 20 Jul 2018 11:25:04 +0900 (JST)
Subject: [ruby-changes:51792] hsbt:r64004 (trunk): Promote Shell library to default gems.

hsbt	2018-07-20 11:24:59 +0900 (Fri, 20 Jul 2018)

  New Revision: 64004

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

  Log:
    Promote Shell library to default gems.
    
      * doc/*: Move entry to default gems category from standard library.
      * lib/shell/*: Added `Shell::VERSION` and re-used it with @RELEASE_VERSION.
      * test/shell/test_command_processor.rb: added missing require for test library.
      * tool/sync_default_gems.rb: Support shell library. We need to ignore shellwords.rb when
        syncing shell* files.

  Added files:
    trunk/lib/shell/shell.gemspec
  Modified files:
    trunk/doc/maintainers.rdoc
    trunk/doc/standard_library.rdoc
    trunk/lib/shell/version.rb
    trunk/test/shell/test_command_processor.rb
    trunk/tool/sync_default_gems.rb
Index: lib/shell/version.rb
===================================================================
--- lib/shell/version.rb	(revision 64003)
+++ lib/shell/version.rb	(revision 64004)
@@ -11,6 +11,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/shell/version.rb#L11
 #
 
 class Shell # :nodoc:
-  @RELEASE_VERSION = "0.7"
+  VERSION = "0.7"
+  @RELEASE_VERSION = VERSION
   @LAST_UPDATE_DATE = "07/03/20"
 end
Index: lib/shell/shell.gemspec
===================================================================
--- lib/shell/shell.gemspec	(nonexistent)
+++ lib/shell/shell.gemspec	(revision 64004)
@@ -0,0 +1,21 @@ https://github.com/ruby/ruby/blob/trunk/lib/shell/shell.gemspec#L1
+require_relative "version"
+
+Gem::Specification.new do |spec|
+  spec.name          = "shell"
+  spec.version       = Shell::VERSION
+  spec.authors       = ["Keiju ISHITSUKA"]
+  spec.email         = ["keiju@r..."]
+
+  spec.summary       = %q{An idiomatic Ruby interface for common UNIX shell commands.}
+  spec.description   = %q{An idiomatic Ruby interface for common UNIX shell commands.}
+  spec.homepage      = "https://github.com/ruby/shell"
+  spec.license       = "BSD-2-Clause"
+
+  spec.files         = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/shell.rb", "lib/shell/builtin-command.rb", "lib/shell/command-processor.rb", "lib/shell/error.rb", "lib/shell/filter.rb", "lib/shell/process-controller.rb", "lib/shell/system-command.rb", "lib/shell/version.rb", "shell.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"
+end
Index: tool/sync_default_gems.rb
===================================================================
--- tool/sync_default_gems.rb	(revision 64003)
+++ tool/sync_default_gems.rb	(revision 64004)
@@ -30,6 +30,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L30
 # * https://github.com/ruby/irb
 # * https://github.com/ruby/sync
 # * https://github.com/ruby/tracer
+# * https://github.com/ruby/shell
 #
 
 $repositories = {
@@ -62,7 +63,8 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L63
   rss: 'ruby/rss',
   irb: 'ruby/irb',
   sync: 'ruby/sync',
-  tracer: 'ruby/tracer'
+  tracer: 'ruby/tracer',
+  shell: 'ruby/shell'
 }
 
 def sync_default_gems(gem)
@@ -226,14 +228,14 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L228
     `cp -rf ../tracer/lib/* lib`
     `cp -rf ../tracer/test/test_tracer.rb test`
     `cp -f ../tracer/tracer.gemspec lib`
-  when "rexml", "rss", "matrix", "irb", "csv"
+  when "rexml", "rss", "matrix", "irb", "csv", "shell"
     sync_lib gem
   else
   end
 end
 
 def sync_lib(repo)
-  `rm -rf lib/#{repo}* test/#{repo}`
+  `rm -rf lib/#{repo}.rb lib/#{repo}/* test/#{repo}`
   `cp -rf ../#{repo}/lib/* lib`
   `cp -rf ../#{repo}/test/#{repo} test`
   `cp -f ../#{repo}/#{repo}.gemspec lib/#{repo}`
Index: test/shell/test_command_processor.rb
===================================================================
--- test/shell/test_command_processor.rb	(revision 64003)
+++ test/shell/test_command_processor.rb	(revision 64004)
@@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/test/shell/test_command_processor.rb#L1
 # frozen_string_literal: false
+require 'test/unit'
 require 'shell'
 require 'tmpdir'
 
Index: doc/standard_library.rdoc
===================================================================
--- doc/standard_library.rdoc	(revision 64003)
+++ doc/standard_library.rdoc	(revision 64004)
@@ -47,7 +47,6 @@ Rinda:: The Linda distributed computing https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L47
 Gem:: Package management framework for Ruby
 SecureRandom:: Interface for secure random number generator
 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
 Tempfile:: A utility class for managing temporary files
@@ -93,6 +92,7 @@ RDoc:: Produces HTML and command-line do https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L92
 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)
+Shell:: An idiomatic Ruby interface for common UNIX shell commands
 Synchronizer:: A module that provides a two-phase lock with a counter
 Tracer:: Outputs a source level execution trace of a Ruby program
 WEBrick:: An HTTP server toolkit for Ruby
Index: doc/maintainers.rdoc
===================================================================
--- doc/maintainers.rdoc	(revision 64003)
+++ doc/maintainers.rdoc	(revision 64004)
@@ -117,8 +117,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L117
   Akinori MUSHA (knu)
 [lib/securerandom.rb]
   Tanaka Akira (akr)
-[lib/shell.rb, lib/shell/*]
-  Keiju ISHITSUKA (keiju)
 [lib/shellwords.rb]
   Akinori MUSHA (knu)
 [lib/singleton.rb]
@@ -219,6 +217,8 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L217
 [lib/scanf.rb]
   David A. Black (dblack)
   https://github.com/ruby/scanf
+[lib/shell.rb, lib/shell/*]
+  Keiju ISHITSUKA (keiju)
 [lib/sync.rb]
   Keiju ISHITSUKA (keiju)
 [lib/tracer.rb]

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

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