Skip to content

v4.0.0.rc1 release #2085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 207 commits into from
Jun 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
3cf84b1
add v4 changelog heading
joelhawksley Sep 3, 2024
081f5b2
Minimum Ruby version is non-EOL per https://www.ruby-lang.org/en/down…
joelhawksley Sep 4, 2024
aa7f44a
only support Rails 7+ (#2089)
joelhawksley Sep 6, 2024
bc4a193
[v4] Only support current Rails and Ruby (#2101)
joelhawksley Sep 26, 2024
a16e4fe
[v4] Remove code paths for unsupported versions of Rails (#2103)
joelhawksley Sep 26, 2024
5e6c1a8
[v4] Remove more Rails version references (#2104)
joelhawksley Sep 27, 2024
4f77aa8
Merge branch 'main' into v4
joelhawksley Oct 16, 2024
2506364
Merge branch 'main' into v4
joelhawksley Nov 4, 2024
71102dd
fix merge
joelhawksley Nov 4, 2024
0e226c4
Merge branch 'main' into v4
joelhawksley Nov 7, 2024
86b0149
Use ActionView::TemplateDetails for handling format and variant (#2156)
sfnelson Nov 7, 2024
ad6a494
Refactor compiler and template to use requested details (#2158)
sfnelson Jan 16, 2025
658fe4a
Merge branch 'main' into v4
joelhawksley Jan 24, 2025
e0a3235
Merge branch 'main' into v4
joelhawksley Feb 4, 2025
de6d968
fix allocations check
joelhawksley Feb 4, 2025
a17e540
update allocation counts (#2204)
joelhawksley Feb 4, 2025
e857482
Merge branch 'main' into v4
joelhawksley Mar 5, 2025
84f310d
Move generators into ViewComponent namespace (#2130)
paul Mar 10, 2025
3e343ac
Merge branch 'main' into v4
joelhawksley Mar 10, 2025
bab31a0
BREAKING: Use Nokogiri::HTML5 instead of Nokogiri::HTML4 (#2218)
joelhawksley Mar 10, 2025
13c5537
Remove respond_to? checks (#2219)
joelhawksley Mar 10, 2025
6ffb585
Remove unnecessary usage of ruby2_keywords. (#2220)
joelhawksley Mar 11, 2025
ac31ab0
Standardize how we format test skip logic (#2222)
joelhawksley Mar 11, 2025
55cbc46
Loosen dependencies in v4 (#2226)
joelhawksley Mar 13, 2025
7932644
bump turbo-rails to v2 (#2227)
joelhawksley Mar 13, 2025
5535d01
register driver with unique name (#2229)
joelhawksley Mar 13, 2025
38ab10f
use rspec-rails v7 (#2228)
joelhawksley Mar 17, 2025
fd3ddbc
Merge branch 'main' into v4
joelhawksley Mar 19, 2025
55d36f2
allocations
joelhawksley Mar 19, 2025
44f34c6
Remove unnecessary #format definitions, which returned nil (#2233)
joelhawksley Mar 20, 2025
9e9863b
Merge branch 'main' into v4
joelhawksley Mar 26, 2025
6d643c9
fix v4 ci (#2241)
joelhawksley Mar 26, 2025
0bcd3be
Remove unnecessary call to `view_renderer` (#2238)
joelhawksley Mar 26, 2025
a3e52b2
Cleanup references to old Rails versions (#2243)
joelhawksley Mar 27, 2025
2fa1879
BREAKING: Remove `preview_source` functionality (#2242)
joelhawksley Mar 27, 2025
56d5d3c
Merge branch 'main' into v4
joelhawksley Mar 27, 2025
4349274
bundle update
joelhawksley Mar 27, 2025
5be2918
remove unused code path in template.rb (#2247)
joelhawksley Mar 27, 2025
0e4c338
Merge branch 'main' into v4
joelhawksley Mar 27, 2025
c7f5dd9
remove unnecessary nocov (#2251)
joelhawksley Apr 1, 2025
08af878
No need to run test suite twice (#2252)
joelhawksley Apr 1, 2025
6a8ec4a
[v4] Remove final nocov (#2253)
joelhawksley Apr 1, 2025
d076f80
ViewComponentsSystemTestController only exists in test env (#2255)
joelhawksley Apr 1, 2025
9ef769e
Rename private and internal methods to indicate they are not part of …
joelhawksley Apr 3, 2025
aafe400
Merge branch 'main' into v4
joelhawksley Apr 3, 2025
1ee6f91
Add note about v4 being an LTS release (#2260)
joelhawksley Apr 3, 2025
2e1e220
--inline generator option now generates inline template (#2261)
joelhawksley Apr 4, 2025
d9a60d5
Update deprecation horizon and version # (#2263)
joelhawksley Apr 4, 2025
d3bdef0
Fix bug where request-aware helpers did not work outside of the reque…
joelhawksley Apr 9, 2025
82e4a2f
2269 system test class eager loading (#2277)
joelhawksley Apr 11, 2025
92a4371
Merge branch 'main' into v4
joelhawksley Apr 24, 2025
b88acf8
allocations
joelhawksley Apr 24, 2025
d4a403e
bundle update
joelhawksley Apr 24, 2025
4620e7d
lint
joelhawksley Apr 24, 2025
3c31183
Add #current_template accessor and Template#path (#2283)
joelhawksley Apr 25, 2025
df12595
tag for alpha2
joelhawksley Apr 25, 2025
1aa1e39
Merge branch 'main' into v4
joelhawksley Apr 29, 2025
ff93c53
Merge branch 'main' into v4
joelhawksley Apr 30, 2025
f3090b6
run against ruby head on v4 branch (#2289)
joelhawksley Apr 30, 2025
c145dc8
Remove dependency on ActionView::Base, eliminating the need for captu…
joelhawksley Apr 30, 2025
038d49c
release 4.0.0.alpha3
joelhawksley Apr 30, 2025
3ec795a
simplify rendering test (#2290)
joelhawksley May 1, 2025
fcf4a78
Graduate SlotableDefault to be included by default (#2291)
joelhawksley May 9, 2025
5ee6a1d
[v4] remove unnecessary initializer in Base (#2293)
joelhawksley May 12, 2025
307feaa
Merge branch 'main' into v4
joelhawksley May 13, 2025
e81f916
release 4.0.0.alpha4
joelhawksley May 14, 2025
a978811
[v4] BREAKING: Move config.view_component_path to config.generate.pat…
joelhawksley May 14, 2025
afbac9b
Pre-allocate instance variables for better compatibility with Object …
joelhawksley May 15, 2025
9908177
Merge branch 'main' into v4
joelhawksley May 15, 2025
44fc9f4
try pinning rack main to fix 3.5 rails main ci (#2297)
joelhawksley May 15, 2025
ca8ae8a
release 4.0.0.alpha5
joelhawksley May 15, 2025
36e7116
Do not cache classes in test env (#2298)
joelhawksley May 19, 2025
004274a
bundle update to resolve a few console warnings (#2300)
joelhawksley May 19, 2025
670ca17
Remove unnecessary filtering of inline templates, add test (#2302)
joelhawksley May 20, 2025
8239991
add template annotations for inline_call components (#2301)
joelhawksley May 20, 2025
ad26927
[V4] document active scaffold incompatibility (#2303)
joelhawksley May 20, 2025
ff8c406
Merge branch 'main' into v4
joelhawksley May 21, 2025
3b923b3
Move component_parent_class to generator configuration namespace (#2308)
joelhawksley May 21, 2025
bd5b0de
remove v4 TODO comment. will revisit when Rails < 8 is EOL (#2312)
joelhawksley May 21, 2025
24d0100
Merge branch 'main' into v4
joelhawksley May 21, 2025
c42806e
move dev dependencies to Gemfile (#2316)
joelhawksley May 21, 2025
76f425e
[v4] BREAKING: Move previews-related configuration to separate namesp…
joelhawksley May 22, 2025
ab0b926
Support for Turbo::StreamsHelper in ViewComponent::Base (#2310)
sfnelson May 22, 2025
9dbe441
fix changelog typo
joelhawksley May 22, 2025
c57e974
Add test case for component that only renders a variant (#2323)
joelhawksley May 22, 2025
dc98fb8
Merge branch 'main' into v4
joelhawksley Jun 2, 2025
1a06fe3
fix allocations
joelhawksley Jun 2, 2025
70cdb97
Remove .test_controller in favor of vc_test_controller_class (#2322)
joelhawksley Jun 3, 2025
4ddedab
Update benchmark to be more representative, update docs on performanc…
joelhawksley Jun 3, 2025
2554a01
release v4.0.0.alpha6
joelhawksley Jun 3, 2025
d2339d4
Remove deprecated #use_helper(s) in favor of include or helpers. (#2330)
joelhawksley Jun 5, 2025
387cee9
Merge `main` into `v4` (#2334)
joelhawksley Jun 9, 2025
74fc048
[v4] better handling of splat kwargs and with_collection (#2332)
joelhawksley Jun 9, 2025
6828e08
Merge branch 'main' into 20250610-merge-main
joelhawksley Jun 10, 2025
6dd8b0e
add failing test for #2212
joelhawksley Jun 10, 2025
35da574
Merge pull request #2336 from ViewComponent/20250610-merge-main
joelhawksley Jun 11, 2025
5feb9ba
run more erb_lint linters
joelhawksley Jun 11, 2025
b061db9
add test case for discussion #966
joelhawksley Jun 11, 2025
636ef3c
Merge pull request #2338 from ViewComponent/v4-erblint-config
joelhawksley Jun 11, 2025
2ad8849
Merge pull request #2339 from ViewComponent/966-render_to_string-layout
joelhawksley Jun 11, 2025
ce44d31
add test case validating discussion #1092 is closed
joelhawksley Jun 11, 2025
b3d8f3e
Fix final line endings
github-actions[bot] Jun 11, 2025
721afbb
Merge pull request #2340 from ViewComponent/1092-last-slot-behavior
joelhawksley Jun 11, 2025
fc1369c
add test case showing preview reloading works
joelhawksley Jun 11, 2025
5b205ee
Merge pull request #2341 from ViewComponent/1522-preview-reloading
joelhawksley Jun 11, 2025
125ecfc
add test cases to validate discussion #2215 is not an issue
joelhawksley Jun 11, 2025
26ae3c8
Merge pull request #2343 from ViewComponent/2215-conditional-content
joelhawksley Jun 11, 2025
07909b2
use 4.0.0.alpha6 compat branch of PVC
joelhawksley Jun 11, 2025
258fb78
Merge pull request #2347 from ViewComponent/pvc-ci
joelhawksley Jun 12, 2025
35e0c76
Fix bug where response format was not set causing issues with Turbo F…
joelhawksley Jun 12, 2025
755e6aa
set format on inline call and inline heredoc templates
joelhawksley Jun 12, 2025
54092a7
add comment
joelhawksley Jun 12, 2025
3edfdd9
Fix final line endings
github-actions[bot] Jun 12, 2025
b63e871
vale
joelhawksley Jun 12, 2025
0c23c7a
lints
joelhawksley Jun 12, 2025
29654dc
config.previews.default_layout should default to nil
joelhawksley Jun 13, 2025
ecb33b9
inline helper method
joelhawksley Jun 16, 2025
c2f1726
fix lints
joelhawksley Jun 16, 2025
7c55e75
fix lints
joelhawksley Jun 16, 2025
53661ed
fix lints
joelhawksley Jun 16, 2025
51a2be3
Merge pull request #2348 from ViewComponent/2212-turbo-format
joelhawksley Jun 17, 2025
8ce9f22
Fix bug where config.previews.enabled did not function properly in prod
joelhawksley Jun 17, 2025
fc9ec25
Merge branch 'v4' into v4-config-default-layout
joelhawksley Jun 17, 2025
7785d78
Add test case for absolute URL path helpers in mailers
joelhawksley Jun 17, 2025
3b1da85
Merge branch 'v4' into v4-collection-url-helper
joelhawksley Jun 17, 2025
18e8c01
Fix final line endings
github-actions[bot] Jun 17, 2025
dfbfbd5
Merge pull request #2352 from ViewComponent/v4-collection-url-helper
joelhawksley Jun 17, 2025
d5aee74
Merge branch 'v4' into v4-show-previews
joelhawksley Jun 17, 2025
3bad92b
Merge branch 'v4' into v4-config-default-layout
joelhawksley Jun 17, 2025
d2efd50
Merge pull request #2350 from ViewComponent/v4-config-default-layout
joelhawksley Jun 17, 2025
8861391
Merge branch 'v4' into v4-show-previews
joelhawksley Jun 17, 2025
604910a
include misplaced docs edit
joelhawksley Jun 17, 2025
70bae60
Fix final line endings
github-actions[bot] Jun 17, 2025
e3ee904
add configuration page to docs
joelhawksley Jun 17, 2025
a3e0c16
Rename `component_parent_class` to `parent_class`
joelhawksley Jun 17, 2025
46f6914
update changelog
joelhawksley Jun 17, 2025
0043a6c
newline
joelhawksley Jun 17, 2025
b34eb1f
lints
joelhawksley Jun 17, 2025
9bcd46c
Merge pull request #2351 from ViewComponent/v4-show-previews
joelhawksley Jun 17, 2025
e0ee787
Update docs/guide/configuration.md
joelhawksley Jun 17, 2025
82cd699
Merge branch 'v4' into 2188-config
joelhawksley Jun 17, 2025
7dc2b01
Merge pull request #2353 from ViewComponent/2188-config
joelhawksley Jun 17, 2025
6d33f2d
inline method used once
joelhawksley Jun 18, 2025
f8d9a24
rename maybe_escape_html to __vc_maybe_escape_html
joelhawksley Jun 18, 2025
33bc044
rename to __vc_safe_output_preamble
joelhawksley Jun 18, 2025
d7cf074
rename splatted_keyword_argument_present? to include prefix
joelhawksley Jun 18, 2025
f470b3e
rename @provided_collection_parameter
joelhawksley Jun 18, 2025
8d30291
add prefix to provided_collection_parameter
joelhawksley Jun 18, 2025
079bcf0
rename to __vc_inline_template
joelhawksley Jun 18, 2025
b9ecbf3
prefix methods in Slotable
joelhawksley Jun 18, 2025
6fa73cb
clean up autoloads
joelhawksley Jun 18, 2025
40bd83d
prefix @load_paths
joelhawksley Jun 18, 2025
e1c0791
prefix internal methods in translatable
joelhawksley Jun 18, 2025
935989a
use AS test case class
joelhawksley Jun 18, 2025
85d15a4
Merge pull request #2354 from ViewComponent/v4-var-rename
joelhawksley Jun 18, 2025
03aaf9a
mark as html_safe
joelhawksley Jun 18, 2025
c260674
resolve html safety warnings
joelhawksley Jun 18, 2025
e9979cf
resolve rails warning
joelhawksley Jun 18, 2025
1bbafe9
quiet YARD a bit
joelhawksley Jun 18, 2025
224a78c
suppress capybara warnings as gem is had not had release in 12+m
joelhawksley Jun 18, 2025
c3d3d4b
move docs test into main test suite
joelhawksley Jun 18, 2025
576c059
remove comment
joelhawksley Jun 18, 2025
24dfa01
ignore parser warning
joelhawksley Jun 18, 2025
ecb9533
add respond_to? check
joelhawksley Jun 18, 2025
351fc89
address rails warning differently
joelhawksley Jun 18, 2025
682d68f
quit bundler
joelhawksley Jun 18, 2025
cc51319
Merge pull request #2355 from ViewComponent/v4-warnings
joelhawksley Jun 18, 2025
a1785ea
Merge branch 'main' into v4
joelhawksley Jun 18, 2025
0cf5ec1
Add SystemTestHelpers to RSpec feature specs
mec Jun 19, 2025
abf5f6d
Add an example of a feature and system spec
mec Jun 19, 2025
45af7cf
Add a proof of concept for feature and system specs
mec Jun 19, 2025
1073f8b
Potential fix: RSpec system and feature specs
mec Jun 19, 2025
857633f
release 4.0.0.alpha7
joelhawksley Jun 19, 2025
4a68af1
Require MFA when publishing to RubyGems
joelhawksley Jun 19, 2025
e8b4df5
remove unnecessary rubocop disable
joelhawksley Jun 19, 2025
d46b474
Merge pull request #2357 from ViewComponent/v4-rubygems-mfa
joelhawksley Jun 19, 2025
b2ce4d7
Merge pull request #2358 from ViewComponent/v4-rubocop-warnings
joelhawksley Jun 19, 2025
2025fad
Merge branch 'v4' into example/of-rspec-features-not-working-as-expected
joelhawksley Jun 20, 2025
25d793e
test interactions in example rspec tests
joelhawksley Jun 20, 2025
b4763b9
rework test config
joelhawksley Jun 20, 2025
de83895
run all_tests for ci
joelhawksley Jun 20, 2025
391f994
try to use existing helper
joelhawksley Jun 20, 2025
edea428
turn off upstream failure ci build for now
joelhawksley Jun 20, 2025
92e09d3
add changelog and docs
joelhawksley Jun 20, 2025
abc5adb
drive system spec with cuprite
joelhawksley Jun 20, 2025
21b6422
lints
joelhawksley Jun 20, 2025
946823f
try moving simplecov init to rakefile
joelhawksley Jun 20, 2025
528fc0e
try again
joelhawksley Jun 20, 2025
d3dc4fe
Merge pull request #2356 from mec/example/of-rspec-features-not-worki…
joelhawksley Jun 20, 2025
32ed116
remove unused code
joelhawksley Jun 19, 2025
44f1dc0
enable full branch coverage
joelhawksley Jun 20, 2025
4098dc9
Merge pull request #2361 from ViewComponent/v4-simplecov-branch
joelhawksley Jun 20, 2025
3f7153b
fix typo in command name
joelhawksley Jun 20, 2025
212ef25
Fix bug where virtual path was not reset, breaking translations outsi…
joelhawksley Jun 20, 2025
caf707a
do not build docs when running test task
joelhawksley Jun 20, 2025
6afabbf
better solution outside of template compilation
joelhawksley Jun 20, 2025
58abeb7
Fix final line endings
github-actions[bot] Jun 20, 2025
80d9117
lints
joelhawksley Jun 20, 2025
2cd1e69
lints
joelhawksley Jun 20, 2025
e1d7a26
vale
joelhawksley Jun 23, 2025
756a322
Merge pull request #2362 from ViewComponent/2359-virtual-path-clobber
joelhawksley Jun 23, 2025
bfec71e
release 4.0.0.rc1
joelhawksley Jun 23, 2025
2d9fe7e
move item
joelhawksley Jun 23, 2025
76c5882
mdlint
joelhawksley Jun 23, 2025
425f607
simplify release note
joelhawksley Jun 23, 2025
ae97b00
Merge pull request #2363 from ViewComponent/v4.0.0.rc1
joelhawksley Jun 23, 2025
66ee8ad
vale
joelhawksley Jun 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .erb-lint.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .erb_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
EnableDefaultLinters: true
exclude:
- '**/vendor/**/*'
linters:
ErbSafety:
enabled: true
FinalNewline:
enabled: true
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
Layout/InitialIndentation:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
59 changes: 8 additions & 51 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,60 +23,20 @@ jobs:
bundle exec appraisal rails-8.0 rake partial_benchmark
bundle exec appraisal rails-8.0 rake translatable_benchmark
test:
name: test (${{ matrix.rails_version }}, ${{ matrix.ruby_version }}, ${{ matrix.mode }})
name: test (Rails ${{ matrix.rails_version }}, Ruby ${{ matrix.ruby_version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby_version: "3.0"
rails_version: "6.1"
mode: "capture_patch_enabled"
- ruby_version: "3.0"
rails_version: "6.1"
mode: "capture_patch_disabled"
- ruby_version: "3.1"
rails_version: "7.0"
mode: "capture_patch_enabled"
- ruby_version: "3.1"
rails_version: "7.0"
mode: "capture_patch_disabled"
- ruby_version: "3.2"
rails_version: "7.1"
mode: "capture_patch_enabled"
- ruby_version: "3.2"
rails_version: "7.1"
mode: "capture_patch_disabled"
- ruby_version: "3.3"
rails_version: "7.2"
mode: "capture_patch_disabled"
- ruby_version: "3.3"
rails_version: "7.2"
mode: "capture_patch_enabled"
- ruby_version: "3.3"
rails_version: "8.0"
mode: "capture_patch_disabled"
- ruby_version: "3.3"
rails_version: "8.0"
mode: "capture_patch_enabled"
- ruby_version: "3.4"
rails_version: "8.0"
mode: "capture_patch_disabled"
- ruby_version: "3.4"
rails_version: "8.0"
mode: "capture_patch_enabled"
- ruby_version: "3.4"
rails_version: "main"
mode: "capture_patch_disabled"
- ruby_version: "3.4"
rails_version: "main"
mode: "capture_patch_enabled"
- ruby_version: "3.5"
rails_version: "8.0"
mode: "capture_patch_disabled"
- ruby_version: "3.5"
rails_version: "8.0"
mode: "capture_patch_enabled"
# - ruby_version: "head"
# rails_version: "main"
env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails_version }}.gemfile
steps:
Expand All @@ -87,17 +47,13 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Build and test with Rake
# Code-reloading isn't compatible with simplecov, so we need to run once
# to collect coverage, and again to test reloads.
run: |
bundle exec appraisal rails-${{ matrix.rails_version }} bundle
MEASURE_COVERAGE=true bundle exec appraisal rails-${{ matrix.rails_version }} rake
ENABLE_RELOADING=true bundle exec appraisal rails-${{ matrix.rails_version }} rake
bundle exec appraisal rails-${{ matrix.rails_version }} bundle --quiet
MEASURE_COVERAGE=true bundle exec appraisal rails-${{ matrix.rails_version }} rake all_tests
env:
RAISE_ON_WARNING: 1
RAILS_VERSION: ${{ matrix.rails_version }}
RUBY_VERSION: ${{ matrix.ruby_version }}
CAPTURE_PATCH_ENABLED: ${{ matrix.mode == 'capture_patch_enabled' && 'true' || 'false' }}
- name: Upload coverage results
uses: actions/[email protected]
if: always()
Expand All @@ -113,6 +69,7 @@ jobs:
with:
repository: 'primer/view_components'
path: 'primer_view_components'
ref: '20250603-vc-compat'
- uses: actions/[email protected]
with:
path: 'view_component'
Expand All @@ -132,10 +89,10 @@ jobs:
cd primer_view_components
npm ci
cd demo && npm ci && cd ..
bundle && bundle exec rake
bundle --quiet && bundle exec rake
env:
VIEW_COMPONENT_PATH: ../view_component
RAILS_VERSION: '7.1.1'
RAILS_VERSION: '7.1.5'
PARALLEL_WORKERS: '1'
coverage:
needs: test
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ jobs:
- uses: actions/cache@v4
with:
path: vendor/bundle
key: gems-build-rails-7.1-ruby-3.2-${{ hashFiles('**/Gemfile.lock') }}
key: gems-build-rails-8-ruby-3.2-${{ hashFiles('**/Gemfile.lock') }}
- name: Lint with Rubocop and ERB Lint
run: |
bundle config path vendor/bundle
bundle update
bundle exec standardrb -r "rubocop-md"
bundle exec erblint **/*.html.erb
bundle exec erb_lint --lint-all
env:
RAILS_VERSION: '~> 7.1.0'
RAILS_VERSION: '~> 8'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.gem
*.rbc
.ruby-version
.DS_Store
/.config
/coverage/assets
/coverage/index.html
Expand Down
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ruby_version: 2.5
require:
- standard
- "rubocop-md"
plugins:
- rubocop-md
inherit_gem:
standard: config/base.yml
2 changes: 1 addition & 1 deletion .standard.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ruby_version: 2.5
ruby_version: 3.2
ignore:
- 'docs/CHANGELOG.md' # Rubocop doesn't like our indenting of code examples
36 changes: 8 additions & 28 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,46 +1,26 @@
# frozen_string_literal: true

appraise "rails-6.1" do
gem "rails", "~> 6.1"
gem "tailwindcss-rails", "~> 2.0"
gem "sprockets-rails", "~> 3.4.2"
gem "concurrent-ruby", "1.3.4"

# Required for Ruby 3.1.0
gem "net-smtp", require: false
gem "net-imap", require: false
gem "net-pop", require: false
gem "turbo-rails", "~> 1"
end

appraise "rails-7.0" do
gem "rails", "~> 7.0"
gem "tailwindcss-rails", "~> 2.0"
gem "turbo-rails", "~> 1"
gem "sprockets-rails", "~> 3.4.2"
end

appraise "rails-7.1" do
gem "rails", "~> 7.1"
gem "tailwindcss-rails", "~> 2.0"
gem "tailwindcss-rails", "~> 2"
gem "turbo-rails", "~> 1"
gem "sprockets-rails", "~> 3.4.2"
end

appraise "rails-7.2" do
gem "rails", "~> 7.2"
gem "tailwindcss-rails", "~> 2.0"
gem "sprockets-rails", "~> 3.4.2"
gem "tailwindcss-rails", "~> 2"
gem "turbo-rails", "~> 2"
end

appraise "rails-8.0" do
gem "rails", "~> 8.0"
gem "tailwindcss-rails", "~> 2.0"
gem "propshaft", "~> 1.1.0"
gem "tailwindcss-rails", "~> 2"
gem "turbo-rails", "~> 2"
end

appraise "rails-main" do
gem "rack", git: "https://github.com/rack/rack", ref: "8a4475a9f416a72e5b02bd7817e4a8ed684f29b0"
gem "rails", github: "rails/rails", branch: "main"
gem "tailwindcss-rails", "~> 2.0"
gem "turbo-rails", "~> 1"
gem "tailwindcss-rails", "~> 2"
gem "turbo-rails", "~> 2"
end
35 changes: 35 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,42 @@ source "https://rubygems.org"
gemspec

rails_version = (ENV["RAILS_VERSION"] || "~> 8").to_s

gem "rails", (rails_version == "main") ? {git: "https://github.com/rails/rails", ref: "main"} : rails_version

ruby_version = (ENV["RUBY_VERSION"] || "~> 3.4").to_s
ruby ruby_version

group :development, :test do
gem "allocation_stats"
gem "appraisal", "~> 2"
gem "benchmark-ips", "~> 2"
gem "better_html"
gem "bundler", "~> 2"
gem "capybara", "~> 3"
gem "cuprite"
gem "dry-initializer", require: true
gem "erb_lint"
gem "haml", "~> 6"
gem "jbuilder", "~> 2"
gem "m", "~> 1"
gem "method_source", "~> 1"
gem "minitest", "~> 5"
gem "propshaft", "~> 1"
gem "puma", "~> 6"
gem "rake", "~> 13"
gem "rails-dom-testing", "~> 2.3.0"
gem "redis"
gem "rspec-rails", "~> 7"
gem "rubocop-md", "~> 2"
gem "selenium-webdriver", "~> 4"
gem "simplecov-console", "< 1"
gem "simplecov", "< 1"
gem "slim", "~> 5"
gem "sprockets-rails", "~> 3"
gem "standard", "~> 1"
gem "turbo-rails"
gem "warning"
gem "yard-activesupport-concern", "< 1"
gem "yard", "< 1"
end
Loading
Loading