Skip to content

Commit

Permalink
Merge pull request #17315 from Homebrew/3.4-gems
Browse files Browse the repository at this point in the history
Add gems to Gemfile for Ruby 3.4.
  • Loading branch information
MikeMcQuaid authored May 17, 2024
2 parents ae914f6 + a408da6 commit c269524
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Library/Homebrew/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
require "api/analytics"
require "api/cask"
require "api/formula"
require "base64" # TODO: Add this to the Gemfile or remove it before moving to Ruby 3.4.
require "warnings"
Warnings.ignore :default_gems do
require "base64" # TODO: Add this to the Gemfile or remove it before moving to Ruby 3.4.
end
require "extend/cachable"

module Homebrew
Expand Down
5 changes: 4 additions & 1 deletion Library/Homebrew/dev-cmd/contributions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# frozen_string_literal: true

require "abstract_command"
require "csv"
require "warnings"
Warnings.ignore :default_gems do
require "csv"
end

module Homebrew
module DevCmd
Expand Down
3 changes: 3 additions & 0 deletions Library/Homebrew/warnings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ module Warnings
%r{warning: please see https://github\.com/whitequark/parser#compatibility-with-ruby-mri\.},
# <!-- vale on -->
],
default_gems: [
/warning: .+\.rb was loaded from the standard library, .+ default gems since Ruby \d+\.\d+\.\d+\./,
],
}.freeze

def self.ignore(*warnings)
Expand Down

0 comments on commit c269524

Please sign in to comment.