summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2024-04-05[ruby/reline] Always call finalize and depreptomoya ishida
(https://github.com/ruby/reline/pull/668) https://github.com/ruby/reline/commit/91b030caa4
2024-04-04[ruby/prism] Fix up some comments in the parser compilerKevin Newton
https://github.com/ruby/prism/commit/e2147cddd8
2024-04-04[ruby/reline] Handle INT signal correctly, remove handle_clearedtomoya ishida
because clear(C-l) is not a signal (https://github.com/ruby/reline/pull/646) https://github.com/ruby/reline/commit/3debb0ae2f
2024-04-04[ruby/reline] Fix audoindent including "\v", escape "\v" fortomoya ishida
rendering (https://github.com/ruby/reline/pull/648) https://github.com/ruby/reline/commit/9c51c577ca
2024-04-04[rubygems/rubygems] Allow to use String keys some of configurationHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/ee0bef2786
2024-04-04[rubygems/rubygems] Re-order configuraiton keysHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/b2a88983db
2024-04-03Ignore warnings on the bundled gems repoHiroshi SHIBATA
2024-04-02Warn pstore for Ruby 3.5Hiroshi SHIBATA
2024-04-02[Feature #20345] Add `--target-rbconfig` option to mkmfYuta Saito
Introduce a new mkmf option `--target-rbconfig` to specify the RbConfig file for the deployment target platform. This option is useful for cross-compiling Ruby extensions without faking the global top-level `RbConfig` constant.
2024-04-02Warn ostruct for Ruby 3.5Hiroshi SHIBATA
2024-04-01[ruby/reline] Refactor completiontomoya ishida
(https://github.com/ruby/reline/pull/647) * Refactor completion: split autocompletion and tabcompletion logic and state * Move completion candidate listup logic from dialog proc to LineEditor https://github.com/ruby/reline/commit/c3c09ac9c2
2024-04-01[ruby/reline] Align completion menu itemstomoya ishida
(https://github.com/ruby/reline/pull/613) https://github.com/ruby/reline/commit/a622704f62
2024-04-01[rubygems/rubygems] Improve error message when strict resolution filters out ↵David Rodriguez
everything https://github.com/rubygems/rubygems/commit/1ea44b3749
2024-04-01[rubygems/rubygems] Keep unfiltered versions separatelyDavid Rodriguez
https://github.com/rubygems/rubygems/commit/7b5cc51a96
2024-04-01[rubygems/rubygems] No need to check for root package every timeDavid Rodriguez
https://github.com/rubygems/rubygems/commit/6ca192649f
2024-04-01[rubygems/rubygems] No need for any version prioritization when building errorsDavid Rodriguez
We just need to filter versions belonging to the range, but don't need anything else. https://github.com/rubygems/rubygems/commit/8355a225d7
2024-04-01[rubygems/rubygems] Make it look more like BasicPackageSourceDavid Rodriguez
https://github.com/rubygems/rubygems/commit/bb5727934c
2024-04-01[rubygems/rubygems] Let GemVersionPromoter sort in preferred order directlyDavid Rodriguez
So that we don't need to reverse the Array. https://github.com/rubygems/rubygems/commit/aeea5e2e00
2024-04-01[rubygems/rubygems] Update docsDavid Rodriguez
https://github.com/rubygems/rubygems/commit/ac24a68486
2024-04-01[rubygems/rubygems] Remove unnecessary filteringDavid Rodriguez
We do that when first caching versions, and then it's no longer necessary. https://github.com/rubygems/rubygems/commit/ede15847db
2024-04-01[rubygems/rubygems] No need to sort twice when filling versionsDavid Rodriguez
https://github.com/rubygems/rubygems/commit/13294528c4
2024-04-01[rubygems/rubygems] Rename method for clarityDavid Rodriguez
And also so that it matches the method used by main PubGrub sample resolver class. https://github.com/rubygems/rubygems/commit/0e612361b8
2024-04-01[rubygems/rubygems] Fix typoDavid Rodriguez
https://github.com/rubygems/rubygems/commit/0ddf25e5aa
2024-03-31[rubygems/rubygems] [commands/rebuild] Remove unused DATE_FORMAT constant.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/3c4e3fadc9
2024-03-29[rubygems/rubygems] [gemspec_helpers] Fix Rubocop warning.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/4ebf6ee5ac
2024-03-29[rubygems/rubygems] [build, rebuild] Split common find_gemspec() out to ↵Ellen Marie Dash
GemspecHelpers. https://github.com/rubygems/rubygems/commit/2f80a595c4
2024-03-29[rubygems/rubygems] Improve formatting of "gem rebuild --help" output.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/701550f9dd
2024-03-29[rubygems/rubygems] [rebuild] If --diff is not passed and a rebuild fails, ↵Ellen Marie Dash
suggest passing --diff. https://github.com/rubygems/rubygems/commit/7caadd182c
2024-03-29[rubygems/rubygems] [rebuild_command] Bail early if the RubyGems version ↵Ellen Marie Dash
doesn't match. https://github.com/rubygems/rubygems/commit/a691170dc7
2024-03-29[rubygems/rubygems] [rebuild_command] Use Gem.* helpers.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/8644ce7193
2024-03-29[rubygems/rubygems] [rebuild_command] Clean up help text.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/4446389f2e
2024-03-29[rubygems/rubygems] [rebuild_command] Use temporary directory instead of the ↵Ellen Marie Dash
working directory. https://github.com/rubygems/rubygems/commit/f2e4e5b56f
2024-03-29[rubygems/rubygems] [rebuild_command] Add --diff flag to try using diffoscope.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/3e9545193a
2024-03-29[rubygems/rubygems] [rebuild_command] Avoid leaking files.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/3b88553d0d
2024-03-29[rubygems/rubygems] Add "gem rebuild" command.Ellen Marie Dash
https://github.com/rubygems/rubygems/commit/6d661573f0
2024-03-28[ruby/prism] CLI -x flagKevin Newton
https://github.com/ruby/prism/commit/2068e3c30a
2024-03-28Allow FormatError to take either String or Gem for sourceJake Zimmerman
Most of the calls to `FormatError.new` pass `@gem` for the second argument, which has a `path` method. But in one case—on package.rb:691 in `verify_gz`, the `source` argument is a `String`. So if there's ever a GZip decode error when attempting to read the contents of the `data.tar.gz` file, instead of reporting the underlying GZip error (which might be something like "unexpected end of file"), we would report instead a NoMethodError coming from package.rb ``` Exception while verifying sorbet-0.5.11301.gem ERROR: While executing gem ... (NoMethodError) undefined method `path' for "data.tar.gz":String @path = source.path ^^^^^ ``` There are two ways to fix this: 1. Make `FormatError#initialize` aware of the fact that `source` might sometimes be a `String` 2. Make the call to `FormatError.new` in `verify_gz` pass `@gem` instead of `entry.full_name`. I've chosen 1 because I think it's more useful to see "unexpected end of file in data.tar.gz" instead of "unexpected end of file in sorbet-0.5.11301.gem." The end of file **is actually** in data.tar.gz, not in the gem file itself, which was decoded successfully.
2024-03-28Use www.rfc-editor.org for RFC text.Hiroshi SHIBATA
We use the following site for that now: * https://tools.ietf.org/ or http * https://datatracker.ietf.org or http Today, IETF said the official site of RFC is www.rfc-editor.org. FYI: https://authors.ietf.org/en/references-in-rfcxml I replaced them to www.rfc-editor.org.
2024-03-27[rubygems/rubygems] Allow installing plugins from path via CLICody Cutrer
Also bring the man page up to date. https://github.com/rubygems/rubygems/commit/a849bd6947
2024-03-27Update vendored resolv to 0.4.0Hiroshi SHIBATA
2024-03-26[ruby/prism] Freeze internal parts, againKevin Newton
https://github.com/ruby/prism/commit/50372fee5c
2024-03-26[ruby/irb] Fix a typo (https://github.com/ruby/irb/pull/912)Hiroshi SHIBATA
https://github.com/ruby/irb/commit/2057248e40
2024-03-25[rubygems/rubygems] Fix resolver bug where ActivationRequest objects were ↵David Rodriguez
not properly compared They were delegating their `#hash` value to a class not overriding that method, and so were returning inconsistent results. https://github.com/rubygems/rubygems/commit/723e4ee0fc
2024-03-25[rubygems/rubygems] Improve validation of `bundle plugin install` optionsCody Cutrer
Ensure only one source type is specified, and ensure options that are only relevant to git sources are only specified with git. https://github.com/rubygems/rubygems/commit/58b043215e
2024-03-25[ruby/prism] Fix incorrect paring when using invalid regexp optionsKoichi ITO
Fixes https://github.com/ruby/prism/pull/2617. There was an issue with the lexer as follows. The following are valid regexp options: ```console $ bundle exec ruby -Ilib -rprism -ve 'p Prism.lex("/x/io").value.map {|token| token[0].type }' ruby 3.3.0 (2023-12-25 revision https://github.com/ruby/prism/commit/5124f9ac75) [x86_64-darwin22] [:REGEXP_BEGIN, :STRING_CONTENT, :REGEXP_END, :EOF] ``` The following are invalid regexp options. Unnecessary the `IDENTIFIER` token is appearing: ```console $ bundle exec ruby -Ilib -rprism -ve 'p Prism.lex("/x/az").value.map {|token| token[0].type }' ruby 3.3.0 (2023-12-25 revision https://github.com/ruby/prism/commit/5124f9ac75) [x86_64-darwin22] [:REGEXP_BEGIN, :STRING_CONTENT, :REGEXP_END, :IDENTIFIER, :EOF] ``` As a behavior of Ruby, when given `A` to `Z` and `a` to `z`, they act as invalid regexp options. e.g., ```console $ ruby -e '/regexp/az' -e:1: unknown regexp options - az /regexp/az -e: compile error (SyntaxError) ``` Thus, it should probably not be construed as `IDENTIFIER` token. Therefore, `pm_byte_table` has been adapted to accept those invalid regexp option values. Whether it is a valid regexp option or not is checked by `pm_regular_expression_flags_create`. For invalid regexp options, `PM_ERR_REGEXP_UNKNOWN_OPTIONS` is added to diagnostics. https://github.com/ruby/prism/commit/d2a6096fcf
2024-03-25[ruby/prism] Use Sexp#line_max not Sexp#max_lineJustin Collins
for RubyParser translation https://github.com/ruby/prism/commit/a37169621a
2024-03-25[ruby/reline] Bump version to v0.5.0Mari Imaizumi
(https://github.com/ruby/reline/pull/664) https://github.com/ruby/reline/commit/1d6569600c
2024-03-25[ruby/irb] Cache RDoc::RI::Driver.newtomoya ishida
(https://github.com/ruby/irb/pull/911) * Cache RDoc::RI::Driver.new to improve performance and to avoid flaky test * Insert sleep to fix flaky rendering test that renders document dialog https://github.com/ruby/irb/commit/da84e6cb56
2024-03-25[ruby/reline] Remove useless testsStan Lo
(https://github.com/ruby/reline/pull/665) The pasting tests hadn't been working since as early as v0.2.0. Since what it tried to cover is already gone for such a long time, I think it's better to write new ones if needed then to keep them around. And since these tests are gone, the helper methods for just them are also gone. https://github.com/ruby/reline/commit/0eedf0e4a0
2024-03-25lib/bundled_gems.rb: dynamically ignore Kernel.require decoratorsJean Boussier
Followup: https://github.com/ruby/ruby/pull/10347 This avoid directly referencing bootsnap and zeitwerk, and also handle other gems that may decorate `require`.