devise_masquerade 2.1.4 → 2.1.6
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 +4 -4
- data/.github/workflows/brakeman-analysis.yml +21 -15
- data/.github/workflows/rubocop-analysis.yml +38 -7
- data/.travis.yml +2 -1
- data/Gemfile +32 -15
- data/Gemfile.lock +203 -195
- data/README.md +1 -1
- data/features/support/env.rb +2 -2
- data/lib/devise_masquerade/version.rb +1 -1
- data/spec/spec_helper.rb +5 -5
- data/spec/support/authentication.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 145b9b98124a0c8b287d968fd82397b1868e332d86b68168f166d2eee11a5a22
|
|
4
|
+
data.tar.gz: f261d51e39690087981dd276691488801de1c029cfbc3e6d6f28988fbbd2542a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 230af3d8893659daebfe1ab9d641a4f8ae5067b839f3954977bd85e91a81f2938812b4fdee019eac87f0e1e9e94ed5e3525d4a7c17d65105da992eac325b094a
|
|
7
|
+
data.tar.gz: 78b65a1e433b15a1d04247cc8ee8316889138a4c51463c64afd0320f558f0114264d79127a1f987c02ad8ac4bc9db5e892611717c5bf46cd167addb2a357b0df
|
|
@@ -3,42 +3,48 @@
|
|
|
3
3
|
|
|
4
4
|
name: Brakeman Scan
|
|
5
5
|
|
|
6
|
-
# This section configures the trigger for the workflow. Feel free to customize depending on your convention
|
|
7
6
|
on:
|
|
8
7
|
push:
|
|
9
8
|
branches: [ "master", "main" ]
|
|
10
9
|
pull_request:
|
|
11
10
|
branches: [ "master", "main" ]
|
|
12
11
|
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
13
15
|
jobs:
|
|
14
16
|
brakeman-scan:
|
|
15
17
|
name: Brakeman Scan
|
|
16
18
|
runs-on: ubuntu-latest
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
security-events: write
|
|
22
|
+
actions: read
|
|
17
23
|
steps:
|
|
18
|
-
# Checkout the repository to the GitHub Actions runner
|
|
19
24
|
- name: Checkout
|
|
20
|
-
uses: actions/checkout@
|
|
25
|
+
uses: actions/checkout@v4
|
|
21
26
|
|
|
22
|
-
# Customize the ruby version depending on your needs
|
|
23
27
|
- name: Setup Ruby
|
|
24
|
-
uses:
|
|
28
|
+
uses: ruby/setup-ruby@v1
|
|
25
29
|
with:
|
|
26
|
-
ruby-version: '2
|
|
30
|
+
ruby-version: '3.2'
|
|
27
31
|
|
|
28
32
|
- name: Setup Brakeman
|
|
29
|
-
|
|
30
|
-
BRAKEMAN_VERSION: '4.10' # SARIF support is provided in Brakeman version 4.10+
|
|
31
|
-
run: |
|
|
32
|
-
gem install brakeman --version $BRAKEMAN_VERSION
|
|
33
|
+
run: gem install brakeman
|
|
33
34
|
|
|
34
|
-
#
|
|
35
|
+
# Scan the dummy Rails app. The gem root is not a Rails application, so
|
|
36
|
+
# `brakeman .` exits before writing SARIF. --no-exit-on-warn/error keeps
|
|
37
|
+
# findings in the report instead of failing the job.
|
|
35
38
|
- name: Scan
|
|
36
|
-
continue-on-error: true
|
|
37
39
|
run: |
|
|
38
|
-
brakeman
|
|
40
|
+
brakeman --path spec/dummy \
|
|
41
|
+
-f sarif \
|
|
42
|
+
-o output.sarif.json \
|
|
43
|
+
--no-exit-on-warn \
|
|
44
|
+
--no-exit-on-error
|
|
39
45
|
|
|
40
|
-
# Upload the SARIF file generated in the previous step
|
|
41
46
|
- name: Upload SARIF
|
|
42
|
-
uses: github/codeql-action/upload-sarif@
|
|
47
|
+
uses: github/codeql-action/upload-sarif@v4
|
|
43
48
|
with:
|
|
44
49
|
sarif_file: output.sarif.json
|
|
50
|
+
category: brakeman
|
|
@@ -2,26 +2,32 @@ name: "Rubocop"
|
|
|
2
2
|
|
|
3
3
|
on: push
|
|
4
4
|
|
|
5
|
+
permissions:
|
|
6
|
+
contents: read
|
|
7
|
+
|
|
5
8
|
jobs:
|
|
6
9
|
rubocop:
|
|
7
10
|
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
security-events: write
|
|
14
|
+
actions: read
|
|
8
15
|
strategy:
|
|
9
16
|
fail-fast: false
|
|
10
17
|
|
|
11
18
|
steps:
|
|
12
19
|
- name: Checkout repository
|
|
13
|
-
uses: actions/checkout@
|
|
20
|
+
uses: actions/checkout@v4
|
|
14
21
|
|
|
15
|
-
# If running on a self-hosted runner, check it meets the requirements
|
|
16
|
-
# listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
|
17
22
|
- name: Set up Ruby
|
|
18
23
|
uses: ruby/setup-ruby@v1
|
|
19
24
|
with:
|
|
20
|
-
ruby-version: 2
|
|
25
|
+
ruby-version: 3.2
|
|
21
26
|
|
|
22
|
-
#
|
|
27
|
+
# 0.6.1 maps last_column 0 to real_column; 0.3.0 emitted endColumn 0
|
|
28
|
+
# which github/codeql-action/upload-sarif@v4 rejects (must be >= 1).
|
|
23
29
|
- name: Install Code Scanning integration
|
|
24
|
-
run: bundle add code-scanning-rubocop --version 0.
|
|
30
|
+
run: bundle add code-scanning-rubocop --version 0.6.1 --skip-install
|
|
25
31
|
|
|
26
32
|
- name: Install dependencies
|
|
27
33
|
run: bundle install
|
|
@@ -33,7 +39,32 @@ jobs:
|
|
|
33
39
|
[[ $? -ne 2 ]]
|
|
34
40
|
"
|
|
35
41
|
|
|
42
|
+
- name: Normalize SARIF columns
|
|
43
|
+
run: |
|
|
44
|
+
python3 - <<'PY'
|
|
45
|
+
import json
|
|
46
|
+
from pathlib import Path
|
|
47
|
+
path = Path("rubocop.sarif")
|
|
48
|
+
data = json.loads(path.read_text())
|
|
49
|
+
|
|
50
|
+
def fix(node):
|
|
51
|
+
if isinstance(node, dict):
|
|
52
|
+
for key in ("startColumn", "endColumn"):
|
|
53
|
+
value = node.get(key)
|
|
54
|
+
if isinstance(value, int) and value < 1:
|
|
55
|
+
node[key] = 1
|
|
56
|
+
for value in node.values():
|
|
57
|
+
fix(value)
|
|
58
|
+
elif isinstance(node, list):
|
|
59
|
+
for item in node:
|
|
60
|
+
fix(item)
|
|
61
|
+
|
|
62
|
+
fix(data)
|
|
63
|
+
path.write_text(json.dumps(data))
|
|
64
|
+
PY
|
|
65
|
+
|
|
36
66
|
- name: Upload Sarif output
|
|
37
|
-
uses: github/codeql-action/upload-sarif@
|
|
67
|
+
uses: github/codeql-action/upload-sarif@v4
|
|
38
68
|
with:
|
|
39
69
|
sarif_file: rubocop.sarif
|
|
70
|
+
category: rubocop
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
|
@@ -4,10 +4,9 @@ source 'https://rubygems.org'
|
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
6
|
group :test do
|
|
7
|
-
gem 'activerecord', '>= 5.
|
|
8
|
-
gem 'actionmailer', '>=
|
|
9
|
-
gem '
|
|
10
|
-
gem 'sqlite3'
|
|
7
|
+
gem 'activerecord', '>= 8.0.5.1'
|
|
8
|
+
gem 'actionmailer', '>= 8.0.5.1'
|
|
9
|
+
gem 'sqlite3', '>= 2.9.6'
|
|
11
10
|
|
|
12
11
|
gem 'test-unit'
|
|
13
12
|
|
|
@@ -19,22 +18,40 @@ group :test do
|
|
|
19
18
|
gem 'guard-bundler'
|
|
20
19
|
gem 'guard-cucumber'
|
|
21
20
|
|
|
22
|
-
gem 'rspec',
|
|
23
|
-
gem 'rspec-
|
|
24
|
-
gem 'rspec-expectations', github: 'rspec/rspec-expectations'
|
|
25
|
-
gem 'rspec-mocks', github: 'rspec/rspec-mocks'
|
|
26
|
-
gem 'rspec-rails', github: 'rspec/rspec-rails'
|
|
27
|
-
gem 'rspec-support', github: 'rspec/rspec-support'
|
|
21
|
+
gem 'rspec', '~> 3.13'
|
|
22
|
+
gem 'rspec-rails', '~> 8.0.4'
|
|
28
23
|
|
|
29
24
|
gem 'shoulda'
|
|
30
25
|
gem 'rb-fsevent'
|
|
31
|
-
gem 'factory_bot_rails', '>= 5.
|
|
32
|
-
gem 'database_cleaner', '
|
|
26
|
+
gem 'factory_bot_rails', '>= 6.5.1'
|
|
27
|
+
gem 'database_cleaner', '>= 2.0.0'
|
|
33
28
|
gem 'cucumber'
|
|
34
29
|
gem 'capybara', '>= 3.38.0'
|
|
35
|
-
gem 'cucumber-rails', '>= 2.1.0'
|
|
36
|
-
gem 'selenium-webdriver'
|
|
37
30
|
gem 'chromedriver-helper'
|
|
31
|
+
|
|
32
|
+
gem 'cucumber-rails', '>= 4.0.0'
|
|
33
|
+
gem 'selenium-webdriver'
|
|
34
|
+
gem 'webdrivers'
|
|
35
|
+
|
|
38
36
|
gem 'launchy'
|
|
39
|
-
|
|
37
|
+
|
|
38
|
+
# Dependabot security pins for the dummy/test lockfile.
|
|
39
|
+
# Runtime gemspec constraints stay looser so apps can upgrade independently.
|
|
40
|
+
gem 'devise', '>= 5.0.4'
|
|
41
|
+
gem 'nokogiri', '>= 1.19.3'
|
|
42
|
+
gem 'rack', '>= 3.2.6'
|
|
43
|
+
gem 'rack-session', '>= 2.1.2'
|
|
44
|
+
gem 'net-imap', '>= 0.6.4'
|
|
45
|
+
gem 'erb', '>= 6.0.4'
|
|
46
|
+
gem 'concurrent-ruby', '>= 1.3.7'
|
|
47
|
+
gem 'addressable', '>= 2.9.0'
|
|
48
|
+
gem 'mail', '>= 2.9.1'
|
|
49
|
+
gem 'loofah', '>= 2.25.2'
|
|
50
|
+
gem 'rails-html-sanitizer', '>= 1.7.1'
|
|
51
|
+
gem 'bcrypt', '>= 3.1.22'
|
|
52
|
+
gem 'uri', '>= 1.0.4'
|
|
53
|
+
gem 'rexml', '>= 3.4.2'
|
|
54
|
+
# json 3.0 made JSON.parse kwargs-only; activesupport 8.1.3.1 still
|
|
55
|
+
# passes a positional options hash (rails/rails#58601).
|
|
56
|
+
gem 'json', '>= 2.10', '< 3'
|
|
40
57
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,58 +1,7 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: https://github.com/rspec/rspec-core.git
|
|
3
|
-
revision: aec5f49485d97908183dbe790a7fefb8baaa8091
|
|
4
|
-
specs:
|
|
5
|
-
rspec-core (3.14.0.pre)
|
|
6
|
-
rspec-support (= 3.14.0.pre)
|
|
7
|
-
|
|
8
|
-
GIT
|
|
9
|
-
remote: https://github.com/rspec/rspec-expectations.git
|
|
10
|
-
revision: ba31727e856de42abb5a2e6566855f0831e1a619
|
|
11
|
-
specs:
|
|
12
|
-
rspec-expectations (3.14.0.pre)
|
|
13
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
14
|
-
rspec-support (= 3.14.0.pre)
|
|
15
|
-
|
|
16
|
-
GIT
|
|
17
|
-
remote: https://github.com/rspec/rspec-mocks.git
|
|
18
|
-
revision: 3caa9ac841e146d618421f870077c0ad684e6cad
|
|
19
|
-
specs:
|
|
20
|
-
rspec-mocks (3.14.0.pre)
|
|
21
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
-
rspec-support (= 3.14.0.pre)
|
|
23
|
-
|
|
24
|
-
GIT
|
|
25
|
-
remote: https://github.com/rspec/rspec-rails.git
|
|
26
|
-
revision: 94c4be4cafd81d155300265692cf7378cbea124a
|
|
27
|
-
specs:
|
|
28
|
-
rspec-rails (7.2.0.pre)
|
|
29
|
-
actionpack (>= 7.0)
|
|
30
|
-
activesupport (>= 7.0)
|
|
31
|
-
railties (>= 7.0)
|
|
32
|
-
rspec-core (~> 3.13)
|
|
33
|
-
rspec-expectations (~> 3.13)
|
|
34
|
-
rspec-mocks (~> 3.13)
|
|
35
|
-
rspec-support (~> 3.13)
|
|
36
|
-
|
|
37
|
-
GIT
|
|
38
|
-
remote: https://github.com/rspec/rspec-support.git
|
|
39
|
-
revision: 393117fb4c8874918044d9ed5d3ff3c482fd41ec
|
|
40
|
-
specs:
|
|
41
|
-
rspec-support (3.14.0.pre)
|
|
42
|
-
|
|
43
|
-
GIT
|
|
44
|
-
remote: https://github.com/rspec/rspec.git
|
|
45
|
-
revision: d064fd0e9f00af834dfcfbe55e74b066a76e98e6
|
|
46
|
-
specs:
|
|
47
|
-
rspec (3.14.0.pre)
|
|
48
|
-
rspec-core (= 3.14.0.pre)
|
|
49
|
-
rspec-expectations (= 3.14.0.pre)
|
|
50
|
-
rspec-mocks (= 3.14.0.pre)
|
|
51
|
-
|
|
52
1
|
PATH
|
|
53
2
|
remote: .
|
|
54
3
|
specs:
|
|
55
|
-
devise_masquerade (2.1.
|
|
4
|
+
devise_masquerade (2.1.6)
|
|
56
5
|
devise (>= 4.7.0)
|
|
57
6
|
globalid (>= 0.3.6)
|
|
58
7
|
railties (>= 5.2.0)
|
|
@@ -60,16 +9,16 @@ PATH
|
|
|
60
9
|
GEM
|
|
61
10
|
remote: https://rubygems.org/
|
|
62
11
|
specs:
|
|
63
|
-
actionmailer (8.
|
|
64
|
-
actionpack (= 8.
|
|
65
|
-
actionview (= 8.
|
|
66
|
-
activejob (= 8.
|
|
67
|
-
activesupport (= 8.
|
|
12
|
+
actionmailer (8.1.3.1)
|
|
13
|
+
actionpack (= 8.1.3.1)
|
|
14
|
+
actionview (= 8.1.3.1)
|
|
15
|
+
activejob (= 8.1.3.1)
|
|
16
|
+
activesupport (= 8.1.3.1)
|
|
68
17
|
mail (>= 2.8.0)
|
|
69
18
|
rails-dom-testing (~> 2.2)
|
|
70
|
-
actionpack (8.
|
|
71
|
-
actionview (= 8.
|
|
72
|
-
activesupport (= 8.
|
|
19
|
+
actionpack (8.1.3.1)
|
|
20
|
+
actionview (= 8.1.3.1)
|
|
21
|
+
activesupport (= 8.1.3.1)
|
|
73
22
|
nokogiri (>= 1.8.5)
|
|
74
23
|
rack (>= 2.2.4)
|
|
75
24
|
rack-session (>= 1.0.1)
|
|
@@ -77,47 +26,44 @@ GEM
|
|
|
77
26
|
rails-dom-testing (~> 2.2)
|
|
78
27
|
rails-html-sanitizer (~> 1.6)
|
|
79
28
|
useragent (~> 0.16)
|
|
80
|
-
actionview (8.
|
|
81
|
-
activesupport (= 8.
|
|
29
|
+
actionview (8.1.3.1)
|
|
30
|
+
activesupport (= 8.1.3.1)
|
|
82
31
|
builder (~> 3.1)
|
|
83
32
|
erubi (~> 1.11)
|
|
84
33
|
rails-dom-testing (~> 2.2)
|
|
85
34
|
rails-html-sanitizer (~> 1.6)
|
|
86
|
-
activejob (8.
|
|
87
|
-
activesupport (= 8.
|
|
35
|
+
activejob (8.1.3.1)
|
|
36
|
+
activesupport (= 8.1.3.1)
|
|
88
37
|
globalid (>= 0.3.6)
|
|
89
|
-
activemodel (8.
|
|
90
|
-
activesupport (= 8.
|
|
91
|
-
activerecord (8.
|
|
92
|
-
activemodel (= 8.
|
|
93
|
-
activesupport (= 8.
|
|
38
|
+
activemodel (8.1.3.1)
|
|
39
|
+
activesupport (= 8.1.3.1)
|
|
40
|
+
activerecord (8.1.3.1)
|
|
41
|
+
activemodel (= 8.1.3.1)
|
|
42
|
+
activesupport (= 8.1.3.1)
|
|
94
43
|
timeout (>= 0.4.0)
|
|
95
|
-
activesupport (8.
|
|
44
|
+
activesupport (8.1.3.1)
|
|
96
45
|
base64
|
|
97
|
-
benchmark (>= 0.3)
|
|
98
46
|
bigdecimal
|
|
99
47
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
100
48
|
connection_pool (>= 2.2.5)
|
|
101
49
|
drb
|
|
102
50
|
i18n (>= 1.6, < 2)
|
|
51
|
+
json
|
|
103
52
|
logger (>= 1.4.2)
|
|
104
53
|
minitest (>= 5.1)
|
|
105
54
|
securerandom (>= 0.3)
|
|
106
55
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
107
56
|
uri (>= 0.13.1)
|
|
108
|
-
addressable (2.
|
|
109
|
-
public_suffix (>= 2.0.2, <
|
|
110
|
-
archive-zip (0.
|
|
111
|
-
io-like (~> 0.
|
|
112
|
-
base64 (0.
|
|
113
|
-
bcrypt (3.1.
|
|
114
|
-
|
|
115
|
-
bigdecimal (3.1.9)
|
|
116
|
-
bson (1.12.5)
|
|
117
|
-
bson_ext (1.12.5)
|
|
118
|
-
bson (~> 1.12.5)
|
|
57
|
+
addressable (2.9.0)
|
|
58
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
59
|
+
archive-zip (0.13.1)
|
|
60
|
+
io-like (~> 0.4.0)
|
|
61
|
+
base64 (0.3.0)
|
|
62
|
+
bcrypt (3.1.22)
|
|
63
|
+
bigdecimal (4.1.3)
|
|
119
64
|
builder (3.3.0)
|
|
120
|
-
byebug (
|
|
65
|
+
byebug (13.0.0)
|
|
66
|
+
reline (>= 0.6.0)
|
|
121
67
|
capybara (3.40.0)
|
|
122
68
|
addressable
|
|
123
69
|
matrix
|
|
@@ -133,71 +79,78 @@ GEM
|
|
|
133
79
|
archive-zip (~> 0.10)
|
|
134
80
|
nokogiri (~> 1.8)
|
|
135
81
|
coderay (1.1.3)
|
|
136
|
-
concurrent-ruby (1.3.
|
|
137
|
-
connection_pool (
|
|
138
|
-
crass (1.0.
|
|
139
|
-
cucumber (
|
|
82
|
+
concurrent-ruby (1.3.8)
|
|
83
|
+
connection_pool (3.0.2)
|
|
84
|
+
crass (1.0.7)
|
|
85
|
+
cucumber (11.1.1)
|
|
86
|
+
base64 (~> 0.2)
|
|
140
87
|
builder (~> 3.2)
|
|
141
|
-
cucumber-ci-environment (> 9, <
|
|
142
|
-
cucumber-core (
|
|
143
|
-
cucumber-cucumber-expressions (
|
|
144
|
-
cucumber-
|
|
145
|
-
cucumber-html-formatter (> 20.3, < 22)
|
|
146
|
-
cucumber-messages (> 19, < 25)
|
|
88
|
+
cucumber-ci-environment (> 9, < 12)
|
|
89
|
+
cucumber-core (>= 16.2.0, < 17)
|
|
90
|
+
cucumber-cucumber-expressions (> 17, < 20)
|
|
91
|
+
cucumber-html-formatter (> 21, < 24)
|
|
147
92
|
diff-lcs (~> 1.5)
|
|
93
|
+
logger (~> 1.6)
|
|
148
94
|
mini_mime (~> 1.1)
|
|
149
95
|
multi_test (~> 1.1)
|
|
150
|
-
sys-uname (~> 1.
|
|
151
|
-
cucumber-ci-environment (
|
|
152
|
-
cucumber-core (
|
|
153
|
-
cucumber-gherkin (
|
|
154
|
-
cucumber-messages (
|
|
155
|
-
cucumber-tag-expressions (>
|
|
156
|
-
cucumber-cucumber-expressions (
|
|
96
|
+
sys-uname (~> 1.5)
|
|
97
|
+
cucumber-ci-environment (11.0.0)
|
|
98
|
+
cucumber-core (16.2.0)
|
|
99
|
+
cucumber-gherkin (> 36, < 40)
|
|
100
|
+
cucumber-messages (> 31, < 33)
|
|
101
|
+
cucumber-tag-expressions (> 6, < 9)
|
|
102
|
+
cucumber-cucumber-expressions (19.0.1)
|
|
157
103
|
bigdecimal
|
|
158
|
-
cucumber-gherkin (
|
|
159
|
-
cucumber-messages (>=
|
|
160
|
-
cucumber-html-formatter (
|
|
161
|
-
cucumber-messages (>
|
|
162
|
-
cucumber-messages (
|
|
163
|
-
cucumber-rails (
|
|
164
|
-
capybara (>= 3.
|
|
165
|
-
cucumber (>=
|
|
166
|
-
railties (>=
|
|
167
|
-
cucumber-tag-expressions (
|
|
168
|
-
database_cleaner (1.0
|
|
169
|
-
|
|
170
|
-
|
|
104
|
+
cucumber-gherkin (39.1.0)
|
|
105
|
+
cucumber-messages (>= 31, < 33)
|
|
106
|
+
cucumber-html-formatter (23.1.0)
|
|
107
|
+
cucumber-messages (> 23, < 33)
|
|
108
|
+
cucumber-messages (32.3.1)
|
|
109
|
+
cucumber-rails (4.1.0)
|
|
110
|
+
capybara (>= 3.25, < 4)
|
|
111
|
+
cucumber (>= 7, < 12)
|
|
112
|
+
railties (>= 6.1, < 9)
|
|
113
|
+
cucumber-tag-expressions (8.1.0)
|
|
114
|
+
database_cleaner (2.1.0)
|
|
115
|
+
database_cleaner-active_record (>= 2, < 3)
|
|
116
|
+
database_cleaner-active_record (2.2.2)
|
|
117
|
+
activerecord (>= 5.a)
|
|
118
|
+
database_cleaner-core (~> 2.0)
|
|
119
|
+
database_cleaner-core (2.1.0)
|
|
120
|
+
date (3.5.1)
|
|
121
|
+
devise (5.0.4)
|
|
171
122
|
bcrypt (~> 3.0)
|
|
172
123
|
orm_adapter (~> 0.1)
|
|
173
|
-
railties (>=
|
|
124
|
+
railties (>= 7.0)
|
|
174
125
|
responders
|
|
175
126
|
warden (~> 1.2.3)
|
|
176
|
-
diff-lcs (1.6.
|
|
177
|
-
drb (2.2.
|
|
127
|
+
diff-lcs (1.6.2)
|
|
128
|
+
drb (2.2.3)
|
|
129
|
+
erb (6.0.7)
|
|
178
130
|
erubi (1.13.1)
|
|
179
|
-
factory_bot (6.
|
|
131
|
+
factory_bot (6.6.0)
|
|
180
132
|
activesupport (>= 6.1.0)
|
|
181
|
-
factory_bot_rails (6.
|
|
133
|
+
factory_bot_rails (6.5.1)
|
|
182
134
|
factory_bot (~> 6.5)
|
|
183
|
-
railties (>=
|
|
184
|
-
ffi (1.17.
|
|
185
|
-
|
|
186
|
-
|
|
135
|
+
railties (>= 6.1.0)
|
|
136
|
+
ffi (1.17.4-arm64-darwin)
|
|
137
|
+
ffi (1.17.4-x86_64-linux-gnu)
|
|
138
|
+
formatador (1.2.3)
|
|
139
|
+
reline
|
|
140
|
+
globalid (1.4.0)
|
|
187
141
|
activesupport (>= 6.1)
|
|
188
|
-
guard (2.
|
|
142
|
+
guard (2.20.2)
|
|
189
143
|
formatador (>= 0.2.4)
|
|
190
144
|
listen (>= 2.7, < 4.0)
|
|
191
145
|
logger (~> 1.6)
|
|
192
146
|
lumberjack (>= 1.0.12, < 2.0)
|
|
193
147
|
nenv (~> 0.1)
|
|
194
148
|
notiffany (~> 0.0)
|
|
195
|
-
ostruct (~> 0.6)
|
|
196
149
|
pry (>= 0.13.0)
|
|
197
150
|
shellany (~> 0.0)
|
|
198
151
|
thor (>= 0.18.1)
|
|
199
|
-
guard-bundler (3.0
|
|
200
|
-
bundler (>= 2.1, <
|
|
152
|
+
guard-bundler (3.1.0)
|
|
153
|
+
bundler (>= 2.1, < 5)
|
|
201
154
|
guard (~> 2.2)
|
|
202
155
|
guard-compat (~> 1.1)
|
|
203
156
|
guard-compat (1.2.1)
|
|
@@ -208,111 +161,147 @@ GEM
|
|
|
208
161
|
guard (~> 2.1)
|
|
209
162
|
guard-compat (~> 1.1)
|
|
210
163
|
rspec (>= 2.99.0, < 4.0)
|
|
211
|
-
i18n (1.
|
|
164
|
+
i18n (1.15.2)
|
|
212
165
|
concurrent-ruby (~> 1.0)
|
|
213
|
-
io-console (0.
|
|
214
|
-
io-like (0.
|
|
215
|
-
irb (1.
|
|
166
|
+
io-console (0.9.3)
|
|
167
|
+
io-like (0.4.0)
|
|
168
|
+
irb (1.18.0)
|
|
216
169
|
pp (>= 0.6.0)
|
|
170
|
+
prism (>= 1.3.0)
|
|
217
171
|
rdoc (>= 4.0.0)
|
|
218
172
|
reline (>= 0.4.2)
|
|
173
|
+
json (2.21.2)
|
|
219
174
|
launchy (3.1.1)
|
|
220
175
|
addressable (~> 2.8)
|
|
221
176
|
childprocess (~> 5.0)
|
|
222
177
|
logger (~> 1.6)
|
|
223
|
-
listen (3.
|
|
178
|
+
listen (3.10.0)
|
|
179
|
+
logger
|
|
224
180
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
225
181
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
226
|
-
logger (1.
|
|
227
|
-
loofah (2.
|
|
182
|
+
logger (1.7.0)
|
|
183
|
+
loofah (2.25.2)
|
|
228
184
|
crass (~> 1.0.2)
|
|
229
185
|
nokogiri (>= 1.12.0)
|
|
230
|
-
lumberjack (1.2
|
|
231
|
-
mail (2.
|
|
186
|
+
lumberjack (1.4.2)
|
|
187
|
+
mail (2.9.1)
|
|
188
|
+
logger
|
|
232
189
|
mini_mime (>= 0.1.1)
|
|
233
190
|
net-imap
|
|
234
191
|
net-pop
|
|
235
192
|
net-smtp
|
|
236
|
-
matrix (0.4.
|
|
193
|
+
matrix (0.4.3)
|
|
194
|
+
memoist3 (1.0.0)
|
|
237
195
|
method_source (1.1.0)
|
|
238
196
|
mini_mime (1.1.5)
|
|
239
|
-
minitest (
|
|
197
|
+
minitest (6.0.6)
|
|
198
|
+
drb (~> 2.0)
|
|
199
|
+
prism (~> 1.5)
|
|
240
200
|
multi_test (1.1.0)
|
|
241
201
|
nenv (0.3.0)
|
|
242
|
-
net-imap (0.
|
|
202
|
+
net-imap (0.6.7)
|
|
243
203
|
date
|
|
244
204
|
net-protocol
|
|
245
205
|
net-pop (0.1.2)
|
|
246
206
|
net-protocol
|
|
247
|
-
net-protocol (0.
|
|
207
|
+
net-protocol (0.3.0)
|
|
248
208
|
timeout
|
|
249
209
|
net-smtp (0.5.1)
|
|
250
210
|
net-protocol
|
|
251
|
-
nokogiri (1.
|
|
211
|
+
nokogiri (1.19.4-arm64-darwin)
|
|
212
|
+
racc (~> 1.4)
|
|
213
|
+
nokogiri (1.19.4-x86_64-linux-gnu)
|
|
252
214
|
racc (~> 1.4)
|
|
253
215
|
notiffany (0.1.3)
|
|
254
216
|
nenv (~> 0.1)
|
|
255
217
|
shellany (~> 0.0)
|
|
256
218
|
orm_adapter (0.5.0)
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
pp (0.6.2)
|
|
219
|
+
power_assert (3.1.0)
|
|
220
|
+
pp (0.6.4)
|
|
260
221
|
prettyprint
|
|
261
222
|
prettyprint (0.2.0)
|
|
262
|
-
|
|
223
|
+
prism (1.9.0)
|
|
224
|
+
pry (0.16.0)
|
|
263
225
|
coderay (~> 1.1)
|
|
264
226
|
method_source (~> 1.0)
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
stringio
|
|
271
|
-
public_suffix (6.0.1)
|
|
227
|
+
reline (>= 0.6.0)
|
|
228
|
+
pry-byebug (3.12.0)
|
|
229
|
+
byebug (~> 13.0)
|
|
230
|
+
pry (>= 0.13, < 0.17)
|
|
231
|
+
public_suffix (7.0.5)
|
|
272
232
|
racc (1.8.1)
|
|
273
|
-
rack (3.
|
|
274
|
-
rack-session (2.1.
|
|
233
|
+
rack (3.2.7)
|
|
234
|
+
rack-session (2.1.2)
|
|
275
235
|
base64 (>= 0.1.0)
|
|
276
236
|
rack (>= 3.0.0)
|
|
277
237
|
rack-test (2.2.0)
|
|
278
238
|
rack (>= 1.3)
|
|
279
|
-
rackup (2.
|
|
239
|
+
rackup (2.3.1)
|
|
280
240
|
rack (>= 3)
|
|
281
|
-
rails-dom-testing (2.
|
|
241
|
+
rails-dom-testing (2.3.0)
|
|
282
242
|
activesupport (>= 5.0.0)
|
|
283
243
|
minitest
|
|
284
244
|
nokogiri (>= 1.6)
|
|
285
|
-
rails-html-sanitizer (1.
|
|
286
|
-
loofah (~> 2.
|
|
245
|
+
rails-html-sanitizer (1.7.1)
|
|
246
|
+
loofah (~> 2.25, >= 2.25.2)
|
|
287
247
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
288
|
-
railties (8.
|
|
289
|
-
actionpack (= 8.
|
|
290
|
-
activesupport (= 8.
|
|
248
|
+
railties (8.1.3.1)
|
|
249
|
+
actionpack (= 8.1.3.1)
|
|
250
|
+
activesupport (= 8.1.3.1)
|
|
291
251
|
irb (~> 1.13)
|
|
292
252
|
rackup (>= 1.0.0)
|
|
293
253
|
rake (>= 12.2)
|
|
294
254
|
thor (~> 1.0, >= 1.2.2)
|
|
255
|
+
tsort (>= 0.2)
|
|
295
256
|
zeitwerk (~> 2.6)
|
|
296
|
-
rake (13.2
|
|
257
|
+
rake (13.4.2)
|
|
297
258
|
rb-fsevent (0.11.2)
|
|
298
259
|
rb-inotify (0.11.1)
|
|
299
260
|
ffi (~> 1.0)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
261
|
+
rbs (4.1.3)
|
|
262
|
+
logger
|
|
263
|
+
prism (>= 1.6.0)
|
|
264
|
+
tsort
|
|
265
|
+
rdoc (8.0.0)
|
|
266
|
+
erb
|
|
267
|
+
prism (>= 1.6.0)
|
|
268
|
+
rbs (>= 4.0.0)
|
|
269
|
+
tsort
|
|
270
|
+
regexp_parser (2.12.0)
|
|
271
|
+
reline (0.7.0)
|
|
304
272
|
io-console (~> 0.5)
|
|
305
|
-
responders (3.
|
|
306
|
-
actionpack (>=
|
|
307
|
-
railties (>=
|
|
308
|
-
rexml (3.4.
|
|
309
|
-
|
|
273
|
+
responders (3.2.1)
|
|
274
|
+
actionpack (>= 7.0)
|
|
275
|
+
railties (>= 7.0)
|
|
276
|
+
rexml (3.4.4)
|
|
277
|
+
rspec (3.13.2)
|
|
278
|
+
rspec-core (~> 3.13.0)
|
|
279
|
+
rspec-expectations (~> 3.13.0)
|
|
280
|
+
rspec-mocks (~> 3.13.0)
|
|
281
|
+
rspec-core (3.13.6)
|
|
282
|
+
rspec-support (~> 3.13.0)
|
|
283
|
+
rspec-expectations (3.13.5)
|
|
284
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
285
|
+
rspec-support (~> 3.13.0)
|
|
286
|
+
rspec-mocks (3.13.8)
|
|
287
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
288
|
+
rspec-support (~> 3.13.0)
|
|
289
|
+
rspec-rails (8.0.4)
|
|
290
|
+
actionpack (>= 7.2)
|
|
291
|
+
activesupport (>= 7.2)
|
|
292
|
+
railties (>= 7.2)
|
|
293
|
+
rspec-core (>= 3.13.0, < 5.0.0)
|
|
294
|
+
rspec-expectations (>= 3.13.0, < 5.0.0)
|
|
295
|
+
rspec-mocks (>= 3.13.0, < 5.0.0)
|
|
296
|
+
rspec-support (>= 3.13.0, < 5.0.0)
|
|
297
|
+
rspec-support (3.13.7)
|
|
298
|
+
rubyzip (3.6.0)
|
|
310
299
|
securerandom (0.4.1)
|
|
311
|
-
selenium-webdriver (4.
|
|
300
|
+
selenium-webdriver (4.44.0)
|
|
312
301
|
base64 (~> 0.2)
|
|
313
302
|
logger (~> 1.4)
|
|
314
303
|
rexml (~> 3.2, >= 3.2.5)
|
|
315
|
-
rubyzip (>= 1.2.2, <
|
|
304
|
+
rubyzip (>= 1.2.2, < 4.0)
|
|
316
305
|
websocket (~> 1.0)
|
|
317
306
|
shellany (0.0.1)
|
|
318
307
|
shoulda (4.0.0)
|
|
@@ -321,59 +310,78 @@ GEM
|
|
|
321
310
|
shoulda-context (2.0.0)
|
|
322
311
|
shoulda-matchers (4.5.1)
|
|
323
312
|
activesupport (>= 4.2.0)
|
|
324
|
-
sqlite3 (2.6
|
|
325
|
-
|
|
326
|
-
sys-uname (1.
|
|
313
|
+
sqlite3 (2.9.6-arm64-darwin)
|
|
314
|
+
sqlite3 (2.9.6-x86_64-linux-gnu)
|
|
315
|
+
sys-uname (1.5.1)
|
|
327
316
|
ffi (~> 1.1)
|
|
328
|
-
|
|
317
|
+
memoist3 (~> 1.0.0)
|
|
318
|
+
test-unit (3.7.8)
|
|
329
319
|
power_assert
|
|
330
|
-
thor (1.
|
|
331
|
-
timeout (0.
|
|
320
|
+
thor (1.5.0)
|
|
321
|
+
timeout (0.6.1)
|
|
322
|
+
tsort (0.2.0)
|
|
332
323
|
tzinfo (2.0.6)
|
|
333
324
|
concurrent-ruby (~> 1.0)
|
|
334
|
-
uri (1.
|
|
325
|
+
uri (1.1.1)
|
|
335
326
|
useragent (0.16.11)
|
|
336
327
|
warden (1.2.9)
|
|
337
328
|
rack (>= 2.0.9)
|
|
329
|
+
webdrivers (5.2.0)
|
|
330
|
+
nokogiri (~> 1.6)
|
|
331
|
+
rubyzip (>= 1.3.0)
|
|
332
|
+
selenium-webdriver (~> 4.0)
|
|
338
333
|
websocket (1.2.11)
|
|
339
334
|
xpath (3.2.0)
|
|
340
335
|
nokogiri (~> 1.8)
|
|
341
|
-
zeitwerk (2.
|
|
336
|
+
zeitwerk (2.8.3)
|
|
342
337
|
|
|
343
338
|
PLATFORMS
|
|
339
|
+
arm64-darwin
|
|
344
340
|
arm64-darwin-21
|
|
341
|
+
arm64-darwin-24
|
|
342
|
+
x86_64-linux-gnu
|
|
345
343
|
|
|
346
344
|
DEPENDENCIES
|
|
347
|
-
actionmailer (>=
|
|
348
|
-
activerecord (>= 5.
|
|
349
|
-
|
|
345
|
+
actionmailer (>= 8.0.5.1)
|
|
346
|
+
activerecord (>= 8.0.5.1)
|
|
347
|
+
addressable (>= 2.9.0)
|
|
348
|
+
bcrypt (>= 3.1.22)
|
|
350
349
|
bundler (>= 2.0.0)
|
|
351
350
|
capybara (>= 3.38.0)
|
|
352
351
|
chromedriver-helper
|
|
352
|
+
concurrent-ruby (>= 1.3.7)
|
|
353
353
|
cucumber
|
|
354
|
-
cucumber-rails (>=
|
|
355
|
-
database_cleaner (
|
|
354
|
+
cucumber-rails (>= 4.0.0)
|
|
355
|
+
database_cleaner (>= 2.0.0)
|
|
356
|
+
devise (>= 5.0.4)
|
|
356
357
|
devise_masquerade!
|
|
357
|
-
|
|
358
|
+
erb (>= 6.0.4)
|
|
359
|
+
factory_bot_rails (>= 6.5.1)
|
|
358
360
|
guard
|
|
359
361
|
guard-bundler
|
|
360
362
|
guard-cucumber
|
|
361
363
|
guard-rspec (~> 4.7)
|
|
364
|
+
json (>= 2.10, < 3)
|
|
362
365
|
launchy
|
|
363
|
-
|
|
366
|
+
loofah (>= 2.25.2)
|
|
367
|
+
mail (>= 2.9.1)
|
|
368
|
+
net-imap (>= 0.6.4)
|
|
369
|
+
nokogiri (>= 1.19.3)
|
|
364
370
|
pry
|
|
365
371
|
pry-byebug
|
|
372
|
+
rack (>= 3.2.6)
|
|
373
|
+
rack-session (>= 2.1.2)
|
|
374
|
+
rails-html-sanitizer (>= 1.7.1)
|
|
366
375
|
rb-fsevent
|
|
367
|
-
|
|
368
|
-
rspec
|
|
369
|
-
rspec-
|
|
370
|
-
rspec-mocks!
|
|
371
|
-
rspec-rails!
|
|
372
|
-
rspec-support!
|
|
376
|
+
rexml (>= 3.4.2)
|
|
377
|
+
rspec (~> 3.13)
|
|
378
|
+
rspec-rails (~> 8.0.4)
|
|
373
379
|
selenium-webdriver
|
|
374
380
|
shoulda
|
|
375
|
-
sqlite3
|
|
381
|
+
sqlite3 (>= 2.9.6)
|
|
376
382
|
test-unit
|
|
383
|
+
uri (>= 1.0.4)
|
|
384
|
+
webdrivers
|
|
377
385
|
|
|
378
386
|
BUNDLED WITH
|
|
379
|
-
|
|
387
|
+
4.0.0
|
data/README.md
CHANGED
data/features/support/env.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require 'cucumber/rails'
|
|
2
2
|
require 'factory_bot'
|
|
3
|
-
require 'database_cleaner'
|
|
3
|
+
require 'database_cleaner/active_record'
|
|
4
4
|
require 'cucumber/rspec/doubles'
|
|
5
5
|
|
|
6
6
|
Dir[File.join(File.dirname(__FILE__), '..', '..', "spec/support/*.rb")].each {|f| require f}
|
|
@@ -16,7 +16,7 @@ end
|
|
|
16
16
|
World(FactoryBot::Syntax::Methods)
|
|
17
17
|
|
|
18
18
|
begin
|
|
19
|
-
DatabaseCleaner.strategy = :transaction
|
|
19
|
+
DatabaseCleaner[:active_record].strategy = :transaction
|
|
20
20
|
rescue NameError
|
|
21
21
|
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
|
|
22
22
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -7,7 +7,7 @@ require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
|
|
7
7
|
require 'rails/test_help'
|
|
8
8
|
require 'rspec/rails'
|
|
9
9
|
require 'factory_bot'
|
|
10
|
-
require 'database_cleaner'
|
|
10
|
+
require 'database_cleaner/active_record'
|
|
11
11
|
|
|
12
12
|
Rails.backtrace_cleaner.remove_silencers!
|
|
13
13
|
|
|
@@ -28,15 +28,15 @@ RSpec.configure do |config|
|
|
|
28
28
|
config.mock_with :rspec
|
|
29
29
|
|
|
30
30
|
config.before(:suite) do
|
|
31
|
-
DatabaseCleaner.strategy = :transaction
|
|
32
|
-
DatabaseCleaner.clean_with(:truncation)
|
|
31
|
+
DatabaseCleaner[:active_record].strategy = :transaction
|
|
32
|
+
DatabaseCleaner[:active_record].clean_with(:truncation)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
config.before(:each) do
|
|
36
|
-
DatabaseCleaner.start
|
|
36
|
+
DatabaseCleaner[:active_record].start
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
config.after(:each) do
|
|
40
|
-
DatabaseCleaner.clean
|
|
40
|
+
DatabaseCleaner[:active_record].clean
|
|
41
41
|
end
|
|
42
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise_masquerade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexandr Korsak
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|