Skip to content

Commit 57c65d0

Browse files
committed
Bump view_component to 4.0.2
1 parent 7843b8d commit 57c65d0

File tree

5 files changed

+62
-60
lines changed

5 files changed

+62
-60
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ gem "lookbook", "~> 2.3.12"
3737
if ENV["VIEW_COMPONENT_PATH"]
3838
gem "view_component", path: ENV["VIEW_COMPONENT_PATH"]
3939
else
40-
gem "view_component", "4.0.1"
40+
gem "view_component", "4.0.2"
4141
end
4242

4343
gem "kramdown", "~> 2.5"

app/controllers/primer/view_components/auto_check_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class AutoCheckController < ApplicationController
88
def error
99
render partial: "primer/view_components/auto_check/error_message",
1010
locals: { input_value: params[:value] },
11-
status: :unprocessable_entity,
11+
status: :unprocessable_content,
1212
formats: :html
1313
end
1414

@@ -33,7 +33,7 @@ def random
3333
status: :ok,
3434
formats: :html
3535
else
36-
render status: :unprocessable_entity, plain: "Random error!"
36+
render status: :unprocessable_content, plain: "Random error!"
3737
end
3838
end
3939
end

app/controllers/primer/view_components/toggle_switch_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def handle_invalid_authenticity_token
3737
def reject_non_ajax_request
3838
return if request.headers["HTTP_REQUESTED_WITH"] == "XMLHttpRequest"
3939

40-
head :unprocessable_entity
40+
head :unprocessable_content
4141
end
4242

4343
def form_params

demo/Gemfile

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

33
source "https://rubygems.org"
44

5-
rails_version = (ENV["RAILS_VERSION"] || "7.2.2.1").to_s
5+
rails_version = (ENV["RAILS_VERSION"] || "7.2.2.2").to_s
66

77
gem "rake", "~> 13.3"
88
gem "rack-cors"
@@ -37,7 +37,7 @@ gem "puma", "~> 6.6.1"
3737
gem "bootsnap", ">= 1.4.2", require: false
3838

3939
gem "openproject-primer_view_components", path: "../"
40-
gem "view_component", "4.0.0.rc5"
40+
gem "view_component", "~> 4.0.2"
4141
gem "lookbook", "~> 2.3.12" unless rails_version.to_f < 7
4242

4343
gem "vite_rails", "~> 3.0"

demo/Gemfile.lock

