Skip to content

Commit e97416d

Browse files
Merge pull request #1709 from yeti-switch/update-rack
#1698, update rack gem
2 parents 198ab05 + 216a804 commit e97416d

File tree

5 files changed

+69
-63
lines changed

5 files changed

+69
-63
lines changed

Gemfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ gem 'activerecord-import'
99
gem 'pg'
1010
gem 'pg_advisory_lock', git: 'https://github.com/didww/pg_advisory_lock.git'
1111
gem 'pg_sql_caller', git: 'https://github.com/didww/pg_sql_caller.git'
12-
gem 'rack', ' ~> 2.2.6'
12+
gem 'rack'
1313
gem 'rails', '~> 7.2.0'
1414
gem 'responders'
1515

@@ -45,7 +45,10 @@ gem 'active_admin_sidebar', '1.1.0'
4545
gem 'excelinator', github: 'senid231/excelinator', branch: 'ruby3-fix'
4646

4747
# REST API
48-
gem 'jsonapi-resources', '~> 0.9.12'
48+
# TODO: switch to the official gem from rubygems.org after the 0.9.13 release
49+
# https://github.com/cerebris/jsonapi-resources/issues/1456#issuecomment-2710742154
50+
# https://github.com/cerebris/jsonapi-resources/pull/1463
51+
gem 'jsonapi-resources', github: 'cerebris/jsonapi-resources', branch: 'release-0-9'
4952

5053
# gem 'activeadmin_async_export'
5154

@@ -69,7 +72,6 @@ gem 'jquery-tablesorter'
6972
gem 'jquery-ui-rails', github: 'jquery-ui-rails/jquery-ui-rails', tag: 'v7.0.0'
7073
gem 'mini_racer'
7174
gem 'rails-html-sanitizer', '>= 1.6.1'
72-
gem 'sass-globbing'
7375
gem 'uglifier', '>= 1.3'
7476

7577
# Server Tools
@@ -104,17 +106,13 @@ group :development, :test do
104106
gem 'awesome_print'
105107
gem 'bullet'
106108
gem 'byebug'
107-
gem 'thin'
108109

109110
gem 'brakeman'
110111
gem 'bundler-audit', require: false
111112
gem 'factory_bot_rails'
112113
gem 'parallel_tests'
114+
gem 'rspec_api_documentation', github: 'stitchfix/rspec_api_documentation'
113115
gem 'rspec-rails'
114-
# https://github.com/zipmark/rspec_api_documentation/pull/458
115-
# present only on master
116-
# Temporary solution. Waiting for merge https://github.com/zipmark/rspec_api_documentation/pull/507
117-
gem 'rspec_api_documentation', github: 'BigG1947/rspec_api_documentation'
118116
gem 'rubocop', require: false
119117
gem 'rubocop-performance', require: false
120118
gem 'rubocop-rails', require: false

Gemfile.lock

Lines changed: 56 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
GIT
2-
remote: https://github.com/BigG1947/rspec_api_documentation.git
3-
revision: 269213b950082d5a055f9ab020fcdace90605165
4-
specs:
5-
rspec_api_documentation (6.1.0)
6-
activesupport (>= 3.0.0)
7-
mustache (~> 1.0, >= 0.99.4)
8-
rspec (~> 3.0)
9-
101
GIT
112
remote: https://github.com/activeadmin-plugins/capybara_active_admin.git
123
revision: d2cdc2c0a5478d4ee1afb30f3465c7be3b760a86
@@ -15,6 +6,16 @@ GIT
156
activeadmin
167
rspec (~> 3.0)
178

9+
GIT
10+
remote: https://github.com/cerebris/jsonapi-resources.git
11+
revision: 17772cefd8a90fc1b54744871de1050a6040a691
12+
branch: release-0-9
13+
specs:
14+
jsonapi-resources (0.9.12)
15+
activerecord (>= 4.1)
16+
concurrent-ruby
17+
railties (>= 4.1)
18+
1819
GIT
1920
remote: https://github.com/cschiewek/devise_ldap_authenticatable.git
2021
revision: 6ef2131e79ff3421429f8d1b0645c6e113db4dc7
@@ -72,6 +73,15 @@ GIT
7273
excelinator (1.3.1)
7374
spreadsheet
7475

