Skip to content

Commit 6b432b0

Browse files
authored
Merge pull request #763 from Shopify/at-bump-sorbet
Bump Sorbet and add `raise` to abstract methods
2 parents bd88374 + 9106afa commit 6b432b0

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

Gemfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ GEM
8585
lint_roller
8686
rubocop (>= 1.75.2)
8787
ruby-progressbar (1.13.0)
88-
sorbet (0.5.12163)
89-
sorbet-static (= 0.5.12163)
90-
sorbet-runtime (0.5.12163)
91-
sorbet-static (0.5.12163-universal-darwin)
92-
sorbet-static (0.5.12163-x86_64-linux)
93-
sorbet-static-and-runtime (0.5.12163)
94-
sorbet (= 0.5.12163)
95-
sorbet-runtime (= 0.5.12163)
88+
sorbet (0.5.12174)
89+
sorbet-static (= 0.5.12174)
90+
sorbet-runtime (0.5.12174)
91+
sorbet-static (0.5.12174-universal-darwin)
92+
sorbet-static (0.5.12174-x86_64-linux)
93+
sorbet-static-and-runtime (0.5.12174)
94+
sorbet (= 0.5.12174)
95+
sorbet-runtime (= 0.5.12174)
9696
stringio (3.1.7)
9797
tapioca (0.17.2)
9898
benchmark

lib/spoom/coverage/d3/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def tooltip
4242

4343
# @abstract
4444
#: -> String
45-
def script; end
45+
def script = raise("Abstract method called")
4646
end
4747
end
4848
end

lib/spoom/coverage/d3/timeline.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def script
119119

120120
# @abstract
121121
#: -> String
122-
def plot; end
122+
def plot = raise("Abstract method called")
123123

124124
#: -> String
125125
def x_scale

lib/spoom/coverage/report.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def body_html
7070

7171
# @abstract
7272
#: -> Array[Cards::Card]
73-
def cards; end
73+
def cards = raise("Abstract method called")
7474

7575
#: -> String
7676
def footer_html
@@ -106,7 +106,7 @@ def html
106106

107107
# @abstract
108108
#: -> String
109-
def erb; end
109+
def erb = raise("Abstract method called")
110110
end
111111

112112
class Snapshot < Card

lib/spoom/sorbet/lsp/structures.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module LSP
1010
module PrintableSymbol
1111
# @abstract
1212
#: (SymbolPrinter printer) -> void
13-
def accept_printer(printer); end
13+
def accept_printer(printer) = raise("Abstract method called")
1414
end
1515

1616
class Hover < T::Struct

lib/spoom/source/rewriter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class PositionError < Spoom::Error; end
2929
class Edit
3030
# @abstract
3131
#: (Array[Integer]) -> void
32-
def apply(bytes); end
32+
def apply(bytes) = raise("Abstract method called")
3333

3434
# @abstract
3535
#: -> [Integer, Integer]
36-
def range; end
36+
def range = raise("Abstract method called")
3737
end
3838

3939
class Insert < Edit

0 commit comments

Comments
 (0)