Lines changed: 56 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ PATH
1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
actioncable (7.2.2.1)
14-
actionpack (= 7.2.2.1)
15-
activesupport (= 7.2.2.1)
13+
actioncable (7.2.2.2)
14+
actionpack (= 7.2.2.2)
15+
activesupport (= 7.2.2.2)
1616
nio4r (~> 2.0)
1717
websocket-driver (>= 0.6.1)
1818
zeitwerk (~> 2.6)
19-
actionpack (7.2.2.1)
20-
actionview (= 7.2.2.1)
21-
activesupport (= 7.2.2.1)
19+
actionpack (7.2.2.2)
20+
actionview (= 7.2.2.2)
21+
activesupport (= 7.2.2.2)
2222
nokogiri (>= 1.8.5)
2323
racc
2424
rack (>= 2.2.4, < 3.2)
@@ -27,15 +27,15 @@ GEM
2727
rails-dom-testing (~> 2.2)
2828
rails-html-sanitizer (~> 1.6)
2929
useragent (~> 0.16)
30-
actionview (7.2.2.1)
31-
activesupport (= 7.2.2.1)
30+
actionview (7.2.2.2)
31+
activesupport (= 7.2.2.2)
3232
builder (~> 3.1)
3333
erubi (~> 1.11)
3434
rails-dom-testing (~> 2.2)
3535
rails-html-sanitizer (~> 1.6)
36-
activemodel (7.2.2.1)
37-
activesupport (= 7.2.2.1)
38-
activesupport (7.2.2.1)
36+
activemodel (7.2.2.2)
37+
activesupport (= 7.2.2.2)
38+
activesupport (7.2.2.2)
3939
base64
4040
benchmark (>= 0.3)
4141
bigdecimal
@@ -71,8 +71,8 @@ GEM
7171
docker-remote (0.8.0)
7272
domain_name (0.6.20240107)
7373
drb (2.2.3)
74-
dry-cli (1.2.0)
75-
dry-inflector (0.3.0)
74+
dry-cli (1.3.0)
75+
dry-inflector (1.2.0)
7676
ejson (1.5.3)
7777
erb (5.0.2)
7878
erubi (1.13.1)
@@ -92,34 +92,35 @@ GEM
9292
faraday (>= 0.8.0)
9393
http-cookie (~> 1.0.0)
9494
faraday-em_http (1.0.0)
95-
faraday-em_synchrony (1.0.0)
95+
faraday-em_synchrony (1.0.1)
9696
faraday-excon (1.1.0)
9797
faraday-httpclient (1.0.1)
98-
faraday-multipart (1.1.0)
98+
faraday-multipart (1.1.1)
9999
multipart-post (~> 2.0)
100100
faraday-net_http (1.0.2)
101101
faraday-net_http_persistent (1.2.0)
102102
faraday-patron (1.0.0)
103103
faraday-rack (1.0.0)
104104
faraday-retry (1.0.3)
105-
ffi (1.17.1-arm64-darwin)
106-
ffi (1.17.1-x86_64-darwin)
107-
ffi (1.17.1-x86_64-linux-gnu)
105+
ffi (1.17.2-arm64-darwin)
106+
ffi (1.17.2-x86_64-darwin)
107+
ffi (1.17.2-x86_64-linux-gnu)
108108
ffi-compiler (1.3.2)
109109
ffi (>= 1.15.5)
110110
rake
111111
foreman (0.90.0)
112112
thor (~> 1.4)
113113
gli (2.22.2)
114114
ostruct
115-
google-cloud-env (2.2.1)
115+
google-cloud-env (2.3.1)
116+
base64 (~> 0.2)
116117
faraday (>= 1.0, < 3.a)
117-
google-logging-utils (0.1.0)
118-
googleauth (1.13.1)
118+
google-logging-utils (0.2.0)
119+
googleauth (1.15.0)
119120
faraday (>= 1.0, < 3.a)
120121
google-cloud-env (~> 2.2)
121122
google-logging-utils (~> 0.1)
122-
jwt (>= 1.4, < 3.0)
123+
jwt (>= 1.4, < 4.0)
123124
multi_json (~> 1.11)
124125
os (>= 0.9, < 2.0)
125126
signet (>= 0.16, < 2.a)
@@ -134,9 +135,8 @@ GEM
134135
railties (>= 7.0.0)
135136
htmlbeautifier (1.4.3)
136137
htmlentities (4.3.4)
137-
http (5.2.0)
138+
http (5.3.1)
138139
addressable (~> 2.8)
139-
base64 (~> 0.1)
140140
http-cookie (~> 1.0)
141141
http-form_data (~> 2.2)
142142
llhttp-ffi (~> 0.5.0)
@@ -153,7 +153,7 @@ GEM
153153
reline (>= 0.4.2)
154154
jsonpath (1.1.5)
155155
multi_json
156-
jwt (2.10.1)
156+
jwt (3.1.2)
157157
base64
158158
kind-rb (0.1.0-arm64-darwin)
159159
kind-rb (0.1.0-x86_64-darwin)
@@ -169,8 +169,8 @@ GEM
169169
oj (~> 3.0)
170170
statsd-instrument (>= 2.8, < 4)
171171
thor (>= 1.0, < 2.0)
172-
kube-dsl (0.8.0)
173-
dry-inflector (~> 0.2)
172+
kube-dsl (0.8.3)
173+
dry-inflector (>= 0.2.1, < 2)
174174
kubeclient (4.12.0)
175175
http (>= 3.0, < 6.0)
176176
jsonpath (~> 1.0)
@@ -207,14 +207,14 @@ GEM
207207
listen (3.9.0)
208208
rb-fsevent (~> 0.10, >= 0.10.3)
209209
rb-inotify (~> 0.9, >= 0.9.10)
210-
llhttp-ffi (0.5.0)
210+
llhttp-ffi (0.5.1)
211211
ffi-compiler (~> 1.0)
212212
rake (~> 13.0)
213-
logger (1.6.1)
213+
logger (1.7.0)
214214
loofah (2.24.1)
215215
crass (~> 1.0.2)
216216
nokogiri (>= 1.12.0)
217-
lookbook (2.3.12)
217+
lookbook (2.3.13)
218218
activemodel
219219
css_parser
220220
htmlbeautifier (~> 1.3)
@@ -228,10 +228,10 @@ GEM
228228
zeitwerk (~> 2.5)
229229
marcel (1.0.4)
230230
method_source (1.1.0)
231-
mime-types (3.6.0)
231+
mime-types (3.7.0)
232232
logger
233-
mime-types-data (~> 3.2015)
234-
mime-types-data (3.2025.0304)
233+
mime-types-data (~> 3.2025, >= 3.2025.0507)
234+
mime-types-data (3.2025.0826)
235235
minitest (5.25.5)
236236
ms_rest (0.7.6)
237237
concurrent-ruby (~> 1.0)
@@ -243,8 +243,9 @@ GEM
243243
faraday-cookie_jar (~> 0.0.6)
244244
ms_rest (~> 0.7.6)
245245
msgpack (1.8.0)
246-
multi_json (1.15.0)
246+
multi_json (1.17.0)
247247
multipart-post (2.4.1)
248+
mutex_m (0.3.0)
248249
netrc (0.11.0)
249250
nio4r (2.7.4)
250251
nokogiri (1.18.9-arm64-darwin)
@@ -253,12 +254,12 @@ GEM
253254
racc (~> 1.4)
254255
nokogiri (1.18.9-x86_64-linux-gnu)
255256
racc (~> 1.4)
256-
oj (3.16.10)
257+
oj (3.16.11)
257258
bigdecimal (>= 3.0)
258259
ostruct (>= 0.2)
259-
openproject-octicons (19.25.0)
260+
openproject-octicons (19.27.1)
260261
os (1.1.4)
261-
ostruct (0.6.1)
262+
ostruct (0.6.3)
262263
pp (0.6.2)
263264
prettyprint
264265
prettyprint (0.2.0)
@@ -292,12 +293,12 @@ GEM
292293
activesupport (>= 5.0.0)
293294
minitest
294295
nokogiri (>= 1.6)
295-
rails-html-sanitizer (1.6.0)
296+
rails-html-sanitizer (1.6.2)
296297
loofah (~> 2.21)
297-
nokogiri (~> 1.14)
298-
railties (7.2.2.1)
299-
actionpack (= 7.2.2.1)
300-
activesupport (= 7.2.2.1)
298+
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)
299+
railties (7.2.2.2)
300+
actionpack (= 7.2.2.2)
301+
activesupport (= 7.2.2.2)
301302
irb (~> 1.13)
302303
rackup (>= 1.0.0)
303304
rake (>= 12.2)
@@ -323,12 +324,12 @@ GEM
323324
rouge (3.30.0)
324325
ruby2_keywords (0.0.5)
325326
securerandom (0.4.1)
326-
signet (0.19.0)
327+
signet (0.21.0)
327328
addressable (~> 2.8)
328329
faraday (>= 0.17.5, < 3.a)
329-
jwt (>= 1.5, < 3.0)
330+
jwt (>= 1.5, < 4.0)
330331
multi_json (~> 1.10)
331-
spring (4.2.1)
332+
spring (4.4.0)
332333
spring-watcher-listen (2.1.0)
333334
listen (>= 2.7, < 4.0)
334335
spring (>= 4)
@@ -340,7 +341,7 @@ GEM
340341
actionpack (>= 6.1)
341342
activesupport (>= 6.1)
342343
sprockets (>= 3.0.0)
343-
statsd-instrument (3.9.9)
344+
statsd-instrument (3.9.10)
344345
stimulus-rails (1.3.4)
345346
railties (>= 6.0.0)
346347
stringio (3.1.7)
@@ -352,15 +353,16 @@ GEM
352353
tzinfo (2.0.6)
353354
concurrent-ruby (~> 1.0)
354355
useragent (0.16.11)
355-
view_component (4.0.0.rc5)
356+
view_component (4.0.2)
356357
activesupport (>= 7.1.0, < 8.1)
357358
concurrent-ruby (~> 1)
358359
vite_rails (3.0.19)
359360
railties (>= 5.1, < 9)
360361
vite_ruby (~> 3.0, >= 3.2.2)
361-
vite_ruby (3.9.0)
362+
vite_ruby (3.9.2)
362363
dry-cli (>= 0.7, < 2)
363364
logger (~> 1.6)
365+
mutex_m
364366
rack-proxy (~> 0.6, >= 0.6.1)
365367
zeitwerk (~> 2.2)
366368
websocket-driver (0.8.0)
@@ -382,10 +384,10 @@ PLATFORMS
382384
x86_64-linux
383385

384386
DEPENDENCIES
385-
actioncable (= 7.2.2.1)
386-
actionview (= 7.2.2.1)
387-
activemodel (= 7.2.2.1)
388-
activesupport (= 7.2.2.1)
387+
actioncable (= 7.2.2.2)
388+
actionview (= 7.2.2.2)
389+
activemodel (= 7.2.2.2)
390+
activesupport (= 7.2.2.2)
389391
bootsnap (>= 1.4.2)
390392
cssbundling-rails (~> 1.4)
391393
foreman
@@ -400,15 +402,15 @@ DEPENDENCIES
400402
pry-byebug
401403
puma (~> 6.6.1)
402404
rack-cors
403-
railties (= 7.2.2.1)
405+
railties (= 7.2.2.2)
404406
rake (~> 13.3)
405407
spring (~> 4.2)
406408
spring-watcher-listen (~> 2.1)
407409
sprockets
408410
sprockets-rails
409411
stimulus-rails
410412
turbo-rails
411-
view_component (= 4.0.0.rc5)
413+
view_component (~> 4.0.2)
412414
vite_rails (~> 3.0)
413415

414416
BUNDLED WITH

0 commit comments

Comments
 (0)