summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands
AgeCommit message (Collapse)Author
2024-09-09[rubygems/rubygems] Make `gem exec` use the standard GEM_HOMEDavid Rodríguez
https://github.com/rubygems/rubygems/commit/032b3c518a
2024-09-09[rubygems/rubygems] Fix `gem fetch` always exiting with zero status codeDavid Rodríguez
https://github.com/rubygems/rubygems/commit/5887e6dfa1
2024-09-06[rubygems/rubygems] Remove unreachable codeDavid Rodríguez
Nothing is actually raising this at the moment. https://github.com/rubygems/rubygems/commit/3b824ca7a6
2024-09-01Skip RDoc related feature if Gem::RDoc is not availableHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11491
2024-08-21[rubygems/rubygems] Fix `gem uninstall <name>:<version>` failing on shadowed ↵David Rodríguez
default gems https://github.com/rubygems/rubygems/commit/29357a5dd6
2024-06-21[rubygems/rubygems] Update contents of gem.bat on Windowsccmywish
(https://github.com/rubygems/rubygems/pull/6483) https://github.com/rubygems/rubygems/commit/41d8cffd2e Co-Authored-By: MSP-Greg <Greg.mpls@gmail.com>
2024-06-01Sychronize with rubygems/rubygems repoDavid Rodríguez
2024-05-30Revert "[rubygems/rubygems] Fix `gem pristine` sometimes failing to pristine ↵Hiroshi SHIBATA
user installed gems" This reverts commit a3edc4abc574b04bcacfae2af188cce7d27bfcf1. That commit caused test failure with Windows platform. * https://github.com/ruby/ruby/actions/runs/9289018414/job/25561871390 * https://github.com/ruby/ruby/actions/runs/9289018425/job/25561873060
2024-05-29[rubygems/rubygems] Fix `gem pristine` sometimes failing to pristine user ↵David Rodriguez
installed gems https://github.com/rubygems/rubygems/commit/0eb6ed8f86
2024-05-16[rubygems/rubygems] Fix binstubs sometimes not getting regenerated when ↵David Rodriguez
`--destdir` is given This was only working for gems also installed in the default gem home. https://github.com/rubygems/rubygems/commit/47df02dbd9
2024-05-16[rubygems/rubygems] Fix error message calling method removed a long time agoDavid Rodriguez
https://github.com/rubygems/rubygems/commit/5fbe5e43d6
2024-04-21[rubygems/rubygems] Clear temporary directoryNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/4158034d89
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] [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-02-21[rubygems/rubygems] Use https instead of httpHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/bcbe6f7b7a
2024-01-29Vendor uri gem in RubyGemsDavid Rodríguez
2024-01-24[rubygems/rubygems] Remove no longer necessary codeDavid Rodríguez
https://github.com/rubygems/rubygems/commit/b7d2de2ba8
2024-01-11[rubygems/rubygems] Always avoid "Updating rubygems-update" messageDavid Rodríguez
The fact that under the hood the upgrade is done through a rubygems-update gem is an implementation detail that does not really help users to know. Plus, it reads a bit weird. https://github.com/rubygems/rubygems/commit/0fa5c50258
2024-01-11[rubygems/rubygems] Make `gem update --system` respect ruby version constraintsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/36052abbe2
2024-01-11[rubygems/rubygems] Remove old condition no longer necessaryDavid Rodríguez
https://github.com/rubygems/rubygems/commit/701980b240
2024-01-11[rubygems/rubygems] bin/rubocop -A --only Style/StringLiteralsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f25013bcc0
2024-01-11[rubygems/rubygems] bin/rubocop -A --only Performance/StringIncludeHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/34df962cf4
2024-01-04[rubygems/rubygems] remove useless comments from unpack_command.rbhyuraku
https://github.com/rubygems/rubygems/commit/7576c21295
2023-12-15[rubygems/rubygems] Fix `ruby setup.rb` leaving traces in source folderDavid Rodríguez
It's the `Gem::Installer` below what installs executables, and the code being deleted here is now actually creating a `gems/` folder in the root of the source repo when running `ruby setup.rb`. https://github.com/rubygems/rubygems/commit/0e69a8b0d6
2023-12-12[rubygems/rubygems] Fix installing from source when same bundler version ↵David Rodríguez
already a default gem https://github.com/rubygems/rubygems/commit/620119308e
2023-12-12[rubygems/rubygems] Extract some common strings to variablesDavid Rodríguez
https://github.com/rubygems/rubygems/commit/48bc573310
2023-12-08[rubygems/rubygems] Extract generate_index command to ↵Samuel Giddins
rubygems-generate_index gem So generate_index can be implemented with dependencies, such as the compact index Took this approach from feedback in https://github.com/rubygems/rubygems/pull/6853 Running `gem generate_index` by default will use an installed rubygems-generate_index, or install and then use the command from the gem Apply suggestions from code review https://github.com/rubygems/rubygems/commit/fc1cb9bc9e Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
2023-12-07[rubygems/rubygems] Use modern hashes consistentlyDavid Rodríguez
https://github.com/rubygems/rubygems/commit/bb66253f2c
2023-11-13[rubygems/rubygems] Let RuboCop target Ruby 3.0David Rodríguez
https://github.com/rubygems/rubygems/commit/70243b1d72
2023-11-13[rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in RubyGemsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/10c26a483d
2023-11-08[rubygems/rubygems] Allow `--install-dir` to be specified together with ↵Vít Ondruch
`--user-install` The combination of `install-dir` and `--user-install` used to be disabled for no good reason. This even makes problem on Linux distributions such as Fedora, where `--user-install` is set by default via operating_system.rb. The `--install-dir` is already prefered over the `--user-install` by the implementation, therefore just drop the check. https://github.com/rubygems/rubygems/commit/313b1c5e76
2023-10-18[rubygems/rubygems] Allow uninstalling multiple versions of same gemKyle Stevens
Currently, you can install multiple versions of the same gem just fine: ``` $ gem install simplecov:0.19.0 simplecov:0.22.0 Fetching simplecov-0.19.0.gem Successfully installed simplecov-0.19.0 Parsing documentation for simplecov-0.19.0 Installing ri documentation for simplecov-0.19.0 Done installing documentation for simplecov after 0 seconds Fetching simplecov-0.22.0.gem Successfully installed simplecov-0.22.0 Parsing documentation for simplecov-0.22.0 Installing ri documentation for simplecov-0.22.0 Done installing documentation for simplecov after 0 seconds 2 gems installed ``` But to uninstall both of them, you need to run the equivalent uninstall command twice: ``` ~$ gem uninstall simplecov:0.19.0 simplecov:0.22.0 Successfully uninstalled simplecov-0.22.0 ~$ gem uninstall simplecov:0.19.0 simplecov:0.22.0 Gem 'simplecov' is not installed Successfully uninstalled simplecov-0.19.0 ``` This resolves that problem by using the gem's full name (which includes the version) when tracking which ones have already been uninstalled so when it gets to the second version listed it doesn't think it was already uninstalled. https://github.com/rubygems/rubygems/commit/d96101b753
2023-10-03[rubygems/rubygems] Fix typo: eglible -> eligible.Josef Šimánek
https://github.com/rubygems/rubygems/commit/1e487e1337
2023-09-21[rubygems/rubygems] Remove usage of Dir.chdir that just execute a subprocessSamuel Giddins
Preferring instead to spawn the subprocess in the correct directory https://github.com/rubygems/rubygems/commit/ad5abd6a45
2023-06-15[rubygems/rubygems] auto-correct Style/YodaConditionHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/6d9e8025dc
2023-05-30Merge RubyGems/Bundler master from 4076391fce5847689bf2ec402b17133fe4e32285Hiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7873
2023-04-12Terminate interaction when rescuing WebauthnVerificationError during ↵Jenny Shen
wait_for_otp Co-authored-by: Betty Li <makewithbetty@gmail.com>
2023-04-12[rubygems/rubygems] Add otp command testsJenny Shen
https://github.com/rubygems/rubygems/commit/c494112063
2023-04-11util/rubocop -A --only Style/NumericLiteralPrefixHiroshi SHIBATA
2023-04-07[rubygems/rubygems] util/rubocop -A --only Style/FormatStringHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/132a56569d
2023-04-06[rubygems/rubygems] util/rubocop -A --only Style/LineEndConcatenationHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/67ece7b8b6