summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2023-08-16[rubygems/rubygems] Move `lockfile_source` variable out of condition branchDavid Rodríguez
https://github.com/rubygems/rubygems/commit/efebc64250
2023-08-16[rubygems/rubygems] Refactor locked dep filtering moreDavid Rodríguez
We only need to check whether the spec if for a direct dependency once. https://github.com/rubygems/rubygems/commit/65b455a5cb
2023-08-16[rubygems/rubygems] Avoid unnecessary loop through dependenciesDavid Rodríguez
https://github.com/rubygems/rubygems/commit/2ab63bb94d
2023-08-16[ruby/net-http] Update lib/net/http.rbJosh Nichols
@natematykiewicz's suggestion to avoid another string allocation https://github.com/ruby/net-http/commit/4a22c42338 Co-authored-by: Nate Matykiewicz <natematykiewicz@gmail.com>
2023-08-16[ruby/net-http] Update lib/net/http/response.rbJosh Nichols
@natematykiewicz's suggestion to avoid a string allocation https://github.com/ruby/net-http/commit/925630f227 Co-authored-by: Nate Matykiewicz <natematykiewicz@gmail.com>
2023-08-16[ruby/net-http] use +'' everywhereJosh Nichols
https://github.com/ruby/net-http/commit/1077427152
2023-08-16[ruby/net-http] Fix on 2.7Josh Nichols
https://github.com/ruby/net-http/commit/5194fd541e
2023-08-16[ruby/net-http] freeze rest of libJosh Nichols
https://github.com/ruby/net-http/commit/455a74734a
2023-08-16[ruby/net-http] update net/http/response to be frozen string literalJosh Nichols
https://github.com/ruby/net-http/commit/dc3b4a75ca
2023-08-16[ruby/net-http] turn on frozen strings for net/http/generic_requestJosh Nichols
https://github.com/ruby/net-http/commit/b92ade088d
2023-08-16[ruby/net-http] turn on frozen strings for net/http/headerJosh Nichols
https://github.com/ruby/net-http/commit/a5203c9f92
2023-08-16[ruby/net-http] Improve performance of HTTPHeader#content_typeJosh Nichols
In the existing implementation, `main_type` and `sub_type` would end up being called multiple times potentially. Instead of doing that, save the result so it can be re-used. https://github.com/ruby/net-http/commit/179976f7ea
2023-08-13[ruby/irb] Support seamless integration with ruby/debugStan Lo
(https://github.com/ruby/irb/pull/575) * Support native integration with ruby/debug * Prevent using multi-irb and activating debugger at the same time Multi-irb makes a few assumptions: - IRB will manage all threads that host sub-irb sessions - All IRB sessions will be run on the threads created by IRB itself However, when using the debugger these assumptions are broken: - `debug` will freeze ALL threads when it suspends the session (e.g. when hitting a breakpoint, or performing step-debugging). - Since the irb-debug integration runs IRB as the debugger's interface, it will be run on the debugger's thread, which is not managed by IRB. So we should prevent the 2 features from being used at the same time. To do that, we check if the other feature is already activated when executing the commands that would activate the other feature. https://github.com/ruby/irb/commit/d8fb3246be
2023-08-13[ruby/irb] Move IO configuration to IRB::IrbStan Lo
(https://github.com/ruby/irb/pull/681) It shouldn't be `RubyLex`'s responsibility to handle IO. So this moves the configuration to `IRB::Irb`. https://github.com/ruby/irb/commit/daff750076
2023-08-13[ruby/irb] Remove useless `begin`/`end` [ci skip]Nobuyoshi Nakada
(https://github.com/ruby/irb/pull/680) The `rescue` was removed at https://github.com/ruby/irb/commit/420e7d227011. https://github.com/ruby/irb/commit/8fa688e9c0
2023-08-12[ruby/irb] Drop showing indent level number in DEFAULT prompt andtomoya ishida
INF_RUBY prompt (https://github.com/ruby/irb/pull/679) * Drop showing indent level number in DEFAULT prompt and INF_RUBY prompt * Update prompt part of test_rendering's expected result https://github.com/ruby/irb/commit/3847532e54
2023-08-12[ruby/irb] Reline/ReadlineInputMethod should inheritStan Lo
StdioInputMethod (https://github.com/ruby/irb/pull/671) They are both built on top of stdio and are basically extended version of StdioInputMethod. They also share several attributes and methods with StdioInputMethod. https://github.com/ruby/irb/commit/c5f5abdbde
2023-08-11[ruby/irb] Remove needless removal of trailing whitespace intomoya ishida
check_code_state (https://github.com/ruby/irb/pull/678) https://github.com/ruby/irb/commit/4a6af7d1ed
2023-08-11[ruby/irb] Move assignment check to RubyLexStan Lo
(https://github.com/ruby/irb/pull/670) Since assignment check relies on tokenization with `Ripper`, it feels like the responsibility of `RubyLex`. `Irb#eval_input` should simply get the result when calling `each_top_level_statement` on `RubyLex`. https://github.com/ruby/irb/commit/89d1adb3fd
2023-08-11[ruby/irb] Don't echo an expression's result when it ends with aStan Lo
semicolon (https://github.com/ruby/irb/pull/669) https://github.com/ruby/irb/commit/50185c2833
2023-08-11[ruby/irb] Add black and white color to IRB::ColorStan Lo
(https://github.com/ruby/irb/pull/676) https://github.com/ruby/irb/commit/a2763acade
2023-08-09[ruby/irb] Fix nested IRB sessions' history savingStan Lo
(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
2023-08-08YJIT: Compile exception handlers (#8171)Takashi Kokubun
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com> Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-08-07[ruby/irb] Remove unused `InputMethod#initialize`Stan Lo
(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
2023-08-05[ruby/yarp] Document the build system of YARPBenoit Daloze
https://github.com/ruby/yarp/commit/85ae0e2816
2023-08-05Fix `Gem::BUNDLED_GEMS.find_gem` return valueNobuyoshi Nakada
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. Notes: Merged: https://github.com/ruby/ruby/pull/8178
2023-08-04Display call location with bundled gems warningHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8172
2023-08-04Fixed worng key of bundled_gems listHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8172
2023-08-04Also decorate warning message with future tense for bundlerHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8172
2023-08-04Use future tense if current version is older than list versionHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8172
2023-08-02[ruby/irb] Deprecate multi-irb commandsStan Lo
(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
2023-08-02[rubygems/rubygems] Replaced remained local to lockfileHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/6ed69223d4
2023-08-02[ruby/irb] Drop src_encoding.rbStan Lo
(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
2023-08-01[ruby/irb] Add workspace categoryStan Lo
(https://github.com/ruby/irb/pull/661) * Create a new Workspace command category * Update readme https://github.com/ruby/irb/commit/310650c213
2023-08-01[rubygems/rubygems] Use Kernel.singleton_classHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9be984f281
2023-07-31[ruby/yarp] Document building, more macro changesKevin Newton
https://github.com/ruby/yarp/commit/4214f262d2
2023-07-31[ruby/irb] Decouple `edit` and `show_source` commandsStan Lo
(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
2023-07-31[rubygems/rubygems] update Magnus library in Rust extension gem templateMat Sadler
https://github.com/rubygems/rubygems/commit/19a92a3367
2023-07-30[ruby/optparse] [DOC] Mark up constant and method names as codeNobuyoshi Nakada
https://github.com/ruby/optparse/commit/e8bee0be8f
2023-07-30[rubygems/rubygems] Set thread configurations inside block in the thread ↵Nobuyoshi Nakada
local manner https://github.com/rubygems/rubygems/commit/965e54b8f1
2023-07-30[rubygems/rubygems] Use the dedicated method to convert file pathNobuyoshi Nakada
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
2023-07-29[ruby/rdoc] Use a more portable way to check if code is parseableBenoit Daloze
* 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
2023-07-29Revert "[rubygems/rubygems] Set thread configurations inside block"ko1
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
2023-07-28[rubygems/rubygems] Add charset to Webauthn response content-typeJenny Shen
https://github.com/rubygems/rubygems/commit/442a3e8f37
2023-07-28[rubygems/rubygems] Set thread configurations inside blockJenny Shen
https://github.com/rubygems/rubygems/commit/860b145359
2023-07-28[rubygems/rubygems] Move Webauthn listener thread to WebauthnListener classJenny Shen
https://github.com/rubygems/rubygems/commit/6ec474975e
2023-07-28[rubygems/rubygems] Move WebauthnListener into the Gem::GemcutterUtilities ↵Jenny Shen
namespace https://github.com/rubygems/rubygems/commit/3080394f81
2023-07-28[rubygems/rubygems] Extract polling logic into its own classJenny Shen
https://github.com/rubygems/rubygems/commit/218b83abed
2023-07-28[rubygems/rubygems] Add Webauthn verification poller to fetch OTPJenny Shen
https://github.com/rubygems/rubygems/commit/39c5e86a67
2023-07-28Removed unnecessary methodsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8126