lib/spoom/sorbet.rb in spoom-1.1.5 vs lib/spoom/sorbet.rb in spoom-1.1.6
- old
+ new
@@ -13,20 +13,22 @@
module Sorbet
CONFIG_PATH = "sorbet/config"
GEM_PATH = Gem::Specification.find_by_name("sorbet-static").full_gem_path
BIN_PATH = (Pathname.new(GEM_PATH) / "libexec" / "sorbet").to_s
+ SEGFAULT_CODE = 139
+
class << self
extend T::Sig
sig do
params(
arg: String,
path: String,
capture_err: T::Boolean,
sorbet_bin: T.nilable(String)
- ).returns([String, T::Boolean])
+ ).returns([String, T::Boolean, Integer])
end
def srb(*arg, path: '.', capture_err: false, sorbet_bin: nil)
if sorbet_bin
arg.prepend(sorbet_bin)
else
@@ -39,10 +41,10 @@
params(
arg: String,
path: String,
capture_err: T::Boolean,
sorbet_bin: T.nilable(String)
- ).returns([String, T::Boolean])
+ ).returns([String, T::Boolean, Integer])
end
def srb_tc(*arg, path: '.', capture_err: false, sorbet_bin: nil)
arg.prepend("tc") unless sorbet_bin
T.unsafe(self).srb(*arg, path: path, capture_err: capture_err, sorbet_bin: sorbet_bin)
end