aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/lc
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/irb] docs(help): Add latest options to ja help messageOKURA Masafumi2024-03-181-0/+10
| | | | | | (https://github.com/ruby/irb/pull/903) https://github.com/ruby/irb/commit/3c6d452495
* [ruby/irb] Fix irb_history saved to current directorytomoya ishida2024-03-162-10/+0
| | | | | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/901) * Always save irb_history in HOME or XDG_CONFIG_HOME Also split irbrc search logic from irb_history search logic as a refactor * Remove IRB.conf[:RC_NAME_GENERATOR] because it's not configurable This conf is used to specify which irbrc to load. Need to configure before irbrc is loaded, so it's actually not configurable. This conf is also used for history file search, but it is configurable by conf[:HISTORY_FILE]. * remove rc_file_test because it is tested with rc_files, remove useless test setup * Make internal irbrc searching method private https://github.com/ruby/irb/commit/11d03a6ff7
* [ruby/irb] Turn on frozen literal in filesStan Lo2024-02-232-2/+2
| | | | | | (https://github.com/ruby/irb/pull/881) https://github.com/ruby/irb/commit/83d90550c2
* [ruby/irb] Delete IRB::NotImplementedErrortomoya ishida2024-02-222-10/+0
| | | | | | (https://github.com/ruby/irb/pull/878) https://github.com/ruby/irb/commit/6751778948
* [ruby/irb] Support disabling pagerStan Lo2023-11-261-0/+1
| | | | | | | | | | | (https://github.com/ruby/irb/pull/783) With either `IRB.conf[:USE_PAGER] = false` or `--no-pager` commnad line flag. I decided use `--no-pager` instead of `--use-pager` because it matches with Pry and git's command line flags. https://github.com/ruby/irb/commit/df1c3b9042
* [ruby/irb] Add command line option to select which completor to usetomoya ishida2023-11-092-0/+6
| | | | | | | | | | (https://github.com/ruby/irb/pull/754) * Add command line option to select which completor to use * Add test for completor argv https://github.com/ruby/irb/commit/1dec2708c9
* [ruby/irb] Remove encoding_aliases.rbStan Lo2023-04-261-13/+0
| | | | | | | | (https://github.com/ruby/irb/pull/569) We don't have to load another file to define the legacy encoding aliases map because there's only one definition of it. We can define it in locale.rb directly.
* [ruby/irb] Fix help-message (https://github.com/ruby/irb/pull/506)HASUMI Hitoshi2023-02-151-2/+2
| | | | https://github.com/ruby/irb/commit/a55ace0791
* [ruby/irb] Formatting to header stylesHiroshi SHIBATA2023-01-112-8/+1
| | | | https://github.com/ruby/irb/commit/cef125850d
* [ruby/irb] After Ruby 2.0, coding is always utf-8Hiroshi SHIBATA2023-01-111-1/+0
| | | | https://github.com/ruby/irb/commit/7a94bc4135
* [ruby/irb] Removed Release Version and Revisions for old VCS softwareHiroshi SHIBATA2023-01-112-4/+0
| | | | https://github.com/ruby/irb/commit/07fae94862
* [ruby/irb] Remove unused errorst00122022-10-032-10/+0
| | | | https://github.com/ruby/irb/commit/f09a1874b6
* [ruby/irb] Support --noscript option to not use first non-option argument as ↵Jeremy Evans2022-09-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | script Also add --script option to turn the option back on. Previously there wasn't a way to get an interactive IRB session and access arguments provided on the command line. Additionally, handle `-` as script as stdin. In Unix-like tools, `-` means to take standard input instead of a file. This doesn't result in exactly the same output for: ``` echo 'p ARGV' > args.rb; irb args.rb a b c ``` and ``` echo 'p ARGV' | irb - a b c ``` Due to how irb handles whether stdin is a tty. However, this change allows use of `-` as a argument, instead of giving an unrecognized switch error. This required some small changes to context.rb (to handle `-` as standard input) and input-method.rb (to have FileInputMethod accept IO arguments in addition to strings). Implements [Feature #15371] https://github.com/ruby/irb/commit/4192683ba2
* [ruby/irb] [DOC] Include updated help message ↵Burdette Lamar2022-07-122-25/+0
| | | | | | | | (https://github.com/ruby/irb/pull/377) * Include updated help message https://github.com/ruby/irb/commit/ff129f3794
* [ruby/irb] Additions/revisions to help-message ↵Burdette Lamar2022-07-081-40/+41
| | | | | | | | | | | | (https://github.com/ruby/irb/pull/370) Changed: Added text to options that said just 'same as ruby -whatever'. Added defaults. Removed an errant tab. https://github.com/ruby/irb/commit/dfe454cc33
* [ruby/irb] Move `:stopdoc:` directiveNobuyoshi Nakada2022-03-143-6/+12
| | | | | | | If this is at the top level, it stops the documentation of the entire module, but not only the part in this file. https://github.com/ruby/irb/commit/86c41b06ad
* [ruby/irb] Add help about extra doc dir optionaycabta2021-10-111-0/+1
| | | | https://github.com/ruby/irb/commit/5018f2cb99
* [ruby/irb] Add doc about "echo on assignment"aycabta2021-09-271-0/+6
| | | | https://github.com/ruby/irb/commit/5af637b3c1
* [ruby/irb] Add a space before left parenaycabta2021-09-271-1/+1
| | | | https://github.com/ruby/irb/commit/973bac83ff
* Add --autocomplete / --noautocomplete optionsaycabta2021-08-302-0/+4
|
* [ruby/irb] Update help message for next context-mode of 4Jeremy Evans2021-02-271-6/+6
| | | | | | | While here, fixing tab/space issues in help message, and sync rdoc for IRB class to match the help message. https://github.com/ruby/irb/commit/ef8e3901cc
* [ruby/irb] Exclude useless files from RDocNobuyoshi Nakada2020-02-011-4/+0
|
* Remove e2mmap dependencyaycabta2019-11-252-30/+110
|
* Use singleline/multiline instead of readline/reidlineaycabta2019-11-212-8/+13
|
* bc mode is already removed [ci skip]Kazuhiro NISHIYAMA2019-06-272-2/+2
|
* Add --colorize and --nocolorize options to IRBaycabta2019-05-212-0/+4
|
* Use Ripper for IRBaycabta2019-04-302-3/+0
| | | | | The debug option of IRB is deleted because it's just for IRB's pure Ruby parser.
* Revert "IRB is improved with Reline and RDoc, take 2"Nobuyoshi Nakada2019-04-232-0/+3
| | | | | Accidentally merged when 89271d4a3733bc5e70e9c56b4bd12f277e699c42 "Adjusted indents".
* IRB is improved with Reline and RDoc, take 2aycabta2019-04-232-3/+0
|
* Revert "IRB is improved with Reline and RDoc"aycabta2019-04-212-0/+3
| | | | | | This reverts commit 7f273ac6d0f05208b5b228da95205e20c0e8286c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* IRB is improved with Reline and RDocaycabta2019-04-202-3/+0
| | | | | | | | Reline is a readline stdlib compatible library. It also supports multiline input. IRB is improved with Reline and supports multiline. Besides, supports showing documents when completed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removed math mode from irb.hsbt2017-04-202-2/+0
| | | | | | mathn is deprecated from Ruby 2.2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add frozen_string_literal: false for all filesnaruse2015-12-163-0/+3
| | | | | | 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/lc/ja/help-message: update help messages.ayumin2013-06-041-4/+16
| | | | | | following r41028. [ruby-dev:46707] [Feature #7510] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/lc/help-message: Apply english updates for irb --help #7510zzak2013-06-021-8/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .document: Removed extra spacedrbrain2013-01-161-0/+4
| | | | | | | | | | | | * lib/irb/lc/.document: Hide help-message * lib/minitest/.document: Hide README.txt * lib/rake/lib/.document: Hide project.rake * lib/rdoc/generator/template/json_index/.document: Hide JavaScript files * lib/rubygems/ssl_certs/.document: Hide PEM files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb, lib/irb/lc/ja/error.rb, lib/irb/lc/error.rb:keiju2012-12-252-0/+2
| | | | | | | | 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-133-1/+6
| | | | | | | | 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
* * lib: remove trailing spaces.nobu2011-05-182-12/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb, lib/irb/lc/help-message,mame2010-04-092-0/+4
| | | | | | 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
* * bin/irb, lib/irb.rb lib/irb/*: irb-0.9.6, extend inspect-modekeiju2009-07-074-4/+4
| | | | 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-062-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-184-34/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * $Date$ keyword removed to avoid inclusion of locale dependentakr2008-01-064-4/+0
| | | | | | | string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/weakref.rb, lib/irb/ruby-lex.rb, lib/irb/lc/error.rb, ↵akr2007-12-271-1/+1
| | | | | | | | | | enc/trans/japanese.c: change "illegal" to "invalid" in a context which doesn' t against a law. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5.keiju2005-04-134-10/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB::IRB.parse_opts): add -I option tomatz2004-02-202-0/+2
| | | | | | | | | | | | | 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
* update NotImplementError to NotImplementedError.matz2003-03-232-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/workspace.rb, lib/irb/ext/math-mode.rb,knu2003-02-073-24/+24
| | | | | | | | | | lib/irb/ext/multi-irb.rb, lib/irb/lc/error.rb, lib/irb/lc/help-message, lib/irb/lc/ja/error.rb, lib/shell/command-processor.rb, lib/shell/error.rb, lib/shell/filter.rb: Fix typos and grammos. [approved by: keiju] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * irb 0.9keiju2002-07-094-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e