summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/open-uri.rb (OpenURI.redirectable?): permit https redirection.akr2008-12-271-1/+1
| | | | | | | patch from Roman Shterenzon. [ruby-core:20485] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Using a more robust transcoding scheme to producejeg22008-12-261-5/+19
| | | | | | | | ASCII compatible inspect() messages. [ruby-dev:37591] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/input-method.rb (IRB::StdioInputMethod#initialize):yugui2008-12-261-1/+0
| | | | | | | removed a 'p' for debugging. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::List#summarize): gives prioritynobu2008-12-261-6/+11
| | | | | | | | | | to latter switches. [ruby-dev:36692] * lib/optparse.rb (OptionParser#summarize): do not append unnecessary line terminator. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parser.rb (RDoc::Parser.binary?): should read in binary mode.usa2008-12-251-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (Makefile): removes GNU make specific files onnobu2008-12-241-1/+5
| | | | | | | | | | | distclean. * Makefile.in (distclean-ext): removes extension directories. * lib/mkmf.rb (try_do): removes conftest.dSYM git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): avoid callingmatz2008-12-231-1/+1
| | | | | | read_nonblock in rescue. use retry instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_equal): show small differencesakr2008-12-231-1/+5
| | | | | | | for Regexp and Float. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mathn.rb: Math.sqrt(NaN) should be NaN. [ruby-dev:37537]yugui2008-12-231-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Don't coalesce adjacent comment blocks. [bug#901]drbrain2008-12-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix documentation. [bug#827]drbrain2008-12-221-5/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_nothing_raised): incrementakr2008-12-221-0/+1
| | | | | | | assertion count. [ruby-dev:37480] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake.rb (Rake::MultiTask): invoke_prerequisites should bematz2008-12-221-0/+1
| | | | | | private. a patch from okkez in [ruby-dev:37399] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake.rb (Rake::FileList#egrep): change open mode to "rb",matz2008-12-221-2/+2
| | | | | | | | | | i.e. default to binary. [ruby-dev:37385] * lib/rake.rb (Rake::FileList#egrep): allow specifying reading encoding, e.g. FileList['*.rb'].egrep(/require/, encoding: "ascii-8bit") git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (SPLAT_PROC): splat values by hand.nobu2008-12-211-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (parse_in_order): splat values to be passed.nobu2008-12-211-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (SPLAT_PROC): fix for regexp. [ruby-dev:37514]nobu2008-12-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/locale.rb (IRB::Locale#initialize)yugui2008-12-201-1/+2
| | | | | | | initializes instance variables to suppress warnings. typo fix to ignore LoadError: [ruby-dev:37508] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as commandyugui2008-12-1811-108/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | line options. [ruby-dev:37161]. Fixes #711. improved long optinos. * lib/irb/init.rb (IRB.set_encoding): new subroutine for IRB.opt_parse * lib/irb/input-method.rb (IRB::StdioInputMethod): (M17N) regards scripts that user types as encoded in the external_encoding. * lib/irb/input-method.rb (IRB::ReadlineInputMethod): ditto. * lib/irb/input-method.rb (IRB::FileInputMethod): (M17N) respects magic comment. * lib/irb/help.rb (IRB.print_usage): (M17N) respects magic comment in the resource file. * lib/irb/lc/help-message: adds -U and -E. * lib/irb/lc/ja/help-message: ditto. re-encoded from ISO-2022-JP into UTF-8. * lib/irb/lc/ja/encoding_aliases.rb: new file. provides Japanese specific character encoding name table for backward compatibility. * lib/irb/lc/ja/error.rb: re-eoncoded from ISO-2022-JP into UTF-8. magic comment. * lib/irb/locale.rb: integrated with Ruby 1.9's M17N support. * lib/irb/magic-file.rb: new file. utility to handle files with magic comment and opens in the correct encoding. * lib/irb/ruby-lex.rb (RubyLex#each_top_level_statement): recovers character encoding for a statement after it lexed so that irb can eval the statement in correct encoding. * lib/irb/src_encoding.rb: new file. utility. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb: fix bug for ignore session_id option.xibbar2008-12-182-3/+5
| | | | | | | | | | | report from [ruby-core:18635], [Bug #572] * lib/cgi/core.rb: use Encoding#find when encoding set. * test/cgi/test_cgi_session.rb: test for session_id specified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse/version.rb: remove variable shadowing to stopmatz2008-12-1813-319/+289
| | | | | | | | | | | | | | | | | | | | warning. [ruby-core:20612] * lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb, lib/rinda/ring.rb, lib/racc/parser.rb, lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto. * lib/racc/parser.rb: remove space before parentheses. * lib/shell/command-processor.rb, lib/shell/process-controller.rb: use parentheses around arguments. * lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb, lib/yaml/baseemitter.rb: indentation fix. * lib/matrix.rb: small cosmetic change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/server.rb: Restricting method inspection to show onlyjeg22008-12-171-1/+3
| | | | | | | | | | | non-inherited public methods. [ruby-core:20603] * lib/xmlrpc/server.rb: Fixing method inspection so it doesn't trigger XMLRPC::FaultException when used. [ruby-core:20604] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: shut up warning. [ruby-dev:37481] [Bug #899]keiju2008-12-171-16/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):matz2008-12-161-1/+1
| | | | | | typo fixed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.usa2008-12-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):matz2008-12-161-1/+1
| | | | | | should assert by instance_of?, not ===. [ruby-dev:37458] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): ALT_SEPARATOR support.usa2008-12-161-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (_parse): m17n compliant.tadf2008-12-161-40/+40
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake/packagetask.rb (Rake::PackageTask): small documentmatz2008-12-151-1/+1
| | | | | | update from okkez in [ruby-dev:37443] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reverts r20713yugui2008-12-141-6/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/minitest/test.rb (MinTest::Unit#location): yugui2008-12-131-2/+6
| | | | | | | skips user-defined assertions as MiniTest's. e.g. for test/ruby/test_m17n.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 1.3.2 r4503.ryan2008-12-132-7/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* do not pass -infinity.tadf2008-12-111-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb (sqrt): should pass nan or infinity to the originaltadf2008-12-111-1/+1
| | | | | | | | method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker.rb, lib/rss/maker/0.9.rb, lib/rss/maker/base.rb:kou2008-12-113-13/+52
| | | | | | | | | RSS::Maker.[] returns a maker class corresponds to passed version. * test/rss/test_maker_*.rb: add tests for RSS::Maker.[]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: extracted from lib/test/unit.rb.akr2008-12-113-112/+124
| | | | | | | | lib/test/unit/testcase.rb: ditto. at asakusa.rb. [ruby-core:20014] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#=~): undefed. at asakusa.rb.akr2008-12-111-0/+4
| | | | | | | [ruby-core:19690] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document#write): requirematz2008-12-113-1/+5
| | | | | | | | | | | | rexml/formatters/transitive if transitive flag is on. a patch from akira yamada in [ruby-dev:36230]. fix #553 * lib/rexml/element.rb (REXML::Element#write): ditto. * lib/rexml/formatters/transitive.rb (REXML::Formatters::Transitive#write_element): add hack for IE. [ruby-dev:36230] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.pipeline_start): return an array of threads if aakr2008-12-101-20/+98
| | | | | | | block is not given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker.rb (RSS::Maker.[]): add.kou2008-12-101-5/+12
| | | | | | | Suggested by Akinori MUSHA. Thanks!!! [ruby-dev:37210] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerator_next): Fix a typo: s/rewinded/rewound/.knu2008-12-101-1/+1
| | | | | | | * lib/prime.rb (Prime::OldCompatibility#each): Ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-12-081-2/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-12-071-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-12-071-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.capture3): renamed from Open3.poutput3.akr2008-12-071-23/+23
| | | | | | | | (Open3.capture2): renamed from Open3.poutput2. (lOpen3.capture2e): renamed from Open3.poutput2e. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.poutput3): :binmode option implemented.akr2008-12-071-6/+62
| | | | | | | | (Open3.poutput2): ditto. (Open3.poutput2e): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc.akr2008-12-061-14/+24
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.pipeline_start): new method.akr2008-12-051-28/+126
| | | | | | | (Open3.pipeline): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc.akr2008-12-041-17/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-12-041-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e