Skip to content

Commit b31ce14

Browse files
committed
Merge testdouble/main into envato/configuration-via-ruby-and-env-file
2 parents 603319d + 86c7cbd commit b31ce14

29 files changed

+450
-257
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88

99
strategy:
1010
matrix:
11-
ruby-version: ['2.7', '3.0']
11+
ruby-version: ['3.0', '3.3']
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- uses: ruby/setup-ruby@v1
1616
with:
1717
ruby-version: ${{ matrix.ruby-version }}

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# CHANGELOG
22

3+
## 0.7.1
4+
* Add Rack 3.1 support [#163](https://github.com/testdouble/cypress-rails/pull/163)
5+
6+
## 0.7.0
7+
git
8+
* Add a `CYPRESS_RAILS_CYPRESS_DIR` option for cases where
9+
the cypress tests live outside the CYPRESS_RAILS_DIR [#159](https://github.com/testdouble/cypress-rails/pull/159)
10+
11+
## 0.6.1
12+
13+
* Fix a deprecation warning in Rails
14+
[#157](https://github.com/testdouble/cypress-rails/pull/157)
15+
16+
## 0.6.0
17+
18+
* Update initializer task to generate valid Cypress v10+ configurations
19+
[#156](https://github.com/testdouble/cypress-rails/pull/156)
20+
321
## 0.5.5
422

523
* Add Puma 6 support

Gemfile.lock

Lines changed: 107 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,143 @@
11
PATH
22
remote: .
33
specs:
4-
cypress-rails (0.5.5)
4+
cypress-rails (0.7.1)
55
puma (>= 3.8.0)
66
railties (>= 5.2.0)
77

88
GEM
99
remote: https://rubygems.org/
1010
specs:
11-
actionpack (7.0.4)
12-
actionview (= 7.0.4)
13-
activesupport (= 7.0.4)
14-
rack (~> 2.0, >= 2.2.0)
11+
actionpack (7.1.3)
12+
actionview (= 7.1.3)
13+
activesupport (= 7.1.3)
14+
nokogiri (>= 1.8.5)
15+
racc
16+
rack (>= 2.2.4)
17+
rack-session (>= 1.0.1)
1518
rack-test (>= 0.6.3)
16-
rails-dom-testing (~> 2.0)
17-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
18-
actionview (7.0.4)
19-
activesupport (= 7.0.4)
19+
rails-dom-testing (~> 2.2)
20+
rails-html-sanitizer (~> 1.6)
21+
actionview (7.1.3)
22+
activesupport (= 7.1.3)
2023
builder (~> 3.1)
21-
erubi (~> 1.4)
22-
rails-dom-testing (~> 2.0)
23-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
24-
activesupport (7.0.4)
24+
erubi (~> 1.11)
25+
rails-dom-testing (~> 2.2)
26+
rails-html-sanitizer (~> 1.6)
27+
activesupport (7.1.3)
28+
base64
29+
bigdecimal
2530
concurrent-ruby (~> 1.0, >= 1.0.2)
31+
connection_pool (>= 2.2.5)
32+
drb
2633
i18n (>= 1.6, < 2)
2734
minitest (>= 5.1)
35+
mutex_m
2836
tzinfo (~> 2.0)
2937
ast (2.4.2)
38+
base64 (0.2.0)
39+
bigdecimal (3.1.6)
3040
builder (3.2.4)
31-
concurrent-ruby (1.1.10)
41+
concurrent-ruby (1.2.3)
42+
connection_pool (2.4.1)
3243
crass (1.0.6)
33-
erubi (1.11.0)
34-
i18n (1.12.0)
44+
drb (2.2.0)
45+
ruby2_keywords
46+
erubi (1.12.0)
47+
i18n (1.14.1)
3548
concurrent-ruby (~> 1.0)
36-
loofah (2.19.0)
49+
io-console (0.7.2)
50+
irb (1.13.1)
51+
rdoc (>= 4.0.0)
52+
reline (>= 0.4.2)
53+
json (2.7.1)
54+
language_server-protocol (3.17.0.3)
55+
lint_roller (1.1.0)
56+
loofah (2.22.0)
3757
crass (~> 1.0.2)
38-
nokogiri (>= 1.5.9)
39-
method_source (1.0.0)
40-
mini_portile2 (2.8.0)
41-
minitest (5.15.0)
42-
nio4r (2.5.8)
43-
nokogiri (1.13.8)
44-
mini_portile2 (~> 2.8.0)
58+
nokogiri (>= 1.12.0)
59+
minitest (5.22.2)
60+
mutex_m (0.2.0)
61+
nio4r (2.7.0)
62+
nokogiri (1.16.2)
4563
racc (~> 1.4)
46-
parallel (1.22.1)
47-
parser (3.1.2.0)
64+
parallel (1.24.0)
65+
parser (3.3.0.5)
4866
ast (~> 2.4.1)
49-
puma (6.0.0)
67+
racc
68+
psych (5.1.2)
69+
stringio
70+
puma (6.4.2)
5071
nio4r (~> 2.0)
51-
racc (1.6.0)
52-
rack (2.2.4)
53-
rack-test (2.0.2)
72+
racc (1.7.3)
73+
rack (3.1.7)
74+
rack-session (2.0.0)
75+
rack (>= 3.0.0)
76+
rack-test (2.1.0)
5477
rack (>= 1.3)
55-
rails-dom-testing (2.0.3)
56-
activesupport (>= 4.2.0)
78+
rackup (2.1.0)
79+
rack (>= 3)
80+
webrick (~> 1.8)
81+
rails-dom-testing (2.2.0)
82+
activesupport (>= 5.0.0)
83+
minitest
5784
nokogiri (>= 1.6)
58-
rails-html-sanitizer (1.4.3)
59-
loofah (~> 2.3)
60-
railties (7.0.4)
61-
actionpack (= 7.0.4)
62-
activesupport (= 7.0.4)
63-
method_source
85+
rails-html-sanitizer (1.6.0)
86+
loofah (~> 2.21)
87+
nokogiri (~> 1.14)
88+
railties (7.1.3)
89+
actionpack (= 7.1.3)
90+
activesupport (= 7.1.3)
91+
irb
92+
rackup (>= 1.0.0)
6493
rake (>= 12.2)
65-
thor (~> 1.0)
66-
zeitwerk (~> 2.5)
94+
thor (~> 1.0, >= 1.2.2)
95+
zeitwerk (~> 2.6)
6796
rainbow (3.1.1)
68-
rake (13.0.6)
69-
regexp_parser (2.4.0)
70-
rexml (3.2.5)
71-
rubocop (1.29.1)
97+
rake (13.1.0)
98+
rdoc (6.6.3.1)
99+
psych (>= 4.0.0)
100+
regexp_parser (2.9.0)
101+
reline (0.5.7)
102+
io-console (~> 0.5)
103+
rexml (3.2.6)
104+
rubocop (1.59.0)
105+
json (~> 2.3)
106+
language_server-protocol (>= 3.17.0)
72107
parallel (~> 1.10)
73-
parser (>= 3.1.0.0)
108+
parser (>= 3.2.2.4)
74109
rainbow (>= 2.2.2, < 4.0)
75110
regexp_parser (>= 1.8, < 3.0)
76111
rexml (>= 3.2.5, < 4.0)
77-
rubocop-ast (>= 1.17.0, < 2.0)
112+
rubocop-ast (>= 1.30.0, < 2.0)
78113
ruby-progressbar (~> 1.7)
79-
unicode-display_width (>= 1.4.0, < 3.0)
80-
rubocop-ast (1.18.0)
81-
parser (>= 3.1.1.0)
82-
rubocop-performance (1.13.3)
83-
rubocop (>= 1.7.0, < 2.0)
84-
rubocop-ast (>= 0.4.0)
85-
ruby-progressbar (1.11.0)
86-
standard (1.12.1)
87-
rubocop (= 1.29.1)
88-
rubocop-performance (= 1.13.3)
89-
thor (1.2.1)
90-
tzinfo (2.0.5)
114+
unicode-display_width (>= 2.4.0, < 3.0)
115+
rubocop-ast (1.30.0)
116+
parser (>= 3.2.1.0)
117+
rubocop-performance (1.20.2)
118+
rubocop (>= 1.48.1, < 2.0)
119+
rubocop-ast (>= 1.30.0, < 2.0)
120+
ruby-progressbar (1.13.0)
121+
ruby2_keywords (0.0.5)
122+
standard (1.33.0)
123+
language_server-protocol (~> 3.17.0.2)
124+
lint_roller (~> 1.0)
125+
rubocop (~> 1.59.0)
126+
standard-custom (~> 1.0.0)
127+
standard-performance (~> 1.3)
128+
standard-custom (1.0.2)
129+
lint_roller (~> 1.0)
130+
rubocop (~> 1.50)
131+
standard-performance (1.3.1)
132+
lint_roller (~> 1.1)
133+
rubocop-performance (~> 1.20.2)
134+
stringio (3.1.1)
135+
thor (1.3.0)
136+
tzinfo (2.0.6)
91137
concurrent-ruby (~> 1.0)
92-
unicode-display_width (2.1.0)
93-
zeitwerk (2.6.1)
138+
unicode-display_width (2.5.0)
139+
webrick (1.8.1)
140+
zeitwerk (2.6.13)
94141

95142
PLATFORMS
96143
ruby

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Once installed, you'll want to run:
5050
$ rake cypress:init
5151
```
5252

53-
This will override a few configurations in your `cypress.json` configuration
53+
This will override a few configurations in your `cypress.config.js` configuration
5454
file.
5555

5656
## Usage
@@ -155,13 +155,14 @@ preferred environment variables project-wide using a tool like
155155
[dotenv](https://github.com/bkeepers/dotenv).
156156

157157

158-
* **CYPRESS_RAILS_DIR** (default: `Dir.pwd`) the directory of your project
158+
* **CYPRESS_RAILS_DIR** (default: `Dir.pwd`) the directory of your Rails project
159+
* **CYPRESS_RAILS_CYPRESS_DIR** (default: _same value as `rails_dir`_) the directory of your Cypress project
159160
* **CYPRESS_RAILS_HOST** (default: `"127.0.0.1"`) the hostname to bind to
160161
* **CYPRESS_RAILS_PORT** (default: _a random available port_) the port to run
161162
the Rails test server on
162163
* **CYPRESS_RAILS_BASE_PATH** (default: `"/"`) the base path for all Cypress's
163164
requests to the app (e.g. via `cy.visit()`). If you've customized your
164-
`baseUrl` setting (e.g. in `cypress.json`), you'll need to duplicate it with
165+
`baseUrl` setting (e.g. in `cypress.config.js`), you'll need to duplicate it with
165166
this environment variable
166167
* **CYPRESS_RAILS_TRANSACTIONAL_SERVER** (default: `true`) when true, will start
167168
a transaction on all database connections before launching the server. In

cypress-rails.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
1111
spec.summary = "Helps you write Cypress tests of your Rails app"
1212
spec.homepage = "https://github.com/testdouble/cypress-rails"
1313
spec.license = "MIT"
14+
spec.metadata["rubygems_mfa_required"] = "true"
1415

1516
# Specify which files should be added to the gem when it is released.
1617
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.

example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# Ignore the default SQLite database.
1111
/db/*.sqlite3
1212
/db/*.sqlite3-journal
13+
/db/*.sqlite3-shm
14+
/db/*.sqlite3-wal
1315

1416
# Ignore all logfiles and tempfiles.
1517
/log/*

0 commit comments

Comments
 (0)