aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/irb] Version 1.2.4aycabta2020-05-171-2/+2
| | | | https://github.com/ruby/irb/commit/d7c5fb0273
* [ruby/irb] Suppress "method redefined" warningaycabta2020-04-291-3/+6
| | | | https://github.com/ruby/irb/commit/5f0aee56fa
* [ruby/irb] Check existence of rc files in irb_info commandaycabta2020-04-292-9/+12
| | | | https://github.com/ruby/irb/commit/cdbb9dfc9f
* [ruby/irb] Add irb_info commandaycabta2020-04-293-0/+62
| | | | https://github.com/ruby/irb/commit/a6fe58e916
* Support XDG_* (#2174)Hiroshi SHIBATA2020-04-231-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support XDG_CONFIG_HOME for gemrc. * Support XDG_DATA_HOME for .gem * Added test for XDG_DATA_HOME * Do not reuse environmental variable. * Unify .rdoc path to RDoc.home. * Support XDG_DATA_HOME for .rdoc * Ignore exists? * Extracted config_home path * Use XDG_CONFIG_HOME for default credential path * Fixed inconsistency location. * Fixed the broken tests. * Support XDG_CONFIG_HOME for irbrc * Introduce Gem.cache_home as XDG_CACHE_HOME * Use Gem.cache_home instead of Gem.config_home for the credential file of RubyGems. * Initialized the old configurations * Fixed test failure related the configuration initialization * restore XDG_DATA_HOME * Fixed the broken examples of bundler with XDG_* * Do not modify environmental variable on test file * Use XDG_DATA_HOME insted of XDG_CACHE_HOME for credential file * stub out Gem.data_home * Move dir accessor to defaults.rb file * Use XDG_DATA_HOME for signed gem features * Use XDG_DATA_HOME for spec cache * Do not rely on Gem.user_home * Gem.user_home is always exists. Don't need to use FileUitls.mkdir_p * Bump support version to RubyGems 3.2.0+ * Removed the needless fallback configuration * Fixed the inconsistency methods that are find_config_file and config_file * Use Gem.configuration.credentials_path instead of hard-coded path * gem_path is always provided * Removed the duplicated code of find_home * Also removed the duplicated code of user_home * use Gem::UNTAINT instead of untaint for surpressing the warnings * Use File.directory * Restore XDG_DATA_HOME * Use File.write
* [DOC] get rid of parsing as TIDYLINK unintentionallyNobuyoshi Nakada2020-04-072-4/+4
|
* [ruby/irb] Require jruby lib to get JRuby.compile_irCharles Oliver Nutter2020-03-291-0/+1
| | | | https://github.com/ruby/irb/commit/dc59afe4f6
* [ruby/irb] Suppress crashing when EncodingError has occurred without linenoaycabta2020-03-261-0/+2
| | | | https://github.com/ruby/irb/commit/13572d8cdc
* [ruby/irb] Unnamed groups are not captured when named groups are usedNobuyoshi Nakada2020-03-261-1/+1
| | | | https://github.com/ruby/irb/commit/0a641a69b0
* Ignore incompatible convert of symbolsKoichi Sasada2020-03-031-0/+2
|
* Convert incompatible encoding symbol namesaycabta2020-03-031-1/+3
|
* [ruby/irb] Version 1.2.3aycabta2020-02-171-2/+2
| | | | https://github.com/ruby/irb/commit/dd56e06df5
* [ruby/irb] fix reserved words and completion for themNobuhiro IMAI2020-02-151-2/+3
| | | | https://github.com/ruby/irb/commit/6184b227ad
* [ruby/irb] Include easter-egg.rb in gemspecNick Lewis2020-02-151-0/+1
| | | | | `irb` doesn't run because this file isn't included in the gem. https://github.com/ruby/irb/commit/73cda56d25
* [ruby/irb] Version 1.2.2aycabta2020-02-151-2/+2
| | | | https://github.com/ruby/irb/commit/a71753f15a
* [ruby/irb] Use 0.step instead of (..0).each for Ruby 2.5aycabta2020-02-121-1/+1
| | | | https://github.com/ruby/irb/commit/5d628ca40e
* [ruby/irb] Fix auto indent with closed braceaycabta2020-02-121-0/+1
| | | | | | | | | | | | A closed brace in auto-indent shouldn't affect the next brace in the same line, but it behaves like below: p() { } It's a bug. https://github.com/ruby/irb/commit/fbe59e344f
* [ruby/irb] Check doc namespace correctlyaycabta2020-02-121-3/+3
| | | | | | | IRB::InputCompletor::PerfectMatchedProc crashes when doc not found because a variable name was incorrect. https://github.com/ruby/irb/commit/889fd4928f
* [ruby/irb] Exclude useless files from RDocNobuyoshi Nakada2020-02-021-1/+1
| | | | https://github.com/ruby/irb/commit/8f1ab2400c
* [ruby/irb] Add a new easter egg: dancing rubyYusuke Endoh2020-02-022-5/+138
| | | | https://github.com/ruby/irb/commit/e37dc7e58e
* [ruby/irb] Exclude useless files from RDocNobuyoshi Nakada2020-02-012-4/+1
|
* [ruby/irb] Add newline_before_multiline_outputKenta Murata2020-01-211-0/+20
| | | | https://github.com/ruby/irb/commit/9eb1801a66
* [ruby/irb] Fix compatibility with rails before 5.2Lars Kanis2020-01-201-1/+1
| | | | | | | | | | | | | | | Rails before 5.2 added Array#append as an alias to Array#<< , so that it expects only one argument. However ruby-2.5 added Array#append as an alias to Array#push which takes any number of arguments. If irb completion is used in `rails c` (for example "IO.<tab>") it fails with: irb/completion.rb:206:in `<<': wrong number of arguments (given 3, expected 1) (ArgumentError) Using Array#push instead of Array#append fixes compatibility. https://github.com/ruby/irb/commit/5b7bbf9c34
* Use Reline.encoding_system_needs if existsaycabta2020-01-144-7/+20
|
* Remove an unused setting variableaycabta2020-01-141-1/+0
|
* [ruby/irb] Fix crashing when multiple open braces per lineBen2020-01-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/ruby/irb/issues/55 If we had put multiple open braces on a line the with no closing brace spaces_of_nest array keeps getting '0' added to it. This means that when we pop off of this array we are saying that we should be in position zero for the next line. This is an issue because we don't always want to be in position 0 after a closing brace. Example: ``` [[[ ] ] ] ``` In the above example the 'spaces_of_nest' array looks like this after the first line is entered: [0,0,0]. We really want to be indented 4 spaces for the 1st closing brace 2 for the 2nd and 0 for the 3rd. i.e. we want it to be: [0,2,4]. We also saw this issue with a heredoc inside of an array. ``` [<<FOO] hello FOO ``` https://github.com/ruby/irb/commit/80c69c8272
* [ruby/irb] Fix newline depth with multiple bracesBen2020-01-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes the check_newline_depth_difference method to multiple open braces on one line into account. Before this change we were subtracting from the depth in check_newline_depth_difference on every open brace. This is the right thing to do if the opening and closing brace are on the same line. For example in a method definition we have an opening and closing parentheses we want to add 1 to our depth, and then remove it. ``` def foo() end ``` However this isn't the correct behavior when the brace spans multiple lines. If a brace spans multiple lines we don't want to subtract from check_newline_depth_difference and we want to treat the braces the same way as we do `end` and allow check_corresponding_token_depth to pop the correct depth. Example of bad behavior: ``` def foo() [ ] puts 'bar' end ``` Example of desired behavior: ``` def foo() [ ] puts 'bar' end ``` https://github.com/ruby/irb/commit/7dc8af01e0
* [ruby/irb] Version 1.2.1aycabta2019-12-241-2/+2
| | | | https://github.com/ruby/irb/commit/8da0c74640
* [ruby/irb] Remove warning message to bundle on Ruby 2.7.0aycabta2019-12-241-6/+0
| | | | https://github.com/ruby/irb/commit/d9a7844f50
* [ruby/irb] Make nesting level up for `1.times do`Yusuke Endoh2019-12-221-1/+1
| | | | | | Follow up of the previous commit https://github.com/ruby/irb/commit/ab207353d3
* [ruby/irb] Fix auto-indent for `1.times do`Yusuke Endoh2019-12-221-1/+1
| | | | | | Fixes #47 https://github.com/ruby/irb/commit/6b8eca4635
* Fixed misspellingsNobuyoshi Nakada2019-12-201-1/+1
| | | | Fixed misspellings reported at [Bug #16437], for default gems.
* [ruby/irb] Version 1.2.0aycabta2019-12-071-2/+2
| | | | https://github.com/ruby/irb/commit/da6577a88c
* [ruby/irb] New IRB needs Ruby 2.5 or lateraycabta2019-12-071-1/+1
| | | | https://github.com/ruby/irb/commit/4be3158358
* [ruby/irb] Revert "Reidline mode needs Reline what needs ↵aycabta2019-12-071-1/+1
| | | | | | | | | | | String#grapheme_clusters" This reverts commit 2b0b19b87c60d2cdb329979acbb96e12a1f940e7. New IRB parser needs new Ripper what has lex_state too. The new Ripper is adopted by Ruby 2.5 or later. https://github.com/ruby/irb/commit/9ab6e35a2c
* [ruby/irb] Reidline mode needs Reline what needs String#grapheme_clustersaycabta2019-12-071-1/+1
| | | | https://github.com/ruby/irb/commit/2b0b19b87c
* Fix auto-indent behavior correctlyaycabta2019-12-031-1/+1
|
* Use @eof variable for ReidlineInputMethod#eof?aycabta2019-11-301-1/+1
| | | | | | "IRB::InputMethod#eof?" requires eof status each user input but "ReidlineInputMethod#eof?" used "Reline.eof?" what is singleton data. "ReidlineInputMethod#eof?" is changed to use the result of user input.
* Revert "Treat :@1, :@@1, @1, and @@1 correctly to check termination"aycabta2019-11-291-15/+0
| | | | | | This reverts commit 5e275dd2af4d9d24cdb1cfc0f232f348dae9c2cd. ...The @1 type numberd parameter is reverted from Ruby syntax.
* Fix regexp to complete complex literalaycabta2019-11-281-5/+3
| | | | | | IRB completion logic always needed exponential notation for complex literal such as 3e6i but it's bug. I fixed to support complex literal without exponential notation such as 3i.
* Remove two removed constantsaycabta2019-11-281-1/+1
|
* Remove an unnecessary variableaycabta2019-11-261-2/+1
|
* Slightly fix the warning message [ci skip]Takashi Kokubun2019-11-261-1/+1
| | | | I'm not sure, but maybe it was gramatically incorrect?
* Suggest an alternative to suppress the irb warningTakashi Kokubun2019-11-261-1/+2
|
* Cache loaded module to suppress method redefined warningsaycabta2019-11-251-1/+5
|
* Remove e2mmap dependencyaycabta2019-11-2510-66/+157
|
* Remove lib/irb/slex.rbaycabta2019-11-252-283/+0
|
* Remove debug code...aycabta2019-11-241-1/+0
|
* Disable tracer ext of IRB when tracer doesn't foundaycabta2019-11-241-1/+15
|
* Use more strict regexp to avoid to match naninanirb.rbKazuhiro NISHIYAMA2019-11-211-2/+2
|