Skip to content

Commit

Permalink
Extend Module when requiring sorbet
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Jan 10, 2024
1 parent 0b67e37 commit 4267a7a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Library/Homebrew/extend/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# frozen_string_literal: true

class Array

# Equal to <tt>self[1]</tt>.
#
# %w( a b c d e ).second # => "b"
Expand Down
1 change: 0 additions & 1 deletion Library/Homebrew/global.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
%r[https://github\.com/([\w-]+)/([\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})].freeze
HOMEBREW_BOTTLES_EXTNAME_REGEX = /\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/.freeze

require "extend/module"
require "extend/array"
require "extend/blank"
require "env_config"
Expand Down
1 change: 0 additions & 1 deletion Library/Homebrew/rubocops.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
# frozen_string_literal: true

require_relative "standalone"
require_relative "extend/module"

require "rubocops/all"
1 change: 1 addition & 0 deletions Library/Homebrew/standalone/sorbet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# frozen_string_literal: true

require "sorbet-runtime"
require "extend/module"

# Disable runtime checking unless enabled.
# In the future we should consider not doing this monkey patch,
Expand Down

0 comments on commit 4267a7a

Please sign in to comment.