diff options
author | Samuel Giddins <[email protected]> | 2024-09-19 15:10:40 -0700 |
---|---|---|
committer | git <[email protected]> | 2024-09-20 14:26:13 +0000 |
commit | 43e3416b700e421ffdff3a9c534e1de620bb7ad6 (patch) | |
tree | 5d36bf7eaf46118b2417182ae401f6e3e669046b /lib/bundler/plugin/api/source.rb | |
parent | 7836626f92be77c02da633077863f84435acee5d (diff) |
[rubygems/rubygems] Unconditionally set installed_by_version
It has been supported since RubyGems 2.2.0 via https://github.com/rubygems/rubygems/commit/4525e45a4d45
Signed-off-by: Samuel Giddins <[email protected]>
https://github.com/rubygems/rubygems/commit/bf39c583e8
Diffstat (limited to 'lib/bundler/plugin/api/source.rb')
-rw-r--r-- | lib/bundler/plugin/api/source.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/plugin/api/source.rb b/lib/bundler/plugin/api/source.rb index f91b263875..690f379389 100644 --- a/lib/bundler/plugin/api/source.rb +++ b/lib/bundler/plugin/api/source.rb @@ -131,7 +131,7 @@ module Bundler Bundler::Index.build do |index| files.each do |file| next unless spec = Bundler.load_gemspec(file) - Bundler.rubygems.set_installed_by_version(spec) + spec.installed_by_version = Gem::VERSION spec.source = self Bundler.rubygems.validate(spec) |