Skip to content

Commit 3f84336

Browse files
fix: switch to github compatible markdown engine (#87)
1 parent fb6870a commit 3f84336

19 files changed

+197
-54
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ Style/RegexpLiteral:
235235
Style/SafeNavigation:
236236
Enabled: false
237237

238+
Style/SignalException:
239+
Exclude:
240+
- Rakefile
241+
238242
# We use these sparingly, where we anticipate future branches for the
239243
# inner conditional.
240244
Style/SoleNestedConditional:

.yardopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
--markup markdown
2+
--markup-provider redcarpet
23
--exclude /rbi
34
--exclude /sig

Gemfile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ source "https://rubygems.org"
55
gemspec
66

77
group :development do
8-
gem "async"
9-
gem "minitest"
10-
gem "minitest-focus"
11-
gem "minitest-hooks"
12-
gem "minitest-proveit"
13-
gem "minitest-rg"
148
gem "rake"
159
gem "rbs"
1610
gem "rubocop"
@@ -20,6 +14,19 @@ group :development do
2014
# TODO: using a fork for now, the prettier below has a bug
2115
gem "syntax_tree-rbs", github: "stainless-api/syntax_tree-rbs", branch: "main"
2216
gem "tapioca"
17+
end
18+
19+
group :development, :test do
20+
gem "async"
21+
gem "minitest"
22+
gem "minitest-focus"
23+
gem "minitest-hooks"
24+
gem "minitest-proveit"
25+
gem "minitest-rg"
26+
end
27+
28+
group :development, :docs do
29+
gem "redcarpet"
2330
gem "webrick"
2431
gem "yard"
2532
end

Gemfile.lock

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ GEM
2929
minitest (>= 5.1)
3030
securerandom (>= 0.3)
3131
tzinfo (~> 2.0, >= 2.0.5)
32-
ast (2.4.2)
33-
async (2.23.0)
32+
ast (2.4.3)
33+
async (2.23.1)
3434
console (~> 1.29)
3535
fiber-annotation
3636
io-event (~> 1.9)
@@ -41,11 +41,11 @@ GEM
4141
bigdecimal (3.1.9)
4242
concurrent-ruby (1.3.5)
4343
connection_pool (2.5.0)
44-
console (1.29.3)
44+
console (1.30.2)
4545
fiber-annotation
4646
fiber-local (~> 1.1)
4747
json
48-
csv (3.3.2)
48+
csv (3.3.3)
4949
drb (2.2.1)
5050
erubi (1.13.1)
5151
ffi (1.17.1)
@@ -56,16 +56,16 @@ GEM
5656
fileutils (1.7.3)
5757
i18n (1.14.7)
5858
concurrent-ruby (~> 1.0)
59-
io-event (1.9.0)
60-
json (2.10.1)
59+
io-event (1.10.0)
60+
json (2.10.2)
6161
language_server-protocol (3.17.0.4)
6262
lint_roller (1.1.0)
6363
listen (3.9.0)
6464
rb-fsevent (~> 0.10, >= 0.10.3)
6565
rb-inotify (~> 0.9, >= 0.9.10)
66-
logger (1.6.6)
67-
metrics (0.12.1)
68-
minitest (5.25.4)
66+
logger (1.7.0)
67+
metrics (0.12.2)
68+
minitest (5.25.5)
6969
minitest-focus (1.4.0)
7070
minitest (>= 4, < 6)
7171
minitest-hooks (1.5.2)
@@ -74,68 +74,73 @@ GEM
7474
minitest (> 5, < 7)
7575
minitest-rg (5.3.0)
7676
minitest (~> 5.0)
77+
mutex_m (0.3.0)
7778
netrc (0.11.0)
7879
parallel (1.26.3)
79-
parser (3.3.7.1)
80+
parser (3.3.7.4)
8081
ast (~> 2.4.1)
8182
racc
8283
prettier_print (1.2.1)
83-
prism (1.3.0)
84+
prism (1.4.0)
8485
racc (1.8.1)
8586
rainbow (3.1.1)
8687
rake (13.2.1)
8788
rb-fsevent (0.11.2)
8889
rb-inotify (0.11.1)
8990
ffi (~> 1.0)
90-
rbi (0.2.4)
91+
rbi (0.3.1)
9192
prism (~> 1.0)
93+
rbs (>= 3.4.4)
9294
sorbet-runtime (>= 0.5.9204)
93-
rbs (3.8.1)
95+
rbs (3.9.2)
9496
logger
97+
redcarpet (3.6.1)
9598
regexp_parser (2.10.0)
96-
rubocop (1.73.2)
99+
rubocop (1.75.1)
97100
json (~> 2.3)
98101
language_server-protocol (~> 3.17.0.2)
99102
lint_roller (~> 1.1.0)
100103
parallel (~> 1.10)
101104
parser (>= 3.3.0.2)
102105
rainbow (>= 2.2.2, < 4.0)
103106
regexp_parser (>= 2.9.3, < 3.0)
104-
rubocop-ast (>= 1.38.0, < 2.0)
107+
rubocop-ast (>= 1.43.0, < 2.0)
105108
ruby-progressbar (~> 1.7)
106109
unicode-display_width (>= 2.4.0, < 4.0)
107-
rubocop-ast (1.38.1)
108-
parser (>= 3.3.1.0)
110+
rubocop-ast (1.43.0)
111+
parser (>= 3.3.7.2)
112+
prism (~> 1.4)
109113
ruby-progressbar (1.13.0)
110114
securerandom (0.4.1)
111-
sorbet (0.5.11888)
112-
sorbet-static (= 0.5.11888)
113-
sorbet-runtime (0.5.11888)
114-
sorbet-static (0.5.11888-x86_64-linux)
115-
sorbet-static-and-runtime (0.5.11888)
116-
sorbet (= 0.5.11888)
117-
sorbet-runtime (= 0.5.11888)
118-
spoom (1.5.4)
115+
sorbet (0.5.11966)
116+
sorbet-static (= 0.5.11966)
117+
sorbet-runtime (0.5.11966)
118+
sorbet-static (0.5.11966-x86_64-linux)
119+
sorbet-static-and-runtime (0.5.11966)
120+
sorbet (= 0.5.11966)
121+
sorbet-runtime (= 0.5.11966)
122+
spoom (1.6.1)
119123
erubi (>= 1.10.0)
120124
prism (>= 0.28.0)
121125
rbi (>= 0.2.3)
122126
sorbet-static-and-runtime (>= 0.5.10187)
123127
thor (>= 0.19.2)
124-
steep (1.9.4)
128+
steep (1.10.0)
125129
activesupport (>= 5.1)
126130
concurrent-ruby (>= 1.1.10)
127131
csv (>= 3.0.9)
128132
fileutils (>= 1.1.0)
129133
json (>= 2.1.0)
130-
language_server-protocol (>= 3.15, < 4.0)
134+
language_server-protocol (>= 3.17.0.4, < 4.0)
131135
listen (~> 3.0)
132136
logger (>= 1.3.0)
137+
mutex_m (>= 0.3.0)
133138
parser (>= 3.1)
134139
rainbow (>= 2.2.2, < 4.0)
135-
rbs (~> 3.8)
140+
rbs (~> 3.9)
136141
securerandom (>= 0.1)
137142
strscan (>= 1.0.0)
138-
terminal-table (>= 2, < 4)
143+
terminal-table (>= 2, < 5)
139144
uri (>= 0.12.0)
140145
strscan (3.1.2)
141146
syntax_tree (6.2.0)
@@ -150,13 +155,15 @@ GEM
150155
spoom (>= 1.2.0)
151156
thor (>= 1.2.0)
152157
yard-sorbet
153-
terminal-table (3.0.2)
154-
unicode-display_width (>= 1.1.1, < 3)
158+
terminal-table (4.0.0)
159+
unicode-display_width (>= 1.1.1, < 4)
155160
thor (1.3.2)
156161
traces (0.15.2)
157162
tzinfo (2.0.6)
158163
concurrent-ruby (~> 1.0)
159-
unicode-display_width (2.6.0)
164+
unicode-display_width (3.1.4)
165+
unicode-emoji (~> 4.0, >= 4.0.4)
166+
unicode-emoji (4.0.4)
160167
uri (1.0.3)
161168
webrick (1.9.1)
162169
yard (0.9.37)
@@ -177,6 +184,7 @@ DEPENDENCIES
177184
minitest-rg
178185
rake
179186
rbs
187+
redcarpet
180188
rubocop
181189
sorbet
182190
steep

lib/finch-api/type/converter.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module FinchAPI
44
module Type
5+
# rubocop:disable Metrics/ModuleLength
56
# @api private
67
module Converter
78
# rubocop:disable Lint/UnusedMethodArgument
@@ -118,6 +119,8 @@ def coerce(
118119
value,
119120
state: {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0}
120121
)
122+
# rubocop:disable Lint/SuppressedException
123+
# rubocop:disable Metrics/BlockNesting
121124
strictness, exactness = state.fetch_values(:strictness, :exactness)
122125

123126
case target
@@ -194,6 +197,8 @@ def coerce(
194197

195198
exactness[:no] += 1
196199
value
200+
# rubocop:enable Metrics/BlockNesting
201+
# rubocop:enable Lint/SuppressedException
197202
end
198203

199204
# @api private
@@ -207,5 +212,6 @@ def dump(target, value)
207212
end
208213
end
209214
end
215+
# rubocop:enable Metrics/ModuleLength
210216
end
211217
end

rbi/lib/finch-api/models/account_update_event.rbi

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,13 @@ module FinchAPI
540540
)
541541
.returns(T.attached_class)
542542
end
543-
def self.new(account_name: nil, account_number: nil, account_type: nil, institution_name: nil, routing_number: nil)
543+
def self.new(
544+
account_name: nil,
545+
account_number: nil,
546+
account_type: nil,
547+
institution_name: nil,
548+
routing_number: nil
549+
)
544550
end
545551

546552
sig do
@@ -860,7 +866,15 @@ module FinchAPI
860866
)
861867
.returns(T.attached_class)
862868
end
863-
def self.new(id: nil, department: nil, first_name: nil, is_active: nil, last_name: nil, manager: nil, middle_name: nil)
869+
def self.new(
870+
id: nil,
871+
department: nil,
872+
first_name: nil,
873+
is_active: nil,
874+
last_name: nil,
875+
manager: nil,
876+
middle_name: nil
877+
)
864878
end
865879

