aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/matrix: Add LUP decompositionmarcandre2011-07-012-0/+236
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Allow non integer exponents for Matrix#**marcandre2011-07-011-3/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix: Add Eigenvalue Decompositionmarcandre2011-07-012-0/+908
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix: Add Matrix#roundmarcandre2011-07-011-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/weakref.rb: Attach documentation to WeakRef and add missingdrbrain2011-06-301-6/+20
| | | | | | | documentation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml.rb: Document toplevel YAML and YAML::ENGINE to describedrbrain2011-06-301-0/+18
| | | | | | | Psych vs Syck engines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb: Hide handle_no_method_error from RDoc.drbrain2011-06-301-1/+1
| | | | | | | * error.c: Document or hide undocumented error classes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/drb.rb: Hide deprecated toplevel DRb constants.drbrain2011-06-291-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb (CMath.log): second argument: b can be nil.naruse2011-06-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc: Update to RDoc 3.8 which contains fixes for documentationdrbrain2011-06-297-43/+60
| | | | | | | in trunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb: make same exception for Math. fix [Bug #3137].keiju2011-06-291-96/+176
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/completion.rb: complate correctry string literal. fix [Bug #1145].keiju2011-06-291-1/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/cmd/help.rb: support RDoc 3.7. fix [Bug #3760].keiju2011-06-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tracer.rb: Tracer.on only if required by -r command-line option.nagachika2011-06-291-2/+7
| | | | | | | and consider --disable-gems option. * test/test_tracer.rb: add tests for it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c: Attach documentation for Math.drbrain2011-06-295-11/+31
| | | | | | | | | | | | | | | | | | | | * object.c: Document NIL, TRUE, FALSE. * io.c: Improve grammar in ARGF comment. Document STDIN/OUT/ERR. Document ARGF global constant. * lib/rake: Hide deprecated toplevel constants from RDoc (import from rake trunk). * lib/thwait.rb: Document ThWait. * lib/mathn.rb: Hide Math redefinition from RDoc * lib/sync.rb: Add a basic comment for Sync_m, Synchronizer_m, Sync, Synchronizer. * parse.y: Document SCRIPT_LINES__. * hash.c: Document ENV class and global constant. * vm.c: Document TOPLEVEL_BINDING. * version.c: Document RUBY_* constants. * ruby.c: Document DATA and ARGV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Matrix.zero can build rectangular matrices.marcandre2011-06-291-4/+6
| | | | | | Vector#r should be called #magnitude git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add Matrix#diagonal?, hermitian?, normal?, orthogonal?marcandre2011-06-291-0/+138
| | | | | | permutation?, symmetric?, {lower|upper}triangular?, unitary?, zero? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Specialize Matrix#find_index to return [row, col]marcandre2011-06-291-0/+31
| | | | | | and accept the same optional argument as #each git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Matrix#each{_with_index} can iterate over a subset of the ↵marcandre2011-06-291-19/+110
| | | | | | Matrix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tracer.rb: count only non-internal libraries in stack trace,keiju2011-06-281-1/+1
| | | | | | | | ignoring custom_require. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb: recognize '\char' in ruby statement.keiju2011-06-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!).nahi2011-06-281-1/+1
| | | | | | | | | global_variables, local_variables, and instance_variables returns Symbols from 1.9 and need to stringify before evaling it. See #4931. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb: merge eregon/benchmark.naruse2011-06-281-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * lib/rake: Update rake to fix some bugs and hide deprecated featuresdrbrain2011-06-2812-20/+54
| | | | | | | | | | from RDoc. * lib/rake/version.rb: Bump version to 0.9.2.1 to distinguish it from the released version. * NEWS: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc: Update to RDoc 3.7 (final)drbrain2011-06-285-108/+156
| | | | | | | * NEWS: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb: fix [Bug #4232].keiju2011-06-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix [Bug #4409]. add DRbServer#here?seki2011-06-271-1/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/workspace.rb: fix BUG#4793.keiju2011-06-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httprequest.rb (setup_forwarded_info): Parsing request nahi2011-06-241-1/+9
| | | | | | | | | | | | | header failed when the request is from 2 or more Apache reverse proxies. It's said that all X-Forwarded-* headers will contain more than one (comma-separated) value if the original request already contained one of these headers. Since we could use these values as Host header, we choose the initial(first) value. See #4922. * test/webrick/test_httprequest.rb (test_forwarded): Test it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake/version.rb: Fixed VERSION to work with tool/rbinstall.rbdrbrain2011-06-231-6/+4
| | | | | | | | | * bin/rake: Import bin/rake from 0.9.2 * tool/rbinstall.rb (install): Rake::VERSION is now in lib/rake/version.rb. Fixes `make install` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake: Import Rake 0.9.2drbrain2011-06-2346-2597/+3432
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/accesslog.rb: Cosmetic fix of mismatched indentation.nahi2011-06-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP.post_form): Do not ignore query part of nahi2011-06-211-1/+1
| | | | | | | | | the given URI to post. See #655. * test/net/http/test_http.rb, test/net/http/utils.rb: Test it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpresponse.rb (HTTPResponse#setup_header): Close nahi2011-06-211-0/+5
| | | | | | | | | | HTTP/1.1 connection when returning an IO object as response body without setting HTTPResponse#chunked to true. See #855 no.1. * test/webrick/test_httpserver.rb: Test it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/cookie.rb (WEBrick::Cookie.parse): Revert r31228. nahi2011-06-201-1/+1
| | | | | | | | | | | | r31228 was for allowing the 'Cookie:' header which did not have no SP after ';' for separating cookie-pairs but RFC6265 requires single SP after ';' there. We allow multiple SPs here for compatibility with older WEBrick version. * test/webrick/test_cookie.rb: Test it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/parallel.rb: Override Test::Unit::TestCase#on_parallel_worker?sorah2011-06-191-7/+13
| | | | | | | | | only when $0 == __FILE__. * lib/test/unit/parallel.rb: Run Test::Unit::Worker.run only when $0 == __FILE__. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2011-06-171-17/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.drbrain2011-06-161-0/+4
| | | | | | | [Ruby 1.9 - Bug #4874] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb: Document Benchmark::Tms#memberwise. Patch bydrbrain2011-06-161-4/+11
| | | | | | | David Czarnecki. [Ruby 1.9 - Bug #4873] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prettyprint.rb: Improve documentation. Patch by Ysiaddrbrain2011-06-161-1/+12
| | | | | | | Ferreiras. [#4834] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/log.rb: Improve documentation of BasicLog and Log.drbrain2011-06-162-7/+93
| | | | | | | | | | Patch by Olivier Brisse. [Ruby 1.9 - Bug #4833] * lib/webrick/httpstatus.rb: Improve documentation of WEBrick::HTTPStatus. Patch by Olivier Brisse. [Ruby 1.9 - Bug #4833] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/testunit/test_parallel.rb: Fix Regexp for test.sorah2011-06-162-0/+10
| | | | | | | | | | | | | * test/testunit/tests_for_parallel/test_third.rb: Use Test::Unit::TestCase#on_parallel_worker? for detecting worker. * lib/test/unit/testcase.rb(Test::Unit::TestCase#on_parallel_worker?): New Method Test::Unit::TestCase#on_parallel_worker? returns true when a testcase is running on parallel worker. * lib/test/unit/parallel.rb(Test::Unit::TestCase#on_parallel_worker?): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/monitor.rb: Improve documentation. Patch by Sandor Szucs.drbrain2011-06-161-72/+95
| | | | | | | [Ruby 1.9 - Bug #4823] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/utils.rb: Document WEBrick::Utils. Patch by Olivierdrbrain2011-06-161-1/+67
| | | | | | | Brisse. [Ruby 1.9 - Bug #4819] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/erbhandler.rb: Allow the ERB document todrbrain2011-06-161-1/+1
| | | | | | | alter the content-type of the response. [Ruby 1.9 - Bug #4685] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/timeout.rb: Clarify timeout duration types. Patch by Alf Mikula.drbrain2011-06-162-5/+8
| | | | | | | | [Ruby 1.9 - Bug #4791] * lib/net/http.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc.rb: Import RDoc 3.7 release candidatedrbrain2011-06-1632-184/+927
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (search_response): parses SEARCH responses fromshugo2011-06-161-1/+2
| | | | | | the Yahoo IMAP server correctly. patched by Mark Nadig. [Bug #4509] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb(Test::Unit::Runner#_run_parallel): Ignore -j0sorah2011-06-151-0/+5
| | | | | | because it makes blocking forever by IO.select. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb: add new methd Object#real?. fix #3137keiju2011-06-131-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e