aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/init.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add frozen_string_literal: false for all filesnaruse2015-12-161-0/+1
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb: removed commented-out code.hsbt2014-08-091-2/+0
| | | | | | * lib/irb/**/*.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb: fixed indent.hsbt2014-08-091-102/+102
| | | | | | | * lib/drb/ssl.rb: ditto. * lib/irb/**/*.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: removed unreachable code.hsbt2014-08-081-6/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: change default debug level forkeiju2012-12-261-1/+1
| | | | | | | | irb[ruby-dev:46805], [Bug #6301]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb, lib/irb/context.rb: fix conf.debug_level= keiju2012-12-251-1/+1
| | | | | | | | [Bug #6301] and fix irb command option: -- irb_debug_level for irb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb, lib/irb/lc/ja/error.rb, lib/irb/lc/error.rb:keiju2012-12-251-1/+6
| | | | | | | | raise exception when illegal RC_NAME_GENARATOR defined [Bug #6455]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb*: merge doc from doc/irb/ird.rd and improve overallzzak2012-12-131-1/+1
| | | | | | | | documentation of IRB * doc/irb/irb.rd: remove stale documentation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2011-05-151-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574]nobu2010-12-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB.parse_opts): set VERBOSE to true when debugmame2010-08-011-0/+1
| | | | | | | switch called in irb. a patch from Andrew Grimm in [ruby-core:31558]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb, lib/irb/lc/help-message,mame2010-04-091-0/+12
| | | | | | lib/irb/lc/ja/help-message: add -w flag. [ruby-core:24594] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb, lib/irb/init.rb, lib/irb/ext/save-history.rb: addkeiju2009-07-211-1/+3
| | | | | | | | IRB::irb_at_exit. no use finalizer saving history. [ruby-dev-38563] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/irb, lib/irb.rb lib/irb/*: irb-0.9.6, extend inspect-modekeiju2009-07-071-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as commandyugui2008-12-181-8/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@20862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB.load_modules): catch LoadError explicitly.matz2008-10-231-2/+2
| | | | | | | a patch from Daniel Berger <Daniel.Berger at qwest.com> in [ruby-core:19451]. fix [ruby-core:19450] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * $Date$ keyword removed to avoid inclusion of locale dependentakr2008-01-061-1/+0
| | | | | | | string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/options.rb (Options::parse): do not access $KCODE anymatz2007-12-141-2/+0
| | | | | | | | | | longer. [ruby-core:14079] * lib/irb/init.rb (IRB::IRB.parse_opts): ditto. * lib/cgi.rb (CGI::CGI): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/{init.rb,ruby-lex.rb,slex.rb}: can't input '\c' forkeiju2006-08-041-1/+1
| | | | | | | [ruby-core: 7122]. and support for ruby1.8.X git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_parse_string): mention "regexp" in a errormatz2006-02-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | message. a patch from Mauricio Fernandez <mfp at acm.org> [ruby-core:07340] * eval.c (rb_f_autoload): check if ruby_cbase is nil (during instance_eval for objects cannot have singleton classes, e.g. fixnums and symbols). [ruby-dev:28178] * gc.c (rb_gc_call_finalizer_at_exit): turn on during_gc while invoking finalizers. * gc.c (rb_gc_finalize_deferred): ditto. * io.c (rb_write_error2): use fwrite(3) if rb_stderr is not updated or is already freed. [ruby-dev:28313] * eval.c (error_line): include the class name of a surrounding method in error position description. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: bug fix. [ruby-dev: 26920]keiju2005-08-301-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: make IRB -I option that is same befavior for ruby.keiju2005-08-291-7/+6
| | | | | | | | | | [ruby-dev:26872] * lib/irb/locale.rb: support to print help message when OS locale is ja_JP.utf-8. [ruby-dev:26872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: make IRB -I option that is same befavior for ruby.keiju2005-08-261-1/+11
| | | | | | | | | | [ruby-dev:26872] * lib/irb/locale.rb: support to print help message when OS locale is ja_JP.utf-8. [ruby-dev:26872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (curses_insertln): merged a patch frommatz2005-06-071-0/+3
| | | | | | | | | | TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>. [ruby-ext:02305] * lib/irb/init.rb (IRB::IRB.rc_file_generators): more flexible IRB.rc_file_generators. [ruby-core:05163] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5.keiju2005-04-131-25/+44
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: suppress warnings.nobu2005-01-161-5/+5
| | | | | | | | | | | | | | | | * lib/irb/extend-command.rb (IRB::ContextExtender.def_extend_command): ditto. * lib/irb/ext/history.rb (IRB::Context::set_last_value): ditto. * lib/irb/ext/history.rb (IRB::Context::eval_history): ditto. * lib/irb/locale.rb (IRB::Locale::real_load): ditto. * lib/irb/slex.rb (SLex::Node::create_subnode): remove garbage. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB::IRB.parse_opts): add -I option tomatz2004-02-201-0/+3
| | | | | | | | | | | | | irb. [ruby-dev:39243] * sprintf.c (rb_f_sprintf): sign bit extension should not be done if FPLUS flag is specified. [ruby-list:39224] * sprintf.c (rb_f_sprintf): do not prepend dots for negative numbers if FZERO is specified. [ruby-dev:39218] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB.rc_files): yield possible rc file names.nobu2004-02-071-7/+10
| | | | | | | | * lib/irb/input-method.rb (IRB::ReadlineInputMethod::initialize): load and save history automatically. [ruby-core:02352] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* change default prompt.keiju2002-11-221-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* initialize hackmatz2002-11-191-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Object#class instead of deprecated Object#type.nobu2002-10-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * irb 0.9keiju2002-07-091-37/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Get rid of Japanese comments and fix English comments as appropriate.knu2001-05-031-6/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial revisionknu2001-04-301-0/+238
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e