Extend Module when requiring sorbet

This commit is contained in:
Douglas Eichelberger 2024-01-10 12:57:40 -08:00
parent 08e12b2383
commit 5546f778e5
4 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,6 @@
# frozen_string_literal: true # frozen_string_literal: true
class Array class Array
# Equal to <tt>self[1]</tt>. # Equal to <tt>self[1]</tt>.
# #
# %w( a b c d e ).second # => "b" # %w( a b c d e ).second # => "b"

View File

@ -69,7 +69,6 @@ HOMEBREW_PULL_OR_COMMIT_URL_REGEX =
%r[https://github\.com/([\w-]+)/([\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})] %r[https://github\.com/([\w-]+)/([\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})]
HOMEBREW_BOTTLES_EXTNAME_REGEX = /\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/ HOMEBREW_BOTTLES_EXTNAME_REGEX = /\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/
require "extend/module"
require "extend/array" require "extend/array"
require "extend/blank" require "extend/blank"
require "env_config" require "env_config"

View File

@ -2,6 +2,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require_relative "standalone" require_relative "standalone"
require_relative "extend/module"
require "rubocops/all" require "rubocops/all"

View File

@ -2,6 +2,7 @@
# frozen_string_literal: true # frozen_string_literal: true
require "sorbet-runtime" require "sorbet-runtime"
require "extend/module"
# Disable runtime checking unless enabled. # Disable runtime checking unless enabled.
# In the future we should consider not doing this monkey patch, # In the future we should consider not doing this monkey patch,