1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
naruse 4870feb31a * lib/benchmark.rb: merge eregon/benchmark.
https://github.com/eregon/ruby/tree/benchmark
  patched by Benoit Daloze. [ruby-core:37593] [Bug #4940]

* lib/benchmark (Benchmark#bmbm): bmbm should be consistent with bm
  for the return value.

* test/benchmark: remove preemptive test instead of skipping
  I removed the preemptive test I wrote for Feature #4197.
  I'll add it back when the implementation will be able to satisfy it.

* lib/benchmark (Benchmark#bmbm): remove useless explicit call,
  #format is an alias of #to_s test/benchmark: add a test for
  format of long time.

* lib/benchmark: fix label width: always add 1 to ensure there is a
  space delimiter even with times over 100s
  When I asked for Feature #4197, I wanted to make delimiting spaces
  consistent for #bm and #bmbm.
  But with times over 100s, the output contains no space between the
  label and the first time (user).
  Now both ensure there is always a space, even if that means 3 spaces
  with times under 10s (because it is formatted as %10.6f)

* test/benchmark: let labels be a constant
  lib/benchmark (Benchmark#realtime): avoid creating an unused Proc
  lib/benchmark (Benchmark#benchmark): use ensure clause to restore
  STDOUT.sync, as in #bmbm

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-28 06:09:46 +00:00
..
cgi * lib/cgi/util.rb: Improve documentation. Patch by Kuba Fietkiewicz. 2011-06-01 00:42:06 +00:00
drb fix [Bug #4409]. add DRbServer#here? 2011-06-27 15:18:22 +00:00
irb * lib/irb/ruby-lex.rb: fix [Bug #4232]. 2011-06-27 16:20:56 +00:00
minitest Imported minitest 2.2.2 (r6281) 2011-06-01 22:34:09 +00:00
net * lib/net/http.rb (Net::HTTP.post_form): Do not ignore query part of 2011-06-21 17:44:44 +00:00
optparse
racc * lib/racc/parser.rb (do_parse, yyparse): using class eval to define 2010-11-15 02:47:05 +00:00
rake * lib/rake: Update rake to fix some bugs and hide deprecated features 2011-06-28 02:45:29 +00:00
rbconfig * Various .document files: Update .document files to match files which 2011-05-11 22:31:17 +00:00
rdoc * lib/rdoc: Update to RDoc 3.7 (final) 2011-06-28 02:28:25 +00:00
rexml * lib/rexml/formatters/pretty.rb 2011-06-11 07:29:48 +00:00
rinda * lib: Convert tabs to spaces for ruby files per 2011-05-18 21:19:18 +00:00
rss * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
rubygems * lib/rubygems/user_interaction.rb (Gem::StreamUI#tty?): IO#tty? of 2011-06-07 09:56:30 +00:00
shell * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
test * lib/test/unit/parallel.rb: Override Test::Unit::TestCase#on_parallel_worker? 2011-06-19 01:12:02 +00:00
uri * lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri 2011-06-03 00:32:25 +00:00
webrick * lib/webrick/httprequest.rb (setup_forwarded_info): Parsing request 2011-06-24 11:05:59 +00:00
xmlrpc * lib/xmlrpc/parser.rb (FaultException): fix to_s and inspect 2011-05-26 06:44:48 +00:00
yaml * remove trailing spaces. 2011-05-15 11:55:52 +00:00
abbrev.rb * lib: Convert tabs to spaces for ruby files per 2011-05-18 21:19:18 +00:00
base64.rb
benchmark.rb * lib/benchmark.rb: merge eregon/benchmark. 2011-06-28 06:09:46 +00:00
cgi.rb * lib/cgi.rb: Add toplevel documentation to class CGI 2011-05-16 21:21:35 +00:00
cmath.rb * lib/cmath.rb: add new methd Object#real?. fix #3137 2011-06-13 10:48:12 +00:00
complex.rb
csv.rb * lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki. 2011-06-16 22:54:53 +00:00
debug.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
delegate.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
drb.rb
e2mmap.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
English.rb
erb.rb * lib/erb.rb: Restore documentation for ERB::Util and ERB::DefMethod 2011-05-24 23:24:32 +00:00
fileutils.rb * lib/fileutils.rb: Document block behavior of FileUtils.cd. Patch by 2011-05-22 02:12:15 +00:00
find.rb * lib: Convert tabs to spaces for ruby files per 2011-05-18 21:19:18 +00:00
forwardable.rb * lib/forwardable.rb: Document def_delegator. Patch by Sandor Szucs. 2011-05-22 02:14:57 +00:00
getoptlong.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
gserver.rb * lib/gserver.rb: Improve documentation. Patch by David Copeland. 2011-05-16 21:31:06 +00:00
ipaddr.rb * lib/ipaddr.rb: Improve documentation. Patch by Sandor Szucs. 2011-05-22 02:21:56 +00:00
irb.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
logger.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
mathn.rb * lib/mathn.rb: Improve documentation and attach it to Numeric. 2011-06-01 00:26:27 +00:00
matrix.rb Clean warnings: unused variables. 2010-06-23 05:32:46 +00:00
mkmf.rb * lib/mkmf.rb: should quote arch_hdrdir and libpath for the case 2011-06-11 01:32:49 +00:00
monitor.rb * remove trailing spaces. 2011-06-17 22:33:54 +00:00
mutex_m.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
observer.rb * lib/observer.rb: Improve documentation. Patch by David Copeland. 2011-05-16 21:53:12 +00:00
open-uri.rb update comment. 2011-05-27 23:45:12 +00:00
open3.rb * lib: Convert tabs to spaces for ruby files per 2011-05-18 21:19:18 +00:00
optparse.rb * lib/optparse.rb: Add link to make_switch to improve documentation. 2011-05-16 21:57:22 +00:00
ostruct.rb * lib/ostruct.rb (method_missing): Handle [] and []= correctly. 2011-05-27 15:59:02 +00:00
pp.rb * lib/pp.rb: describe superclasses explicitly. 2010-08-01 14:09:40 +00:00
prettyprint.rb * lib/prettyprint.rb: Improve documentation. Patch by Ysiad 2011-06-16 22:38:48 +00:00
prime.rb * lib/prime.rb: Indent examples enough to appear as code sections. 2011-06-01 00:21:46 +00:00
profile.rb
profiler.rb
pstore.rb * lib/pstore.rb: Fix don't raise "nested transaction" when thread_safe 2011-03-13 07:14:07 +00:00
rake.rb * lib/rake: Update rake to fix some bugs and hide deprecated features 2011-06-28 02:45:29 +00:00
rational.rb
rdoc.rb * lib/rdoc.rb: Import RDoc 3.7 release candidate 2011-06-16 04:59:24 +00:00
README * lib: remove trailing spaces. 2011-05-18 14:09:38 +00:00
resolv-replace.rb * lib/resolv-replace.rb: suppress warning. 2010-10-29 22:02:39 +00:00
resolv.rb * lib/resolv.rb: Hide private method and state-tracking constants from 2011-05-13 17:52:01 +00:00
rss.rb * lib/csv.rb: fix a typo. 2011-05-11 10:22:16 +00:00
rubygems.rb Import rubygems 1.8.5 (released @ 137c80f) 2011-06-01 03:45:05 +00:00
scanf.rb * lib/scanf.rb: fix typos 2011-05-20 12:22:26 +00:00
securerandom.rb * lib/securerandom.rb (SecureRandom.random_bytes): modify PRNG state 2011-06-13 09:36:48 +00:00
set.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
shell.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
shellwords.rb
singleton.rb * lib: remove trailing spaces. 2011-05-18 14:09:38 +00:00
sync.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
tempfile.rb * lib/tempfile.rb (Tempfile.{mkdir,rmdir}): revert for backward 2011-05-24 22:58:18 +00:00
thread.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
thwait.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
time.rb * lib/time.rb (xmlschema): avoid passing any negative numbers. 2011-05-08 10:08:12 +00:00
timeout.rb * lib/timeout.rb: Clarify timeout duration types. Patch by Alf Mikula. 2011-06-16 05:24:12 +00:00
tmpdir.rb * lib: Convert tabs to spaces for ruby files per 2011-05-18 21:19:18 +00:00
tracer.rb * lib: Convert tabs to spaces for ruby files per 2011-05-18 21:19:18 +00:00
tsort.rb
ubygems.rb
un.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
uri.rb * lib/uri.rb: Add toplevel documentation. Patch by Vincent Batts. 2011-05-13 20:03:21 +00:00
weakref.rb * lib: revert r31635-r31638 and untabify with expand(1). 2011-05-19 00:07:25 +00:00
webrick.rb * lib/webrick: Add documentation for WEBrick::HTTPAuth 2011-05-10 23:37:43 +00:00
yaml.rb * lib/yaml.rb: load psych only when syck is not loaded. 2011-06-13 03:55:00 +00:00

English.rb	lets Perl'ish global variables have English names
README		this file
abbrev.rb	abbreviation calculator
base64.rb	Base64 de- and encoder
benchmark.rb	a benchmark utility
cgi.rb		CGI support library
cgi/session.rb	CGI session class
cmath.rb	math support for complex numbers
complex.rb	includes cmath and set complex arithemtic as default (obsolete)
csv.rb		CSV parser/generator
debug.rb	ruby debugger
delegate.rb	delegates messages to other object
drb.rb		distributed Ruby
e2mmap.rb	exception utilities
erb.rb		tiny eRuby library
fileutils.rb	file utilities
find.rb		traverses directory tree
forwardable.rb	explicit delegation library
gauntlet_rubygems.rb 	Gem package validator
getoptlong.rb	GNU getoptlong compatible
gserver.rb	general TCP server
ipaddr.rb	defines the IPAddr class
irb.rb		interactive ruby
logger.rb	simple logging utility
mathn.rb	extended math operation (obsolete)
matrix.rb	matrix calculation library
minitest/unit	minimal drop-in replacement for test-unit
mkmf.rb		Makefile maker
monitor.rb	exclusive region monitor for thread
mutex_m.rb	mutex mixin
net/ftp.rb	ftp access
net/http.rb	HTTP access
net/https.rb	HTTPS access
net/imap.rb	IMAP4 access
net/pop.rb	POP3 access
net/protocol.rb	abstract class for net library (DO NOT USE)
net/smtp.rb	SMTP access
net/telnet.rb	telnet library
observer.rb	observer desing pattern library (provides Observable)
open-uri.rb	easy-to-use network interface using URI and Net
open3.rb	opens subprocess connection stdin/stdout/stderr
optparse.rb	command line option analysis
ostruct.rb	python style object
pathname.rb	Object-Oriented Pathname Class
pp.rb		pretty print objects
prettyprint.rb	pretty printing algorithm
prime.rb        prime numbers and factorization
profile.rb	runs ruby profiler
profiler.rb	ruby profiler module
pstore.rb	persistent object strage using marshal
racc/parser.rb	racc (Ruby yACC) runtime
rake.rb		Ruby Make
rational.rb	rational number support (obsolete)
rdoc		source-code documentation tool
resolv-replace.rb	replace Socket DNS by resolve.rb
resolv.rb	DNS resolver in Ruby
rexml		an XML parser for Ruby, in Ruby
rinda/rinda.rb	Linda distributed computing paradigm for drb
rinda/ring.rb	RingServer for tuplespace
rinda/tuplespace.rb	tuplespace for drb
rss.rb		RSS parser/generator
rubygems	Ruby package management system
scanf.rb	scanf for Ruby
securerandom.rb	Secure random number generator interface
set.rb		defines the Set class
shell.rb	runs commands and does pipeline operations like shell
shellwords.rb	split into words like shell
singleton.rb	singleton design pattern library
sync.rb		2 phase lock
tempfile.rb	temporary file with automatic removal
test/unit	Ruby Unit Testing Framework
thread.rb	thread support
thwait.rb	thread syncronization class
time.rb		RFC2822, RFC2616, ISO8601 style time formatting/parsing
timeout.rb	provides timeout
tmpdir.rb	retrieve temporary directory path
tracer.rb	execution tracer
tsort.rb	topological sorting
ubygems.rb	command line shortcut for RubyGems
un.rb		Utilities to replace common UNIX commands in Makefiles etc
uri.rb		URI support
uri/ftp.rb	ftp scheme support
uri/http.rb	http scheme support
uri/https.rb	https scheme support
uri/ldap.rb	ldap scheme support
uri/ldaps.rb	ldaps scheme support
uri/mailto.rb	mailto scheme support
weakref.rb	weak reference class
webrick.rb	WEB server toolkit
xmlrpc		XML-RPC implementation
yaml.rb		YAML implementation