devise_masquerade 2.1.3 → 2.1.5
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 +4 -4
- data/.github/workflows/rubocop-analysis.yml +3 -3
- data/.tool-versions +1 -1
- data/.travis.yml +2 -1
- data/Gemfile +32 -15
- data/Gemfile.lock +304 -223
- data/README.md +1 -1
- data/features/support/env.rb +2 -2
- data/lib/devise_masquerade/version.rb +1 -1
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/spec_helper.rb +5 -5
- metadata +6 -8
- data/spec/orm/active_record.rb +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12249cac77636a1f1a78ca80d034d2503da1ef6b027716de2574edc52320e061
|
|
4
|
+
data.tar.gz: 17f61840c09c65fdf7094005c3f0aec2f288fb3e54fd0a82243bab2f5c8cad24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 003fc161d5bbf6c0e863656d93852d7182659178f96b0ebbf1a727c7ecfe3250341f1161e209d7f3043d39111339f60c94794def6632140de7594dc05c7d5d6a
|
|
7
|
+
data.tar.gz: f55e5af3381c5be54944015489f216a818257721a6fea09725cbfb63e66c616f31e7f9093126f1755c2f9cbaa6b84f8c47d02442cc027018df4719f236d53096
|
|
@@ -17,13 +17,13 @@ jobs:
|
|
|
17
17
|
steps:
|
|
18
18
|
# Checkout the repository to the GitHub Actions runner
|
|
19
19
|
- name: Checkout
|
|
20
|
-
uses: actions/checkout@
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
21
|
|
|
22
22
|
# Customize the ruby version depending on your needs
|
|
23
23
|
- name: Setup Ruby
|
|
24
|
-
uses:
|
|
24
|
+
uses: ruby/setup-ruby@v1
|
|
25
25
|
with:
|
|
26
|
-
ruby-version: '2
|
|
26
|
+
ruby-version: '3.2'
|
|
27
27
|
|
|
28
28
|
- name: Setup Brakeman
|
|
29
29
|
env:
|
|
@@ -39,6 +39,6 @@ jobs:
|
|
|
39
39
|
|
|
40
40
|
# Upload the SARIF file generated in the previous step
|
|
41
41
|
- name: Upload SARIF
|
|
42
|
-
uses: github/codeql-action/upload-sarif@
|
|
42
|
+
uses: github/codeql-action/upload-sarif@v4
|
|
43
43
|
with:
|
|
44
44
|
sarif_file: output.sarif.json
|
|
@@ -10,14 +10,14 @@ jobs:
|
|
|
10
10
|
|
|
11
11
|
steps:
|
|
12
12
|
- name: Checkout repository
|
|
13
|
-
uses: actions/checkout@
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
14
|
|
|
15
15
|
# If running on a self-hosted runner, check it meets the requirements
|
|
16
16
|
# listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
|
17
17
|
- name: Set up Ruby
|
|
18
18
|
uses: ruby/setup-ruby@v1
|
|
19
19
|
with:
|
|
20
|
-
ruby-version: 2
|
|
20
|
+
ruby-version: 3.2
|
|
21
21
|
|
|
22
22
|
# This step is not necessary if you add the gem to your Gemfile
|
|
23
23
|
- name: Install Code Scanning integration
|
|
@@ -34,6 +34,6 @@ jobs:
|
|
|
34
34
|
"
|
|
35
35
|
|
|
36
36
|
- name: Upload Sarif output
|
|
37
|
-
uses: github/codeql-action/upload-sarif@
|
|
37
|
+
uses: github/codeql-action/upload-sarif@v4
|
|
38
38
|
with:
|
|
39
39
|
sarif_file: rubocop.sarif
|
data/.tool-versions
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby 2.
|
|
1
|
+
ruby 3.2.2
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
|
@@ -4,10 +4,10 @@ source 'https://rubygems.org'
|
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
6
|
group :test do
|
|
7
|
-
gem 'activerecord', '>= 5.
|
|
8
|
-
gem 'actionmailer', '>= 5.
|
|
7
|
+
gem 'activerecord', '>= 8.0.5.1'
|
|
8
|
+
gem 'actionmailer', '>= 8.0.5.1'
|
|
9
9
|
gem 'bson_ext', '~> 1.3'
|
|
10
|
-
gem 'sqlite3', '
|
|
10
|
+
gem 'sqlite3', '>= 2.9.6'
|
|
11
11
|
|
|
12
12
|
gem 'test-unit'
|
|
13
13
|
|
|
@@ -19,23 +19,40 @@ group :test do
|
|
|
19
19
|
gem 'guard-bundler'
|
|
20
20
|
gem 'guard-cucumber'
|
|
21
21
|
|
|
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'
|
|
22
|
+
gem 'rspec', '~> 3.13'
|
|
23
|
+
gem 'rspec-rails', '~> 8.0.4'
|
|
28
24
|
|
|
29
25
|
gem 'shoulda'
|
|
30
26
|
gem 'rb-fsevent'
|
|
31
|
-
gem 'factory_bot_rails'
|
|
32
|
-
gem 'database_cleaner', '
|
|
27
|
+
gem 'factory_bot_rails', '>= 6.5.1'
|
|
28
|
+
gem 'database_cleaner', '>= 2.0.0'
|
|
33
29
|
gem 'cucumber'
|
|
34
|
-
gem '
|
|
35
|
-
gem 'capybara'
|
|
36
|
-
gem 'selenium-webdriver'
|
|
30
|
+
gem 'capybara', '>= 3.38.0'
|
|
37
31
|
gem 'chromedriver-helper'
|
|
32
|
+
|
|
33
|
+
gem 'cucumber-rails', '>= 4.0.0'
|
|
34
|
+
gem 'selenium-webdriver'
|
|
35
|
+
gem 'webdrivers'
|
|
36
|
+
|
|
38
37
|
gem 'launchy'
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
# Dependabot security pins for the dummy/test lockfile.
|
|
40
|
+
# Runtime gemspec constraints stay looser so apps can upgrade independently.
|
|
41
|
+
gem 'devise', '>= 5.0.4'
|
|
42
|
+
gem 'nokogiri', '>= 1.19.3'
|
|
43
|
+
gem 'rack', '>= 3.2.6'
|
|
44
|
+
gem 'rack-session', '>= 2.1.2'
|
|
45
|
+
gem 'net-imap', '>= 0.6.4'
|
|
46
|
+
gem 'erb', '>= 6.0.4'
|
|
47
|
+
gem 'concurrent-ruby', '>= 1.3.7'
|
|
48
|
+
gem 'addressable', '>= 2.9.0'
|
|
49
|
+
gem 'mail', '>= 2.9.1'
|
|
50
|
+
gem 'loofah', '>= 2.25.2'
|
|
51
|
+
gem 'rails-html-sanitizer', '>= 1.7.1'
|
|
52
|
+
gem 'bcrypt', '>= 3.1.22'
|
|
53
|
+
gem 'uri', '>= 1.0.4'
|
|
54
|
+
gem 'rexml', '>= 3.4.2'
|
|
55
|
+
# json 3.0 made JSON.parse kwargs-only; activesupport 8.1.3.1 still
|
|
56
|
+
# passes a positional options hash (rails/rails#58601).
|
|
57
|
+
gem 'json', '>= 2.10', '< 3'
|
|
41
58
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,58 +1,7 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: https://github.com/rspec/rspec-core.git
|
|
3
|
-
revision: b7067c5da4fde57cbbff739b168008482e61db44
|
|
4
|
-
specs:
|
|
5
|
-
rspec-core (3.10.0.pre)
|
|
6
|
-
rspec-support (= 3.10.0.pre)
|
|
7
|
-
|
|
8
|
-
GIT
|
|
9
|
-
remote: https://github.com/rspec/rspec-expectations.git
|
|
10
|
-
revision: 99f9bcaff2a6f3d82f4e350e829eca6ab015694f
|
|
11
|
-
specs:
|
|
12
|
-
rspec-expectations (3.10.0.pre)
|
|
13
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
14
|
-
rspec-support (= 3.10.0.pre)
|
|
15
|
-
|
|
16
|
-
GIT
|
|
17
|
-
remote: https://github.com/rspec/rspec-mocks.git
|
|
18
|
-
revision: 5b897e8f74f3059aef43f1ed5f91719f2267a04e
|
|
19
|
-
specs:
|
|
20
|
-
rspec-mocks (3.10.0.pre)
|
|
21
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
-
rspec-support (= 3.10.0.pre)
|
|
23
|
-
|
|
24
|
-
GIT
|
|
25
|
-
remote: https://github.com/rspec/rspec-rails.git
|
|
26
|
-
revision: 9b7ab39c027a8cb25e2ebe9e0e985756025b0549
|
|
27
|
-
specs:
|
|
28
|
-
rspec-rails (4.0.0.pre)
|
|
29
|
-
actionpack (>= 4.2)
|
|
30
|
-
activesupport (>= 4.2)
|
|
31
|
-
railties (>= 4.2)
|
|
32
|
-
rspec-core (= 3.10.0.pre)
|
|
33
|
-
rspec-expectations (= 3.10.0.pre)
|
|
34
|
-
rspec-mocks (= 3.10.0.pre)
|
|
35
|
-
rspec-support (= 3.10.0.pre)
|
|
36
|
-
|
|
37
|
-
GIT
|
|
38
|
-
remote: https://github.com/rspec/rspec-support.git
|
|
39
|
-
revision: 673133cdd13b17077b3d88ece8d7380821f8d7dc
|
|
40
|
-
specs:
|
|
41
|
-
rspec-support (3.10.0.pre)
|
|
42
|
-
|
|
43
|
-
GIT
|
|
44
|
-
remote: https://github.com/rspec/rspec.git
|
|
45
|
-
revision: e1c2c6bd78c849d7956431331f32ba5092951dab
|
|
46
|
-
specs:
|
|
47
|
-
rspec (3.10.0.pre)
|
|
48
|
-
rspec-core (= 3.10.0.pre)
|
|
49
|
-
rspec-expectations (= 3.10.0.pre)
|
|
50
|
-
rspec-mocks (= 3.10.0.pre)
|
|
51
|
-
|
|
52
1
|
PATH
|
|
53
2
|
remote: .
|
|
54
3
|
specs:
|
|
55
|
-
devise_masquerade (2.1.
|
|
4
|
+
devise_masquerade (2.1.5)
|
|
56
5
|
devise (>= 4.7.0)
|
|
57
6
|
globalid (>= 0.3.6)
|
|
58
7
|
railties (>= 5.2.0)
|
|
@@ -60,251 +9,383 @@ PATH
|
|
|
60
9
|
GEM
|
|
61
10
|
remote: https://rubygems.org/
|
|
62
11
|
specs:
|
|
63
|
-
actionmailer (
|
|
64
|
-
actionpack (=
|
|
65
|
-
actionview (=
|
|
66
|
-
activejob (=
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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)
|
|
17
|
+
mail (>= 2.8.0)
|
|
18
|
+
rails-dom-testing (~> 2.2)
|
|
19
|
+
actionpack (8.1.3.1)
|
|
20
|
+
actionview (= 8.1.3.1)
|
|
21
|
+
activesupport (= 8.1.3.1)
|
|
22
|
+
nokogiri (>= 1.8.5)
|
|
23
|
+
rack (>= 2.2.4)
|
|
24
|
+
rack-session (>= 1.0.1)
|
|
73
25
|
rack-test (>= 0.6.3)
|
|
74
|
-
rails-dom-testing (~> 2.
|
|
75
|
-
rails-html-sanitizer (~> 1.
|
|
76
|
-
|
|
77
|
-
|
|
26
|
+
rails-dom-testing (~> 2.2)
|
|
27
|
+
rails-html-sanitizer (~> 1.6)
|
|
28
|
+
useragent (~> 0.16)
|
|
29
|
+
actionview (8.1.3.1)
|
|
30
|
+
activesupport (= 8.1.3.1)
|
|
78
31
|
builder (~> 3.1)
|
|
79
|
-
erubi (~> 1.
|
|
80
|
-
rails-dom-testing (~> 2.
|
|
81
|
-
rails-html-sanitizer (~> 1.
|
|
82
|
-
activejob (
|
|
83
|
-
activesupport (=
|
|
32
|
+
erubi (~> 1.11)
|
|
33
|
+
rails-dom-testing (~> 2.2)
|
|
34
|
+
rails-html-sanitizer (~> 1.6)
|
|
35
|
+
activejob (8.1.3.1)
|
|
36
|
+
activesupport (= 8.1.3.1)
|
|
84
37
|
globalid (>= 0.3.6)
|
|
85
|
-
activemodel (
|
|
86
|
-
activesupport (=
|
|
87
|
-
activerecord (
|
|
88
|
-
activemodel (=
|
|
89
|
-
activesupport (=
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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)
|
|
43
|
+
timeout (>= 0.4.0)
|
|
44
|
+
activesupport (8.1.3.1)
|
|
45
|
+
base64
|
|
46
|
+
bigdecimal
|
|
47
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
48
|
+
connection_pool (>= 2.2.5)
|
|
49
|
+
drb
|
|
50
|
+
i18n (>= 1.6, < 2)
|
|
51
|
+
json
|
|
52
|
+
logger (>= 1.4.2)
|
|
53
|
+
minitest (>= 5.1)
|
|
54
|
+
securerandom (>= 0.3)
|
|
55
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
56
|
+
uri (>= 0.13.1)
|
|
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)
|
|
102
64
|
bson (1.12.5)
|
|
103
65
|
bson_ext (1.12.5)
|
|
104
66
|
bson (~> 1.12.5)
|
|
105
|
-
builder (3.
|
|
106
|
-
byebug (
|
|
107
|
-
|
|
67
|
+
builder (3.3.0)
|
|
68
|
+
byebug (13.0.0)
|
|
69
|
+
reline (>= 0.6.0)
|
|
70
|
+
capybara (3.40.0)
|
|
108
71
|
addressable
|
|
109
72
|
matrix
|
|
110
73
|
mini_mime (>= 0.1.3)
|
|
111
|
-
nokogiri (~> 1.
|
|
74
|
+
nokogiri (~> 1.11)
|
|
112
75
|
rack (>= 1.6.0)
|
|
113
76
|
rack-test (>= 0.6.3)
|
|
114
77
|
regexp_parser (>= 1.5, < 3.0)
|
|
115
78
|
xpath (~> 3.2)
|
|
116
|
-
childprocess (
|
|
79
|
+
childprocess (5.1.0)
|
|
80
|
+
logger (~> 1.5)
|
|
117
81
|
chromedriver-helper (2.1.1)
|
|
118
82
|
archive-zip (~> 0.10)
|
|
119
83
|
nokogiri (~> 1.8)
|
|
120
84
|
coderay (1.1.3)
|
|
121
|
-
concurrent-ruby (1.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
cucumber-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
cucumber-
|
|
137
|
-
cucumber-
|
|
138
|
-
|
|
139
|
-
cucumber (
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
cucumber-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
85
|
+
concurrent-ruby (1.3.8)
|
|
86
|
+
connection_pool (3.0.2)
|
|
87
|
+
crass (1.0.7)
|
|
88
|
+
cucumber (11.1.1)
|
|
89
|
+
base64 (~> 0.2)
|
|
90
|
+
builder (~> 3.2)
|
|
91
|
+
cucumber-ci-environment (> 9, < 12)
|
|
92
|
+
cucumber-core (>= 16.2.0, < 17)
|
|
93
|
+
cucumber-cucumber-expressions (> 17, < 20)
|
|
94
|
+
cucumber-html-formatter (> 21, < 24)
|
|
95
|
+
diff-lcs (~> 1.5)
|
|
96
|
+
logger (~> 1.6)
|
|
97
|
+
mini_mime (~> 1.1)
|
|
98
|
+
multi_test (~> 1.1)
|
|
99
|
+
sys-uname (~> 1.5)
|
|
100
|
+
cucumber-ci-environment (11.0.0)
|
|
101
|
+
cucumber-core (16.2.0)
|
|
102
|
+
cucumber-gherkin (> 36, < 40)
|
|
103
|
+
cucumber-messages (> 31, < 33)
|
|
104
|
+
cucumber-tag-expressions (> 6, < 9)
|
|
105
|
+
cucumber-cucumber-expressions (19.0.1)
|
|
106
|
+
bigdecimal
|
|
107
|
+
cucumber-gherkin (39.1.0)
|
|
108
|
+
cucumber-messages (>= 31, < 33)
|
|
109
|
+
cucumber-html-formatter (23.1.0)
|
|
110
|
+
cucumber-messages (> 23, < 33)
|
|
111
|
+
cucumber-messages (32.3.1)
|
|
112
|
+
cucumber-rails (4.1.0)
|
|
113
|
+
capybara (>= 3.25, < 4)
|
|
114
|
+
cucumber (>= 7, < 12)
|
|
115
|
+
railties (>= 6.1, < 9)
|
|
116
|
+
cucumber-tag-expressions (8.1.0)
|
|
117
|
+
database_cleaner (2.1.0)
|
|
118
|
+
database_cleaner-active_record (>= 2, < 3)
|
|
119
|
+
database_cleaner-active_record (2.2.2)
|
|
120
|
+
activerecord (>= 5.a)
|
|
121
|
+
database_cleaner-core (~> 2.0)
|
|
122
|
+
database_cleaner-core (2.1.0)
|
|
123
|
+
date (3.5.1)
|
|
124
|
+
devise (5.0.4)
|
|
147
125
|
bcrypt (~> 3.0)
|
|
148
126
|
orm_adapter (~> 0.1)
|
|
149
|
-
railties (>=
|
|
127
|
+
railties (>= 7.0)
|
|
150
128
|
responders
|
|
151
129
|
warden (~> 1.2.3)
|
|
152
|
-
diff-lcs (1.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
130
|
+
diff-lcs (1.6.2)
|
|
131
|
+
drb (2.2.3)
|
|
132
|
+
erb (6.0.7)
|
|
133
|
+
erubi (1.13.1)
|
|
134
|
+
factory_bot (6.6.0)
|
|
135
|
+
activesupport (>= 6.1.0)
|
|
136
|
+
factory_bot_rails (6.5.1)
|
|
137
|
+
factory_bot (~> 6.5)
|
|
138
|
+
railties (>= 6.1.0)
|
|
139
|
+
ffi (1.17.4-arm64-darwin)
|
|
140
|
+
ffi (1.17.4-x86_64-linux-gnu)
|
|
141
|
+
formatador (1.2.3)
|
|
142
|
+
reline
|
|
143
|
+
globalid (1.4.0)
|
|
144
|
+
activesupport (>= 6.1)
|
|
145
|
+
guard (2.20.2)
|
|
165
146
|
formatador (>= 0.2.4)
|
|
166
147
|
listen (>= 2.7, < 4.0)
|
|
148
|
+
logger (~> 1.6)
|
|
167
149
|
lumberjack (>= 1.0.12, < 2.0)
|
|
168
150
|
nenv (~> 0.1)
|
|
169
151
|
notiffany (~> 0.0)
|
|
170
|
-
pry (>= 0.
|
|
152
|
+
pry (>= 0.13.0)
|
|
171
153
|
shellany (~> 0.0)
|
|
172
154
|
thor (>= 0.18.1)
|
|
173
|
-
guard-bundler (3.
|
|
174
|
-
bundler (>= 2.1, <
|
|
155
|
+
guard-bundler (3.1.0)
|
|
156
|
+
bundler (>= 2.1, < 5)
|
|
175
157
|
guard (~> 2.2)
|
|
176
158
|
guard-compat (~> 1.1)
|
|
177
159
|
guard-compat (1.2.1)
|
|
178
|
-
guard-cucumber (
|
|
179
|
-
cucumber (>=
|
|
180
|
-
|
|
181
|
-
nenv (~> 0.1)
|
|
160
|
+
guard-cucumber (3.0.0)
|
|
161
|
+
cucumber (>= 3.1)
|
|
162
|
+
nenv (>= 0.1)
|
|
182
163
|
guard-rspec (4.7.3)
|
|
183
164
|
guard (~> 2.1)
|
|
184
165
|
guard-compat (~> 1.1)
|
|
185
166
|
rspec (>= 2.99.0, < 4.0)
|
|
186
|
-
i18n (1.
|
|
167
|
+
i18n (1.15.2)
|
|
187
168
|
concurrent-ruby (~> 1.0)
|
|
188
|
-
io-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
169
|
+
io-console (0.9.3)
|
|
170
|
+
io-like (0.4.0)
|
|
171
|
+
irb (1.18.0)
|
|
172
|
+
pp (>= 0.6.0)
|
|
173
|
+
prism (>= 1.3.0)
|
|
174
|
+
rdoc (>= 4.0.0)
|
|
175
|
+
reline (>= 0.4.2)
|
|
176
|
+
json (2.21.2)
|
|
177
|
+
launchy (3.1.1)
|
|
178
|
+
addressable (~> 2.8)
|
|
179
|
+
childprocess (~> 5.0)
|
|
180
|
+
logger (~> 1.6)
|
|
181
|
+
listen (3.10.0)
|
|
182
|
+
logger
|
|
192
183
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
193
184
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
194
|
-
|
|
185
|
+
logger (1.7.0)
|
|
186
|
+
loofah (2.25.2)
|
|
195
187
|
crass (~> 1.0.2)
|
|
196
|
-
nokogiri (>= 1.
|
|
197
|
-
lumberjack (1.
|
|
198
|
-
mail (2.
|
|
188
|
+
nokogiri (>= 1.12.0)
|
|
189
|
+
lumberjack (1.4.2)
|
|
190
|
+
mail (2.9.1)
|
|
191
|
+
logger
|
|
199
192
|
mini_mime (>= 0.1.1)
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
minitest (
|
|
208
|
-
|
|
209
|
-
|
|
193
|
+
net-imap
|
|
194
|
+
net-pop
|
|
195
|
+
net-smtp
|
|
196
|
+
matrix (0.4.3)
|
|
197
|
+
memoist3 (1.0.0)
|
|
198
|
+
method_source (1.1.0)
|
|
199
|
+
mini_mime (1.1.5)
|
|
200
|
+
minitest (6.0.6)
|
|
201
|
+
drb (~> 2.0)
|
|
202
|
+
prism (~> 1.5)
|
|
203
|
+
multi_test (1.1.0)
|
|
210
204
|
nenv (0.3.0)
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
net-imap (0.6.7)
|
|
206
|
+
date
|
|
207
|
+
net-protocol
|
|
208
|
+
net-pop (0.1.2)
|
|
209
|
+
net-protocol
|
|
210
|
+
net-protocol (0.3.0)
|
|
211
|
+
timeout
|
|
212
|
+
net-smtp (0.5.1)
|
|
213
|
+
net-protocol
|
|
214
|
+
nokogiri (1.19.4-arm64-darwin)
|
|
215
|
+
racc (~> 1.4)
|
|
216
|
+
nokogiri (1.19.4-x86_64-linux-gnu)
|
|
213
217
|
racc (~> 1.4)
|
|
214
218
|
notiffany (0.1.3)
|
|
215
219
|
nenv (~> 0.1)
|
|
216
220
|
shellany (~> 0.0)
|
|
217
221
|
orm_adapter (0.5.0)
|
|
218
|
-
power_assert (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
222
|
+
power_assert (3.1.0)
|
|
223
|
+
pp (0.6.4)
|
|
224
|
+
prettyprint
|
|
225
|
+
prettyprint (0.2.0)
|
|
226
|
+
prism (1.9.0)
|
|
227
|
+
pry (0.16.0)
|
|
228
|
+
coderay (~> 1.1)
|
|
229
|
+
method_source (~> 1.0)
|
|
230
|
+
reline (>= 0.6.0)
|
|
231
|
+
pry-byebug (3.12.0)
|
|
232
|
+
byebug (~> 13.0)
|
|
233
|
+
pry (>= 0.13, < 0.17)
|
|
234
|
+
public_suffix (7.0.5)
|
|
235
|
+
racc (1.8.1)
|
|
236
|
+
rack (3.2.7)
|
|
237
|
+
rack-session (2.1.2)
|
|
238
|
+
base64 (>= 0.1.0)
|
|
239
|
+
rack (>= 3.0.0)
|
|
240
|
+
rack-test (2.2.0)
|
|
229
241
|
rack (>= 1.3)
|
|
230
|
-
|
|
231
|
-
|
|
242
|
+
rackup (2.3.1)
|
|
243
|
+
rack (>= 3)
|
|
244
|
+
rails-dom-testing (2.3.0)
|
|
245
|
+
activesupport (>= 5.0.0)
|
|
246
|
+
minitest
|
|
232
247
|
nokogiri (>= 1.6)
|
|
233
|
-
rails-html-sanitizer (1.
|
|
234
|
-
loofah (~> 2.
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
248
|
+
rails-html-sanitizer (1.7.1)
|
|
249
|
+
loofah (~> 2.25, >= 2.25.2)
|
|
250
|
+
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)
|
|
251
|
+
railties (8.1.3.1)
|
|
252
|
+
actionpack (= 8.1.3.1)
|
|
253
|
+
activesupport (= 8.1.3.1)
|
|
254
|
+
irb (~> 1.13)
|
|
255
|
+
rackup (>= 1.0.0)
|
|
256
|
+
rake (>= 12.2)
|
|
257
|
+
thor (~> 1.0, >= 1.2.2)
|
|
258
|
+
tsort (>= 0.2)
|
|
259
|
+
zeitwerk (~> 2.6)
|
|
260
|
+
rake (13.4.2)
|
|
261
|
+
rb-fsevent (0.11.2)
|
|
262
|
+
rb-inotify (0.11.1)
|
|
244
263
|
ffi (~> 1.0)
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
264
|
+
rbs (4.1.3)
|
|
265
|
+
logger
|
|
266
|
+
prism (>= 1.6.0)
|
|
267
|
+
tsort
|
|
268
|
+
rdoc (8.0.0)
|
|
269
|
+
erb
|
|
270
|
+
prism (>= 1.6.0)
|
|
271
|
+
rbs (>= 4.0.0)
|
|
272
|
+
tsort
|
|
273
|
+
regexp_parser (2.12.0)
|
|
274
|
+
reline (0.7.0)
|
|
275
|
+
io-console (~> 0.5)
|
|
276
|
+
responders (3.2.1)
|
|
277
|
+
actionpack (>= 7.0)
|
|
278
|
+
railties (>= 7.0)
|
|
279
|
+
rexml (3.4.4)
|
|
280
|
+
rspec (3.13.2)
|
|
281
|
+
rspec-core (~> 3.13.0)
|
|
282
|
+
rspec-expectations (~> 3.13.0)
|
|
283
|
+
rspec-mocks (~> 3.13.0)
|
|
284
|
+
rspec-core (3.13.6)
|
|
285
|
+
rspec-support (~> 3.13.0)
|
|
286
|
+
rspec-expectations (3.13.5)
|
|
287
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
288
|
+
rspec-support (~> 3.13.0)
|
|
289
|
+
rspec-mocks (3.13.8)
|
|
290
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
291
|
+
rspec-support (~> 3.13.0)
|
|
292
|
+
rspec-rails (8.0.4)
|
|
293
|
+
actionpack (>= 7.2)
|
|
294
|
+
activesupport (>= 7.2)
|
|
295
|
+
railties (>= 7.2)
|
|
296
|
+
rspec-core (>= 3.13.0, < 5.0.0)
|
|
297
|
+
rspec-expectations (>= 3.13.0, < 5.0.0)
|
|
298
|
+
rspec-mocks (>= 3.13.0, < 5.0.0)
|
|
299
|
+
rspec-support (>= 3.13.0, < 5.0.0)
|
|
300
|
+
rspec-support (3.13.7)
|
|
301
|
+
rubyzip (3.6.0)
|
|
302
|
+
securerandom (0.4.1)
|
|
303
|
+
selenium-webdriver (4.44.0)
|
|
304
|
+
base64 (~> 0.2)
|
|
305
|
+
logger (~> 1.4)
|
|
306
|
+
rexml (~> 3.2, >= 3.2.5)
|
|
307
|
+
rubyzip (>= 1.2.2, < 4.0)
|
|
308
|
+
websocket (~> 1.0)
|
|
253
309
|
shellany (0.0.1)
|
|
254
|
-
shoulda (
|
|
255
|
-
shoulda-context (~>
|
|
256
|
-
shoulda-matchers (~>
|
|
257
|
-
shoulda-context (
|
|
258
|
-
shoulda-matchers (
|
|
259
|
-
activesupport (>= 4.
|
|
260
|
-
sqlite3 (
|
|
261
|
-
|
|
262
|
-
|
|
310
|
+
shoulda (4.0.0)
|
|
311
|
+
shoulda-context (~> 2.0)
|
|
312
|
+
shoulda-matchers (~> 4.0)
|
|
313
|
+
shoulda-context (2.0.0)
|
|
314
|
+
shoulda-matchers (4.5.1)
|
|
315
|
+
activesupport (>= 4.2.0)
|
|
316
|
+
sqlite3 (2.9.6-arm64-darwin)
|
|
317
|
+
sqlite3 (2.9.6-x86_64-linux-gnu)
|
|
318
|
+
sys-uname (1.5.1)
|
|
319
|
+
ffi (~> 1.1)
|
|
320
|
+
memoist3 (~> 1.0.0)
|
|
321
|
+
test-unit (3.7.8)
|
|
263
322
|
power_assert
|
|
264
|
-
thor (
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
323
|
+
thor (1.5.0)
|
|
324
|
+
timeout (0.6.1)
|
|
325
|
+
tsort (0.2.0)
|
|
326
|
+
tzinfo (2.0.6)
|
|
327
|
+
concurrent-ruby (~> 1.0)
|
|
328
|
+
uri (1.1.1)
|
|
329
|
+
useragent (0.16.11)
|
|
268
330
|
warden (1.2.9)
|
|
269
331
|
rack (>= 2.0.9)
|
|
332
|
+
webdrivers (5.2.0)
|
|
333
|
+
nokogiri (~> 1.6)
|
|
334
|
+
rubyzip (>= 1.3.0)
|
|
335
|
+
selenium-webdriver (~> 4.0)
|
|
336
|
+
websocket (1.2.11)
|
|
270
337
|
xpath (3.2.0)
|
|
271
338
|
nokogiri (~> 1.8)
|
|
272
|
-
zeitwerk (2.
|
|
339
|
+
zeitwerk (2.8.3)
|
|
273
340
|
|
|
274
341
|
PLATFORMS
|
|
275
|
-
|
|
342
|
+
arm64-darwin
|
|
343
|
+
arm64-darwin-21
|
|
344
|
+
arm64-darwin-24
|
|
345
|
+
x86_64-linux-gnu
|
|
276
346
|
|
|
277
347
|
DEPENDENCIES
|
|
278
|
-
actionmailer (>= 5.
|
|
279
|
-
activerecord (>= 5.
|
|
348
|
+
actionmailer (>= 8.0.5.1)
|
|
349
|
+
activerecord (>= 8.0.5.1)
|
|
350
|
+
addressable (>= 2.9.0)
|
|
351
|
+
bcrypt (>= 3.1.22)
|
|
280
352
|
bson_ext (~> 1.3)
|
|
281
353
|
bundler (>= 2.0.0)
|
|
282
|
-
capybara
|
|
354
|
+
capybara (>= 3.38.0)
|
|
283
355
|
chromedriver-helper
|
|
356
|
+
concurrent-ruby (>= 1.3.7)
|
|
284
357
|
cucumber
|
|
285
|
-
cucumber-rails
|
|
286
|
-
database_cleaner (
|
|
358
|
+
cucumber-rails (>= 4.0.0)
|
|
359
|
+
database_cleaner (>= 2.0.0)
|
|
360
|
+
devise (>= 5.0.4)
|
|
287
361
|
devise_masquerade!
|
|
288
|
-
|
|
362
|
+
erb (>= 6.0.4)
|
|
363
|
+
factory_bot_rails (>= 6.5.1)
|
|
289
364
|
guard
|
|
290
365
|
guard-bundler
|
|
291
366
|
guard-cucumber
|
|
292
367
|
guard-rspec (~> 4.7)
|
|
368
|
+
json (>= 2.10, < 3)
|
|
293
369
|
launchy
|
|
294
|
-
|
|
370
|
+
loofah (>= 2.25.2)
|
|
371
|
+
mail (>= 2.9.1)
|
|
372
|
+
net-imap (>= 0.6.4)
|
|
373
|
+
nokogiri (>= 1.19.3)
|
|
295
374
|
pry
|
|
296
375
|
pry-byebug
|
|
376
|
+
rack (>= 3.2.6)
|
|
377
|
+
rack-session (>= 2.1.2)
|
|
378
|
+
rails-html-sanitizer (>= 1.7.1)
|
|
297
379
|
rb-fsevent
|
|
298
|
-
|
|
299
|
-
rspec
|
|
300
|
-
rspec-
|
|
301
|
-
rspec-mocks!
|
|
302
|
-
rspec-rails!
|
|
303
|
-
rspec-support!
|
|
380
|
+
rexml (>= 3.4.2)
|
|
381
|
+
rspec (~> 3.13)
|
|
382
|
+
rspec-rails (~> 8.0.4)
|
|
304
383
|
selenium-webdriver
|
|
305
384
|
shoulda
|
|
306
|
-
sqlite3 (
|
|
385
|
+
sqlite3 (>= 2.9.6)
|
|
307
386
|
test-unit
|
|
387
|
+
uri (>= 1.0.4)
|
|
388
|
+
webdrivers
|
|
308
389
|
|
|
309
390
|
BUNDLED WITH
|
|
310
|
-
|
|
391
|
+
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/dummy/config/routes.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Dummy::Application.routes.draw do
|
|
2
2
|
devise_for :users, controllers: { masquerades: 'users/masquerades' }
|
|
3
|
-
devise_for :admin_users, class_name: Admin::User.name
|
|
3
|
+
devise_for :admin_users, class_name: Admin::User.name, module: :admin
|
|
4
4
|
devise_for :students, class_name: Student.name
|
|
5
5
|
|
|
6
6
|
root to: 'dashboard#index'
|
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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexandr Korsak
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -159,7 +159,6 @@ files:
|
|
|
159
159
|
- spec/dummy/public/.empty
|
|
160
160
|
- spec/dummy/script/rails
|
|
161
161
|
- spec/models/user_spec.rb
|
|
162
|
-
- spec/orm/active_record.rb
|
|
163
162
|
- spec/spec_helper.rb
|
|
164
163
|
- spec/support/authentication.rb
|
|
165
164
|
- spec/support/factories.rb
|
|
@@ -167,7 +166,7 @@ homepage: http://github.com/oivoodoo/devise_masquerade
|
|
|
167
166
|
licenses:
|
|
168
167
|
- MIT
|
|
169
168
|
metadata: {}
|
|
170
|
-
post_install_message:
|
|
169
|
+
post_install_message:
|
|
171
170
|
rdoc_options: []
|
|
172
171
|
require_paths:
|
|
173
172
|
- lib
|
|
@@ -182,8 +181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
182
181
|
- !ruby/object:Gem::Version
|
|
183
182
|
version: '0'
|
|
184
183
|
requirements: []
|
|
185
|
-
rubygems_version: 3.
|
|
186
|
-
signing_key:
|
|
184
|
+
rubygems_version: 3.4.10
|
|
185
|
+
signing_key:
|
|
187
186
|
specification_version: 4
|
|
188
187
|
summary: use for login as functionallity on your admin users pages
|
|
189
188
|
test_files:
|
|
@@ -245,7 +244,6 @@ test_files:
|
|
|
245
244
|
- spec/dummy/public/.empty
|
|
246
245
|
- spec/dummy/script/rails
|
|
247
246
|
- spec/models/user_spec.rb
|
|
248
|
-
- spec/orm/active_record.rb
|
|
249
247
|
- spec/spec_helper.rb
|
|
250
248
|
- spec/support/authentication.rb
|
|
251
249
|
- spec/support/factories.rb
|
data/spec/orm/active_record.rb
DELETED