866880
sig do

rbi/lib/finch-api/models/connect/session_reauthenticate_params.rbi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ module FinchAPI
3434
)
3535
.returns(T.attached_class)
3636
end
37-
def self.new(connection_id:, minutes_to_expire: nil, products: nil, redirect_uri: nil, request_options: {})
37+
def self.new(
38+
connection_id:,
39+
minutes_to_expire: nil,
40+
products: nil,
41+
redirect_uri: nil,
42+
request_options: {}
43+
)
3844
end
3945

4046
sig do

rbi/lib/finch-api/models/hris/company.rbi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ module FinchAPI
122122
)
123123
.returns(T.attached_class)
124124
end
125-
def self.new(account_name: nil, account_number: nil, account_type: nil, institution_name: nil, routing_number: nil)
125+
def self.new(
126+
account_name: nil,
127+
account_number: nil,
128+
account_type: nil,
129+
institution_name: nil,
130+
routing_number: nil
131+
)
126132
end
127133

128134
sig do

rbi/lib/finch-api/models/hris/individual_in_directory.rbi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,15 @@ module FinchAPI
6363
)
6464
.returns(T.attached_class)
6565
end
66-
def self.new(id: nil, department: nil, first_name: nil, is_active: nil, last_name: nil, manager: nil, middle_name: nil)
66+
def self.new(
67+
id: nil,
68+
department: nil,
69+
first_name: nil,
70+
is_active: nil,
71+
last_name: nil,
72+
manager: nil,
73+
middle_name: nil
74+
)
6775
end
6876

6977
sig do

rbi/lib/finch-api/models/jobs/automated_async_job.rbi

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,17 @@ module FinchAPI
6565
)
6666
.returns(T.attached_class)
6767
end
68-
def self.new(completed_at:, created_at:, job_id:, job_url:, params:, scheduled_at:, started_at:, status:, type:)
68+
def self.new(
69+
completed_at:,
70+
created_at:,
71+
job_id:,
72+
job_url:,
73+
params:,
74+
scheduled_at:,
75+
started_at:,
76+
status:,
77+
type:
78+
)
6979
end
7080

7181
sig do

0 commit comments

Comments
 (0)