Skip to content

Commit 76ead18

Browse files
committed
deprecations fix
1 parent ba1d6e9 commit 76ead18

12 files changed

+26
-27
lines changed

Gemfile.lock

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,20 @@ GEM
7878
authentication-zero (4.0.3)
7979
awesome_print (1.9.2)
8080
aws-eventstream (1.4.0)
81-
aws-partitions (1.1138.0)
82-
aws-sdk-core (3.227.0)
81+
aws-partitions (1.1140.0)
82+
aws-sdk-core (3.228.0)
8383
aws-eventstream (~> 1, >= 1.3.0)
8484
aws-partitions (~> 1, >= 1.992.0)
8585
aws-sigv4 (~> 1.9)
8686
base64
87+
bigdecimal
8788
jmespath (~> 1, >= 1.6.1)
8889
logger
89-
aws-sdk-kms (1.108.0)
90-
aws-sdk-core (~> 3, >= 3.227.0)
90+
aws-sdk-kms (1.109.0)
91+
aws-sdk-core (~> 3, >= 3.228.0)
9192
aws-sigv4 (~> 1.5)
92-
aws-sdk-s3 (1.194.0)
93-
aws-sdk-core (~> 3, >= 3.227.0)
93+
aws-sdk-s3 (1.195.0)
94+
aws-sdk-core (~> 3, >= 3.228.0)
9495
aws-sdk-kms (~> 1)
9596
aws-sigv4 (~> 1.5)
9697
aws-sigv4 (1.12.1)
@@ -142,7 +143,7 @@ GEM
142143
activesupport (>= 6.1)
143144
i18n (1.14.7)
144145
concurrent-ruby (~> 1.0)
145-
importmap-rails (2.2.1)
146+
importmap-rails (2.2.2)
146147
actionpack (>= 6.0.0)
147148
activesupport (>= 6.0.0)
148149
railties (>= 6.0.0)
@@ -204,7 +205,7 @@ GEM
204205
date
205206
stringio
206207
public_suffix (6.0.2)
207-
puma (6.6.0)
208+
puma (6.6.1)
208209
nio4r (~> 2.0)
209210
raabro (1.4.0)
210211
racc (1.8.1)
@@ -259,7 +260,7 @@ GEM
259260
io-console (~> 0.5)
260261
rexml (3.4.1)
261262
rollbar (3.6.2)
262-
rubocop (1.79.0)
263+
rubocop (1.79.1)
263264
json (~> 2.3)
264265
language_server-protocol (~> 3.17.0.2)
265266
lint_roller (~> 1.1.0)
@@ -269,7 +270,6 @@ GEM
269270
regexp_parser (>= 2.9.3, < 3.0)
270271
rubocop-ast (>= 1.46.0, < 2.0)
271272
ruby-progressbar (~> 1.7)
272-
tsort (>= 0.2.0)
273273
unicode-display_width (>= 2.4.0, < 4.0)
274274
rubocop-ast (1.46.0)
275275
parser (>= 3.3.7.2)
@@ -324,7 +324,6 @@ GEM
324324
awesome_print
325325
thor (1.4.0)
326326
timeout (0.4.3)
327-
tsort (0.2.0)
328327
turbo-rails (2.0.16)
329328
actionpack (>= 7.1.0)
330329
railties (>= 7.1.0)

app/controllers/agent_api/api_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def respond_error(exception)
6262
payload = { error: exception.message }
6363
::Rails.error.report(exception)
6464
# payload[:backtrace] = exception.backtrace if ::Rails.env.local?
65-
render(json: payload, status: :unprocessable_entity)
65+
render(json: payload, status: :unprocessable_content)
6666
end
6767
end
6868
end

app/controllers/agents_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def create
3838
@agent.save!
3939
redirect_to(agents_path, notice: "Agent #{@agent.id} has been successfully created")
4040
else
41-
render(:new, status: :unprocessable_entity)
41+
render(:new, status: :unprocessable_content)
4242
end
4343
end
4444

