From 527755e1f691d346ece207c24bafee38d3c050a6 Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 20 Jul 2018 02:24:59 +0000 Subject: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/shell/shell.gemspec | 21 +++++++++++++++++++++ lib/shell/version.rb | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 lib/shell/shell.gemspec (limited to 'lib') diff --git a/lib/shell/shell.gemspec b/lib/shell/shell.gemspec new file mode 100644 index 0000000000..ffd42d5ad9 --- /dev/null +++ b/lib/shell/shell.gemspec @@ -0,0 +1,21 @@ +require_relative "version" + +Gem::Specification.new do |spec| + spec.name = "shell" + spec.version = Shell::VERSION + spec.authors = ["Keiju ISHITSUKA"] + spec.email = ["keiju@ruby-lang.org"] + + 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 diff --git a/lib/shell/version.rb b/lib/shell/version.rb index bb4e7dfb8e..f48f781b2c 100644 --- a/lib/shell/version.rb +++ b/lib/shell/version.rb @@ -11,6 +11,7 @@ # class Shell # :nodoc: - @RELEASE_VERSION = "0.7" + VERSION = "0.7" + @RELEASE_VERSION = VERSION @LAST_UPDATE_DATE = "07/03/20" end -- cgit v1.2.3