summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2023-08-21[rubygems/rubygems] Support `ruby file: ".tool-versions"` in GemfileGaurav Khanna
(https://github.com/rubygems/rubygems/pull/6898) Supports .tool-versions (ASDF) by checking for a line starting with "ruby" before falling back to reading the entire file, as in .ruby-version. https://github.com/rubygems/rubygems/commit/6c0a3e793a
2023-08-21[ruby/irb] Avoid overriding user's `irb_name` setting in debuggerStan Lo
integration (https://github.com/ruby/irb/pull/688) * Avoid overriding user's irb_name setting in debugger integration Instead of always setting `irb_name` to `irb:rdbg`, it should respect the user's setting and only append `:rdbg` to it. * Introduce write_rc test helper https://github.com/ruby/irb/commit/2ce7593351
2023-08-21[ruby/yarp] Handle interpolated regular expressions with the o flag for ↵Kevin Newton
locals checking https://github.com/ruby/yarp/commit/db95191207
2023-08-21[ruby/irb] Move input processing out of RubyLexStan Lo
(https://github.com/ruby/irb/pull/683) * Add a test case for Ctrl-C handling * Test symbol aliases with integration tests There are a few places that also need to check symbol aliases before `Irb#eval_input`. But since the current command test skip them, we don't have test coverage on them. * Move each_top_level_statement and readmultiline to Irb This will save RubyLex from knowning information about commands and aliases. https://github.com/ruby/irb/commit/69cb5b5615
2023-08-21[ruby/yarp] Add a convenience value method for numeric literalsBenoit Daloze
https://github.com/ruby/yarp/commit/a328f27d8f
2023-08-20[ruby/irb] Support `VISUAL` env var, and prefer it over `EDITOR`Summer ☀️
(https://github.com/ruby/irb/pull/686) * Support `VISUAL` env var, and prefer it over `EDITOR` * Update test/irb/test_cmd.rb --------- https://github.com/ruby/irb/commit/399b872c31 Co-authored-by: Stan Lo <stan001212@gmail.com>
2023-08-20[ruby/reline] Bump version to 0.3.8Stan Lo
(https://github.com/ruby/reline/pull/582) https://github.com/ruby/reline/commit/3840d1f958
2023-08-20[ruby/reline] Use fdiv for keyseq_timeout msec to sec conversiontomoya ishida
(https://github.com/ruby/reline/pull/583) https://github.com/ruby/reline/commit/a6504acd63
2023-08-20[ruby/reline] Remove Timeout usageStan Lo
(https://github.com/ruby/reline/pull/580) Timeout's implementation relies on Thread, which would conflict with `ruby/debug`'s thread-freezing implementation and has casued issues like - ruby/debug#877 - ruby/debug#934 - ruby/debug#1000 This commit avoids the issue by completely removing the use of Timeout. https://github.com/ruby/reline/commit/d4f0cd3fe1
2023-08-20[rubygems/rubygems] fix lintJosh Nichols
https://github.com/rubygems/rubygems/commit/75c0f27b7e
2023-08-20[rubygems/rubygems] use a one-linerJosh Nichols
https://github.com/rubygems/rubygems/commit/46745885e8
2023-08-20[rubygems/rubygems] handle removing `BUNDLE_`, since using start_with? would ↵Josh Nichols
still include that https://github.com/rubygems/rubygems/commit/235d9b38d8
2023-08-20[rubygems/rubygems] Don't rely on globals when not matching regexp for "local."Martin Emde
https://github.com/rubygems/rubygems/commit/e79ccdafd8
2023-08-20[rubygems/rubygems] Use ! methods once we have a new copy of the string. Use ↵Josh Nichols
.prepend to avoid allocating a new string. https://github.com/rubygems/rubygems/commit/2ac35a661f
2023-08-20[rubygems/rubygems] call key.to_s once instead of multiple times to save ↵Josh Nichols
when it's a symbol https://github.com/rubygems/rubygems/commit/535feb817c
2023-08-20[rubygems/rubygems] Use value.match? only on Strings, which avoids ↵Josh Nichols
allocating a matchdata, which is not used https://github.com/rubygems/rubygems/commit/cbf9ac93d7
2023-08-20[rubygems/rubygems] Use .to_s once in the beginning to save allocations if ↵Josh Nichols
it's a symbol. https://github.com/rubygems/rubygems/commit/f8167db8a2
2023-08-20[rubygems/rubygems] name is often a symbol, so only to_s once to avoid ↵Josh Nichols
allocating it multiple times https://github.com/rubygems/rubygems/commit/8eac49c429
2023-08-20[rubygems/rubygems] String#start_with? is faster than regex with beginning ↵Josh Nichols
boundaries https://github.com/rubygems/rubygems/commit/d7cde68034
2023-08-20[rubygems/rubygems] Use ! methods on the array, since it is brand new. The ↵Josh Nichols
individual keys are also new, so we can use ! methods on each individual one as well. https://github.com/rubygems/rubygems/commit/f2e912b9bb
2023-08-20[rubygems/rubygems] Use Array#union to join these, instead of with | ↵Josh Nichols
multiple times. This saves allocating 2 arrays https://github.com/rubygems/rubygems/commit/48c03b33b7
2023-08-20[rubygems/rubygems] config is a new Hash, and config.values is a new Array. ↵Josh Nichols
that means we can use bang methods to avoid allocating new copies https://github.com/rubygems/rubygems/commit/8bc13fa55f
2023-08-20[rubygems/rubygems] ENV.to_h returns a new hash, so we can `select!` it to ↵Josh Nichols
avoid allocating another hash. `String#start_with?` is faster than regex that is bound to the start of a string. https://github.com/rubygems/rubygems/commit/9b2006ef09
2023-08-20Update specification.rbSamuel Giddins
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2023-08-20[rubygems/rubygems] Ensure that loading multiple gemspecs with legacy YAML ↵Samuel Giddins
class references does not warn Before this, you would get constant redefinition warnings on Psych::DefaultKey Additionally, ensure the retries wont continue infinitely in the case of the ArgumentError not being caused by Marshal trying to load the undefined classes https://github.com/rubygems/rubygems/commit/919e8c2de4
2023-08-20[rubygems/rubygems] choose_from_list may return nil index sinceAkira Matsuda
https://github.com/rubygems/rubygems/commit/abacb0cb34cd https://github.com/rubygems/rubygems/commit/5e2e9d6e50
2023-08-19[ruby/yarp] Bump to version 0.8.0Kevin Newton
https://github.com/ruby/yarp/commit/bfde753702
2023-08-18[rubygems/rubygems] Resolve ruby version file relative to bundle rootNgan Pham
This is a follow up to https://github.com/rubygems/rubygems/issues/6742. This change makes it so that the version file is resolved relative to the Bundle root instead of the working directory. Why is this useful? If you run a commnad (eg `rails`) from the `app/` directory, your bundle would fail to load. https://github.com/rubygems/rubygems/commit/6d47ee98b9
2023-08-18[rubygems/rubygems] Make nil a valid license specJohn Hong
https://github.com/rubygems/rubygems/commit/675effb67e
2023-08-18[rubygems/rubygems] Update SPDX license list as of 2023-06-18License Update
https://github.com/rubygems/rubygems/commit/3db9165335
2023-08-18[ruby/yarp] Remove strange :"#arg_rest" localKevin Newton
https://github.com/ruby/yarp/commit/66ecec218d
2023-08-17[rubygems/rubygems] Raise Gem::Package::FormatError on EOF, indicating ↵Martin Emde
corrupt gem Gem::Package::TarReader::Entry now raises EOFError or returns nil appropriately based on Ruby core IO.read and IO.readpartial behavior. Zlib will respond accordingly by raising Zlib::GzipFile::Error on EOF. When verifying a gem or extracting contents, raise FormatError similar to other cases of corrupt gems. Addresses a bug where Gem::Package would attempt to call size on nil instead of raising a more descriptive and useful error, leading users to assume the problem is internal to rubygems. Remove unused error class TarReader::UnexpectedEOF that was never raised since the NoMethodError on nil would happen first. Use EOFError instead. https://github.com/rubygems/rubygems/commit/dc6129644b
2023-08-17Render YARP templates in the build process (#8228)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-08-17[ruby/yarp] Treat yp_buffer_t as an opaque pointerKevin Newton
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 Notes: Merged: https://github.com/ruby/ruby/pull/8234
2023-08-17[rubygems/rubygems] Add `file` option to `ruby` method in GemfileNgan Pham
https://github.com/rubygems/rubygems/commit/fb9354b7bf
2023-08-17[rubygems/rubygems] Clarify that `bundle info` takes a gem nameManu
https://github.com/rubygems/rubygems/commit/09ef74ef73
2023-08-16Resync YARPTakashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/8226
2023-08-16[ruby/yarp] Fixes so `bundle exec rake` can run on JRuby and TruffleRubyBenoit Daloze
https://github.com/ruby/yarp/commit/e6cea4fa08 Notes: Merged: https://github.com/ruby/ruby/pull/8226
2023-08-16[ruby/yarp] Add a CHANGELOGKevin Newton
https://github.com/ruby/yarp/commit/b490ff0919 Notes: Merged: https://github.com/ruby/ruby/pull/8226
2023-08-16[ruby/yarp] Hide debug methodsKevin Newton
https://github.com/ruby/yarp/commit/aa0dc2f301 Notes: Merged: https://github.com/ruby/ruby/pull/8226
2023-08-16[ruby/yarp] Simplify creation of numericsKevin Newton
https://github.com/ruby/yarp/commit/e5f6ffa23a Notes: Merged: https://github.com/ruby/ruby/pull/8226
2023-08-16[ruby/yarp] Move the gem's C extension into lib/yarp/Mike Dalessio
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 Notes: Merged: https://github.com/ruby/ruby/pull/8226
2023-08-16[ruby/irb] Encapsulate input details in Statement objectsStan Lo
(https://github.com/ruby/irb/pull/682) * Introduce Statement class * Split Statement class for better clarity https://github.com/ruby/irb/commit/65e8e68690
2023-08-16[rubygems/rubygems] Show better error when PAT can't authenticate to a ↵David Rodríguez
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
2023-08-16[rubygems/rubygems] Bad auth should not fallback eitherDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ba3ea27869
2023-08-16[rubygems/rubygems] Fix git source conservativenessDavid Rodríguez
https://github.com/rubygems/rubygems/commit/9a0e0dfd5b
2023-08-16[rubygems/rubygems] Extract s.name to a variableDavid Rodríguez
https://github.com/rubygems/rubygems/commit/689c39b42f
2023-08-16[rubygems/rubygems] Remove unneeded stuffDavid Rodríguez
This should be only for path sources, and unrelated to git. https://github.com/rubygems/rubygems/commit/0d8f31eeed
2023-08-16[rubygems/rubygems] Don't update locked sources when not necessaryDavid Rodríguez
https://github.com/rubygems/rubygems/commit/cfc82b592a
2023-08-16[rubygems/rubygems] Extract a `default_source` methodDavid Rodríguez
https://github.com/rubygems/rubygems/commit/784e08348e