Skip to content

Commit 160d5e1

Browse files
authored
Merge branch 'main' into dependabot/bundler/puma-7.1.0
2 parents 738863d + fdbe957 commit 160d5e1

24 files changed

Lines changed: 1140 additions & 112 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
rails_version: "7.2"
4040
- ruby_version: "3.4"
4141
rails_version: "8.0"
42+
- ruby_version: "3.4"
43+
rails_version: "8.1"
4244
- ruby_version: "head"
4345
rails_version: "main"
4446
env:

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 3.4.3
1+
ruby 3.4.7

Appraisals

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ appraise "rails-8.0" do
3333
end
3434
end
3535

36+
appraise "rails-8.1" do
37+
ruby "~> 3.4.0"
38+
39+
gem "rails", "~> 8.1.0"
40+
41+
group :development, :test do
42+
gem "turbo-rails", "~> 2"
43+
gem "rspec-rails", "~> 8"
44+
end
45+
end
46+
3647
appraise "rails-main" do
3748
gem "rack", git: "https://github.com/rack/rack", ref: "8a4475a9f416a72e5b02bd7817e4a8ed684f29b0"
3849
gem "rails", github: "rails/rails", branch: "main"

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ruby ruby_version
1313
group :development, :test do
1414
gem "allocation_stats"
1515
gem "appraisal", "~> 2"
16+
gem "appraisal-run", "~> 1.1"
1617
gem "benchmark-ips", "~> 2"
1718
gem "better_html"
1819
gem "bundler", "~> 2"

Gemfile.lock

Lines changed: 68 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,83 @@
11
PATH
22
remote: .
33
specs:
4-
view_component (4.0.2)
5-
activesupport (>= 7.1.0, < 8.1)
4+
view_component (4.1.0)
5+
activesupport (>= 7.1.0, < 8.2)
6+
actionview (>= 7.1.0, < 8.2)
67
concurrent-ruby (~> 1)
78

