diff --git a/Library/Homebrew/cask/dsl/depends_on.rb b/Library/Homebrew/cask/dsl/depends_on.rb index 3c6ac402ae..b5aa5ff739 100644 --- a/Library/Homebrew/cask/dsl/depends_on.rb +++ b/Library/Homebrew/cask/dsl/depends_on.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rubygems" - module Cask class DSL class DependsOn < DelegateClass(Hash) diff --git a/Library/Homebrew/cask/installer.rb b/Library/Homebrew/cask/installer.rb index d1f54e807b..ca8088aa32 100644 --- a/Library/Homebrew/cask/installer.rb +++ b/Library/Homebrew/cask/installer.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rubygems" - require "formula_installer" require "unpack_strategy" diff --git a/Library/Homebrew/formula_assertions.rb b/Library/Homebrew/formula_assertions.rb index b1f9a2aab5..06e34a00c8 100644 --- a/Library/Homebrew/formula_assertions.rb +++ b/Library/Homebrew/formula_assertions.rb @@ -2,7 +2,6 @@ module Homebrew module Assertions - require "rubygems" require "test/unit/assertions" include ::Test::Unit::Assertions diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index a86bbc4ade..e4e68fbdb6 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -9,6 +9,7 @@ require "pp" require_relative "load_path" +require "rubygems" require "active_support/core_ext/object/blank" require "active_support/core_ext/numeric/time" require "active_support/core_ext/array/access" diff --git a/Library/Homebrew/test/cask/cmd/style_spec.rb b/Library/Homebrew/test/cask/cmd/style_spec.rb index e3e5d50407..447a465f58 100644 --- a/Library/Homebrew/test/cask/cmd/style_spec.rb +++ b/Library/Homebrew/test/cask/cmd/style_spec.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require "open3" -require "rubygems" require_relative "shared_examples/invalid_option" diff --git a/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb b/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb index f7731bbd54..0a28b8b558 100644 --- a/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb +++ b/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb @@ -88,7 +88,6 @@ RSpec.shared_context "integration test" do "-I", $LOAD_PATH.join(File::PATH_SEPARATOR) ] if ENV["HOMEBREW_TESTS_COVERAGE"] - require "rubygems" simplecov_spec = Gem.loaded_specs["simplecov"] specs = [simplecov_spec] simplecov_spec.runtime_dependencies.each do |dep|