Skip to content

Commit

Permalink
deprecation warning Bundler.rubygems.all_specs
Browse files Browse the repository at this point in the history
- fix deprecation warning while starting `rails server`
  - `[DEPRECATED] Bundler.rubygems.all_specs has been removed in favor of Bundler.rubygems.installed_specs`
- reproducible with ruby v3.3.3 (and new minimum required bundler, rubygems versions)
  • Loading branch information
neumayr committed Jul 23, 2024
1 parent ff64d3e commit 5db0057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scout_apm/utils/installed_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def logger
end

def run
Bundler.rubygems.all_specs.map {|spec| [spec.name, spec.version.to_s] }
Bundler.rubygems.installed_specs.map {|spec| [spec.name, spec.version.to_s] }
rescue => e
logger.warn("Couldn't fetch Gem information: #{e.message}")
[]
Expand Down

0 comments on commit 5db0057

Please sign in to comment.