89
GEM
910
remote: https://rubygems.org/
1011
specs:
11-
actioncable (8.0.3)
12-
actionpack (= 8.0.3)
13-
activesupport (= 8.0.3)
12+
action_text-trix (2.1.15)
13+
railties
14+
actioncable (8.1.0)
15+
actionpack (= 8.1.0)
16+
activesupport (= 8.1.0)
1417
nio4r (~> 2.0)
1518
websocket-driver (>= 0.6.1)
1619
zeitwerk (~> 2.6)
17-
actionmailbox (8.0.3)
18-
actionpack (= 8.0.3)
19-
activejob (= 8.0.3)
20-
activerecord (= 8.0.3)
21-
activestorage (= 8.0.3)
22-
activesupport (= 8.0.3)
20+
actionmailbox (8.1.0)
21+
actionpack (= 8.1.0)
22+
activejob (= 8.1.0)
23+
activerecord (= 8.1.0)
24+
activestorage (= 8.1.0)
25+
activesupport (= 8.1.0)
2326
mail (>= 2.8.0)
24-
actionmailer (8.0.3)
25-
actionpack (= 8.0.3)
26-
actionview (= 8.0.3)
27-
activejob (= 8.0.3)
28-
activesupport (= 8.0.3)
27+
actionmailer (8.1.0)
28+
actionpack (= 8.1.0)
29+
actionview (= 8.1.0)
30+
activejob (= 8.1.0)
31+
activesupport (= 8.1.0)
2932
mail (>= 2.8.0)
3033
rails-dom-testing (~> 2.2)
31-
actionpack (8.0.3)
32-
actionview (= 8.0.3)
33-
activesupport (= 8.0.3)
34+
actionpack (8.1.0)
35+
actionview (= 8.1.0)
36+
activesupport (= 8.1.0)
3437
nokogiri (>= 1.8.5)
3538
rack (>= 2.2.4)
3639
rack-session (>= 1.0.1)
3740
rack-test (>= 0.6.3)
3841
rails-dom-testing (~> 2.2)
3942
rails-html-sanitizer (~> 1.6)
4043
useragent (~> 0.16)
41-
actiontext (8.0.3)
42-
actionpack (= 8.0.3)
43-
activerecord (= 8.0.3)
44-
activestorage (= 8.0.3)
45-
activesupport (= 8.0.3)
44+
actiontext (8.1.0)
45+
action_text-trix (~> 2.1.15)
46+
actionpack (= 8.1.0)
47+
activerecord (= 8.1.0)
48+
activestorage (= 8.1.0)
49+
activesupport (= 8.1.0)
4650
globalid (>= 0.6.0)
4751
nokogiri (>= 1.8.5)
48-
actionview (8.0.3)
49-
activesupport (= 8.0.3)
52+
actionview (8.1.0)
53+
activesupport (= 8.1.0)
5054
builder (~> 3.1)
5155
erubi (~> 1.11)
5256
rails-dom-testing (~> 2.2)
5357
rails-html-sanitizer (~> 1.6)
54-
activejob (8.0.3)
55-
activesupport (= 8.0.3)
58+
activejob (8.1.0)
59+
activesupport (= 8.1.0)
5660
globalid (>= 0.3.6)
57-
activemodel (8.0.3)
58-
activesupport (= 8.0.3)
59-
activerecord (8.0.3)
60-
activemodel (= 8.0.3)
61-
activesupport (= 8.0.3)
61+
activemodel (8.1.0)
62+
activesupport (= 8.1.0)
63+
activerecord (8.1.0)
64+
activemodel (= 8.1.0)
65+
activesupport (= 8.1.0)
6266
timeout (>= 0.4.0)
63-
activestorage (8.0.3)
64-
actionpack (= 8.0.3)
65-
activejob (= 8.0.3)
66-
activerecord (= 8.0.3)
67-
activesupport (= 8.0.3)
67+
activestorage (8.1.0)
68+
actionpack (= 8.1.0)
69+
activejob (= 8.1.0)
70+
activerecord (= 8.1.0)
71+
activesupport (= 8.1.0)
6872
marcel (~> 1.0)
69-
activesupport (8.0.3)
73+
activesupport (8.1.0)
7074
base64
71-
benchmark (>= 0.3)
7275
bigdecimal
7376
concurrent-ruby (~> 1.0, >= 1.3.1)
7477
connection_pool (>= 2.2.5)
7578
drb
7679
i18n (>= 1.6, < 2)
80+
json
7781
logger (>= 1.4.2)
7882
minitest (>= 5.1)
7983
securerandom (>= 0.3)
@@ -87,9 +91,9 @@ GEM
8791
bundler
8892
rake
8993
thor (>= 0.14.0)
94+
appraisal-run (1.1.0)
9095
ast (2.4.3)
9196
base64 (0.3.0)
92-
benchmark (0.4.1)
9397
benchmark-ips (2.14.0)
9498
better_html (2.1.1)
9599
actionview (>= 6.0)
@@ -135,7 +139,7 @@ GEM
135139
concurrent-ruby (~> 1.1)
136140
webrick (~> 1.7)
137141
websocket-driver (~> 0.7)
138-
globalid (1.2.1)
142+
globalid (1.3.0)
139143
activesupport (>= 6.1)
140144
haml (6.3.0)
141145
temple (>= 0.8.2)
@@ -161,17 +165,18 @@ GEM
161165
m (1.6.2)
162166
method_source (>= 0.6.7)
163167
rake (>= 0.9.2.2)
164-
mail (2.8.1)
168+
mail (2.9.0)
169+
logger
165170
mini_mime (>= 0.1.1)
166171
net-imap
167172
net-pop
168173
net-smtp
169-
marcel (1.0.4)
174+
marcel (1.1.0)
170175
matrix (0.4.3)
171176
method_source (1.1.0)
172177
mini_mime (1.1.5)
173178
minitest (5.26.0)
174-
net-imap (0.5.9)
179+
net-imap (0.5.12)
175180
date
176181
net-protocol
177182
net-pop (0.1.2)
@@ -205,7 +210,7 @@ GEM
205210
prettyprint
206211
prettyprint (0.2.0)
207212
prism (1.6.0)
208-
propshaft (1.2.1)
213+
propshaft (1.3.1)
209214
actionpack (>= 7.0.0)
210215
activesupport (>= 7.0.0)
211216
rack
@@ -224,30 +229,30 @@ GEM
224229
rack (>= 1.3)
225230
rackup (2.2.1)
226231
rack (>= 3)
227-
rails (8.0.3)
228-
actioncable (= 8.0.3)
229-
actionmailbox (= 8.0.3)
230-
actionmailer (= 8.0.3)
231-
actionpack (= 8.0.3)
232-
actiontext (= 8.0.3)
233-
actionview (= 8.0.3)
234-
activejob (= 8.0.3)
235-
activemodel (= 8.0.3)
236-
activerecord (= 8.0.3)
237-
activestorage (= 8.0.3)
238-
activesupport (= 8.0.3)
232+
rails (8.1.0)
233+
actioncable (= 8.1.0)
234+
actionmailbox (= 8.1.0)
235+
actionmailer (= 8.1.0)
236+
actionpack (= 8.1.0)
237+
actiontext (= 8.1.0)
238+
actionview (= 8.1.0)
239+
activejob (= 8.1.0)
240+
activemodel (= 8.1.0)
241+
activerecord (= 8.1.0)
242+
activestorage (= 8.1.0)
243+
activesupport (= 8.1.0)
239244
bundler (>= 1.15.0)
240-
railties (= 8.0.3)
245+
railties (= 8.1.0)
241246
rails-dom-testing (2.3.0)
242247
activesupport (>= 5.0.0)
243248
minitest
244249
nokogiri (>= 1.6)
245250
rails-html-sanitizer (1.6.2)
246251
loofah (~> 2.21)
247252
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)
248-
railties (8.0.3)
249-
actionpack (= 8.0.3)
250-
activesupport (= 8.0.3)
253+
railties (8.1.0)
254+
actionpack (= 8.1.0)
255+
activesupport (= 8.1.0)
251256
irb (~> 1.13)
252257
rackup (>= 1.0.0)
253258
rake (>= 12.2)
@@ -404,6 +409,7 @@ PLATFORMS
404409
DEPENDENCIES
405410
allocation_stats
406411
appraisal (~> 2)
412+
appraisal-run (~> 1.1)
407413
benchmark-ips (~> 2)
408414
better_html
409415
bundler (~> 2)

