aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/yarp] Treat yp_buffer_t as an opaque pointerKevin Newton2023-08-171-46/+61
| | | | | | | | | | | | Right now, we have to keep the buffer FFI object in sync with the definition of yp_buffer_t because we access its fields directly. If we add more fields or change the order, things will get out of sync. Instead, let's treat yp_buffer_t as an opaque pointer and access its fields through accessor functions directly. This is more consistent with how we handle strings anyway. https://github.com/ruby/yarp/commit/878d845eff
* [rubygems/rubygems] Add `file` option to `ruby` method in GemfileNgan Pham2023-08-173-0/+24
| | | | https://github.com/rubygems/rubygems/commit/fb9354b7bf
* [rubygems/rubygems] Clarify that `bundle info` takes a gem nameManu2023-08-1730-34/+34
| | | | https://github.com/rubygems/rubygems/commit/09ef74ef73
* Resync YARPTakashi Kokubun2023-08-166-177/+1108
|
* [ruby/yarp] Fixes so `bundle exec rake` can run on JRuby and TruffleRubyBenoit Daloze2023-08-161-3/+3
| | | | https://github.com/ruby/yarp/commit/e6cea4fa08
* [ruby/yarp] Add a CHANGELOGKevin Newton2023-08-161-0/+1
| | | | https://github.com/ruby/yarp/commit/b490ff0919
* [ruby/yarp] Hide debug methodsKevin Newton2023-08-161-2/+11
| | | | https://github.com/ruby/yarp/commit/aa0dc2f301
* [ruby/yarp] Simplify creation of numericsKevin Newton2023-08-161-2/+8
| | | | https://github.com/ruby/yarp/commit/e5f6ffa23a
* [ruby/yarp] Move the gem's C extension into lib/yarp/Mike Dalessio2023-08-161-1/+2
| | | | | | | and change the require from "yarp.so" to "yarp/yarp", which is more aligned with existing community conventions for gems. https://github.com/ruby/yarp/commit/64b70e2658
* [ruby/irb] Encapsulate input details in Statement objectsStan Lo2023-08-163-41/+104
| | | | | | | | | | (https://github.com/ruby/irb/pull/682) * Introduce Statement class * Split Statement class for better clarity https://github.com/ruby/irb/commit/65e8e68690
* [rubygems/rubygems] Show better error when PAT can't authenticate to a ↵David Rodríguez2023-08-163-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | private server Before: ``` Fetching gem metadata from https://rubygems.org/........ Fetching source index from https://rubygems.pkg.github.com/my-org/ Bad username or password for https://x-access-token@rubygems.pkg.github.com/my-org/. Please double-check your credentials and correct them. ``` After: ``` Fetching gem metadata from https://rubygems.org/........ Fetching source index from https://rubygems.pkg.github.com/my-org/ Access token could not be authenticated for https://x-access-token@rubygems.pkg.github.com/my-org/. Make sure it's valid and has the necessary scopes configured. ``` https://github.com/rubygems/rubygems/commit/2ae69c964a
* [rubygems/rubygems] Bad auth should not fallback eitherDavid Rodríguez2023-08-161-1/+1
| | | | https://github.com/rubygems/rubygems/commit/ba3ea27869
* [rubygems/rubygems] Fix git source conservativenessDavid Rodríguez2023-08-162-0/+8
| | | | https://github.com/rubygems/rubygems/commit/9a0e0dfd5b
* [rubygems/rubygems] Extract s.name to a variableDavid Rodríguez2023-08-161-2/+3
| | | | https://github.com/rubygems/rubygems/commit/689c39b42f
* [rubygems/rubygems] Remove unneeded stuffDavid Rodríguez2023-08-161-2/+2
| | | | | | This should be only for path sources, and unrelated to git. https://github.com/rubygems/rubygems/commit/0d8f31eeed
* [rubygems/rubygems] Don't update locked sources when not necessaryDavid Rodríguez2023-08-162-8/+5
| | | | https://github.com/rubygems/rubygems/commit/cfc82b592a
* [rubygems/rubygems] Extract a `default_source` methodDavid Rodríguez2023-08-161-5/+9
| | | | https://github.com/rubygems/rubygems/commit/784e08348e
* [rubygems/rubygems] Move `lockfile_source` variable out of condition branchDavid Rodríguez2023-08-161-2/+2
| | | | https://github.com/rubygems/rubygems/commit/efebc64250
* [rubygems/rubygems] Refactor locked dep filtering moreDavid Rodríguez2023-08-161-3/+3
| | | | | | We only need to check whether the spec if for a direct dependency once. https://github.com/rubygems/rubygems/commit/65b455a5cb
* [rubygems/rubygems] Avoid unnecessary loop through dependenciesDavid Rodríguez2023-08-161-4/+2
| | | | https://github.com/rubygems/rubygems/commit/2ab63bb94d
* [ruby/net-http] Update lib/net/http.rbJosh Nichols2023-08-161-2/+2
| | | | | | | | @natematykiewicz's suggestion to avoid another string allocation https://github.com/ruby/net-http/commit/4a22c42338 Co-authored-by: Nate Matykiewicz <natematykiewicz@gmail.com>
* [ruby/net-http] Update lib/net/http/response.rbJosh Nichols2023-08-161-1/+1
| | | | | | | | @natematykiewicz's suggestion to avoid a string allocation https://github.com/ruby/net-http/commit/925630f227 Co-authored-by: Nate Matykiewicz <natematykiewicz@gmail.com>
* [ruby/net-http] use +'' everywhereJosh Nichols2023-08-162-3/+3
| | | | https://github.com/ruby/net-http/commit/1077427152
* [ruby/net-http] Fix on 2.7Josh Nichols2023-08-161-1/+1
| | | | https://github.com/ruby/net-http/commit/5194fd541e
* [ruby/net-http] freeze rest of libJosh Nichols2023-08-167-7/+7
| | | | https://github.com/ruby/net-http/commit/455a74734a
* [ruby/net-http] update net/http/response to be frozen string literalJosh Nichols2023-08-161-3/+3
| | | | https://github.com/ruby/net-http/commit/dc3b4a75ca
* [ruby/net-http] turn on frozen strings for net/http/generic_requestJosh Nichols2023-08-161-3/+3
| | | | https://github.com/ruby/net-http/commit/b92ade088d
* [ruby/net-http] turn on frozen strings for net/http/headerJosh Nichols2023-08-161-1/+1
| | | | https://github.com/ruby/net-http/commit/a5203c9f92
* [ruby/net-http] Improve performance of HTTPHeader#content_typeJosh Nichols2023-08-161-4/+8
| | | | | | | | | 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
* [ruby/irb] Support seamless integration with ruby/debugStan Lo2023-08-139-102/+392
| | | | | | | | | | | | | | | | | | | | | | | | | | (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
* [ruby/irb] Move IO configuration to IRB::IrbStan Lo2023-08-132-56/+55
| | | | | | | | | (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
* [ruby/irb] Remove useless `begin`/`end` [ci skip]Nobuyoshi Nakada2023-08-131-50/+48
| | | | | | | | (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
* [ruby/irb] Drop showing indent level number in DEFAULT prompt andtomoya ishida2023-08-122-14/+14
| | | | | | | | | | | 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
* [ruby/irb] Reline/ReadlineInputMethod should inheritStan Lo2023-08-121-56/+6
| | | | | | | | | | | 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
* [ruby/irb] Remove needless removal of trailing whitespace intomoya ishida2023-08-111-2/+1
| | | | | | | check_code_state (https://github.com/ruby/irb/pull/678) https://github.com/ruby/irb/commit/4a6af7d1ed
* [ruby/irb] Move assignment check to RubyLexStan Lo2023-08-112-46/+44
| | | | | | | | | | (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
* [ruby/irb] Don't echo an expression's result when it ends with aStan Lo2023-08-111-1/+2
| | | | | | | semicolon (https://github.com/ruby/irb/pull/669) https://github.com/ruby/irb/commit/50185c2833
* [ruby/irb] Add black and white color to IRB::ColorStan Lo2023-08-111-0/+2
| | | | | | (https://github.com/ruby/irb/pull/676) https://github.com/ruby/irb/commit/a2763acade
* [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