76+
GIT
77+
remote: https://github.com/stitchfix/rspec_api_documentation.git
78+
revision: f4e5508473a6aae6aba3ba915365a8c5c72f32ba
79+
specs:
80+
rspec_api_documentation (6.1.0)
81+
activesupport (>= 3.0.0)
82+
mustache (~> 1.0, >= 0.99.4)
83+
rspec (~> 3.0)
84+
7585
GIT
7686
remote: https://github.com/workgena/active_admin_date_range_preset.git
7787
revision: 1bfb64ceb9639bb76dcad2c8e2df4c5199b138f3
@@ -258,7 +268,7 @@ GEM
258268
coffee-script-source
259269
execjs
260270
coffee-script-source (1.12.2)
261-
concurrent-ruby (1.3.4)
271+
concurrent-ruby (1.3.5)
262272
config (5.5.2)
263273
deep_merge (~> 1.2, >= 1.2.1)
264274
ostruct
@@ -335,10 +345,9 @@ GEM
335345
dry-initializer (~> 3.0)
336346
dry-schema (>= 1.12, < 2)
337347
zeitwerk (~> 2.6)
338-
erubi (1.13.0)
348+
erubi (1.13.1)
339349
et-orbi (1.2.11)
340350
tzinfo
341-
eventmachine (1.2.5)
342351
execjs (2.7.0)
343352
factory_bot (6.5.0)
344353
activesupport (>= 5.0.0)
@@ -383,15 +392,16 @@ GEM
383392
httparty (0.21.0)
384393
mini_mime (>= 1.0.0)
385394
multi_xml (>= 0.5.2)
386-
i18n (1.14.6)
395+
i18n (1.14.7)
387396
concurrent-ruby (~> 1.0)
388397
inherited_resources (1.14.0)
389398
actionpack (>= 6.0)
390399
has_scope (>= 0.6)
391400
railties (>= 6.0)
392401
responders (>= 2)
393402
io-console (0.8.0)
394-
irb (1.14.3)
403+
irb (1.15.1)
404+
pp (>= 0.6.0)
395405
rdoc (>= 4.0.0)
396406
reline (>= 0.4.2)
397407
jquery-rails (4.4.0)
@@ -401,10 +411,6 @@ GEM
401411
jquery-tablesorter (1.27.2)
402412
railties (>= 3.2)
403413
json (2.7.3)
404-
jsonapi-resources (0.9.12)
405-
activerecord (>= 4.1)
406-
concurrent-ruby
407-
railties (>= 4.1)
408414
jwt (2.2.2)
409415
kaminari (1.2.1)
410416
activesupport (>= 4.1.0)
@@ -426,8 +432,8 @@ GEM
426432
rb-fsevent (~> 0.10, >= 0.10.3)
427433
rb-inotify (~> 0.9, >= 0.9.10)
428434
locale (2.1.2)
429-
logger (1.6.5)
430-
loofah (2.23.1)
435+
logger (1.6.6)
436+
loofah (2.24.0)
431437
crass (~> 1.0.2)
432438
nokogiri (>= 1.12.0)
433439
mail (2.8.1)
@@ -669,6 +675,9 @@ GEM
669675
pg (1.4.6)
670676
pgq_prometheus (0.2.3)
671677
prometheus_exporter
678+
pp (0.6.2)
679+
prettyprint
680+
prettyprint (0.2.0)
672681
psych (5.2.3)
673682
date
674683
stringio
@@ -682,14 +691,14 @@ GEM
682691
activesupport (>= 3.0.0)
683692
raabro (1.4.0)
684693
racc (1.8.1)
685-
rack (2.2.12)
686-
rack-session (1.0.2)
687-
rack (< 3)
688-
rack-test (2.1.0)
694+
rack (3.1.11)
695+
rack-session (2.1.0)
696+
base64 (>= 0.1.0)
697+
rack (>= 3.0.0)
698+
rack-test (2.2.0)
689699
rack (>= 1.3)
690-
rackup (1.0.1)
691-
rack (< 3)
692-
webrick
700+
rackup (2.2.1)
701+
rack (>= 3)
693702
rails (7.2.2.1)
694703
actioncable (= 7.2.2.1)
695704
actionmailbox (= 7.2.2.1)
@@ -708,7 +717,7 @@ GEM
708717
activesupport (>= 5.0.0)
709718
minitest
710719
nokogiri (>= 1.6)
711-
rails-html-sanitizer (1.6.1)
720+
rails-html-sanitizer (1.6.2)
712721
loofah (~> 2.21)
713722
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
714723
railties (7.2.2.1)
@@ -720,7 +729,7 @@ GEM
720729
thor (~> 1.0, >= 1.2.2)
721730
zeitwerk (~> 2.6)
722731
rainbow (3.1.1)
723-
rake (13.0.6)
732+
rake (13.2.1)
724733
ransack (4.2.1)
725734
activerecord (>= 6.1.5)
726735
activesupport (>= 6.1.5)
@@ -729,7 +738,7 @@ GEM
729738
rb-inotify (0.10.1)
730739
ffi (~> 1.0)
731740
rchardet (1.8.0)
732-
rdoc (6.11.0)
741+
rdoc (6.12.0)
733742
psych (>= 4.0.0)
734743
regexp_parser (2.9.2)
735744
reline (0.6.0)
@@ -789,15 +798,16 @@ GEM
789798
rubyzip (1.3.0)
790799
rufus-scheduler (3.7.0)
791800
fugit (~> 1.1, >= 1.1.6)
792-
sass (3.4.25)
793-
sass-globbing (1.1.5)
794-
sass (>= 3.1)
795-
sass-rails (5.0.8)
796-
railties (>= 5.2.0)
797-
sass (~> 3.1)
798-
sprockets (>= 2.8, < 4.0)
799-
sprockets-rails (>= 2.0, < 4.0)
800-
tilt (>= 1.1, < 3)
801+
sass-rails (6.0.0)
802+
sassc-rails (~> 2.1, >= 2.1.1)
803+
sassc (2.4.0)
804+
ffi (~> 1.9)
805+
sassc-rails (2.1.2)
806+
railties (>= 4.0.0)
807+
sassc (>= 2.0)
808+
sprockets (> 3.0)
809+
sprockets-rails
810+
tilt
801811
securerandom (0.4.1)
802812
selenium-webdriver (3.141.0)
803813
childprocess (~> 0.5)
@@ -825,22 +835,18 @@ GEM
825835
simplecov_json_formatter (0.1.4)
826836
spreadsheet (1.3.0)
827837
ruby-ole
828-
sprockets (3.7.2)
838+
sprockets (4.2.1)
829839
concurrent-ruby (~> 1.0)
830-
rack (> 1, < 3)
840+
rack (>= 2.2.4, < 4)
831841
sprockets-rails (3.4.2)
832842
actionpack (>= 5.2)
833843
activesupport (>= 5.2)
834844
sprockets (>= 3.0.0)
835-
stringio (3.1.2)
845+
stringio (3.1.5)
836846
syslog (0.2.0)
837847
syslog-logger (1.6.8)
838848
text (1.3.1)
839-
thin (1.8.2)
840-
daemons (~> 1.0, >= 1.0.9)
841-
eventmachine (~> 1.0, >= 1.0.4)
842-
rack (>= 1, < 3)
843-
thor (1.2.2)
849+
thor (1.3.2)
844850
tilt (2.0.9)
845851
timeliness (0.4.5)
846852
timeout (0.4.3)
@@ -871,7 +877,7 @@ GEM
871877
websocket-extensions (0.1.5)
872878
xpath (3.2.0)
873879
nokogiri (~> 1.8)
874-
zeitwerk (2.6.8)
880+
zeitwerk (2.7.2)
875881
zip-zip (0.3)
876882
rubyzip (>= 1.0.0)
877883

