File tree Expand file tree Collapse file tree 5 files changed +25
-16
lines changed Expand file tree Collapse file tree 5 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 11source "https://rubygems.org"
22
3- gem "rails"
4- eval_gemfile "Gemfile.common"
3+ def rails_version
4+ current_gemfile = File . basename ( __FILE__ )
5+
6+ {
7+ "Gemfile" => nil ,
8+ "Gemfile_rails71" => "~> 7.1.3"
9+ } . fetch ( current_gemfile )
10+ end
11+
12+ gem "rails" , rails_version
13+ gem "sqlite3"
14+ gem "puma"
15+ gem "webpacker"
16+ gem "bootsnap" , require : false
17+
18+ group :development , :test do
19+ gem "cypress-rails" , path : ".."
20+ end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ Gemfile
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ DEPENDENCIES
205205 bootsnap
206206 cypress-rails!
207207 puma
208- rails (~> 7.1, < 7.2 )
208+ rails (~> 7.1.3 )
209209 sqlite3
210210 webpacker
211211
Original file line number Diff line number Diff line change 11# README
22
3- The example app has multiple Gemfiles to be able to test against different
4- dependency versions (so far just Rails).
3+ The example app has multiple, symlinked Gemfiles to be able to test against
4+ different dependency versions (so far just Rails).
55
66For the latest version of Rails, you can just use all the default ` bundle `
77commands:
@@ -11,13 +11,9 @@ bundle exec rake cypress:run
1111```
1212
1313For previous version(s) of Rails, you need to specify the Gemfile to use. So
14- for ` Gemfile.rails71 ` (which uses Rails 7.1), you'll need to include an env var
14+ for ` Gemfile_rails71 ` (which uses Rails 7.1), you'll need to include an env var
1515when you use ` bundle ` commands:
1616```
17- BUNDLE_GEMFILE=Gemfile.rails71 bundle
18- BUNDLE_GEMFILE=Gemfile.rails71 bundle exec rake cypress:run
17+ BUNDLE_GEMFILE=Gemfile_rails71 bundle
18+ BUNDLE_GEMFILE=Gemfile_rails71 bundle exec rake cypress:run
1919```
20-
21- If you're adding/changing a dependency that won't differ between the multiple
22- Gemfiles, then you can make that change in ` Gemfile.common ` so that it gets
23- picked up in all the Gemfiles.
You can’t perform that action at this time.
0 commit comments