summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2024-05-03[ruby/irb] Avoid raising errors while running help for customKenichi Kamiya
commands (https://github.com/ruby/irb/pull/944) * Avoid raising errors while running help for custom commands Raising an error from the help command is not a pleasure for the end user, even if the command does not define any attributes * Update test/irb/command/test_custom_command.rb --------- https://github.com/ruby/irb/commit/c8bba9f8dc Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-05-03[ruby/prism] Prism::Location#adjoinKevin Newton
https://github.com/ruby/prism/commit/a298db68e3
2024-05-03[ruby/prism] Prism::Node#tunnelKevin Newton
https://github.com/ruby/prism/commit/0bf5d651da
2024-05-03[ruby/prism] Create specialized `ASCIISource` with asciionly optimizationsVinicius Stock
https://github.com/ruby/prism/commit/40993166a8
2024-05-03[ruby/prism] Remove deprecated #child usageKevin Newton
https://github.com/ruby/prism/commit/14d9b431e2
2024-05-03[rubygems/rubygems] Remove `Gem::Specification#mark_version`David Rodriguez
This gets in the middle if we ever start allowing to build as if using a different RubyGems version than the one being run. This could be useful to make `gem rebuild` a little more usable, and it's already done by Bundler specs which already make this method a noop when they need this. I'm not sure forcefully setting this, even if user explicitly specified something else is helpful. Since this could potentially prevent gems explicitly setting a constant RubyGems version from building, I changed the error of incorrect RubyGems version from a hard error to a warning, since it will start happening in those cases if we stop overwriting the version. https://github.com/rubygems/rubygems/commit/45676af80d
2024-05-03[ruby/prism] Change ConstantPathNode#child to ConstantPathNode#{name,name_loc}Kevin Newton
This has been requested for a long time, and I'm finally doing it now. Unfortunately this is a breaking change for all of the APIs. I've added in a Ruby method for `#child` that is deprecated so that existing usage doesn't break, but for everyone else this is going to be a bit of a pain. https://github.com/ruby/prism/commit/9cbe74464e
2024-05-03[ruby/prism] Assume eval context for ruby_parser and ripperKevin Newton
https://github.com/ruby/prism/commit/e4d6984892
2024-05-03[ruby/prism] Assume an eval context for `Prism::Translation::Parser`Earlopain
This is similar to https://github.com/davidwessman/syntax_tree-erb/issues/81 but for RuboCop The parser gem doesn't support these types of checks, see https://github.com/whitequark/parser?tab=readme-ov-file#syntax-check-of-block-exits While this is technically a bug in the parser gem, it does increase compatibility and allows prism to be used when linting erb or haml with a RuboCop extension. https://github.com/ruby/prism/commit/6c59ae6a00
2024-05-03[ruby/prism] Remove generics from sorbet typesKevin Newton
https://github.com/ruby/prism/commit/080d84fd03
2024-05-03[rubygems/rubygems] Rename credential email to identifier in WebAuthn pollerJenny Shen
https://github.com/rubygems/rubygems/commit/5e3e55f8bc
2024-05-02Sync IRB 241e061Stan Lo
2024-05-02[ruby/reline] Bump version to 0.5.5Mari Imaizumi
(https://github.com/ruby/reline/pull/696) https://github.com/ruby/reline/commit/8bf71d0b81
2024-05-02[ruby/irb] Add workaround for ruby/debug/test/console/irb_testtomoya ishida
failing with StdioInputMethod (https://github.com/ruby/irb/pull/943) https://github.com/ruby/irb/commit/acf3c1816e
2024-05-02[ruby/prism] Node#script_lines and supporting infraKevin Newton
https://github.com/ruby/prism/commit/cb4a8ab772
2024-05-02[ruby/reline] Fix default and additional key bindings vanish bugtomoya ishida
(https://github.com/ruby/reline/pull/697) https://github.com/ruby/reline/commit/fc9b4d2274
2024-05-02[ruby/reline] Fix prompt width calculation bug. Test with coloredtomoya ishida
prompt (https://github.com/ruby/reline/pull/695) https://github.com/ruby/reline/commit/24aab01cbc
2024-05-02[ruby/reline] Avoid reading .inputrc repeatedlyMari Imaizumi
(https://github.com/ruby/reline/pull/694) https://github.com/ruby/reline/commit/c8d4802a0f
2024-05-01[ruby/prism] Support passing version 3.3.1Kevin Newton
https://github.com/ruby/prism/commit/445a0f0d22
2024-05-01[ruby/irb] Bump version to v1.13.0Stan Lo
(https://github.com/ruby/irb/pull/941) * Bump version to v1.13.0 * Add Documentation category to changelog https://github.com/ruby/irb/commit/b9b1f35c99
2024-05-01[ruby/irb] Let IRB::Color.colorable? always return true|falsetomoya ishida
(https://github.com/ruby/irb/pull/940) https://github.com/ruby/irb/commit/0bbe435ffe
2024-05-01[ruby/irb] Support `IRB.conf[:BACKTRACE_FILTER]`Stan Lo
(https://github.com/ruby/irb/pull/917) * Use 'irbtest-' instead if 'irb-' as prefix of test files. Otherwise IRB would mis-recognize exceptions raised in test files as exceptions raised in IRB itself. * Support `IRB.conf[:BACKTRACE_FILTER]`` This config allows users to customize the backtrace of exceptions raised and displayed in IRB sessions. This is useful for filtering out library frames from the backtrace. IRB expects the given value to response to `call` method and return the filtered backtrace. https://github.com/ruby/irb/commit/6f6e87d769
2024-05-01YJIT: Fix `Struct` accessors not firing tracing events (#10690)Alan Wu
* YJIT: Fix `Struct` accessors not firing tracing events Reading and writing to structs should fire `c_call` and `c_return`, but YJIT wasn't correctly dropping those calls when tracing. This has been missing since this functionality was added in 3081c83169c, but the added test only fails when ran in isolation with `--yjit-call-threshold=1`. The test sometimes failed on CI. * RJIT: YJIT: Fix `Struct` readers not firing tracing events Same issue as YJIT, but it looks like RJIT doesn't support writing to structs, so only reading needs changing.
2024-04-30[ruby/reline] Fix completion dialog position when completed part istomoya ishida
wordwrapped (https://github.com/ruby/reline/pull/692) https://github.com/ruby/reline/commit/2d9acd16fe
2024-04-30[rubygems/rubygems] Update lib/rubygems/package.rbSamuel Giddins
https://github.com/rubygems/rubygems/commit/c4e75b9f74
2024-04-30[rubygems/rubygems] Add a limit to the size of the metadata and checksums ↵Samuel Giddins
files in a gem package. This is to prevent a malicious gem from causing a denial of service by including a very large metadata or checksums file, which is then read into memory in its entirety just by opening the gem package. This is guaranteed to limit the amount of memory needed, since gzips (which use deflate streams for compression) have a maximum compression ratio of 1032:1, so the uncompressed size of the metadata or checksums file will be at most 1032 times the size of the (limited) amount of data read. This prevents a gem from causing 500GB of memory to be allocated to read a 500MB metadata file. https://github.com/rubygems/rubygems/commit/a596e3c5ec
2024-04-30[ruby/irb] Restore MAIN_CONTEXT correctlytomoya ishida
(https://github.com/ruby/irb/pull/937) https://github.com/ruby/irb/commit/c41f460a70
2024-04-29[ruby/reline] Bump version to 0.5.4Mari Imaizumi
(https://github.com/ruby/reline/pull/691) https://github.com/ruby/reline/commit/3f27286a5e
2024-04-29[ruby/reline] Input with eof and no newline bugfixtomoya ishida
(https://github.com/ruby/reline/pull/671) https://github.com/ruby/reline/commit/0d66c335a1
2024-04-29[ruby/reline] Completely support full-width characters intomoya ishida
differential rendering (https://github.com/ruby/reline/pull/654) * Add a cut variation of Reline::Unicode.take_range method take_mbchar_range * Consider fullwidth take_range in differential rendering https://github.com/ruby/reline/commit/29714df09f
2024-04-29[ruby/reline] Handle mode condition in inputrcMari Imaizumi
(https://github.com/ruby/reline/pull/687) https://github.com/ruby/reline/commit/bed5fb3d77
2024-04-29[rubygems/rubygems] Make sure to force latest resolvable version explicitlyDavid Rodriguez
To make sure we can always update to the latest resolvable version for each gem explicitly requested for update, we first run a full update, and then add explicit exact requirements to the resolved versions. This may lead into conflicts, but our resolver already automatically parses those and unlocks additional gems to fix them. https://github.com/rubygems/rubygems/commit/01c0bf34f0
2024-04-29[rubygems/rubygems] Keep track of gems requested for update explicitlyDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ea43e4c6d7
2024-04-29[rubygems/rubygems] No need to reset version promoter hereDavid Rodriguez
Since resolution options don't change. https://github.com/rubygems/rubygems/commit/5c5aa38c06
2024-04-29[rubygems/rubygems] Fix circular require warningDavid Rodríguez
https://github.com/rubygems/rubygems/commit/241d0aafcd
2024-04-29[rubygems/rubygems] Show better error when installed gemspecs are unreadableDavid Rodríguez
https://github.com/rubygems/rubygems/commit/924f87c8a9
2024-04-29[rubygems/rubygems] Fix issue with `bundle update` with an out of sync lockfileDavid Rodríguez
An old platform related bug fix made some existing lockfiles no longer work because they included invalid platforms. So to make it backwards compatible, code was added to remove invalid platforms from the lockfile before resolution. This is skipped though when Gemfile has changed dependencies because in that case we will be re-resolving anyways. However, in the `bundle update` case, the detection of "dependencies have changed" was not actually working making Bundler remove all platforms and not be able to resolve. https://github.com/rubygems/rubygems/commit/6452adfd62
2024-04-29[rubygems/rubygems] Address PR feedbackAndy Waite
https://github.com/rubygems/rubygems/commit/62be097a32
2024-04-29[rubygems/rubygems] Clarify `bundle check` behaviour in docsAndy Waite
https://github.com/rubygems/rubygems/commit/c438c6db2e
2024-04-26[ruby/prism] Bump to v0.27.0Kevin Newton
https://github.com/ruby/prism/commit/c9edeef91a
2024-04-26[ruby/prism] Location#slice_lines, Node#slice_linesKevin Newton
https://github.com/ruby/prism/commit/9b61f6fdb3
2024-04-26[ruby/irb] Suppress command return valuesStan Lo
(https://github.com/ruby/irb/pull/934) Since commands can't be chained with methods, their return values are not intended to be used. But if IRB keeps storing command return values as the last value, and print them, users may rely on such implicit behaviour. So to avoid such confusion, this commit suppresses command's return values. It also updates some commands that currently rely on this implicit behaviour. https://github.com/ruby/irb/commit/fa96bea76f
2024-04-26[ruby/irb] Command registration should take both strings and symbolsStan Lo
as names (https://github.com/ruby/irb/pull/932) This will save users some heads scratching when they try to register a command with a string name and found that it doesn't work. I also rewrote converted custom command tests into integration tests to make test setup/cleanup easier. https://github.com/ruby/irb/commit/a91a212dbe
2024-04-25[rubygems/rubygems] Add auto_install support to require "bundler/setup"Josh Nichols
We have some places that already use `bundle config auto_install true`, ie: https://github.com/technicalpickles/rubygems/blob/7a144f3374f6a400cc9832f072dc1fc0bca8c724/bundler/lib/bundler/cli.rb#L11 This applies the same logic (copy and pasted) to happen when you `require "bundler/setup"`. https://github.com/rubygems/rubygems/commit/bb3c922341
2024-04-25[ruby/prism] Remove need for Natalie patchesKevin Newton
https://github.com/ruby/prism/commit/7fc7e13476
2024-04-25[ruby/reline] Fix inputrc nested $if $else $endif bugtomoya ishida
(https://github.com/ruby/reline/pull/689) https://github.com/ruby/reline/commit/0d8aea26ec
2024-04-25[rubygems/rubygems] Don't upcase Windows ENV when backing it upDavid Rodriguez
I apparently did that to fix some issue with case insensitivity but I didn't add a spec, and I think not upcasing should not cause issues. https://github.com/rubygems/rubygems/commit/1b6f23275a
2024-04-25[rubygems/rubygems] Remove unnecessary workaroundDavid Rodriguez
All supported rubies include the fix. https://github.com/rubygems/rubygems/commit/9d74b699f5
2024-04-25[rubygems/rubygems] Properly resolve aliases when `bundle help` is runDavid Rodríguez
https://github.com/rubygems/rubygems/commit/5d9bf03c59
2024-04-25[Bug #20450] Remove rubyarchdir from bootsnap pathsEugene Kenny