diff --git a/Gemfile b/Gemfile index 982c10c7a..5679c753f 100644 --- a/Gemfile +++ b/Gemfile @@ -18,7 +18,7 @@ gem "doorkeeper" gem "email_validator" gem "enumerize" gem "faraday" -gem "good_job", "~> 3.99.0" +gem "good_job", "~> 4.11.2" gem "http_accept_language" gem "inline_svg" gem "jb" diff --git a/Gemfile.lock b/Gemfile.lock index 66bc00f4a..ea337bc1e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -180,13 +180,13 @@ GEM raabro (~> 1.4) globalid (1.2.1) activesupport (>= 6.1) - good_job (3.99.1) - activejob (>= 6.0.0) - activerecord (>= 6.0.0) - concurrent-ruby (>= 1.0.2) - fugit (>= 1.1) - railties (>= 6.0.0) - thor (>= 0.14.1) + good_job (4.11.2) + activejob (>= 6.1.0) + activerecord (>= 6.1.0) + concurrent-ruby (>= 1.3.1) + fugit (>= 1.11.0) + railties (>= 6.1.0) + thor (>= 1.0.0) http_accept_language (2.1.1) httparty (0.22.0) csv @@ -527,7 +527,7 @@ DEPENDENCIES erb_lint factory_bot_rails faraday - good_job (~> 3.99.0) + good_job (~> 4.11.2) http_accept_language inline_svg jb diff --git a/sorbet/rbi/annotations/activesupport.rbi b/sorbet/rbi/annotations/activesupport.rbi index 684f489c9..f51140463 100644 --- a/sorbet/rbi/annotations/activesupport.rbi +++ b/sorbet/rbi/annotations/activesupport.rbi @@ -88,6 +88,10 @@ class Hash sig { returns(T::Boolean) } def extractable_options?; end + + # @version >= 6.1.0 + sig { returns(T::Hash[K, V]) } + def compact_blank; end end class Array @@ -194,6 +198,26 @@ class DateTime end module Enumerable + sig { type_parameters(:Block).params(block: T.proc.params(arg0: Elem).returns(T.type_parameter(:Block))).returns(T::Hash[T.type_parameter(:Block), Elem]) } + sig { returns(T::Enumerable[T.untyped]) } + def index_by(&block); end + + sig { type_parameters(:Block).params(block: T.proc.params(arg0: Elem).returns(T.type_parameter(:Block))).returns(T::Hash[Elem, T.type_parameter(:Block)]) } + sig { returns(T::Enumerable[T.untyped]) } + sig { type_parameters(:Default).params(default: T.type_parameter(:Default)).returns(T::Hash[Elem, T.type_parameter(:Default)]) } + def index_with(default = nil, &block); end + + sig { params(block: T.proc.params(arg0: Elem).returns(BasicObject)).returns(T::Boolean) } + sig { returns(T::Boolean) } + def many?(&block); end + + sig { params(object: BasicObject).returns(T::Boolean) } + def exclude?(object); end + + # @version >= 6.1.0 + sig { returns(T::Array[Elem]) } + def compact_blank; end + # @version >= 7.0.0 sig { returns(Elem) } def sole; end