mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Promote benchmark to default gems
This commit is contained in:
parent
1159dbf305
commit
77c94e0dd8
5 changed files with 39 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
29
lib/benchmark/benchmark.gemspec
Normal file
29
lib/benchmark/benchmark.gemspec
Normal file
|
@ -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
|
3
lib/benchmark/version.rb
Normal file
3
lib/benchmark/version.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
module Benchmark
|
||||
VERSION = "0.1.0"
|
||||
end
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue