Skip to content

Commit 5fa46fd

Browse files
committed
Update debug provider
To support latest fasp_base changes
1 parent ea3175c commit 5fa46fd

File tree

7 files changed

+49
-33
lines changed

7 files changed

+49
-33
lines changed

debug_fasp/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gem "turbo-rails"
1515
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
1616
gem "stimulus-rails"
1717
# Use Tailwind CSS [https://github.com/rails/tailwindcss-rails]
18-
gem "tailwindcss-rails"
18+
gem "tailwindcss-rails", "~> 3.3.1"
1919
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
2020
gem "jbuilder"
2121

debug_fasp/Gemfile.lock

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,16 @@ GEM
148148
jbuilder (2.13.0)
149149
actionview (>= 5.0.0)
150150
activesupport (>= 5.0.0)
151-
json (2.9.1)
152-
language_server-protocol (3.17.0.3)
151+
json (2.10.1)
152+
language_server-protocol (3.17.0.4)
153+
lint_roller (1.1.0)
153154
linzer (0.6.2)
154155
openssl (~> 3.0, >= 3.0.0)
155156
rack (>= 2.2, < 4.0)
156157
starry (~> 0.2)
157158
stringio (~> 3.1, >= 3.1.2)
158159
uri (~> 1.0, >= 1.0.2)
159-
logger (1.6.5)
160+
logger (1.6.6)
160161
loofah (2.24.0)
161162
crass (~> 1.0.2)
162163
nokogiri (>= 1.12.0)
@@ -170,15 +171,15 @@ GEM
170171
mini_mime (1.1.5)
171172
mini_portile2 (2.8.8)
172173
minitest (5.25.4)
173-
msgpack (1.7.5)
174-
net-imap (0.5.2)
174+
msgpack (1.8.0)
175+
net-imap (0.5.6)
175176
date
176177
net-protocol
177178
net-pop (0.1.2)
178179
net-protocol
179180
net-protocol (0.2.2)
180181
timeout
181-
net-smtp (0.5.0)
182+
net-smtp (0.5.1)
182183
net-protocol
183184
nio4r (2.7.4)
184185
nokogiri (1.18.2)
@@ -202,7 +203,7 @@ GEM
202203
racc (~> 1.4)
203204
openssl (3.3.0)
204205
parallel (1.26.3)
205-
parser (3.3.6.0)
206+
parser (3.3.7.1)
206207
ast (~> 2.4.1)
207208
racc
208209
pp (0.6.2)
@@ -221,7 +222,7 @@ GEM
221222
nio4r (~> 2.0)
222223
raabro (1.4.0)
223224
racc (1.8.1)
224-
rack (3.1.9)
225+
rack (3.1.10)
225226
rack-session (2.1.0)
226227
base64 (>= 0.1.0)
227228
rack (>= 3.0.0)
@@ -262,33 +263,37 @@ GEM
262263
rake (13.2.1)
263264
rdoc (6.12.0)
264265
psych (>= 4.0.0)
265-
regexp_parser (2.9.3)
266+
regexp_parser (2.10.0)
266267
reline (0.6.0)
267268
io-console (~> 0.5)
268-
rexml (3.4.0)
269-
rubocop (1.69.2)
269+
rexml (3.4.1)
270+
rubocop (1.72.2)
270271
json (~> 2.3)
271-
language_server-protocol (>= 3.17.0)
272+
language_server-protocol (~> 3.17.0.2)
273+
lint_roller (~> 1.1.0)
272274
parallel (~> 1.10)
273275
parser (>= 3.3.0.2)
274276
rainbow (>= 2.2.2, < 4.0)
275277
regexp_parser (>= 2.9.3, < 3.0)
276-
rubocop-ast (>= 1.36.2, < 2.0)
278+
rubocop-ast (>= 1.38.0, < 2.0)
277279
ruby-progressbar (~> 1.7)
278280
unicode-display_width (>= 2.4.0, < 4.0)
279-
rubocop-ast (1.37.0)
281+
rubocop-ast (1.38.0)
280282
parser (>= 3.3.1.0)
281-
rubocop-minitest (0.36.0)
282-
rubocop (>= 1.61, < 2.0)
283-
rubocop-ast (>= 1.31.1, < 2.0)
284-
rubocop-performance (1.23.0)
285-
rubocop (>= 1.48.1, < 2.0)
286-
rubocop-ast (>= 1.31.1, < 2.0)
287-
rubocop-rails (2.27.0)
283+
rubocop-minitest (0.37.1)
284+
lint_roller (~> 1.1)
285+
rubocop (>= 1.72.1, < 2.0)
286+
rubocop-ast (>= 1.38.0, < 2.0)
287+
rubocop-performance (1.24.0)
288+
lint_roller (~> 1.1)
289+
rubocop (>= 1.72.1, < 2.0)
290+
rubocop-ast (>= 1.38.0, < 2.0)
291+
rubocop-rails (2.30.1)
288292
activesupport (>= 4.2.0)
293+
lint_roller (~> 1.1)
289294
rack (>= 1.1)
290-
rubocop (>= 1.52.0, < 2.0)
291-
rubocop-ast (>= 1.31.1, < 2.0)
295+
rubocop (>= 1.72.1, < 2.0)
296+
rubocop-ast (>= 1.38.0, < 2.0)
292297
rubocop-rails-omakase (1.0.0)
293298
rubocop
294299
rubocop-minitest
@@ -328,7 +333,7 @@ GEM
328333
base64
329334
stimulus-rails (1.3.4)
330335
railties (>= 6.0.0)
331-
stringio (3.1.2)
336+
stringio (3.1.3)
332337
tailwindcss-rails (3.3.1)
333338
railties (>= 7.0.0)
334339
tailwindcss-ruby (~> 3.0)
@@ -350,7 +355,7 @@ GEM
350355
railties (>= 6.0.0)
351356
tzinfo (2.0.6)
352357
concurrent-ruby (~> 1.0)
353-
unicode-display_width (3.1.2)
358+
unicode-display_width (3.1.4)
354359
unicode-emoji (~> 4.0, >= 4.0.4)
355360
unicode-emoji (4.0.4)
356361
uri (1.0.2)
@@ -365,12 +370,13 @@ GEM
365370
crack (>= 0.3.2)
366371
hashdiff (>= 0.4.0, < 2.0.0)
367372
websocket (1.2.11)
368-
websocket-driver (0.7.6)
373+
websocket-driver (0.7.7)
374+
base64
369375
websocket-extensions (>= 0.1.0)
370376
websocket-extensions (0.1.5)
371377
xpath (3.2.0)
372378
nokogiri (~> 1.8)
373-
zeitwerk (2.7.1)
379+
zeitwerk (2.7.2)
374380

