summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2025-09-17[rubygems/rubygems] Finalize `bundle install --binstubs` removalDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ccb65ce0ea
2025-09-17[rubygems/rubygems] Fix grammar in `bundle install --binstubs` removal messageDavid Rodríguez
https://github.com/rubygems/rubygems/commit/feb258c712
2025-09-17[rubygems/rubygems] Move `bundle install --binstubs` deprecation to cli.rbDavid Rodríguez
For consistency with the other deprecations. https://github.com/rubygems/rubygems/commit/28e300cee1
2025-09-17[rubygems/rubygems] Make `bundle remove --install` raise an errorDavid Rodríguez
https://github.com/rubygems/rubygems/commit/444022cfd3
2025-09-17[ruby/erb] [DOC] More on bindingsBurdette Lamar
(https://github.com/ruby/erb/pull/74) https://github.com/ruby/erb/commit/125ce1f897
2025-09-16[ruby/erb] [DOC] Enhanced doc for ERB.resultBurdette Lamar
(https://github.com/ruby/erb/pull/73) https://github.com/ruby/erb/commit/04bb746fc7
2025-09-16[ruby/erb] [DOC] Improve section 'In Brief' in ERB class docBurdette Lamar
(https://github.com/ruby/erb/pull/71) https://github.com/ruby/erb/commit/f4abab7195
2025-09-16[ruby/erb] [DOC] Enhanced doc for ERB.versionBurdette Lamar
(https://github.com/ruby/erb/pull/72) https://github.com/ruby/erb/commit/df7bdcd5cb
2025-09-16[ruby/erb] [DOC] Fix typos (https://github.com/ruby/erb/pull/70)Burdette Lamar
https://github.com/ruby/erb/commit/aae3a5be34
2025-09-16[rubygems/rubygems] Remove aggregate source mentionsDavid Rodríguez
It's a term from times with multiple remote sources, let's move on :) https://github.com/rubygems/rubygems/commit/6439b8944e
2025-09-16[rubygems/rubygems] Completely remove multisources supportDavid Rodríguez
https://github.com/rubygems/rubygems/commit/8f9d6c54a1
2025-09-16[rubygems/rubygems] Simplify an edge case of not adding lower bound requirementsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/1bc5e74281
2025-09-16[rubygems/rubygems] Multisource checks are only relevant when there's a lockfileDavid Rodríguez
https://github.com/rubygems/rubygems/commit/4c110d3289
2025-09-16[rubygems/rubygems] Handle locked sources more simillarly to locked specsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/0a2f5ed717
2025-09-16[rubygems/rubygems] Use `IO.copy_stream` with IO object directlyAaron Patterson
Before this patch we would use `IO.copy_stream` with the tar entry object rather than just straight to the IO. That means every time copy_stream wanted data, we would have to proxy the call. The reason we did this is because every tar entry object _shares_ the same IO object, and previous to https://github.com/rubygems/rubygems/commit/8927533b0a47 we would call `IO.copy_stream` _without_ a size. Without passing a size, copy_stream will just read until there is nothing left to read, so these proxy object emulate finding "the end of the file" (where "end of file" means "end of tar chunk"). Without emulating this "end of file" behavior, copy_stream would just keep reading past the end of the tar chunk. However, now that we're passing the size to copy_stream, we can bypass the proxy object overhead and just use the IO object directly because copy_stream knows exactly the number of bytes it needs to read and will stop when it reaches the goal. https://github.com/rubygems/rubygems/commit/857002c135
2025-09-16[rubygems/rubygems] Remove `allow_offline_install` settingDavid Rodríguez
And let the feature always be enabled, so I'm not sure why we'd need this configurable. https://github.com/rubygems/rubygems/commit/5a27f0c1e3
2025-09-16[rubygems/rubygems] Complete rubocop flags and settings removalDavid Rodríguez
If the CLI flags are used, we abort early as usual. As per the settings, I decided to ignore them. We've been migrating them automatically to the new name for a long time and we don't yet have a standard way to deprecate and remove settings (we should probably use the existing setting validators). So I think it's fine for now to do what we normally do (ignore the setting). https://github.com/rubygems/rubygems/commit/8311de6e69
2025-09-16[rubygems/rubygems] Fix `--no-rubocop` deprecation messageDavid Rodríguez
https://github.com/rubygems/rubygems/commit/2c16b0e11e
2025-09-16[rubygems/rubygems] Fix `rubocop` config removal messageDavid Rodríguez
In Bundler 4, configuration will no longer be updated. https://github.com/rubygems/rubygems/commit/33a4718d7a
2025-09-16[rubygems/rubygems] Pass the file size to IO.copy_streamAaron Patterson
When extracting tar files, the tar header actually knows the exact size of the file we need to extract. Before this commit, we would read the file from the tar file until it returned `nil`. We can be a little more efficient when copying by passing the size to copy_stream https://github.com/rubygems/rubygems/commit/8927533b0a
2025-09-16[rubygems/rubygems] Use File#chmod rather than FileUtils.chmodAaron Patterson
We already have the open file descriptor, so we can avoid the overhead of resolving the filepath (as well as the overhead inside `FileUtils`) by just calling `chmod` on the file descriptor itself. https://github.com/rubygems/rubygems/commit/60c14bbeee
2025-09-15[ruby/erb] [DOC] More on class ERBBurdette Lamar
(https://github.com/ruby/erb/pull/69) * [DOC] More on class …ERB * [DOC] More on class …ERB * More * More * More https://github.com/ruby/erb/commit/d9d73ed58e
2025-09-15[ruby/prism] Fix back reference for ruby_parser on Ruby 2.7Earlopain
Symbol#name is only a thing since Ruby 3.0 https://github.com/ruby/prism/commit/2de82b15fc
2025-09-15[ruby/optparse] Prefer `Proc` over `Method`Nobuyoshi Nakada
The performances are: block > proc > method object. https://github.com/ruby/optparse/commit/9ec5d1d582
2025-09-15[ruby/prism] Fix warn polyfill when no uplevel is providedEarlopain
An unspecified uplevel is not the same as an uplevel of 1: ``` $ irb irb(main):001> warn("foo") foo => nil irb(main):002> warn("foo", uplevel: 1) /home/user/.rbenv/versions/2.7.8/lib/ruby/gems/2.7.0/gems/irb-1.14.0/lib/irb/workspace.rb:121: warning: foo => nil ``` https://github.com/ruby/prism/commit/dcedd14357
2025-09-14[ruby/erb] [DOC] Enhanced doc for ERB.newBurdette Lamar
(https://github.com/ruby/erb/pull/68) https://github.com/ruby/erb/commit/9591b5d23b
2025-09-13[ruby/prism] Documentation for Prism::Translation::ParserKevin Newton
Make it clear that it parses with the most recent version of Ruby syntax. https://github.com/ruby/prism/commit/7285d1fbab
2025-09-13[ruby/prism] Bump to v1.5.1Kevin Newton
https://github.com/ruby/prism/commit/cac5118884
2025-09-12[ruby/erb] [DOC] Enhanced documentation for class ERBBurdette Lamar
(https://github.com/ruby/erb/pull/67) https://github.com/ruby/erb/commit/7646ece279
2025-09-12[ruby/prism] Bump to v1.5.0Kevin Newton
https://github.com/ruby/prism/commit/194edab827
2025-09-12[rubygems/rubygems] Fix outdated lockfile during `bundle lock` when source ↵Earlopain
changes When the source used to be git and switches back to rubygems, it is possible that the git source contains a version that ruybgems doesn't know about yet. So don't add the locked spec to the base resolve, and also don't add a lower bound requirement on the version, since the version in the new source may actually be lower. https://github.com/rubygems/rubygems/commit/85514e3a1e
2025-09-12[rubygems/rubygems] Consolidate condition on path sourcesDavid Rodríguez
It matches the comment above more naturally and it's consistent with how the same thing is checked in other places. https://github.com/rubygems/rubygems/commit/59ec6b4b29
2025-09-12[rubygems/rubygems] Remove unnecessary conditionDavid Rodríguez
It sounds like this should apply to all git sources at this point. https://github.com/rubygems/rubygems/commit/b1817f91de
2025-09-12[rubygems/rubygems] If name is to be unlocked, we can skip converging the specDavid Rodríguez
https://github.com/rubygems/rubygems/commit/744b35412e
2025-09-12[rubygems/rubygems] Raise error on missing version fileMatheus Richard
If the file option is given but the file not found, raise a GemfileError with a message indicating the file was not found. Currently this is raising a generic Errno::ENOENT error. https://github.com/rubygems/rubygems/commit/db61de6b21
2025-09-11[ruby/prism] Reject some cases with `return` and command callsEarlopain
The same also applies to `break`/`next`. https://bugs.ruby-lang.org/issues/21540 https://github.com/ruby/prism/commit/3a38b192e3
2025-09-11[rubygems/rubygems] Added document for Gem::UninstallerHiroshi SHIBATA
(https://github.com/rubygems/rubygems/pull/8904) * Added document for Gem::Uninstaller * Apply suggestion from @deivid-rodriguez Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com> --------- https://github.com/rubygems/rubygems/commit/9aeec8721a Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2025-09-11[rubygems/rubygems] Complete remembered options removalDavid Rodríguez
https://github.com/rubygems/rubygems/commit/573ffad3ea
2025-09-11[rubygems/rubygems] Fix grammar in remembered options removal messageDavid Rodríguez
https://github.com/rubygems/rubygems/commit/825e29a9ec
2025-09-11[rubygems/rubygems] Add missing part in `bundle cache --path` removal messageDavid Rodríguez
https://github.com/rubygems/rubygems/commit/f5bf473b34
2025-09-11[rubygems/rubygems] Remove implementation of `deployment`, `capistrano` and ↵David Rodríguez
`vlad` entrypoints Now they only raise an error. https://github.com/rubygems/rubygems/commit/6e7c8db151
2025-09-11[rubygems/rubygems] Completely remove `Bundle.*clean*` and ↵David Rodríguez
`Bundler.environment` helpers https://github.com/rubygems/rubygems/commit/e1b8bdcede
2025-09-08Align the conditions for did_you_meanNobuyoshi Nakada
Probably due to the testing order, sometimes it looks like that `Gem::UnknownCommandError` happens to be used without registered in `DidYouMean`.
2025-09-05[rubygems/rubygems] Improve error message when `path` and `gemspec` point to ↵manabeai
the same gem in Gemfile https://github.com/rubygems/rubygems/commit/e47a9064be
2025-09-05[rubygems/rubygems] Add gem sources --prepend and --append for finer source ↵Martin Emde
control --append adds a source to the end, moving it to the end if it already exists. --prepend adds or moves a source to the beginning. This allows idempotent sorting of gem sources without removing and adding. https://github.com/rubygems/rubygems/commit/d9a0567c65
2025-09-05[rubygems/rubygems] Fix "did you mean" suggestions for unknown commandsDavid Rodríguez
Since Ruby 3.4.5, which ships with did_you_mean-2.0.0, RubyGems no longer gives "did you mean" suggestions for unknown commands. This is because did_you_mean-2.0.0 completely removed the SPELL_CHECKERS constant, and attaching "did you mean" to `Gem::UnknownCommandError` errors required this constant to be defined. The fix is to remove conditions on the `SPELL_CHECKERS` constant. https://github.com/rubygems/rubygems/commit/9287cd80ed
2025-09-03[rubygems/rubygems] Warn when trying to remove a default source that's the ↵David Rodríguez
only configured sources https://github.com/rubygems/rubygems/commit/ef78de5b69
2025-09-03[rubygems/rubygems] Improve error output when removing a source through `gem ↵David Rodríguez
sources` "Not present in cache" felt a bit unclear, so I changed the reason to: "No configured sources" or "source not present in configured sources", also pointing explicitly to the configuration file where RubyGems is looking for the source to be removed. https://github.com/rubygems/rubygems/commit/2bae554eff
2025-09-03[rubygems/rubygems] Change code examples to not use the default sourceDavid Rodríguez
https://github.com/rubygems/rubygems/commit/0ccf323734
2025-09-03[rubygems/rubygems] Fix trailing slashes not considered when removing sourcesDavid Rodríguez
https://github.com/rubygems/rubygems/commit/d86d9b3596