summaryrefslogtreecommitdiff
path: root/lib/bundler/rubygems_integration.rb
AgeCommit message (Collapse)Author
2024-10-17Merge RubyGems-3.5.22 and Bundler-2.5.22Hiroshi SHIBATA
2024-07-30Update RubyGems 3.5.16 and Bundler 2.5.16 for Ruby 3.3 (#11252)Hiroshi SHIBATA
* Merge RubyGems-3.5.12 and Bundler-2.5.12 * Merge RubyGems-3.5.13 and Bundler-2.5.13 * Merge RubyGems-3.5.14 and Bundler-2.5.14 * Merge RubyGems-3.5.15 and Bundler-2.5.15 * Merge RubyGems-3.5.16 and Bundler-2.5.16
2023-12-14[rubygems/rubygems] Remove extension building sync stuff no longer present ↵David Rodríguez
in RubyGems https://github.com/rubygems/rubygems/commit/59a85388b9
2023-12-14[rubygems/rubygems] RubyGems > 3.2.0.rc.1 is now always providedDavid Rodríguez
https://github.com/rubygems/rubygems/commit/929b521f3a
2023-12-14[rubygems/rubygems] Gem::Specification always has `default_stubs` nowDavid Rodríguez
https://github.com/rubygems/rubygems/commit/30db1eb4a5
2023-12-14[rubygems/rubygems] Remove more methods now defined in all RubyGems versionsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/e015200ffa
2023-12-14[rubygems/rubygems] Remove check only necessary for ancient RubyGemsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ffa2f03489
2023-12-14[rubygems/rubygems] Revert "Improve default gem handling"David Rodríguez
This reverts commit https://github.com/rubygems/rubygems/commit/091b4fcf2b99. https://github.com/rubygems/rubygems/commit/dcade3235f
2023-12-13[rubygems/rubygems] Improve default gem handlingDavid Rodríguez
If a gem is specified in the Gemfile (or resolved as a transitive dependency), it's always resolved from remote/installed sources. Default gems are only used as a fallback for gems not included in the bundle. I believe this leads to more consistent behavior and more portable apps, since all gems will be installed to the configured bundle path, regardless of whether they are default gems or not. https://github.com/rubygems/rubygems/commit/091b4fcf2b
2023-12-12[rubygems/rubygems] Improve enabling bundled gems warningsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/7be5b40ca9
2023-12-07Move replace_require into bundled_gems.rbHiroshi SHIBATA
2023-12-06[rubygems/rubygems] Try to load Gem::BUNDLED_GEMS on BundlerHiroshi SHIBATA
`bundle exec ruby foo.rb` ignore to load gem_prelude.rb. Because warnings feature is not working with `bundle exec ruby`. https://github.com/rubygems/rubygems/commit/a0d4ed92a7
2023-11-16Always revert or skip extended require of RubyGems.Hiroshi SHIBATA
2023-11-15[rubygems/rubygems] User bundler UA when downloading gemsSamuel Giddins
Gem::RemoteFetcher uses Gem::Request, which adds the RubyGems UA. Gem::RemoteFetcher is used to download gems, as well as the full index. We would like the bundler UA to be used whenever bundler is making requests. This PR also avoids unsafely mutating the headers hash on the shared `Gem::RemoteFetcher.fetcher` instance, which could cause corruption or incorrect headers when making parallel requests. Instead, we create one remote fetcher per rubygems remote, which is similar to the connection segregation bundler is already doing https://github.com/rubygems/rubygems/commit/f0e8dacdec
2023-10-23[rubygems/rubygems] Disabled Style/HashSyntax for keyword argumentsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9b61b33568
2023-10-19[rubygems/rubygems] Reuse Gem::RemoteFetcher instance in bundlerSamuel Giddins
Closes https://github.com/rubygems/rubygems/issues/7076 Bundler will now use the same (shared) remote fetcher instance that RubyGems uses. This will allow installs to use a shared connection pool, which represents a significant performance improvement on a clean install. https://github.com/rubygems/rubygems/commit/cd87b40fe1
2023-10-19Don't need to refer SINCE constantHiroshi SHIBATA
2023-10-18reject bundled gems if they are declared in GemfileHiroshi SHIBATA
2023-10-13Move additional warnings for Gem author under Gem::BUNDLED_GEMS.Hiroshi SHIBATA
2023-10-13Move path normalization into Gem from Bundler classHiroshi SHIBATA
2023-10-13Dont't handle inline GemfileHiroshi SHIBATA
2023-10-13Use Gem::BUNDLED_GEMS.warning? at Bundler.setupHiroshi SHIBATA
2023-09-29[rubygems/rubygems] Handled unknown gems in bundled gems warningJean Boussier
We have this code that started failing on 3.3.0-dev recently: ``` irb(main):002> require File.join(RbConfig::CONFIG["rubylibdir"], "observer.rb") /opt/rubies/3.3.0-dev-09-29/lib/ruby/3.3.0+0/bundled_gems.rb:86:in `<': comparison of String with nil failed (ArgumentError) end + " which #{RUBY_VERSION < SINCE[gem] ? "will be" : "is"} not part of the default gems since Ruby #{SINCE[gem]}" ^^^^^^^^^^ from /opt/rubies/3.3.0-dev-09-29/lib/ruby/3.3.0+0/bundled_gems.rb:86:in `warning?' from /opt/rubies/3.3.0-dev-09-29/lib/ruby/3.3.0+0/bundled_gems.rb:92:in `block in <module:BUNDLED_GEMS>' from <internal:/opt/rubies/3.3.0-dev-09-29/lib/ruby/3.3.0+0/rubygems/core_ext/kernel_require.rb>:42:in `block in require' from <internal:/opt/rubies/3.3.0-dev-09-29/lib/ruby/3.3.0+0/rubygems/core_ext/kernel_require.rb>:39:in `synchronize' from <internal:/opt/rubies/3.3.0-dev-09-29/lib/ruby/3.3.0+0/rubygems/core_ext/kernel_require.rb>:39:in `require' from (irb):2:in `<main>' from <internal:kernel>:187:in `loop' from /opt/rubies/3.3.0-dev-09-29/lib/ruby/gems/3.3.0+0/gems/irb-1.8.1/exe/irb:9:in `<top (required)>' from /Users/byroot/.gem/ruby/3.3.0/bin/irb:25:in `load' from /Users/byroot/.gem/ruby/3.3.0/bin/irb:25:in `<main>' ``` https://github.com/rubygems/rubygems/commit/d67eddb295
2023-09-20[rubygems/rubygems] Bundler error handlingSamuel Giddins
https://github.com/rubygems/rubygems/commit/63b422b71a
2023-08-29[rubygems/rubygems] rubocop -aHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f240bfad2a
2023-08-25Suggest to add bundled gems into gemspec if 3rd party gem try to load gem ↵Hiroshi SHIBATA
from Gem::BUNDLED_GEMS::SINCE [Feature #19846]
2023-08-04Display call location with bundled gems warningHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8172
2023-08-04Fixed worng key of bundled_gems listHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8172
2023-08-04Also decorate warning message with future tense for bundlerHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8172
2023-08-01[rubygems/rubygems] Use Kernel.singleton_classHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9be984f281
2023-07-30[rubygems/rubygems] Use the dedicated method to convert file pathNobuyoshi Nakada
The dedicated method `File.path` to deal with pathname-like objects has been provided since ruby 1.9.0. Also adds a test for rubygems/rubygems#6837. https://github.com/rubygems/rubygems/commit/258c6eda80
2023-07-28Use Gem::BUNDLED_GEMS::SINCEHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8126
2023-07-27[rubygems/rubygems] Restore support for Pathname objects in the replaced requireXavier Noria
https://github.com/rubygems/rubygems/commit/f7b4282ef7
2023-07-25[rubygems/rubygems] bin/rubocop -AHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e8a4184429
2023-07-25[rubygems/rubygems] Extract Gem::BUNDLED_GEMS from BundlerHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e30e86aa60
2023-07-25[rubygems/rubygems] Skip warnings if bundled gems is already loadedHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9583a7eb82
2023-07-25[rubygems/rubygems] Use Kernel.singleton_classHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f2e8e054df
2023-07-25[rubygems/rubygems] Don't reuse require argumentHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/1712cd6149
2023-07-25[rubygems/rubygems] Added warnings targets for old version of RubyHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d0c1d97105
2023-07-25[rubygems/rubygems] Added Ruby version for bundled gems to warningsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d61c1362e7
2023-07-25[rubygems/rubygems] Simplefied conditionHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/5238fcf234
2023-07-25[rubygems/rubygems] make bundled gemst list as constant under Gem namespaceHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/438eac5447
2023-07-25[rubygems/rubygems] Also check Kernel.require for infinite loopHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/961d9ac1bd
2023-07-25[rubygems/rubygems] Avoid infinite call of requireHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9c345bfa3e
2023-07-25[rubygems/rubygems] Keep Kernel#require privateHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/cd59e73efa
2023-07-25[rubygems/rubygems] Don't use redefine_methodHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f733f90110
2023-07-25[rubygems/rubygems] Warn if file is loaded without GemfileHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/bf59dcdad1
2023-06-16[rubygems/rubygems] Auto-correct Performance/FlatMapHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/b696edcd73
2023-02-23[rubygems/rubygems] safe marshal gem versions when fetching Marshal.specs.4.8.gzMercedes Bernard
https://github.com/rubygems/rubygems/commit/23880353c1
2023-02-21Merge rubygems/bundler masterHiroshi SHIBATA
Pick from https://github.com/rubygems/rubygems/commit/e9304aed7e43308b99e70c2f7b92028315fee8a5 Notes: Merged: https://github.com/ruby/ruby/pull/7345