diff --git a/Library/Homebrew/cask/dsl/depends_on.rb b/Library/Homebrew/cask/dsl/depends_on.rb index 3c6ac402aed427d38c6be921e37b00a367df2d7d..b5aa5ff7391d3fbc96ae395922d9bdbba787ee43 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 d1f54e807ba78c3258a688d37d07179e7726b15a..ca8088aa32e03f1a18fed97efe2859db3d728ed1 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 b1f9a2aab5bb0772e50ae6a779ebd8711ddd1614..06e34a00c8af90cad77f2bef202ef36bf84e3d1f 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 a86bbc4adeb0b55e44a90eb7ee39c4ab38dfc307..e4e68fbdb633088281c421ba5cbf4b24916e8342 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 e3e5d50407f8e174a1fcc2b2e87cb694c62cb4a5..447a465f5805867d6956bd64325e37539ff33627 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 f7731bbd54ef7c9f25af8abdb4255fec284d89f9..0a28b8b55849cd5b37ce6a171dd48d67d1944044 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|