Extend Module when requiring sorbet
This commit is contained in:
parent
08e12b2383
commit
5546f778e5
@ -2,7 +2,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Array
|
||||
|
||||
# Equal to <tt>self[1]</tt>.
|
||||
#
|
||||
# %w( a b c d e ).second # => "b"
|
||||
|
||||
@ -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})]
|
||||
HOMEBREW_BOTTLES_EXTNAME_REGEX = /\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/
|
||||
|
||||
require "extend/module"
|
||||
require "extend/array"
|
||||
require "extend/blank"
|
||||
require "env_config"
|
||||
|
||||
@ -2,6 +2,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative "standalone"
|
||||
require_relative "extend/module"
|
||||
|
||||
require "rubocops/all"
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user