playwright-on-rails 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c645ee1541e81fa978f7119b904a694f25e762c7a969ac3a3a4c0cd357f2d07
4
- data.tar.gz: 516fb66ff81bae53fdae42429843d4728b25624e6a19215a208dad3d4293da35
3
+ metadata.gz: 5905fed335554d2d88a8ba1a4f06aadead58437c079457fafff56ed39e01c2f9
4
+ data.tar.gz: fb669d9f122e92f93e36fe2338c6cda7c43c183acf25b430d20cab00eff4d7f8
5
5
  SHA512:
6
- metadata.gz: 11e29411f55d355d4389ce5b7b3f6bd7c96b3719dc54249260c867f167df7c888bcb4cc00a855ced8d1e4c754258a3fc5daf216f7ea22d7add2d7882885e2c69
7
- data.tar.gz: 751d9e0631f4ec11a7ec327dbc48ad9aaa26fddcfa937e7ea4af8aff47b3bccd1ad8dcaf4cae696ad8a2ec9e0171199d5b0154a33fa5a93f5110b2dfc23cb7c9
6
+ metadata.gz: 506708fe19a2f7a5dfceb98e381392abe145c3b141bd333bedef0c1676e7202db8cef867692ec8666ea57d15818928087f05079126bc33bcee32f791b8988a92
7
+ data.tar.gz: 0dbe6842f36fb2e176583c675125a497c2d8033992b9bca9ba7bd38fb137326cf1127f3c1be6a1e7629e1ad21541ee4ebba72d63876cc50eeaa8cce2fd91c4fa
data/Gemfile.lock CHANGED
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- playwright-on-rails (0.7.0)
4
+ playwright-on-rails (0.7.1)
5
5
  puma (>= 3.8.0)
6
6
  railties (>= 5.2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (7.1.3)
12
- actionview (= 7.1.3)
13
- activesupport (= 7.1.3)
11
+ actionpack (7.1.3.3)
12
+ actionview (= 7.1.3.3)
13
+ activesupport (= 7.1.3.3)
14
14
  nokogiri (>= 1.8.5)
15
15
  racc
16
16
  rack (>= 2.2.4)
@@ -18,13 +18,13 @@ GEM
18
18
  rack-test (>= 0.6.3)
19
19
  rails-dom-testing (~> 2.2)
20
20
  rails-html-sanitizer (~> 1.6)
21
- actionview (7.1.3)
22
- activesupport (= 7.1.3)
21
+ actionview (7.1.3.3)
22
+ activesupport (= 7.1.3.3)
23
23
  builder (~> 3.1)
24
24
  erubi (~> 1.11)
25
25
  rails-dom-testing (~> 2.2)
26
26
  rails-html-sanitizer (~> 1.6)
27
- activesupport (7.1.3)
27
+ activesupport (7.1.3.3)
28
28
  base64
29
29
  bigdecimal
30
30
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -36,19 +36,18 @@ GEM
36
36
  tzinfo (~> 2.0)
37
37
  ast (2.4.2)
38
38
  base64 (0.2.0)
39
- bigdecimal (3.1.6)
39
+ bigdecimal (3.1.8)
40
40
  builder (3.2.4)
41
41
  concurrent-ruby (1.2.3)
42
42
  connection_pool (2.4.1)
43
43
  crass (1.0.6)
44
- drb (2.2.0)
45
- ruby2_keywords
44
+ drb (2.2.1)
46
45
  erubi (1.12.0)
47
- i18n (1.14.1)
46
+ i18n (1.14.5)
48
47
  concurrent-ruby (~> 1.0)
49
48
  io-console (0.7.2)
50
- irb (1.11.2)
51
- rdoc
49
+ irb (1.13.1)
50
+ rdoc (>= 4.0.0)
52
51
  reline (>= 0.4.2)
53
52
  json (2.7.1)
54
53
  language_server-protocol (3.17.0.3)
@@ -56,11 +55,11 @@ GEM
56
55
  loofah (2.22.0)
57
56
  crass (~> 1.0.2)
58
57
  nokogiri (>= 1.12.0)
59
- mini_portile2 (2.8.5)
58
+ mini_portile2 (2.8.6)
60
59
  minitest (5.22.2)
61
60
  mutex_m (0.2.0)
62
- nio4r (2.7.0)
63
- nokogiri (1.16.2)
61
+ nio4r (2.7.3)
62
+ nokogiri (1.16.5)
64
63
  mini_portile2 (~> 2.8.2)
65
64
  racc (~> 1.4)
66
65
  parallel (1.24.0)
@@ -72,7 +71,7 @@ GEM
72
71
  puma (6.4.2)
73
72
  nio4r (~> 2.0)
74
73
  racc (1.7.3)
75
- rack (3.0.9)
74
+ rack (3.0.11)
76
75
  rack-session (2.0.0)
77
76
  rack (>= 3.0.0)
78
77
  rack-test (2.1.0)
@@ -87,9 +86,9 @@ GEM
87
86
  rails-html-sanitizer (1.6.0)
88
87
  loofah (~> 2.21)
89
88
  nokogiri (~> 1.14)
90
- railties (7.1.3)
91
- actionpack (= 7.1.3)
92
- activesupport (= 7.1.3)
89
+ railties (7.1.3.3)
90
+ actionpack (= 7.1.3.3)
91
+ activesupport (= 7.1.3.3)
93
92
  irb
94
93
  rackup (>= 1.0.0)
95
94
  rake (>= 12.2)
@@ -97,10 +96,10 @@ GEM
97
96
  zeitwerk (~> 2.6)
98
97
  rainbow (3.1.1)
99
98
  rake (13.1.0)
100
- rdoc (6.6.2)
99
+ rdoc (6.6.3.1)
101
100
  psych (>= 4.0.0)
102
101
  regexp_parser (2.9.0)
103
- reline (0.4.2)
102
+ reline (0.5.7)
104
103
  io-console (~> 0.5)
105
104
  rexml (3.2.6)
106
105
  rubocop (1.59.0)
@@ -120,7 +119,6 @@ GEM
120
119
  rubocop (>= 1.48.1, < 2.0)
121
120
  rubocop-ast (>= 1.30.0, < 2.0)
122
121
  ruby-progressbar (1.13.0)
123
- ruby2_keywords (0.0.5)
124
122
  standard (1.33.0)
125
123
  language_server-protocol (~> 3.17.0.2)
126
124
  lint_roller (~> 1.0)
@@ -134,12 +132,12 @@ GEM
134
132
  lint_roller (~> 1.1)
135
133
  rubocop-performance (~> 1.20.2)
136
134
  stringio (3.1.0)
137
- thor (1.3.0)
135
+ thor (1.3.1)
138
136
  tzinfo (2.0.6)
139
137
  concurrent-ruby (~> 1.0)
140
138
  unicode-display_width (2.5.0)
141
139
  webrick (1.8.1)
142
- zeitwerk (2.6.13)
140
+ zeitwerk (2.6.14)
143
141
 
144
142
  PLATFORMS
145
143
  ruby
data/README.md CHANGED
@@ -110,7 +110,7 @@ PlaywrightOnRails.hooks.after_transaction_start do
110
110
  end
111
111
 
112
112
  PlaywrightOnRails.hooks.after_state_reset do
113
- # Triggered after `/playwright-on-rails_reset_state` is called
113
+ # Triggered after `/playwright_on_rails_reset_state` is called
114
114
  end
115
115
 
116
116
  PlaywrightOnRails.hooks.before_server_stop do
@@ -122,7 +122,7 @@ end
122
122
  in this repo.)