docs/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,28 @@ nav_order: 6
1010

1111
## main
1212

13+
* Make `ViewComponent::VERSION` accessible to other gems by default.
14+
15+
*Hans Lemuet*
16+
17+
* Added Reinvented Hospitality to the list of companies using ViewComponent.
18+
19+
*Torgil Zechel*
20+
21+
## 4.1.0
22+
23+
* Add Rails 8.1 support.
24+
25+
*Hans Lemuet*
26+
1327
* Add Carwow to list of companies using ViewComponent.
1428

1529
*Tom Lord*
1630

31+
* Declare `actionview` as a `view_component` gem dependency.
32+
33+
*Michal Cichra*
34+
1735
## 4.0.2
1836

1937
* Share the view context in tests to prevent out-of-order rendering issues for certain advanced use-cases, eg. testing instances of Rails' `FormBuilder`.

docs/CONTRIBUTING.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,26 @@ The codespace environment includes a minimal Rails app with ViewComponent instal
4545
2. Expose the port when prompted by the Visual Studio Code Web Editor.
4646
3. Add the external URL to the config block in `config/application.rb` as prompted by the error.
4747

48+
## Running tests with Appraisal
49+
50+
This project uses [appraisal](https://github.com/thoughtbot/appraisal) to run tests for various versions of Ruby and Rails, and [appraisal-run](https://github.com/camertron/appraisal-run) to run them in Docker containers.
51+
52+
1. Install the dependencies: `bundle`
53+
2. Make sure the tests pass: `appraisal-run gemfiles/*.gemfile -- bundle exec rake`
54+
55+
When a new version of Rails is released:
56+
57+
1. Add a new `appraise` block in `Appraisals`.
58+
2. Run `bundle exec appraisal generate`
59+
3. Update the gemfiles locks `appraisal-run gemfiles/*.gemfile -- bundle lock`
60+
4. Make sure the tests pass: `appraisal-run gemfiles/*.gemfile -- bundle exec rake`
61+
5. Commit and push the changes.
62+
6. Release a new version.
63+
4864
## Submitting a pull request
4965

5066
1. [Fork](https://github.com/viewcomponent/view_component/fork) and clone the repository.
51-
1. Configure and install the dependencies: `bundle exec appraisal install`.
52-
2. Make sure the tests pass: `bundle exec appraisal rake` (see below for specific cases).
67+
2. Make sure the tests pass: `appraisal-run gemfiles/*.gemfile -- bundle exec rake`.
5368
3. Create a new branch: `git checkout -b my-branch-name`.
5469
4. Add tests, make the change, and make sure the tests still pass.
5570
5. Add an entry to the top of `docs/CHANGELOG.md` for the changes, no matter how small.

docs/_data/library.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 4.0.2
1+
version: 4.1.0

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,13 @@ Hundreds of people have [contributed](https://github.com/ViewComponent/view_comp
158158
* [Ophelos](https://ophelos.com)
159159
* [Orbit](https://orbit.love)
160160
* [PeopleForce](https://peopleforce.io)
161+
* [Percent Pledge](https://www.percentpledge.org/)
161162
* [PLT4M](https://plt4m.com/)
162163
* [Podia](https://www.podia.com/)
163164
* [PrintReleaf](https://www.printreleaf.com/)
164165
* [Project Blacklight](http://projectblacklight.org/)
165166
* [QuickNode](https://www.quicknode.com/)
167+
* [Reinvented Hospitality](https://reinvented-hospitality.com/)
166168
* [Room AI](https://roomai.com/)
167169
* [SerpApi](https://www.serpapi.com/)
168170
* [SearchApi](https://www.searchapi.io/)

gemfiles/rails_7.1.gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ gem "rails", "~> 7.1.0"
99
group :development, :test do
1010
gem "allocation_stats"
1111
gem "appraisal", "~> 2"
12+
gem "appraisal-run", "~> 1.0"
1213
gem "benchmark-ips", "~> 2"
1314
gem "better_html"
1415
gem "bundler", "~> 2"
@@ -34,7 +35,7 @@ group :development, :test do
3435
gem "slim", "~> 5"
3536
gem "sprockets-rails", "~> 3"
3637
gem "standard", "~> 1"
37-
gem "tailwindcss-rails", "~> 2"
38+
gem "tailwindcss-rails", "~> 4"
3839
gem "turbo-rails", "~> 1"
3940
gem "warning"
4041
gem "yard-activesupport-concern", "< 1"

0 commit comments

Comments
 (0)