@@ -48,7 +48,7 @@ def update
4848
if @agent.save
4949
redirect_to(agents_path(@agent.id), notice: "Agent #{@agent.id} has been successfully updated")
5050
else
51-
render(:edit, status: :unprocessable_entity)
51+
render(:edit, status: :unprocessable_content)
5252
end
5353
end
5454

app/controllers/custom_repository_storages_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def create
1414
@custom_repository_storage.save!
1515
redirect_to(project_path(project), notice: "Project's #{project.name} custom repository storage has been successfully created")
1616
else
17-
render(:show, status: :unprocessable_entity)
17+
render(:show, status: :unprocessable_content)
1818
end
1919
end
2020

@@ -25,7 +25,7 @@ def update
2525
@custom_repository_storage.save!
2626
redirect_to(project_path(project), notice: "Project's #{project.name} custom repository storage has been successfully updated")
2727
else
28-
render(:show, status: :unprocessable_entity)
28+
render(:show, status: :unprocessable_content)
2929
end
3030
end
3131

app/controllers/identity/emails_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def update
1010
redirect_to_root
1111
else
1212
flash.now[:alert] = @user.errors.full_messages.to_sentence
13-
render(:edit, status: :unprocessable_entity)
13+
render(:edit, status: :unprocessable_content)
1414
end
1515
end
1616

app/controllers/identity/password_resets_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def update
2626
redirect_to(sign_in_path, notice: 'Your password was reset successfully. Please sign in')
2727
else
2828
flash.now[:alert] = @user.errors.full_messages.to_sentence
29-
render(:edit, status: :unprocessable_entity)
29+
render(:edit, status: :unprocessable_content)
3030
end
3131
end
3232

app/controllers/inbound_webhooks_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def trigger
66
::AsyncTaskStarterJob.perform_later(webhook.project_id)
77
head(:ok)
88
rescue ::ActiveRecord::RecordInvalid
9-
head(:unprocessable_entity)
9+
head(:unprocessable_content)
1010
end
1111

1212
private

app/controllers/passwords_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def update # rubocop: disable Metrics/AbcSize
1212
redirect_to(root_path, notice: 'Your password has been changed')
1313
else
1414
flash.now[:alert] = @user.errors.full_messages.to_sentence
15-
render(:edit, status: :unprocessable_entity)
15+
render(:edit, status: :unprocessable_content)
1616
end
1717
end
1818

app/controllers/projects_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def create
3838
::SourcesFetchJob.perform_later(@project.id)
3939
redirect_to(projects_path, notice: "Project #{@project.name} has been successfully created")
4040
else
41-
render(:new, status: :unprocessable_entity)
41+
render(:new, status: :unprocessable_content)
4242
end
4343
end
4444

@@ -51,7 +51,7 @@ def update
5151
end
5252
redirect_to(project_path(@project.id), notice: "Project #{@project.name} has been successfully updated")
5353
else
54-
render(:edit, status: :unprocessable_entity)
54+
render(:edit, status: :unprocessable_content)
5555
end
5656
end
5757

app/controllers/registrations_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def create # rubocop: disable Metrics/MethodLength, Metrics/AbcSize
1313

1414
unless captcha_verified?
1515
flash.now[:alert] = 'CAPTCHA failed'
16-
render(:new, status: :unprocessable_entity)
16+
render(:new, status: :unprocessable_content)
1717
return
1818
end
1919

@@ -24,7 +24,7 @@ def create # rubocop: disable Metrics/MethodLength, Metrics/AbcSize
2424
redirect_to(root_path, notice: 'Welcome! You have signed up successfully')
2525
else
2626
flash.now[:alert] = @user.errors.full_messages.to_sentence
27-
render(:new, status: :unprocessable_entity)
27+
render(:new, status: :unprocessable_content)
2828
end
2929
end
3030

0 commit comments

Comments
 (0)