summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixed LocalJumpErrorryan2009-01-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/xmp.rb: multilingualizes XMP::StringInputMethod.yugui2009-01-171-0/+12
| | | | | | [ruby-core:21383]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb: as wanabe-san pointed out,ko12009-01-151-3/+3
| | | | | | | | | set_trace_func should be completely final task in debug.rb. Bug #847 [ruby-core:20449] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb (OpenStruct#inspect): fixed the recursion check.yugui2009-01-131-13/+11
| | | | | | | | | Patch by Kornelius Kalnbach. [ruby-core:20992]. * test/ostruct/test_ostruct.rb: test for inspect. Patch by Kornelius Kalnbach. [ruby-core:20992]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/input-method.rb: IRB did not prompt for MSwin32.yugui2009-01-131-2/+2
| | | | | | | [ruby-dev:37686]. Patch by arton <artonx AT yahoo.co.jp>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_nothing_raised): removes thenobu2009-01-121-3/+9
| | | | | | | current trace to get rid of an issue of MiniTest::Unit#location. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove PercentScanner. fixed % after %> bug. [ruby-dev:37751] [Bug #997]seki2009-01-111-34/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection.akr2009-01-071-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_no_match): don't count up as twoakr2009-01-071-0/+1
| | | | | | | assertions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (gem), lib/rubygems/defaults.rb (Gem.default_dir):nobu2009-01-071-5/+1
| | | | | | | use version invariant configuration. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems.rb (Gem.set_home, Gem.set_paths): should not createnobu2009-01-042-34/+7
| | | | | | | | | | | | | | directories stealthily. [ruby-core:20990] * lib/rubygems.rb (Gem.find_home): expand_path deals with platform dependent envirionments. * lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): ditto. * instruby.rb (gem): creates gem directories at installation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): does not use both of makefile.rb andnobu2009-01-041-1/+3
| | | | | | | | | extconf.rb at the same time. * lib/mkmf.rb (DLLIB): depends on Makefile. [ruby-core:21096] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merged r20850, r17881, r16811, r16763, r16748, r15829, r15794 and r15698 ↵seki2009-01-031-118/+187
| | | | | | from ruby_1_8. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/singleton.rb: fix documentation. [ruby-core:21038]matz2009-01-021-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/singleton.rb: fix indentation of RDoc text. [ruby-core:21029]matz2008-12-311-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 1.3.1 r4506.ryan2008-12-301-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/erb.rb (ERB): m17n of ERB. adds rdoc.yugui2008-12-291-6/+45
| | | | | | | | | | | | | | | | | | | | | | fixes #712. c.f. [ruby-dev:37516]. * lib/erb.rb (ERB::Compiler#compile): recognizes magic comments. returns a pair of compiled script and its script encoding. * lib/erb.rb (ERB#set_eoutvar): make generated scripts return a string in correct encoding. * lib/erb.rb (ERB#def_method): use Kernel#eval for encoding-awareness of the evaluated string. * bin/erb.rb (ERB::Main.run): adds -E and -U options. String is no longer Enumerable. * man/erb.1: new manapage. * test/erb/test_erb_m17n.rb: new test case for m17n features. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 1.3.1 r4505.ryan2008-12-272-9/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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