File tree 5 files changed +25
-16
lines changed
5 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 1
1
source "https://rubygems.org"
2
2
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
205
205
bootsnap
206
206
cypress-rails!
207
207
puma
208
- rails (~> 7.1, < 7.2 )
208
+ rails (~> 7.1.3 )
209
209
sqlite3
210
210
webpacker
211
211
Original file line number Diff line number Diff line change 1
1
# README
2
2
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).
5
5
6
6
For the latest version of Rails, you can just use all the default ` bundle `
7
7
commands:
@@ -11,13 +11,9 @@ bundle exec rake cypress:run
11
11
```
12
12
13
13
For 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
15
15
when you use ` bundle ` commands:
16
16
```
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
19
19
```
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