@@ -923,7 +929,7 @@ DEPENDENCIES
923929
jquery-tablesorter
924930
jquery-ui-rails!
925931
jrpc!
926-
jsonapi-resources (~> 0.9.12)
932+
jsonapi-resources!
927933
jwt
928934
listen
929935
matrix (~> 0.4.2)
@@ -947,7 +953,7 @@ DEPENDENCIES
947953
puma (~> 6.1)
948954
puma_worker_killer
949955
pundit
950-
rack (~> 2.2.6)
956+
rack
951957
rails (~> 7.2.0)
952958
rails-html-sanitizer (>= 1.6.1)
953959
ransack
@@ -959,7 +965,6 @@ DEPENDENCIES
959965
rubocop-rails
960966
rubocop-rspec
961967
rufus-scheduler
962-
sass-globbing
963968
sass-rails
964969
selenium-webdriver
965970
sentry-delayed_job
@@ -971,7 +976,6 @@ DEPENDENCIES
971976
sprockets
972977
syslog (~> 0.2.0)
973978
syslog-logger
974-
thin
975979
uglifier (>= 1.3)
976980
validates_timeliness (~> 7.0.0.beta1)
977981
webdrivers (~> 4.0)

app/assets/config/manifest.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//= link active_admin
2+
//= link_tree ../images
3+
//= link_tree ../stylesheets
4+
//= link_tree ../javascripts

config/initializers/assets.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# folder are already added.
1414
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
1515
Rails.application.config.assets.precompile += %w[yeti/*]
16-
Rails.application.config.assets.precompile << /\.(?:svg|eot|woff|ttf)\z/
16+
Rails.application.config.assets.precompile += %w[.svg .eot .woff .ttf]

spec/support/contexts/customer_v1_cookie_helpers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
def build_raw_cookie(token, expiration:)
55
cookie_name = Authentication::CustomerV1Auth::COOKIE_NAME
66
if expiration.nil?
7-
"#{cookie_name}=#{token}; path=/; HttpOnly; SameSite=Lax"
7+
"#{cookie_name}=#{token}; path=/; httponly; samesite=lax"
88
else
99
expires = expiration.utc.strftime('%a, %d %b %Y %H:%M:%S GMT')
10-
"#{cookie_name}=#{token}; path=/; expires=#{expires}; HttpOnly; SameSite=Lax"
10+
"#{cookie_name}=#{token}; path=/; expires=#{expires}; httponly; samesite=lax"
1111
end
1212
end
1313

0 commit comments

Comments
 (0)