summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2023-07-28Use Gem::BUNDLED_GEMS::SINCEHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8126
2023-07-28Warn default gems which will be gemified in futureNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8126
2023-07-27[rubygems/rubygems] Restore support for Pathname objects in the replaced requireXavier Noria
https://github.com/rubygems/rubygems/commit/f7b4282ef7
2023-07-27[ruby/reline] Add `kill-word` and `backward-kill-word` keymappingosyo-manga
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>
2023-07-27[ruby/reline] Bump version to 0.3.7Stan Lo
(https://github.com/ruby/reline/pull/578) https://github.com/ruby/reline/commit/dc5a1b7c48
2023-07-26[ruby/irb] Page `ls`'s output (https://github.com/ruby/irb/pull/657)Stan Lo
* Page ls command's output * Use Pager.page_content in show_cmds too https://github.com/ruby/irb/commit/82d1687302
2023-07-26Added Gem::BUNDLED_GEMS for warning feature of BundlerHiroshi SHIBATA
2023-07-25[ruby/irb] Display `show_cmds`'s output in a pager when in TTYStan Lo
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
2023-07-25[ruby/reline] Avoid using CSI # S for scroll downStan Lo
(https://github.com/ruby/reline/pull/577) https://github.com/ruby/reline/commit/b67ee4e791
2023-07-25[rubygems/rubygems] bin/rubocop -AHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e8a4184429
2023-07-25[rubygems/rubygems] Extract Gem::BUNDLED_GEMS from BundlerHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e30e86aa60
2023-07-25[rubygems/rubygems] Skip warnings if bundled gems is already loadedHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9583a7eb82
2023-07-25[rubygems/rubygems] Use Kernel.singleton_classHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f2e8e054df
2023-07-25[rubygems/rubygems] Don't reuse require argumentHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/1712cd6149
2023-07-25[rubygems/rubygems] Added warnings targets for old version of RubyHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d0c1d97105
2023-07-25[rubygems/rubygems] Added Ruby version for bundled gems to warningsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d61c1362e7
2023-07-25[rubygems/rubygems] Simplefied conditionHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/5238fcf234
2023-07-25[rubygems/rubygems] make bundled gemst list as constant under Gem namespaceHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/438eac5447
2023-07-25[rubygems/rubygems] Also check Kernel.require for infinite loopHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/961d9ac1bd
2023-07-25[rubygems/rubygems] Avoid infinite call of requireHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9c345bfa3e
2023-07-25[rubygems/rubygems] Keep Kernel#require privateHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/cd59e73efa
2023-07-25[rubygems/rubygems] Don't use redefine_methodHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f733f90110
2023-07-25[rubygems/rubygems] Warn if file is loaded without GemfileHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/bf59dcdad1
2023-07-25[rubygems/rubygems] Simplify double loopNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/630dc02112
2023-07-25[rubygems/rubygems] Use `Monitor#synchronize` to ensure to exitNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/b424353239
2023-07-24[rubygems/rubygems] Bundler: Update bundle-outdated(1) manKentaro Takeyama
Updated output examples to current format since the output format has changed since version 2.2.0.dev https://github.com/rubygems/rubygems/commit/48d98f906a
2023-07-24[rubygems/rubygems] Rename local to lockfile and global to systemHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/456fd05d3a
2023-07-24[rubygems/rubygems] Avoid unnecessary network requests for local gemDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ec5f04f7b1
2023-07-24[rubygems/rubygems] Avoid printing using messages when version has not changedDavid Rodríguez
https://github.com/rubygems/rubygems/commit/9635a2fd74
2023-07-24[rubygems/rubygems] Exclude Bundler from missing locked dependencies checkDavid Rodríguez
Bundler is special since it's not actually locked in the lockfile as a regular gem (only via `BUNDLED WITH`). So exclude it from that check. https://github.com/rubygems/rubygems/commit/9f1756ec47
2023-07-21[rubygems/rubygems] Deprecate Gem::Platform.matchHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e3ba3e2225
2023-07-21[rubygems/rubygems] Boundary check in `Gem::StreamUI#choose_from_list`Nobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/abacb0cb34
2023-07-20Sync YARP gemspec (#8101)Jemma Issroff
* Sync YARP gemspec We were previously not syncing the YARP gemspec over which meant that the Ruby YARP gem was out of sync. * Sync YARP node / lex_compat files Notes: Merged-By: jemmaissroff
2023-07-20[ruby/syntax_suggest] Handle new eval source locationJean Boussier
See https://bugs.ruby-lang.org/issues/19755 In Ruby 3.3, using `eval` without providing a source location will now default to `"(eval at #{__FILE__}:#{__LINE__})"`. https://github.com/ruby/syntax_suggest/commit/8e5076472e
2023-07-19[rubygems/rubygems] Clear `YAML` constant if it was undefined previouslyNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/31d0311258
2023-07-19[ruby/reline] Always set ANSI CSI keybindings for Home, End, andtomoya ishida
Arrow. (https://github.com/ruby/reline/pull/569) https://github.com/ruby/reline/commit/f363a43a45
2023-07-18[ruby/reline] Fix [nil] is passed to auto_indent_proc when exit withosyo-manga
CTRL+d (https://github.com/ruby/reline/pull/571) * Fix [nil] is passed to auto_indent_proc when exit with CTRL+d Fix it https://github.com/ruby/reline/issues/556 * not call auto_indent_proc when Ctrl+d. see: https://github.com/ruby/reline/pull/571#issuecomment-1637183195 https://github.com/ruby/reline/commit/0924f2a075
2023-07-18[ruby/irb] Declare rdoc as dependencyStan Lo
(https://github.com/ruby/irb/pull/648) IRB already has several features that rely on rdoc, such as: - Autocompletion's document dialog - Autocompletion's `PerfectMatchedProc` - The `show_doc` command - Easter egg And we could use its pager more in the future too. So it makes sense to declare rdoc as a dependency instead of relying on the one bundled with Ruby. https://github.com/ruby/irb/commit/4dffbb1dd3
2023-07-17Remove __bp__ and speed-up bmethod calls (#8060)Alan Wu
Remove rb_control_frame_t::__bp__ and optimize bmethod calls This commit removes the __bp__ field from rb_control_frame_t. It was introduced to help MJIT, but since MJIT was replaced by RJIT, we can use vm_base_ptr() to compute it from the SP of the previous control frame instead. Removing the field avoids needing to set it up when pushing new frames. Simply removing __bp__ would cause crashes since RJIT and YJIT used a slightly different stack layout for bmethod calls than the interpreter. At the moment of the call, the two layouts looked as follows: ┌────────────┐ ┌────────────┐ │ frame_base │ │ frame_base │ ├────────────┤ ├────────────┤ │ ... │ │ ... │ ├────────────┤ ├────────────┤ │ args │ │ args │ ├────────────┤ └────────────┘<─prev_frame_sp │ receiver │ prev_frame_sp─>└────────────┘ RJIT & YJIT interpreter Essentially, vm_base_ptr() needs to compute the address to frame_base given prev_frame_sp in the diagrams. The presence of the receiver created an off-by-one situation. Make the interpreter use the layout the JITs use for iseq-to-iseq bmethod calls. Doing so removes unnecessary argument shifting and vm_exec_core() re-entry from the interpreter, yielding a speed improvement visible through `benchmark/vm_defined_method.yml`: patched: 7578743.1 i/s master: 4796596.3 i/s - 1.58x slower C-to-iseq bmethod calls now store one more VALUE than before, but that should have negligible impact on overall performance. Note that re-entering vm_exec_core() used to be necessary for firing TracePoint events, but that's no longer the case since 9121e57a5f50bc91bae48b3b91edb283bf96cb6b. Closes ruby/ruby#6428
2023-07-15[ruby/irb] Indent multiline percent literalstomoya ishida
(https://github.com/ruby/irb/pull/643) https://github.com/ruby/irb/commit/18bb4022a9
2023-07-15[ruby/irb] Bump 1.7.4 (https://github.com/ruby/irb/pull/645)ima1zumi
https://github.com/ruby/irb/commit/b0f650a766
2023-07-14[ruby/yarp] Remove pattern matching pinning to enable support for <= Ruby 3.0Jemma Issroff
Pattern matching variable pinning was introduced in Ruby 3.1. We need to remove it from YARP to support earlier rubies. https://github.com/ruby/yarp/commit/b792c58e3b
2023-07-14[ruby/irb] Fix history-saving featureStan Lo
(https://github.com/ruby/irb/pull/642) * Define RelineInputMethod::HISTORY The HistorySavingAbility module doesn't do anything if the input method class doesn't define HISTORY. - https://github.com/ruby/irb/blob/3ac96be660bf052902fb4e532c7a46cf294b71eb/lib/irb/history.rb#L10 - https://github.com/ruby/irb/blob/3ac96be660bf052902fb4e532c7a46cf294b71eb/lib/irb/history.rb#L34 This patch defines RelineInputMethod::HISTORY to avoid this. * Improve history-saving's ability check Instead of checking the existence of `input_method_class::HISTORY`, we should make every input method class declare if it supports history saving or not. Since the default value is `false`, it shouldn't break any custom input method that inherits from `IRB::InputMethod`. https://github.com/ruby/irb/commit/aec7a5b3f5
2023-07-13Remove RARRAY_CONST_PTR_TRANSIENTPeter Zhu
RARRAY_CONST_PTR now does the same things as RARRAY_CONST_PTR_TRANSIENT. Notes: Merged: https://github.com/ruby/ruby/pull/8071
2023-07-13[ruby/getoptlong] [DOC] Add spaces to fix formatting in exampleB. Burt
To make the example code verbatim. Fixes ruby/ruby#8061 https://github.com/ruby/getoptlong/commit/85fe502916
2023-07-13[rubygems/rubygems] Don't run any git commands when sorting and comparing ↵David Rodríguez
git sources Previously, when sorting and comparing git Gemfile vs lockfile sources during `bundler/setup` to figure out whether we need to re-resolve or not, we would try to find the default branch if nothing more specific was specified in the Gemfile. If the git cache has been deleted thought, that would fail. The error would still be swallowed (and the branch would simply not be displayed), but trying to clone would still generate the side effect of creating the parent folder for the clone. That could affect non-writable systems that don't expect `bundler/setup` to write to the filesystem at all. To fix this, override `Bundler::Source::Git#identifier` to use exclusively static information, so it does not even try to clone the repo nor generate any side effects. https://github.com/rubygems/rubygems/commit/582eb2ef39
2023-07-13[rubygems/rubygems] restart with BUNDLE_VERSION if it's specifiedHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/57cfe7cf8d
2023-07-13[rubygems/rubygems] Introduce bundle config set version featureHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c431a1df52
2023-07-13[ruby/irb] Bump version to 1.7.3Stan Lo
(https://github.com/ruby/irb/pull/639) https://github.com/ruby/irb/commit/621c8c2b7d
2023-07-12[ruby/irb] Correct preferred_dialog_height's callerStan Lo
(https://github.com/ruby/irb/pull/638) The caller should be the dialog itself, not Reline. https://github.com/ruby/irb/commit/418c2b945e