aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/irb.rb (IRB::Irb::eval_input): rescues Interrupt and other thannobu2008-02-081-7/+11
| | | | | | | SystemExit and SignalException. [ruby-core:15359] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_http): rescue URI::InvalidURIError byakr2008-02-081-1/+6
| | | | | | | URI.parse for location URI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (xsystem): expand macros like as make.nobu2008-02-081-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/driver.rb (read_yaml): remove SM* for compatibility.naruse2008-02-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (INSTALL_DIRS, install_dirs): added BINDIR.nobu2008-02-051-2/+13
| | | | | | | | | | | * lib/mkmf.rb (install_files): rejects files matching to $NONINSTALLFILES. * lib/mkmf.rb (init_mkmf): defaults $NONINSTALLFILES to backup and temporary filse. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (DelegateClass): use define_method instead ofnobu2008-02-041-17/+15
| | | | | | | module_eval to improve performance. [ruby-dev:33586] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator.preserved, DelegateClass.methods): extendusa2008-02-041-3/+5
| | | | | | | | shouldn't be delegated. [ruby-dev:32987], etc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::QueryExtension::[]): no more transitionmatz2008-02-041-25/+0
| | | | | | | extend(CGI::Value). a patch from <tommy AT tmtm.org> in [ruby-dev:33583]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb (Benchmark::realtime): make Benchmark#realtimematz2008-02-021-1/+4
| | | | | | | a bit faster. a patch from Alexander Dymo <dymo@ukrpost.ua> in [ruby-core:15337]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/formatter.rb (output): add accessor.usa2008-01-312-3/+4
| | | | | | | | | * lib/rdoc/ri/display.rb (page): replace @formatter.output instead of $stdout. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/display.rb (display_method_list, display_class_list):usa2008-01-312-10/+26
| | | | | | | | | | | | | | | | | use @formatter.raw_print_line instead of puts. * lib/rdoc/ri/driver.rb (select_methods): new method to collect all instance/class methods which match with passed pattern. * lib/rdoc/ri/driver.rb (run): use class_cache's result directly instead of select_classes' because it's removed now. * lib/rdoc/ri/driver.rb (run): search methods when passed name is not class name. [ruby-core:15309] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/driver.rb (cache_file_for): shoudn't use `:' in filename.usa2008-01-301-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby-trunk.naruse2008-01-271-1/+1
| | | | | | | * lib/irb/ruby-lex.rb (RubyLex#buf_input): use chars.to_a. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/doctype.rb, test/rss/test_maker_itunes.rb: replacenaruse2008-01-261-1/+1
| | | | | | | | | multi-byte string. * test/json/{test_json.rb, test_json_unicode.rb}: add magic comment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (URI::Generic::inspect): use Kernel#to_s insteadnobu2008-01-241-1/+2
| | | | | | | object_id with printf. [ruby-dev:33347] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb,naruse2008-01-233-4/+4
| | | | | | | test/logger/test_logger.rb, test/ruby/test_regexp.rb: fix tests. [ruby-dev:33336] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * mkmf.rb (create_makefile): sorry, typo. orzusa2008-01-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * mkmf.rb (create_makefile): typo.usa2008-01-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): need to output sodir rule.usa2008-01-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): lib files shoudn't depend on installusa2008-01-221-3/+5
| | | | | | | | | dir because if the dir is newer than lib files, lib files will be always copied. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/formatter.rb: Indent labeled lists like note lists.drbrain2008-01-221-54/+29
| | | | | | | | | | * test/rdoc/test_rdoc_ri_overstrike_formatter.rb: Added. * test/rdoc/test_rdoc_ri_formatter.rb: Added tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed a typo.tadf2008-01-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (marshal_load): initialize the cache.tadf2008-01-211-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* r1479@bean: ser | 2008-01-19 14:26:31 -0500ser2008-01-208-51/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | r1483@bean: ser | 2008-01-19 14:47:23 -0500 Sam's fixes: * Don't blow up on empty documents * Add a test case for sorted attributes * Making the output predictable simplifies unit tests, and doesn't cost much given that most xml element have few attributes * Ruby 1.9 revision 14922 is more strict * Complete Ticket #134 * Fix for ticket #121 * Fix for ticket #124 * Fix for ticket #128 * Fix ticket #133 * Ticket #131 (Support Ruby 1.9) * Fix for ticket #127 * Fix for ticket #123 * Add missing data needed by test case r1481@bean (orig r1303): ser | 2008-01-19 17:22:32 -0500 Tagged for release r1482@bean (orig r1304): ser | 2008-01-19 17:27:10 -0500 Version bump git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/template.rb (RDoc): defined to avoid uninitialized constantakr2008-01-191-0/+2
| | | | | | | error by `./ruby test/rubygems/test_gem_server.rb'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (once): use an instance variable which points a hashtadf2008-01-191-4/+7
| | | | | | | as cache. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: parse's hints as antadf2008-01-192-196/+55
| | | | | | | experimental function has been removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/markup: Remove ListBase and Line constants.drbrain2008-01-199-202/+243
| | | | | | | | | | | | | | | | | | | | * lib/rdoc/ri: Allow output IO to be specified. * test/rdoc/parser/test_parse_c.rb: Move up one level, fixed. * test/rdoc/parser/test_rdoc_markup_attribute_manager.rb: Renamed to match new class name, updated to match new classes. * test/rdoc/test_rdoc_ri_formatter.rb: Start of RI formatting tests. * test/rdoc/test_rdoc_ri_attribute_manager.rb: Start of RDoc::RI::AttributeManager tests. * test/rdoc/test_simple_markup.rb: Moved to match new class name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix namespacingdrbrain2008-01-171-19/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (Date::Infinity#<=>): didn't work. A patch fromtadf2008-01-172-7/+7
| | | | | | | | | | | Dirkjan Bussink <d.bussink AT gmail.com> [ruby-core:15098]. This is a bug obviously. However it didn't affect the library's functions. * lib/date.rb, lib/date/format.rb: some trivial changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Clean up commentsdrbrain2008-01-161-41/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb: scape should be an alias to shellescape. amatz2008-01-141-1/+1
| | | | | | | patch from Masahiro Kawato <m-kawato AT mwb.biglobe.ne.jp> in [ruby-dev:33060]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Renamespace lib/rdoc/markup from SM::SimpleMarkup to RDoc::Markup.drbrain2008-01-1429-2751/+2501
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake/ruby182_test_unit_fix.rb: removed.nobu2008-01-142-29/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb: do not reference Time directly from the inside oftadf2008-01-141-9/+9
| | | | | | | definitions. [ruby-dev:33059] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Cleanup RDocdrbrain2008-01-138-211/+201
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Complete RDoc namespace changedrbrain2008-01-1315-46/+45
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reorganize RDoc generatorsdrbrain2008-01-1314-251/+254
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: tuning for performance.tadf2008-01-122-13/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove lib/rdoc/usage.rbdrbrain2008-01-112-230/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Follow namespace change for RDoc/RI [ruby-core:14964]drbrain2008-01-111-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/options.rb ():nobu2008-01-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/e2mmap.rb (Exception2MessageMapper::Raise): define fail.matz2008-01-091-0/+1
| | | | | | [ruby-dev:32854] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mathn.rb (Prime#each): returns an enumerator if no blockkazu2008-01-091-0/+1
| | | | | | | given. [ruby-dev:32815] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httprequest.rb: supprt X-Forwarded-* header fields.gotoyuzo2008-01-091-2/+48
| | | | | | | | | | | | | | WEBrick::HTTPRequest#{host,port,request_uri} is derived having regards to X-Forwarded-Proto and X-Forwarded-Host. * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#server_name?): new method. (WEBrick::HTTPRequest#remote_ip?): new method. (WEBrick::HTTPRequest#ssl?): new method. * string.c (rb_enc_cr_str_buf_cat): fix self appending. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/server.rb (WEBrick::HTTPServer#start):gotoyuzo2008-01-091-0/+1
| | | | | | | :DoNotReverseLookup option had not been performed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Speed up Marshal load, fix bug with nested classes' methodsdrbrain2008-01-081-3/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Clean up namespacing of RI's classesdrbrain2008-01-0818-1400/+1356
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Replace ri with Ryan Davis' cached ridrbrain2008-01-089-534/+525
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add additional information to RDoc template valuesdrbrain2008-01-071-36/+38
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e