aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/irb] Fix nested IRB sessions' history savingStan Lo2023-08-094-22/+14
| | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/652) 1. Dynamically including `HistorySavingAbility` makes things unnecessarily complicated and should be avoided. 2. Because both `Reline` and `Readline` use a single `HISTORY` constant to store history data. When nesting IRB sessions, only the first IRB session should handle history loading and saving so we can avoid duplicating history. 3. History saving callback should NOT be stored in `IRB.conf` as it's recreated every time `IRB.setup` is called, which would happen when nesting IRB sessions. https://github.com/ruby/irb/commit/0fef0ae160
* YJIT: Compile exception handlers (#8171)Takashi Kokubun2023-08-082-5/+5
| | | Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
* [ruby/irb] Remove unused `InputMethod#initialize`Stan Lo2023-08-071-15/+0
| | | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/635) * Remove unused InputMethod#initialize The constructor takes a `file_name` argument, but it is never used. The only input method that needs a file is `FileInputMethod`, which has its own constructor to take a file object directly. So the constructor in `InputMethod` is not needed and its child classes don't need to call `super` in their constructors. * Remove unused FileInputMethod#file_name https://github.com/ruby/irb/commit/153b1e9d1c
* [ruby/yarp] Document the build system of YARPBenoit Daloze2023-08-051-0/+1
| | | | https://github.com/ruby/yarp/commit/85ae0e2816
* Fix `Gem::BUNDLED_GEMS.find_gem` return valueNobuyoshi Nakada2023-08-051-1/+1
| | | | | | If the required name is different from the found gem name, return the gem name, instead of true that means the required name is an exact gem name.
* Display call location with bundled gems warningHiroshi SHIBATA2023-08-041-1/+1
|
* Fixed worng key of bundled_gems listHiroshi SHIBATA2023-08-041-1/+1
|
* Also decorate warning message with future tense for bundlerHiroshi SHIBATA2023-08-041-1/+2
|
* Use future tense if current version is older than list versionHiroshi SHIBATA2023-08-041-1/+1
|
* [ruby/irb] Deprecate multi-irb commandsStan Lo2023-08-021-4/+15
| | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/654) * Deprecate multi-irb commands - Print deprecated message when any of the commands are used - Put related commands under `Multi-irb` category with a deprecated label * Update readme https://github.com/ruby/irb/commit/861731ac12
* [rubygems/rubygems] Replaced remained local to lockfileHiroshi SHIBATA2023-08-022-2/+2
| | | | https://github.com/rubygems/rubygems/commit/6ed69223d4
* [ruby/irb] Drop src_encoding.rbStan Lo2023-08-022-8/+0
| | | | | | | | | (https://github.com/ruby/irb/pull/634) Its method `IRB.default_src_encoding` was only used in `magic-file.rb`, which has been removed. https://github.com/ruby/irb/commit/ed98983b1f
* [ruby/irb] Add workspace categoryStan Lo2023-08-012-5/+5
| | | | | | | | | | (https://github.com/ruby/irb/pull/661) * Create a new Workspace command category * Update readme https://github.com/ruby/irb/commit/310650c213
* [rubygems/rubygems] Use Kernel.singleton_classHiroshi SHIBATA2023-08-012-6/+3
| | | | https://github.com/rubygems/rubygems/commit/9be984f281
* [ruby/yarp] Document building, more macro changesKevin Newton2023-07-311-0/+1
| | | | https://github.com/ruby/yarp/commit/4214f262d2
* [ruby/irb] Decouple `edit` and `show_source` commandsStan Lo2023-07-313-65/+71
| | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/658) * Decouple `edit` command from `show_source` 2 commands should not depend on each other. If `edit` command also needs to find a source, the source finding logic should be extracted into a separate class. * Return nil if is not an actual file path * Refactor SourceFinder https://github.com/ruby/irb/commit/9790517a0c
* [rubygems/rubygems] update Magnus library in Rust extension gem templateMat Sadler2023-07-312-5/+5
| | | | https://github.com/rubygems/rubygems/commit/19a92a3367
* [ruby/optparse] [DOC] Mark up constant and method names as codeNobuyoshi Nakada2023-07-301-1/+1
| | | | https://github.com/ruby/optparse/commit/e8bee0be8f
* [rubygems/rubygems] Set thread configurations inside block in the thread ↵Nobuyoshi Nakada2023-07-302-14/+12
| | | | | | local manner https://github.com/rubygems/rubygems/commit/965e54b8f1
* [rubygems/rubygems] Use the dedicated method to convert file pathNobuyoshi Nakada2023-07-302-3/+3
| | | | | | | | The dedicated method `File.path` to deal with pathname-like objects has been provided since ruby 1.9.0. Also adds a test for rubygems/rubygems#6837. https://github.com/rubygems/rubygems/commit/258c6eda80
* [ruby/rdoc] Use a more portable way to check if code is parseableBenoit Daloze2023-07-291-1/+3
| | | | | | | | * The same as used in irb: https://github.com/ruby/irb/pull/134/files * This works on all Ruby implementations, unlike `return` in BEGIN which can be quite difficult to support. https://github.com/ruby/rdoc/commit/d19f7c66fe
* Revert "[rubygems/rubygems] Set thread configurations inside block"ko12023-07-292-4/+4
| | | | | | | | | | | | This reverts commit db80e947a382a6a9ef2295e81f5b97c6a8ecbce7. This patch uses `Thread.abort_on_exception = true` and it affects all of threads. This is why CI systems fails. How to modify: - use `thread.abort_on_exception = true` for specific threads - Run this code in a separated process
* [rubygems/rubygems] Add charset to Webauthn response content-typeJenny Shen2023-07-281-1/+1
| | | | https://github.com/rubygems/rubygems/commit/442a3e8f37
* [rubygems/rubygems] Set thread configurations inside blockJenny Shen2023-07-282-4/+4
| | | | https://github.com/rubygems/rubygems/commit/860b145359
* [rubygems/rubygems] Move Webauthn listener thread to WebauthnListener classJenny Shen2023-07-281-8/+6
| | | | https://github.com/rubygems/rubygems/commit/6ec474975e
* [rubygems/rubygems] Move WebauthnListener into the Gem::GemcutterUtilities ↵Jenny Shen2023-07-285-269/+273
| | | | | | namespace https://github.com/rubygems/rubygems/commit/3080394f81
* [rubygems/rubygems] Extract polling logic into its own classJenny Shen2023-07-282-41/+81
| | | | https://github.com/rubygems/rubygems/commit/218b83abed
* [rubygems/rubygems] Add Webauthn verification poller to fetch OTPJenny Shen2023-07-281-12/+69
| | | | https://github.com/rubygems/rubygems/commit/39c5e86a67
* Removed unnecessary methodsHiroshi SHIBATA2023-07-281-8/+0
|
* Use Gem::BUNDLED_GEMS::SINCEHiroshi SHIBATA2023-07-281-7/+3
|
* Warn default gems which will be gemified in futureNobuyoshi Nakada2023-07-282-2/+83
|
* [rubygems/rubygems] Restore support for Pathname objects in the replaced requireXavier Noria2023-07-271-1/+1
| | | | https://github.com/rubygems/rubygems/commit/f7b4282ef7
* [ruby/reline] Add `kill-word` and `backward-kill-word` keymappingosyo-manga2023-07-271-0/+2
| | | | | | | | | | | | support. (https://github.com/ruby/reline/pull/570) Fix it https://github.com/ruby/reline/issues/558 https://github.com/ruby/reline/commit/0f8000443e Co-authored-by: Stan Lo <stan001212@gmail.com>
* [ruby/reline] Bump version to 0.3.7Stan Lo2023-07-271-1/+1
| | | | | | (https://github.com/ruby/reline/pull/578) https://github.com/ruby/reline/commit/dc5a1b7c48
* [ruby/irb] Page `ls`'s output (https://github.com/ruby/irb/pull/657)Stan Lo2023-07-263-8/+38
| | | | | | | | * Page ls command's output * Use Pager.page_content in show_cmds too https://github.com/ruby/irb/commit/82d1687302
* Added Gem::BUNDLED_GEMS for warning feature of BundlerHiroshi SHIBATA2023-07-261-0/+23
|
* [ruby/irb] Display `show_cmds`'s output in a pager when in TTYStan Lo2023-07-252-3/+65
| | | | | | | | | | | | | environment (https://github.com/ruby/irb/pull/647) This can: - Make it easier to scroll up and down the commands list - Avoid pushing up users' previous output - Allow users to do basic search with `/<word>` https://github.com/ruby/irb/commit/f94e8a66dd
* [ruby/reline] Avoid using CSI # S for scroll downStan Lo2023-07-251-1/+4
| | | | | | (https://github.com/ruby/reline/pull/577) https://github.com/ruby/reline/commit/b67ee4e791
* [rubygems/rubygems] bin/rubocop -AHiroshi SHIBATA2023-07-251-2/+2
| | | | https://github.com/rubygems/rubygems/commit/e8a4184429
* [rubygems/rubygems] Extract Gem::BUNDLED_GEMS from BundlerHiroshi SHIBATA2023-07-252-24/+23
| | | | https://github.com/rubygems/rubygems/commit/e30e86aa60
* [rubygems/rubygems] Skip warnings if bundled gems is already loadedHiroshi SHIBATA2023-07-251-7/+9
| | | | https://github.com/rubygems/rubygems/commit/9583a7eb82
* [rubygems/rubygems] Use Kernel.singleton_classHiroshi SHIBATA2023-07-251-4/+2
| | | | https://github.com/rubygems/rubygems/commit/f2e8e054df
* [rubygems/rubygems] Don't reuse require argumentHiroshi SHIBATA2023-07-251-3/+3
| | | | https://github.com/rubygems/rubygems/commit/1712cd6149
* [rubygems/rubygems] Added warnings targets for old version of RubyHiroshi SHIBATA2023-07-252-0/+9
| | | | https://github.com/rubygems/rubygems/commit/d0c1d97105
* [rubygems/rubygems] Added Ruby version for bundled gems to warningsHiroshi SHIBATA2023-07-252-6/+15
| | | | https://github.com/rubygems/rubygems/commit/d61c1362e7
* [rubygems/rubygems] Simplefied conditionHiroshi SHIBATA2023-07-251-10/+8
| | | | https://github.com/rubygems/rubygems/commit/5238fcf234
* [rubygems/rubygems] make bundled gemst list as constant under Gem namespaceHiroshi SHIBATA2023-07-252-5/+7
| | | | https://github.com/rubygems/rubygems/commit/438eac5447
* [rubygems/rubygems] Also check Kernel.require for infinite loopHiroshi SHIBATA2023-07-251-2/+3
| | | | https://github.com/rubygems/rubygems/commit/961d9ac1bd
* [rubygems/rubygems] Avoid infinite call of requireHiroshi SHIBATA2023-07-251-0/+2
| | | | https://github.com/rubygems/rubygems/commit/9c345bfa3e
* [rubygems/rubygems] Keep Kernel#require privateHiroshi SHIBATA2023-07-251-1/+5
| | | | https://github.com/rubygems/rubygems/commit/cd59e73efa