diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-11-07 13:53:05 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-11-07 16:36:14 +0900 |
commit | 77c94e0dd80019fe78e299dd1981ba9992ad7a46 (patch) | |
tree | 81b458b8c87e2998d7cab3136d4e8fbec8390e53 | |
parent | 1159dbf305603b60a1e5d2b9ff77a9cf30775296 (diff) | |
download | ruby-77c94e0dd80019fe78e299dd1981ba9992ad7a46.tar.gz |
Promote benchmark to default gems
-rw-r--r-- | doc/maintainers.rdoc | 6 | ||||
-rw-r--r-- | doc/standard_library.rdoc | 2 | ||||
-rw-r--r-- | lib/benchmark/benchmark.gemspec | 29 | ||||
-rw-r--r-- | lib/benchmark/version.rb | 3 | ||||
-rw-r--r-- | tool/sync_default_gems.rb | 2 |
5 files changed, 39 insertions, 3 deletions
diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc index 32d6296830..b6b361588a 100644 --- a/doc/maintainers.rdoc +++ b/doc/maintainers.rdoc @@ -44,8 +44,6 @@ Zachary Scott (zzak) Akinori MUSHA (knu) [lib/base64.rb] Yusuke Endoh (mame) -[lib/benchmark.rb] - _unmaintained_ [lib/cgi.rb, lib/cgi/*] Takeyuki Fujioka (xibbar) [lib/drb.rb, lib/drb/*] @@ -160,6 +158,10 @@ Zachary Scott (zzak) === Libraries +[lib/benchmark.rb] + _unmaintained_ + https://github.com/bundler/benchmark + https://rubygems.org/gems/benchmark [lib/bundler.rb, lib/bundler/*] Hiroshi SHIBATA (hsbt) https://github.com/bundler/bundler diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc index 3e4c7de7f7..d38570e6cf 100644 --- a/doc/standard_library.rdoc +++ b/doc/standard_library.rdoc @@ -10,7 +10,6 @@ description. Abbrev:: Calculates a set of unique abbreviations for a given set of strings Base64:: Support for encoding and decoding binary data using a Base64 representation -Benchmark:: Provides methods to measure and report the time used to execute code CGI:: Support for the Common Gateway Interface protocol DEBUGGER__:: Debugging functionality for Ruby DRb:: Distributed object system for Ruby @@ -66,6 +65,7 @@ WIN32OLE:: Provides an interface for OLE Automation in Ruby == Libraries +Benchmark:: Provides methods to measure and report the time used to execute code Bundler:: Manage your Ruby application's gem dependencies CSV:: Provides an interface to read and write CSV files and data Delegator:: Provides three abilities to delegate method calls to an object diff --git a/lib/benchmark/benchmark.gemspec b/lib/benchmark/benchmark.gemspec new file mode 100644 index 0000000000..aad5205f8d --- /dev/null +++ b/lib/benchmark/benchmark.gemspec @@ -0,0 +1,29 @@ +begin + require_relative "lib/benchmark/version" +rescue LoadError # Fallback to load version file in ruby core repository + require_relative "version" +end + +Gem::Specification.new do |spec| + spec.name = "benchmark" + spec.version = Benchmark::VERSION + spec.authors = ["Yukihiro Matsumoto"] + spec.email = ["matz@ruby-lang.org"] + + spec.summary = %q{a performance benchmarking library} + spec.description = spec.summary + spec.homepage = "https://github.com/ruby/benchmark" + spec.license = "BSD-2-Clause" + + spec.metadata["homepage_uri"] = spec.homepage + spec.metadata["source_code_uri"] = spec.homepage + + # Specify which files should be added to the gem when it is released. + # The `git ls-files -z` loads the files in the RubyGem that have been added into git. + spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do + `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } + end + spec.bindir = "exe" + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] +end diff --git a/lib/benchmark/version.rb b/lib/benchmark/version.rb new file mode 100644 index 0000000000..d74cc74ee7 --- /dev/null +++ b/lib/benchmark/version.rb @@ -0,0 +1,3 @@ +module Benchmark + VERSION = "0.1.0" +end diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 31dd664cdc..363f53c235 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -38,6 +38,7 @@ # * https://github.com/ruby/getoptlong # * https://github.com/ruby/pstore # * https://github.com/ruby/delegate +# * https://github.com/ruby/benchmark # require 'fileutils' @@ -83,6 +84,7 @@ $repositories = { getoptlong: "ruby/getoptlong", pstore: "ruby/pstore", delegate: "ruby/delegate", + benchmark: "ruby/benchmark", } def sync_default_gems(gem) |