375381
PLATFORMS
376382
aarch64-linux
@@ -406,7 +412,7 @@ DEPENDENCIES
406412
solid_queue
407413
sqlite3 (>= 2.1)
408414
stimulus-rails
409-
tailwindcss-rails
415+
tailwindcss-rails (~> 3.3.1)
410416
thruster
411417
turbo-rails
412418
tzinfo-data
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
class Fasp::ApiController < ActionController::Base
22
include FaspBase::ApiAuthentication
3-
4-
skip_forgery_protection
53
end

debug_fasp/config/initializers/fasp_base.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
FaspBase.tap do |f|
22
f.fasp_name = "Debug"
33
f.domain = ENV["DOMAIN"] || ActionController::Base.default_url_options[:host] || "localhost:3000"
4-
f.capabilities = [ { id: "callback", version: "0.1" } ]
4+
f.capabilities = [
5+
{ id: "callback", version: "0.1" },
6+
{ id: "data_sharing", version: "0.1" }
7+
]
58
f.privacy_policy_url = ENV["PRIVACY_POLICY_URL"]
69
f.privacy_policy_language = ENV["PRIVACY_POLICY_LANGUAGE"]
710
f.contact_email = ENV["CONTACT_EMAIL"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This migration comes from fasp_base (originally 20250212113456)
2+
class AddEnabledCapabilitiesToFaspBaseServers < ActiveRecord::Migration[8.0]
3+
def change
4+
add_column :fasp_base_servers, :enabled_capabilities, :json
5+
end
6+
end

debug_fasp/db/schema.rb

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fasp_base/app/controllers/concerns/fasp_base/api_authentication.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ module ApiAuthentication
99
attr_reader :current_server
1010
helper_method :current_user
1111

12+
skip_forgery_protection
13+
1214
before_action :require_authentication
1315

1416
after_action :sign_response

0 commit comments

Comments
 (0)