aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems.rb
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Add a FreeBSD platform helperDavid Rodriguez2024-05-161-0/+7
| | | | https://github.com/rubygems/rubygems/commit/535c83d5be
* Reapply "[rubygems/rubygems] Fix activation conflicts when circularly ↵Hiroshi SHIBATA2024-01-221-0/+7
| | | | | | requiring a gem" This reverts commit 04cf66765a8a9d48baea6d9aee266dc9aa21df27.
* Revert "[rubygems/rubygems] Fix activation conflicts when circularly ↵Hiroshi SHIBATA2024-01-191-7/+0
| | | | | | | | | | requiring a gem" This reverts commit db44088c2a92040879386aa5f268db4c858e4e5b. https://github.com/ruby/ruby/actions/runs/7578672002/job/20641640821 https://github.com/ruby/ruby/actions/runs/7578672002/job/20641641212 https://github.com/ruby/ruby/actions/runs/7578672002/job/20641642031
* [rubygems/rubygems] Fix activation conflicts when circularly requiring a gemDavid Rodríguez2024-01-191-0/+7
| | | | | | | | | | If a gem is required circular, and there are unresolved specs depending on it, we may end up in an activation conflict. The solution is to not try to activate unresolved gems when requiring a default gem, regardless of it having already been activated or not. https://github.com/rubygems/rubygems/commit/3b2b8f4e3e
* [rubygems/rubygems] bin/rubocop -A --only Style/RedundantReturnHiroshi SHIBATA2024-01-111-1/+1
| | | | https://github.com/rubygems/rubygems/commit/ade728914f
* Merge RubyGems-3.6.0.dev and Bundler-2.6.0.dev from master branchHiroshi SHIBATA2023-12-251-1/+1
|
* Merge RubyGems-3.5.3 and Bundler-2.5.3Hiroshi SHIBATA2023-12-231-1/+1
|
* Merge RubyGems-3.5.2 and Bundler-2.5.2Hiroshi SHIBATA2023-12-221-1/+8
|
* Pin versions that are RubyGems 2.5.1 and Bundler 2.5.1Hiroshi SHIBATA2023-12-161-1/+1
|
* [rubygems/rubygems] Upstream RubyGems changes from TruffleRubyBenoit Daloze2023-12-081-0/+11
| | | | https://github.com/rubygems/rubygems/commit/749a508968
* [rubygems/rubygems] Introduce the Gem::CIDetectorEric Mueller2023-12-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | This is based on the list in Gem::UpdateSuggestion and Bundler::Fetcher; these have similar purposes (determining whether/what CI we're executing in), and can benefit from being combined and updated (they're both slightly out of date). Noteable changes: * We'll consider ourselves to be on a CI in more cases - if CI_NAME or TASKCLUSTER_ROOT_URL are set specifically, since those represent two cases that were either overlooked or are no longer covered by the existing implementation. (Or possibly TaskCluster still does provide RUN_ID, but failed to document it) * We will notice/track a few additional services in ci_strings (cirrus, dsari, taskcluster), stop tracking 'snap' (they went under in 2017), and update buildbox to buildkite (they've been called that for 8 years, and the BUILDBOX envs have been deprecated for 3). * We'll also sort/uniq/downcase the values (all of which only matter because of the special case of CI_NAME). https://github.com/rubygems/rubygems/commit/60652b942f
* [rubygems/rubygems] Let RuboCop target Ruby 3.0David Rodríguez2023-11-131-1/+1
| | | | https://github.com/rubygems/rubygems/commit/70243b1d72
* [rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in RubyGemsDavid Rodríguez2023-11-131-9/+2
| | | | https://github.com/rubygems/rubygems/commit/10c26a483d
* [rubygems/rubygems] Fix invalid links in documentation. - wrap ENV variables ↵Josef Šimánek2023-10-031-1/+1
| | | | | | in <code> - fix rubygems.org link - fix zenspider.com link https://github.com/rubygems/rubygems/commit/9eaac94a63
* [rubygems/rubygems] Add a Marshal.load replacement that walks an AST to ↵Samuel Giddins2023-09-201-0/+10
| | | | | | safely load permitted classes/symbols https://github.com/rubygems/rubygems/commit/7e4478fe73
* util/rubocop -A --only Style/NumericLiteralPrefixHiroshi SHIBATA2023-04-111-1/+1
|
* [rubygems/rubygems] util/rubocop -A --only Style/FormatStringHiroshi SHIBATA2023-04-071-1/+1
| | | | https://github.com/rubygems/rubygems/commit/132a56569d
* [rubygems/rubygems] util/rubocop -A --only Performance/RegexpMatchHiroshi SHIBATA2023-04-041-2/+2
| | | | https://github.com/rubygems/rubygems/commit/52ae4452c2
* util/rubocop -A --only Layout/EmptyLineAfterMagicCommentHiroshi SHIBATA2023-03-231-0/+1
|
* [rubygems/rubygems] Enabled Style/RedundantReturn copHiroshi SHIBATA2023-03-231-3/+3
| | | | https://github.com/rubygems/rubygems/commit/05cc97bdf8
* [rubygems/rubygems] util/rubocop -A --only Lint/RescueExceptionHiroshi SHIBATA2023-03-231-1/+1
| | | | https://github.com/rubygems/rubygems/commit/e8a5db50af
* util/rubocop -A --only Style/RedundantSelfHiroshi SHIBATA2023-03-171-1/+1
|
* util/rubocop -A --only Style/SymbolProcHiroshi SHIBATA2023-03-171-6/+2
|
* [rubygems/rubygems] util/rubocop -A --only Style/RedundantBeginHiroshi SHIBATA2023-03-171-6/+4
| | | | https://github.com/rubygems/rubygems/commit/b595d3cf0f
* [rubygems/rubygems] util/rubocop -A --only Style/DoubleNegationHiroshi SHIBATA2023-03-171-1/+1
| | | | https://github.com/rubygems/rubygems/commit/01c2b5542f
* [rubygems/rubygems] util/rubocop -A --only Style/YodaConditionHiroshi SHIBATA2023-03-171-2/+2
| | | | https://github.com/rubygems/rubygems/commit/3594945391
* [rubygems/rubygems] util/rubocop -A --only Style/StringLiteralsInInterpolationHiroshi SHIBATA2023-03-171-1/+1
| | | | https://github.com/rubygems/rubygems/commit/cb554f6eb7
* [rubygems/rubygems] util/rubocop -A --only Layout/MultilineArrayBraceLayoutHiroshi SHIBATA2023-03-171-2/+1
| | | | https://github.com/rubygems/rubygems/commit/f4f45ab27e
* [rubygems/rubygems] Removed RUBY_PATCHLEVEL and modify condition for ↵Hiroshi SHIBATA2023-03-171-1/+1
| | | | | | ruby_version https://github.com/rubygems/rubygems/commit/b420e287a3
* [rubygems/rubygems] Removed `Gem.datadir`.Hiroshi SHIBATA2023-03-131-10/+0
| | | | | | https://github.com/rubygems/rubygems/pull/2216 is imcomplete to remove this method. https://github.com/rubygems/rubygems/commit/34ef915d12
* [rubygems/rubygems] Allow disabling RubyGems require decorationsDavid Rodríguez2023-01-311-0/+10
| | | | | | | | | | | | | | | Currently Bundler needs to do cumbersome operations to revert custom RubyGems require on a `bundler/setup` context. This causes issues when third party gems also monkeypatch require, since Bundler will also undo those decorations. This commit allows it to use the simpler approach of properly telling RubyGems that it needs to default to built-in require without any extra magic. https://github.com/rubygems/rubygems/commit/1df5009e14 Co-authored-by: Xavier Noria <fxn@hashref.com>
* Merge RubyGems and Bundler masterHiroshi SHIBATA2023-01-101-3/+3
| | | | from https://github.com/rubygems/rubygems/commit/0635c1423db5d7c461d53bf0c3329bca75de7609
* [rubygems/rubygems] Let RDoc parse the doc of `Kernel#require`Nobuyoshi Nakada2023-01-081-6/+11
| | | | | | | | | Since RDoc does not parse string literals as documents, `eval` the entire file instead of embedding in a here-document. On the contrary, as `gem_original_require` alias is an implementation detail but not for users, it should not be documented. https://github.com/rubygems/rubygems/commit/cad4cf16cf
* Merge RubyGems/Bundler masterHiroshi SHIBATA2022-12-261-3/+2
| | | | from https://github.com/rubygems/rubygems/commit/72fd3dd2096af16d797ad0cd8e0d2a8869e240b3
* Update Bundler to 2.4.1 & and RubyGems to 3.4.1David Rodríguez2022-12-251-1/+1
|
* Merge RubyGems-3.4.0 and Bundler-2.4.0Hiroshi SHIBATA2022-12-241-2/+1
|
* [rubygems/rubygems] Delete partial file and re-raise on Errno::ENOSPC.Ellen Marie Dash2022-12-021-0/+4
| | | | | | Add test for not leaving empty files if ENOSPC is raised during 'gem install' https://github.com/rubygems/rubygems/commit/8e0e20f079
* [rubygems/rubygems] require bundler/setup only when Bundler is not definedYusuke Endoh2022-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | ... to prevent "circular require" when `--disable-gems` is used. This is a simplified case of https://github.com/ruby/ruby/commit/e5a0abc5dedfd011986b16e8f8cf5cda476984c9 ``` $ bundle exec ruby -we 'system("ruby", "-w", "--disable-gems", "-e", "")' <internal:/home/mame/work/ruby/local/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb>:85: warning: <internal:/home/mame/work/ruby/local/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb>:85: warning: loading in progress, circular require considered harmful - /home/mame/work/ruby/local/lib/ruby/3.2.0+3/bundler/setup.rb ``` When bundler/setup is require'ed under --disable-gems mode, it loads rubygems by `require "rubygems" unless defined?(Gem)` in https://github.com/rubygems/rubygems/blob/0b1f682a6d65e57b86ba4853cba23cac361c769d/bundler/lib/bundler/rubygems_integration.rb#L3 In this case, require'ing bundler/setup from rubygems.rb is circular. This change makes rubygems.rb to require "bundler/setup" only when `Bundler` is not defined. https://github.com/rubygems/rubygems/commit/b4608dee5e
* [rubygems/rubygems] Load "bundler/setup" in lib/rubygems.rbYusuke Endoh2022-11-101-0/+2
| | | | | | | | | | | | | | | Ruby interpreter loads some special gems at startup: did_you_mean, error_highlight, and syntax_suggest. These gems are loaded before `bundler/setup` is loaded by `RUBYOPT=-rbundler/setup`. So, the versions of the gems are not controllable by Gemfile. This change will `require "bundler/setup"` in rubygems.rb (i.e., before the special gems are loaded). Now `bundle exec` sets an environment variable `BUNDLER_SETUP`, and rubygems requires the variable if defined. See also: https://bugs.ruby-lang.org/issues/19089 https://github.com/rubygems/rubygems/commit/963cb65a2d
* Merge rubygems/bundler HEAD.Hiroshi SHIBATA2022-08-091-7/+7
| | | | Pick from https://github.com/rubygems/rubygems/commit/dfbb5a38114640e0d8d616861607f3de73ee0199
* Merge rubygems/bundler HEADHiroshi SHIBATA2022-08-031-1/+1
| | | | Pick from https://github.com/rubygems/rubygems/commit/8331e63263081a6aa690d8025d2957f30c4e814a
* RubyGems: Enable Style/StringLiterals copTakuya Noguchi2022-07-221-56/+56
| | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* [rubygems/rubygems] Move fileutils require to be even more lazyDavid Rodríguez2022-07-181-2/+3
| | | | | | | If directories are already created (the common case), fileutils won't be required at all. https://github.com/rubygems/rubygems/commit/63a9b94fc9
* [rubygems/rubygems] Improve error message when `operating_system.rb` fails ↵David Rodríguez2022-06-271-1/+2
| | | | | | | | to load Show an absolute path instead of an unhelpful relative path. https://github.com/rubygems/rubygems/commit/f1eed36e2f
* Sync RubyGems & Bundler with upstream repoDavid Rodríguez2022-06-241-2/+0
|
* [rubygems/rubygems] Unify loading `Gem::Requirement`David Rodríguez2022-06-061-0/+1
| | | | | | | | | | | | | It was being explicitly required from `Gem::Specification` but also a strange autoload was set for it at `Gem::Version`. The autoload was non standard because it should've been done in the `Gem` module, not in `Gem::Specification`, since that's where the constant is expected to get defined. Doing this might get deprecated in the future, and it was not being effective anyways due to the explicit require. Unify everything with an `autoload` at the right place. https://github.com/rubygems/rubygems/commit/174ea3e24c
* Merge RubyGems and Bundler HEADHiroshi SHIBATA2022-05-201-1/+1
| | | | https://github.com/rubygems/rubygems/commit/125415593ead9ab69a9f0bb5392c9d7ec61b1f51
* Merge ↵Hiroshi SHIBATA2022-04-281-3/+1
| | | | https://github.com/rubygems/rubygems/commit/3f7d0352e84b29d4a2d4cd93b31e5ebdb5f79cc6
* Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5Hiroshi SHIBATA2022-04-281-1/+1
|
* [rubygems/rubygems] Fix formatting in docsPeter Zhu2022-04-141-4/+4
| | | | | | rdoc uses + for typewriter font rather than backticks. https://github.com/rubygems/rubygems/commit/be320f1e0c