summaryrefslogtreecommitdiff
path: root/lib/irb
AgeCommit message (Collapse)Author
2020-12-28irb: add more syntax errors colorizing support (#3967)Nobuhiro IMAI
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2020-12-28[ruby/irb] Add color_printer.rb to gemspecTakashi Kokubun
https://github.com/ruby/irb/commit/b4df0fd8b2
2020-12-28[ruby/irb] Enhance colored inspect outputTakashi Kokubun
https://github.com/ruby/irb/commit/dffcdb5269
2020-12-25[ruby/irb] Version 1.3.0aycabta
https://github.com/ruby/irb/commit/ec83280e66
2020-12-24[ruby/irb] Try not to register the exact same measuring method twiceaycabta
https://github.com/ruby/irb/commit/cc66b5573e
2020-12-23[ruby/irb] Change StdioInputMethod#eof? to non-blockingaycabta
This fixes --inf-ruby-mode. https://github.com/ruby/irb/commit/0e4a818955
2020-12-23[ruby/irb] Suppress "shadowing outer" warningaycabta
https://github.com/ruby/irb/commit/8b83fbef69
2020-12-23[ruby/reline] [ruby/irb] Handle multiple newlines in a token correctlyaycabta
Co-authored-by: manga_osyo <manga.osyo@gmail.com> Co-authored-by: ima1zumi <mariimaizumi5@gmail.com> https://github.com/ruby/irb/commit/c59a9be82f https://github.com/ruby/reline/commit/a7922da16b
2020-12-23[ruby/irb] Make it possible to use measure even if it is installed as gemTakeru Naito
Include the file that implements this command in the irb gem. Co-Authored-By: scivola <scivola@users.noreply.github.com> https://github.com/ruby/irb/commit/d8dfea5b57
2020-12-22[ruby/irb] Suppress "shadowing outer" warningaycabta
https://github.com/ruby/irb/commit/27b149c599
2020-12-22[ruby/irb] Version 1.2.9aycabta
https://github.com/ruby/irb/commit/9668e5fe6b
2020-12-22[ruby/irb] Support arg for measure commandaycabta
https://github.com/ruby/irb/commit/b43f35d8f3
2020-12-22[ruby/irb] Change variables handling for compatibilityaycabta
https://github.com/ruby/irb/commit/26fd1a75cf
2020-12-20irb: Define extension command on the given objectNobuyoshi Nakada
2020-12-20irb: Define extension command only on the given objectNobuyoshi Nakada
Not to interfer in class variables.
2020-12-20[ruby/irb] Version 1.2.8aycabta
https://github.com/ruby/irb/commit/bcd96834c7
2020-12-20[ruby/irb] Add measure commandaycabta
You can use "measure" command to check performance in IRB like below: irb(main):001:0> 3 => 3 irb(main):002:0> measure TIME is added. => nil irb(main):003:0> 3 processing time: 0.000058s => 3 irb(main):004:0> measure :off => nil irb(main):005:0> 3 => 3 You can set "measure :on" by "IRB.conf[:MEASURE] = true" in .irbrc, and, also, set custom performance check method: IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |context, code, line_no, &block| time = Time.now result = block.() now = Time.now puts 'custom processing time: %fs' % (Time.now - time) if IRB.conf[:MEASURE] result } https://github.com/ruby/irb/commit/3899eaf2e2
2020-12-20[ruby/irb] Handle rest of tokens correctly if no newline at lastaycabta
https://github.com/ruby/irb/commit/f3c8edad2a
2020-12-19[ruby/reline] [ruby/irb] Call ripper only once when generating dynamic promptaycabta
https://github.com/ruby/irb/commit/babb122a48 https://github.com/ruby/reline/commit/e6dbcb3b42
2020-12-17[ruby/irb] Change context-mode's default to new mode 4.Marc-Andre Lafortune
This new mode uses a copy of the TOPLEVEL_BINDING. This is compatible with refinements (contrary to mode 3), while keeping nested IRB sessions separate https://github.com/ruby/irb/commit/25c731cb2f
2020-12-17[ruby/irb] Enable deprecation warnings when using -W or -wJeremy Evans
Requested in Ruby Bug 17377 https://github.com/ruby/irb/commit/698f6eb34a
2020-12-17[ruby/irb] Fixed a typo in a comment [ci skip]Nobuyoshi Nakada
https://github.com/ruby/irb/commit/ce373417f3
2020-12-17[ruby/irb] workaround for lack of tokens from `Ripper.lex`Nobuhiro IMAI
* Fixes #38 https://github.com/ruby/irb/commit/905fb8e52e
2020-11-22[ruby/irb] Add a fallback for check_code_block that does not depend on ↵Benoit Daloze
implementation-private APIs * Fixes https://github.com/ruby/irb/issues/133 https://github.com/ruby/irb/commit/5eb3ef3293
2020-11-22[ruby/irb] support more body argument for oneliner method definitionNobuhiro IMAI
https://github.com/ruby/irb/commit/2ff1295533
2020-11-05Revert "Prefer #send over #__send__ when it is clear there is no possible ↵NARUSE, Yui
conflict" This reverts commit 4dba0c1a8e3cc08664872e637099c4e7d58d24d3. Matz's comment is "send is not deprecated. __send__ is safer". But "Prefer #send over #__send__" is not reasonable.
2020-11-05Prefer #send over #__send__ when it is clear there is no possible conflictBenoit Daloze
* Reverts part of 3198e7abd70bd2af977f2bb6c967e9df8f91adb0. * If the rule is #send should be deprecated, that should be ruled by matz, there is no such rule currently and gems seem to prefer #send overwhelmingly.
2020-10-27Separate `send` into `public_send` and `__send__`Nobuyoshi Nakada
2020-09-19[ruby/irb] Version 1.2.7aycabta
https://github.com/ruby/irb/commit/0eaa06838b
2020-09-19[ruby/irb] Drop OMIT_ON_ASSIGNMENT and add :truncate option for ↵aycabta
ECHO_ON_ASSIGNMENT https://github.com/ruby/irb/commit/4c89b0775b
2020-09-14[ruby/irb] Version 1.2.6aycabta
https://github.com/ruby/irb/commit/5a7dd8c3bf
2020-09-14[ruby/irb] Need calculate_width and split_by_width of Reline::Unicode of ↵aycabta
reline 0.1.5 or later https://github.com/ruby/irb/commit/c05bc9e595
2020-09-14[ruby/irb] Add OMIT_ON_ASSIGNMENTaycabta
Omit the results evaluated at assignment if they are too long. The behavior of ECHO_ON_ASSIGNMENT being on by default is hard to understand, so I change it to off by default. Instead, we turn OMIT_ON_ASSIGNMENT on by default. The result is displayed on assignment, but it will always be short and within one line of the screen. https://github.com/ruby/irb/commit/c5ea79d5ce
2020-09-14[ruby/irb] Version 1.2.5aycabta
https://github.com/ruby/irb/commit/07beb3964d
2020-08-28[ruby/irb] Discard newlines at end of fileaycabta
https://github.com/ruby/irb/commit/0b2773d91d
2020-08-18Update the license for the default gems to dual licensesHiroshi SHIBATA
2020-08-18[ruby/irb] Support shortening lambda notetion for nesting level of promptaycabta
https://github.com/ruby/irb/commit/f1a775af47
2020-08-18[ruby/irb] Support shortening lambda notationaycabta
https://github.com/ruby/irb/commit/8e3f81d428
2020-08-18[ruby/irb] Expand path to run separated test correctlyaycabta
https://github.com/ruby/irb/commit/be2937abd5
2020-08-18[ruby/irb] Workaround a bug of ruby-mode.elNobuyoshi Nakada
https://github.com/ruby/irb/commit/6dfd59400d
2020-08-18[ruby/irb] Yet another unnecessary readlineNobuyoshi Nakada
https://github.com/ruby/irb/commit/933841af11
2020-08-18[ruby/irb] Directly check if the method is available instead of versionNobuyoshi Nakada
https://github.com/ruby/irb/commit/3ea9fd9ed0
2020-08-18[ruby/irb] Get rid of loading readline unnecessarilyNobuyoshi Nakada
https://github.com/ruby/irb/commit/420e7d2270
2020-08-18[ruby/irb] Prefer require_relative to load the files in this libraryNobuyoshi Nakada
https://github.com/ruby/irb/commit/0ac3bc7296
2020-08-18[ruby/irb] Make history infinite if set SAVE_HISTORY to negativeaycabta
https://github.com/ruby/irb/commit/824473e880
2020-08-18[ruby/irb] Suppress crash when bignum is set to SAVE_HISTORYaycabta
https://github.com/ruby/irb/commit/5044eb2730
2020-08-18[ruby/irb] Symbol.all_symbols was adopted by Ruby 1.8.0 or lateraycabta
https://github.com/ruby/irb/commit/71ba754e8e
2020-08-18[ruby/irb] Support oneline method definitionaycabta
https://github.com/ruby/irb/commit/826ae909c9
2020-07-23Suppress "assigned but unused variable" warningsYusuke Endoh
2020-07-22Add require 'irb/ruby-lex' to use RubyLexaycabta