123
123
 
124
124
  The gem also provides a special route on the test server:
125
- `/playwright-on-rails_reset_state`. Each time it's called, playwright-on-rails will do
125
+ `/playwright_on_rails_reset_state`. Each time it's called, playwright-on-rails will do
126
126
  two things at the beginning of the next request received by the Rails app:
127
127
 
128
128
  * If `PLAYWRIGHT_RAILS_TRANSACTIONAL_SERVER` is enabled, roll back the transaction,
@@ -137,7 +137,7 @@ Playwright tests like so:
137
137
 
138
138
  ```js
139
139
  beforeEach(() => {
140
- cy.request('/playwright-on-rails_reset_state')
140
+ cy.request('/playwright_on_rails_reset_state')
141
141
  })
142
142
  ```
143
143
 
@@ -203,7 +203,7 @@ pass a block to `PlaywrightOnRails.hooks.after_transaction_start`.
203
203
  ### after_state_reset
204
204
 
205
205
  Every time the test server receives an HTTP request at
206
- `/playwright-on-rails_reset_state`, the transaction will be rolled back (if
206
+ `/playwright_on_rails_reset_state`, the transaction will be rolled back (if
207
207
  `PLAYWRIGHT_RAILS_TRANSACTIONAL_SERVER` is enabled) and the `after_state_reset`
208
208
  hook will be triggered. To set up the hook, pass a block to
209
209
  `PlaywrightOnRails.hooks.after_state_reset`.
@@ -19,7 +19,7 @@ module PlaywrightOnRails
19
19
 
20
20
  def create_rack_app
21
21
  Rack::Builder.new do
22
- map "/playwright-on-rails_reset_state" do
22
+ map "/playwright_on_rails_reset_state" do
23
23
  run lambda { |env|
24
24
  TracksResets.instance.reset_needed!
25
25
  [202, {"Content-Type" => "text/plain"}, ["Accepted"]]
@@ -1,3 +1,3 @@
1
1
  module PlaywrightOnRails
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playwright-on-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arthur Hess
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-21 00:00:00.000000000 Z
11
+ date: 2024-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties