user_impersonate2 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -7
- data/app/controllers/user_impersonate/impersonate_controller.rb +1 -1
- data/lib/user_impersonate/version.rb +1 -1
- data/test/dummy-rails4/db/development.sqlite3 +0 -0
- data/test/dummy-rails4/db/test.sqlite3 +0 -0
- data/test/dummy-rails4/log/development.log +18 -0
- data/test/dummy-rails4/log/test.log +985 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/0cc1c92437f1c4975bb5abbbd424a275 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2625847957ecb8614efc9b58b07cabdf +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/70f1b4a1d50faffb0516da04ecf73bd0 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8483b329d12e7e986bc5a2204bbcb4f8 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8ff157af159f38d424ce1367e29760a2 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/bbbc0acfefa636c66069f61f74e4f175 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/c87b21c4aa04f8dcc3ae32da29c99d97 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/functional/impersonate_controller_test.rb +9 -0
- metadata +238 -198
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -62,6 +62,15 @@ class UserImpersonate::ImpersonateControllerTest < ActionController::TestCase
|
|
62
62
|
assert_equal admin_user, assigns(:current_staff)
|
63
63
|
end
|
64
64
|
|
65
|
+
# https://github.com/rcook/user_impersonate2/issues/6
|
66
|
+
# Test user_table when the Class.table_name has been set or overridden
|
67
|
+
# to manually specify the tablename. Specifically for cases of adding namespaces
|
68
|
+
# to existing models or inheriting from an existing model.
|
69
|
+
test 'user_table should return correct table_name' do
|
70
|
+
User.expects(:table_name).returns("test_users")
|
71
|
+
assert_equal 'test_users', @controller.send(:user_table)
|
72
|
+
end
|
73
|
+
|
65
74
|
# https://github.com/rcook/user_impersonate2/issues/3
|
66
75
|
# If config.staff_finder is not specified, default of "find" should be used.
|
67
76
|
# Similarly, config.staff_class should default to "User".
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_impersonate2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
5
|
-
prerelease:
|
4
|
+
version: 0.10.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Richard Cook
|
@@ -11,118 +10,104 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date:
|
13
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: rails
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - '>='
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: 3.2.0
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - '>='
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: 3.2.0
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: sqlite3
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
|
-
- -
|
33
|
+
- - '>='
|
38
34
|
- !ruby/object:Gem::Version
|
39
35
|
version: '0'
|
40
36
|
type: :development
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
|
-
- -
|
40
|
+
- - '>='
|
46
41
|
- !ruby/object:Gem::Version
|
47
42
|
version: '0'
|
48
43
|
- !ruby/object:Gem::Dependency
|
49
44
|
name: cucumber-rails
|
50
45
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
46
|
requirements:
|
53
|
-
- -
|
47
|
+
- - '>='
|
54
48
|
- !ruby/object:Gem::Version
|
55
49
|
version: '0'
|
56
50
|
type: :development
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
53
|
requirements:
|
61
|
-
- -
|
54
|
+
- - '>='
|
62
55
|
- !ruby/object:Gem::Version
|
63
56
|
version: '0'
|
64
57
|
- !ruby/object:Gem::Dependency
|
65
58
|
name: database_cleaner
|
66
59
|
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
60
|
requirements:
|
69
|
-
- -
|
61
|
+
- - '>='
|
70
62
|
- !ruby/object:Gem::Version
|
71
63
|
version: '0'
|
72
64
|
type: :development
|
73
65
|
prerelease: false
|
74
66
|
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
67
|
requirements:
|
77
|
-
- -
|
68
|
+
- - '>='
|
78
69
|
- !ruby/object:Gem::Version
|
79
70
|
version: '0'
|
80
71
|
- !ruby/object:Gem::Dependency
|
81
72
|
name: guard
|
82
73
|
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
74
|
requirements:
|
85
|
-
- -
|
75
|
+
- - '>='
|
86
76
|
- !ruby/object:Gem::Version
|
87
77
|
version: '0'
|
88
78
|
type: :development
|
89
79
|
prerelease: false
|
90
80
|
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
81
|
requirements:
|
93
|
-
- -
|
82
|
+
- - '>='
|
94
83
|
- !ruby/object:Gem::Version
|
95
84
|
version: '0'
|
96
85
|
- !ruby/object:Gem::Dependency
|
97
86
|
name: guard-cucumber
|
98
87
|
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
88
|
requirements:
|
101
|
-
- -
|
89
|
+
- - '>='
|
102
90
|
- !ruby/object:Gem::Version
|
103
91
|
version: '0'
|
104
92
|
type: :development
|
105
93
|
prerelease: false
|
106
94
|
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
95
|
requirements:
|
109
|
-
- -
|
96
|
+
- - '>='
|
110
97
|
- !ruby/object:Gem::Version
|
111
98
|
version: '0'
|
112
99
|
- !ruby/object:Gem::Dependency
|
113
100
|
name: launchy
|
114
101
|
requirement: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
102
|
requirements:
|
117
|
-
- -
|
103
|
+
- - '>='
|
118
104
|
- !ruby/object:Gem::Version
|
119
105
|
version: '0'
|
120
106
|
type: :development
|
121
107
|
prerelease: false
|
122
108
|
version_requirements: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
109
|
requirements:
|
125
|
-
- -
|
110
|
+
- - '>='
|
126
111
|
- !ruby/object:Gem::Version
|
127
112
|
version: '0'
|
128
113
|
description: Allow staff users to pretend to be your customers; to impersonate their
|
@@ -132,243 +117,298 @@ executables: []
|
|
132
117
|
extensions: []
|
133
118
|
extra_rdoc_files: []
|
134
119
|
files:
|
135
|
-
- app/
|
120
|
+
- app/views/layouts/user_impersonate/application.html.erb
|
121
|
+
- app/views/user_impersonate/_header.html.erb
|
122
|
+
- app/views/user_impersonate/impersonate/index.html.erb
|
136
123
|
- app/assets/javascripts/user_impersonate/impersonate.js
|
137
|
-
- app/assets/
|
124
|
+
- app/assets/javascripts/user_impersonate/application.js
|
138
125
|
- app/assets/stylesheets/user_impersonate/impersonate.css
|
139
|
-
- app/
|
140
|
-
- app/views/user_impersonate/_header.html.erb
|
141
|
-
- app/views/layouts/user_impersonate/application.html.erb
|
126
|
+
- app/assets/stylesheets/user_impersonate/application.css
|
142
127
|
- app/controllers/user_impersonate/application_controller.rb
|
143
128
|
- app/controllers/user_impersonate/impersonate_controller.rb
|
144
129
|
- app/helpers/user_impersonate/application_helper.rb
|
145
|
-
- config/routes.rb
|
146
130
|
- config/cucumber.yml
|
147
|
-
-
|
148
|
-
- lib/tasks/user_impersonate_tasks.rake
|
149
|
-
- lib/user_impersonate/devise_helpers.rb
|
131
|
+
- config/routes.rb
|
150
132
|
- lib/user_impersonate/version.rb
|
133
|
+
- lib/user_impersonate/devise_helpers.rb
|
151
134
|
- lib/user_impersonate/engine.rb
|
152
|
-
- lib/
|
153
|
-
- lib/generators/user_impersonate/templates/app/views/user_impersonate/_header.html.erb
|
135
|
+
- lib/user_impersonate.rb
|
154
136
|
- lib/generators/user_impersonate/templates/config/initializers/user_impersonate.rb
|
137
|
+
- lib/generators/user_impersonate/templates/app/views/user_impersonate/_header.html.erb
|
155
138
|
- lib/generators/user_impersonate/USAGE
|
139
|
+
- lib/generators/user_impersonate/user_impersonate_generator.rb
|
140
|
+
- lib/tasks/user_impersonate_tasks.rake
|
156
141
|
- MIT-LICENSE
|
157
142
|
- Rakefile
|
158
143
|
- README.md
|
159
|
-
- test/
|
160
|
-
- test/
|
161
|
-
- test/dummy-rails4/
|
162
|
-
- test/dummy-rails4/
|
163
|
-
- test/dummy-rails4/
|
164
|
-
- test/dummy-rails4/
|
165
|
-
- test/dummy-rails4/
|
166
|
-
- test/dummy-rails4/
|
167
|
-
- test/dummy-rails4/app/views/home/index.html.erb
|
168
|
-
- test/dummy-rails4/app/views/user_impersonate/_header.html.erb
|
169
|
-
- test/dummy-rails4/app/views/layouts/application.html.erb
|
170
|
-
- test/dummy-rails4/app/controllers/home_controller.rb
|
171
|
-
- test/dummy-rails4/app/controllers/application_controller.rb
|
172
|
-
- test/dummy-rails4/app/helpers/application_helper.rb
|
173
|
-
- test/dummy-rails4/app/helpers/home_helper.rb
|
174
|
-
- test/dummy-rails4/app/models/user.rb
|
144
|
+
- test/test_helper.rb
|
145
|
+
- test/test_utils.rb
|
146
|
+
- test/dummy-rails4/public/500.html
|
147
|
+
- test/dummy-rails4/public/404.html
|
148
|
+
- test/dummy-rails4/public/422.html
|
149
|
+
- test/dummy-rails4/public/favicon.ico
|
150
|
+
- test/dummy-rails4/lib/tasks/cucumber.rake
|
151
|
+
- test/dummy-rails4/README.rdoc
|
175
152
|
- test/dummy-rails4/script/rails
|
176
|
-
- test/dummy-rails4/
|
177
|
-
- test/dummy-rails4/
|
178
|
-
- test/dummy-rails4/
|
179
|
-
- test/dummy-rails4/
|
180
|
-
- test/dummy-rails4/
|
181
|
-
- test/dummy-rails4/
|
182
|
-
- test/dummy-rails4/
|
183
|
-
- test/dummy-rails4/
|
184
|
-
- test/dummy-rails4/
|
185
|
-
- test/dummy-rails4/
|
153
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1
|
154
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/8483b329d12e7e986bc5a2204bbcb4f8
|
155
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6
|
156
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e
|
157
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d
|
158
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
159
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e
|
160
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/70f1b4a1d50faffb0516da04ecf73bd0
|
161
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683
|
162
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/8ff157af159f38d424ce1367e29760a2
|
163
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/bbbc0acfefa636c66069f61f74e4f175
|
164
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
165
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/2625847957ecb8614efc9b58b07cabdf
|
166
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073
|
167
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
168
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
169
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
170
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5
|
171
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
172
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/c87b21c4aa04f8dcc3ae32da29c99d97
|
173
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199
|
174
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/0cc1c92437f1c4975bb5abbbd424a275
|
175
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0
|
176
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c
|
186
177
|
- test/dummy-rails4/config/locales/en.yml
|
187
178
|
- test/dummy-rails4/config/locales/devise.en.yml
|
179
|
+
- test/dummy-rails4/config/environment.rb
|
188
180
|
- test/dummy-rails4/config/environments/development.rb
|
189
181
|
- test/dummy-rails4/config/environments/production.rb
|
190
182
|
- test/dummy-rails4/config/environments/test.rb
|
183
|
+
- test/dummy-rails4/config/routes.rb
|
184
|
+
- test/dummy-rails4/config/initializers/user_impersonate.rb
|
185
|
+
- test/dummy-rails4/config/initializers/wrap_parameters.rb
|
186
|
+
- test/dummy-rails4/config/initializers/mime_types.rb
|
187
|
+
- test/dummy-rails4/config/initializers/secret_token.rb
|
188
|
+
- test/dummy-rails4/config/initializers/session_store.rb
|
189
|
+
- test/dummy-rails4/config/initializers/devise.rb
|
190
|
+
- test/dummy-rails4/config/initializers/backtrace_silencers.rb
|
191
|
+
- test/dummy-rails4/config/database.yml
|
191
192
|
- test/dummy-rails4/config/boot.rb
|
192
|
-
- test/dummy-rails4/config/
|
193
|
+
- test/dummy-rails4/config/application.rb
|
194
|
+
- test/dummy-rails4/app/views/layouts/application.html.erb
|
195
|
+
- test/dummy-rails4/app/views/user_impersonate/_header.html.erb
|
196
|
+
- test/dummy-rails4/app/views/home/index.html.erb
|
197
|
+
- test/dummy-rails4/app/assets/javascripts/application.js
|
198
|
+
- test/dummy-rails4/app/assets/javascripts/home.js
|
199
|
+
- test/dummy-rails4/app/assets/stylesheets/home.css
|
200
|
+
- test/dummy-rails4/app/assets/stylesheets/application.css
|
201
|
+
- test/dummy-rails4/app/controllers/application_controller.rb
|
202
|
+
- test/dummy-rails4/app/controllers/home_controller.rb
|
203
|
+
- test/dummy-rails4/app/models/user.rb
|
204
|
+
- test/dummy-rails4/app/helpers/application_helper.rb
|
205
|
+
- test/dummy-rails4/app/helpers/home_helper.rb
|
206
|
+
- test/dummy-rails4/test/unit/user_test.rb
|
207
|
+
- test/dummy-rails4/test/unit/helpers/home_helper_test.rb
|
208
|
+
- test/dummy-rails4/test/fixtures/users.yml
|
209
|
+
- test/dummy-rails4/config.ru
|
210
|
+
- test/dummy-rails4/log/development.log
|
211
|
+
- test/dummy-rails4/log/test.log
|
193
212
|
- test/dummy-rails4/Rakefile
|
194
|
-
- test/dummy-rails4/
|
195
|
-
- test/dummy-rails4/lib/tasks/cucumber.rake
|
196
|
-
- test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
|
197
|
-
- test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
213
|
+
- test/dummy-rails4/db/development.sqlite3
|
198
214
|
- test/dummy-rails4/db/schema.rb
|
199
|
-
- test/dummy-rails4/
|
200
|
-
- test/dummy-rails4/
|
201
|
-
- test/dummy-rails4/
|
202
|
-
- test/
|
203
|
-
- test/test_utils.rb
|
204
|
-
- test/unit/helpers/user_impersonate/devise_helpers_test.rb
|
215
|
+
- test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
216
|
+
- test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
|
217
|
+
- test/dummy-rails4/db/test.sqlite3
|
218
|
+
- test/functional/impersonate_controller_test.rb
|
205
219
|
- test/unit/helpers/user_impersonate/impersonate_helper_test.rb
|
206
|
-
- test/
|
207
|
-
- test/
|
208
|
-
- test/dummy-rails3/
|
209
|
-
- test/dummy-rails3/
|
210
|
-
- test/dummy-rails3/
|
211
|
-
- test/dummy-rails3/
|
212
|
-
- test/dummy-rails3/
|
213
|
-
- test/dummy-rails3/app/assets/javascripts/home.js
|
214
|
-
- test/dummy-rails3/app/assets/stylesheets/home.css
|
215
|
-
- test/dummy-rails3/app/assets/stylesheets/application.css
|
216
|
-
- test/dummy-rails3/app/views/home/index.html.erb
|
217
|
-
- test/dummy-rails3/app/views/user_impersonate/_header.html.erb
|
218
|
-
- test/dummy-rails3/app/views/layouts/application.html.erb
|
219
|
-
- test/dummy-rails3/app/controllers/home_controller.rb
|
220
|
-
- test/dummy-rails3/app/controllers/application_controller.rb
|
221
|
-
- test/dummy-rails3/app/helpers/application_helper.rb
|
222
|
-
- test/dummy-rails3/app/helpers/home_helper.rb
|
223
|
-
- test/dummy-rails3/app/models/user.rb
|
220
|
+
- test/unit/helpers/user_impersonate/devise_helpers_test.rb
|
221
|
+
- test/dummy-rails3/public/500.html
|
222
|
+
- test/dummy-rails3/public/404.html
|
223
|
+
- test/dummy-rails3/public/422.html
|
224
|
+
- test/dummy-rails3/public/favicon.ico
|
225
|
+
- test/dummy-rails3/lib/tasks/cucumber.rake
|
226
|
+
- test/dummy-rails3/README.rdoc
|
224
227
|
- test/dummy-rails3/script/rails
|
225
|
-
- test/dummy-rails3/config/database.yml
|
226
|
-
- test/dummy-rails3/config/initializers/mime_types.rb
|
227
|
-
- test/dummy-rails3/config/initializers/devise.rb
|
228
|
-
- test/dummy-rails3/config/initializers/user_impersonate.rb
|
229
|
-
- test/dummy-rails3/config/initializers/secret_token.rb
|
230
|
-
- test/dummy-rails3/config/initializers/session_store.rb
|
231
|
-
- test/dummy-rails3/config/initializers/backtrace_silencers.rb
|
232
|
-
- test/dummy-rails3/config/initializers/wrap_parameters.rb
|
233
|
-
- test/dummy-rails3/config/routes.rb
|
234
|
-
- test/dummy-rails3/config/application.rb
|
235
228
|
- test/dummy-rails3/config/locales/en.yml
|
236
229
|
- test/dummy-rails3/config/locales/devise.en.yml
|
230
|
+
- test/dummy-rails3/config/environment.rb
|
237
231
|
- test/dummy-rails3/config/environments/development.rb
|
238
232
|
- test/dummy-rails3/config/environments/production.rb
|
239
233
|
- test/dummy-rails3/config/environments/test.rb
|
234
|
+
- test/dummy-rails3/config/routes.rb
|
235
|
+
- test/dummy-rails3/config/initializers/user_impersonate.rb
|
236
|
+
- test/dummy-rails3/config/initializers/wrap_parameters.rb
|
237
|
+
- test/dummy-rails3/config/initializers/mime_types.rb
|
238
|
+
- test/dummy-rails3/config/initializers/secret_token.rb
|
239
|
+
- test/dummy-rails3/config/initializers/session_store.rb
|
240
|
+
- test/dummy-rails3/config/initializers/devise.rb
|
241
|
+
- test/dummy-rails3/config/initializers/backtrace_silencers.rb
|
242
|
+
- test/dummy-rails3/config/database.yml
|
240
243
|
- test/dummy-rails3/config/boot.rb
|
241
|
-
- test/dummy-rails3/config/
|
244
|
+
- test/dummy-rails3/config/application.rb
|
245
|
+
- test/dummy-rails3/app/views/layouts/application.html.erb
|
246
|
+
- test/dummy-rails3/app/views/user_impersonate/_header.html.erb
|
247
|
+
- test/dummy-rails3/app/views/home/index.html.erb
|
248
|
+
- test/dummy-rails3/app/assets/javascripts/application.js
|
249
|
+
- test/dummy-rails3/app/assets/javascripts/home.js
|
250
|
+
- test/dummy-rails3/app/assets/stylesheets/home.css
|
251
|
+
- test/dummy-rails3/app/assets/stylesheets/application.css
|
252
|
+
- test/dummy-rails3/app/controllers/application_controller.rb
|
253
|
+
- test/dummy-rails3/app/controllers/home_controller.rb
|
254
|
+
- test/dummy-rails3/app/models/user.rb
|
255
|
+
- test/dummy-rails3/app/helpers/application_helper.rb
|
256
|
+
- test/dummy-rails3/app/helpers/home_helper.rb
|
257
|
+
- test/dummy-rails3/test/unit/user_test.rb
|
258
|
+
- test/dummy-rails3/test/unit/helpers/home_helper_test.rb
|
259
|
+
- test/dummy-rails3/test/fixtures/users.yml
|
260
|
+
- test/dummy-rails3/config.ru
|
242
261
|
- test/dummy-rails3/Rakefile
|
243
|
-
- test/dummy-rails3/README.rdoc
|
244
|
-
- test/dummy-rails3/lib/tasks/cucumber.rake
|
245
|
-
- test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
|
246
|
-
- test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
247
262
|
- test/dummy-rails3/db/schema.rb
|
248
|
-
- test/dummy-rails3/
|
249
|
-
- test/dummy-rails3/
|
250
|
-
- test/
|
251
|
-
- test/dummy-rails3/public/500.html
|
263
|
+
- test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
264
|
+
- test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
|
265
|
+
- test/integration/navigation_test.rb
|
252
266
|
- test/user_impersonate_test.rb
|
253
|
-
- test/functional/impersonate_controller_test.rb
|
254
267
|
homepage: https://github.com/rcook/user_impersonate2
|
255
268
|
licenses:
|
256
269
|
- MIT
|
270
|
+
metadata: {}
|
257
271
|
post_install_message:
|
258
272
|
rdoc_options: []
|
259
273
|
require_paths:
|
260
274
|
- lib
|
261
275
|
required_ruby_version: !ruby/object:Gem::Requirement
|
262
|
-
none: false
|
263
276
|
requirements:
|
264
|
-
- -
|
277
|
+
- - '>='
|
265
278
|
- !ruby/object:Gem::Version
|
266
279
|
version: '0'
|
267
280
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
268
|
-
none: false
|
269
281
|
requirements:
|
270
|
-
- -
|
282
|
+
- - '>='
|
271
283
|
- !ruby/object:Gem::Version
|
272
284
|
version: '0'
|
273
285
|
requirements: []
|
274
286
|
rubyforge_project:
|
275
|
-
rubygems_version:
|
287
|
+
rubygems_version: 2.0.14
|
276
288
|
signing_key:
|
277
|
-
specification_version:
|
289
|
+
specification_version: 4
|
278
290
|
summary: Allow staff users to pretend to be your customers
|
279
291
|
test_files:
|
280
|
-
- test/
|
281
|
-
- test/
|
282
|
-
- test/dummy-rails4/
|
283
|
-
- test/dummy-rails4/
|
284
|
-
- test/dummy-rails4/
|
285
|
-
- test/dummy-rails4/
|
286
|
-
- test/dummy-rails4/
|
287
|
-
- test/dummy-rails4/
|
288
|
-
- test/dummy-rails4/app/views/home/index.html.erb
|
289
|
-
- test/dummy-rails4/app/views/user_impersonate/_header.html.erb
|
290
|
-
- test/dummy-rails4/app/views/layouts/application.html.erb
|
291
|
-
- test/dummy-rails4/app/controllers/home_controller.rb
|
292
|
-
- test/dummy-rails4/app/controllers/application_controller.rb
|
293
|
-
- test/dummy-rails4/app/helpers/application_helper.rb
|
294
|
-
- test/dummy-rails4/app/helpers/home_helper.rb
|
295
|
-
- test/dummy-rails4/app/models/user.rb
|
292
|
+
- test/test_helper.rb
|
293
|
+
- test/test_utils.rb
|
294
|
+
- test/dummy-rails4/public/500.html
|
295
|
+
- test/dummy-rails4/public/404.html
|
296
|
+
- test/dummy-rails4/public/422.html
|
297
|
+
- test/dummy-rails4/public/favicon.ico
|
298
|
+
- test/dummy-rails4/lib/tasks/cucumber.rake
|
299
|
+
- test/dummy-rails4/README.rdoc
|
296
300
|
- test/dummy-rails4/script/rails
|
297
|
-
- test/dummy-rails4/
|
298
|
-
- test/dummy-rails4/
|
299
|
-
- test/dummy-rails4/
|
300
|
-
- test/dummy-rails4/
|
301
|
-
- test/dummy-rails4/
|
302
|
-
- test/dummy-rails4/
|
303
|
-
- test/dummy-rails4/
|
304
|
-
- test/dummy-rails4/
|
305
|
-
- test/dummy-rails4/
|
306
|
-
- test/dummy-rails4/
|
301
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1
|
302
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/8483b329d12e7e986bc5a2204bbcb4f8
|
303
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6
|
304
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e
|
305
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d
|
306
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
307
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e
|
308
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/70f1b4a1d50faffb0516da04ecf73bd0
|
309
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683
|
310
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/8ff157af159f38d424ce1367e29760a2
|
311
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/bbbc0acfefa636c66069f61f74e4f175
|
312
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
313
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/2625847957ecb8614efc9b58b07cabdf
|
314
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073
|
315
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
316
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
317
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
318
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5
|
319
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
320
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/c87b21c4aa04f8dcc3ae32da29c99d97
|
321
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199
|
322
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/0cc1c92437f1c4975bb5abbbd424a275
|
323
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0
|
324
|
+
- test/dummy-rails4/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c
|
307
325
|
- test/dummy-rails4/config/locales/en.yml
|
308
326
|
- test/dummy-rails4/config/locales/devise.en.yml
|
327
|
+
- test/dummy-rails4/config/environment.rb
|
309
328
|
- test/dummy-rails4/config/environments/development.rb
|
310
329
|
- test/dummy-rails4/config/environments/production.rb
|
311
330
|
- test/dummy-rails4/config/environments/test.rb
|
331
|
+
- test/dummy-rails4/config/routes.rb
|
332
|
+
- test/dummy-rails4/config/initializers/user_impersonate.rb
|
333
|
+
- test/dummy-rails4/config/initializers/wrap_parameters.rb
|
334
|
+
- test/dummy-rails4/config/initializers/mime_types.rb
|
335
|
+
- test/dummy-rails4/config/initializers/secret_token.rb
|
336
|
+
- test/dummy-rails4/config/initializers/session_store.rb
|
337
|
+
- test/dummy-rails4/config/initializers/devise.rb
|
338
|
+
- test/dummy-rails4/config/initializers/backtrace_silencers.rb
|
339
|
+
- test/dummy-rails4/config/database.yml
|
312
340
|
- test/dummy-rails4/config/boot.rb
|
313
|
-
- test/dummy-rails4/config/
|
341
|
+
- test/dummy-rails4/config/application.rb
|
342
|
+
- test/dummy-rails4/app/views/layouts/application.html.erb
|
343
|
+
- test/dummy-rails4/app/views/user_impersonate/_header.html.erb
|
344
|
+
- test/dummy-rails4/app/views/home/index.html.erb
|
345
|
+
- test/dummy-rails4/app/assets/javascripts/application.js
|
346
|
+
- test/dummy-rails4/app/assets/javascripts/home.js
|
347
|
+
- test/dummy-rails4/app/assets/stylesheets/home.css
|
348
|
+
- test/dummy-rails4/app/assets/stylesheets/application.css
|
349
|
+
- test/dummy-rails4/app/controllers/application_controller.rb
|
350
|
+
- test/dummy-rails4/app/controllers/home_controller.rb
|
351
|
+
- test/dummy-rails4/app/models/user.rb
|
352
|
+
- test/dummy-rails4/app/helpers/application_helper.rb
|
353
|
+
- test/dummy-rails4/app/helpers/home_helper.rb
|
354
|
+
- test/dummy-rails4/test/unit/user_test.rb
|
355
|
+
- test/dummy-rails4/test/unit/helpers/home_helper_test.rb
|
356
|
+
- test/dummy-rails4/test/fixtures/users.yml
|
357
|
+
- test/dummy-rails4/config.ru
|
358
|
+
- test/dummy-rails4/log/development.log
|
359
|
+
- test/dummy-rails4/log/test.log
|
314
360
|
- test/dummy-rails4/Rakefile
|
315
|
-
- test/dummy-rails4/
|
316
|
-
- test/dummy-rails4/lib/tasks/cucumber.rake
|
317
|
-
- test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
|
318
|
-
- test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
361
|
+
- test/dummy-rails4/db/development.sqlite3
|
319
362
|
- test/dummy-rails4/db/schema.rb
|
320
|
-
- test/dummy-rails4/
|
321
|
-
- test/dummy-rails4/
|
322
|
-
- test/dummy-rails4/
|
323
|
-
- test/
|
324
|
-
- test/test_utils.rb
|
325
|
-
- test/unit/helpers/user_impersonate/devise_helpers_test.rb
|
363
|
+
- test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
364
|
+
- test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb
|
365
|
+
- test/dummy-rails4/db/test.sqlite3
|
366
|
+
- test/functional/impersonate_controller_test.rb
|
326
367
|
- test/unit/helpers/user_impersonate/impersonate_helper_test.rb
|
327
|
-
- test/
|
328
|
-
- test/
|
329
|
-
- test/dummy-rails3/
|
330
|
-
- test/dummy-rails3/
|
331
|
-
- test/dummy-rails3/
|
332
|
-
- test/dummy-rails3/
|
333
|
-
- test/dummy-rails3/
|
334
|
-
- test/dummy-rails3/app/assets/javascripts/home.js
|
335
|
-
- test/dummy-rails3/app/assets/stylesheets/home.css
|
336
|
-
- test/dummy-rails3/app/assets/stylesheets/application.css
|
337
|
-
- test/dummy-rails3/app/views/home/index.html.erb
|
338
|
-
- test/dummy-rails3/app/views/user_impersonate/_header.html.erb
|
339
|
-
- test/dummy-rails3/app/views/layouts/application.html.erb
|
340
|
-
- test/dummy-rails3/app/controllers/home_controller.rb
|
341
|
-
- test/dummy-rails3/app/controllers/application_controller.rb
|
342
|
-
- test/dummy-rails3/app/helpers/application_helper.rb
|
343
|
-
- test/dummy-rails3/app/helpers/home_helper.rb
|
344
|
-
- test/dummy-rails3/app/models/user.rb
|
368
|
+
- test/unit/helpers/user_impersonate/devise_helpers_test.rb
|
369
|
+
- test/dummy-rails3/public/500.html
|
370
|
+
- test/dummy-rails3/public/404.html
|
371
|
+
- test/dummy-rails3/public/422.html
|
372
|
+
- test/dummy-rails3/public/favicon.ico
|
373
|
+
- test/dummy-rails3/lib/tasks/cucumber.rake
|
374
|
+
- test/dummy-rails3/README.rdoc
|
345
375
|
- test/dummy-rails3/script/rails
|
346
|
-
- test/dummy-rails3/config/database.yml
|
347
|
-
- test/dummy-rails3/config/initializers/mime_types.rb
|
348
|
-
- test/dummy-rails3/config/initializers/devise.rb
|
349
|
-
- test/dummy-rails3/config/initializers/user_impersonate.rb
|
350
|
-
- test/dummy-rails3/config/initializers/secret_token.rb
|
351
|
-
- test/dummy-rails3/config/initializers/session_store.rb
|
352
|
-
- test/dummy-rails3/config/initializers/backtrace_silencers.rb
|
353
|
-
- test/dummy-rails3/config/initializers/wrap_parameters.rb
|
354
|
-
- test/dummy-rails3/config/routes.rb
|
355
|
-
- test/dummy-rails3/config/application.rb
|
356
376
|
- test/dummy-rails3/config/locales/en.yml
|
357
377
|
- test/dummy-rails3/config/locales/devise.en.yml
|
378
|
+
- test/dummy-rails3/config/environment.rb
|
358
379
|
- test/dummy-rails3/config/environments/development.rb
|
359
380
|
- test/dummy-rails3/config/environments/production.rb
|
360
381
|
- test/dummy-rails3/config/environments/test.rb
|
382
|
+
- test/dummy-rails3/config/routes.rb
|
383
|
+
- test/dummy-rails3/config/initializers/user_impersonate.rb
|
384
|
+
- test/dummy-rails3/config/initializers/wrap_parameters.rb
|
385
|
+
- test/dummy-rails3/config/initializers/mime_types.rb
|
386
|
+
- test/dummy-rails3/config/initializers/secret_token.rb
|
387
|
+
- test/dummy-rails3/config/initializers/session_store.rb
|
388
|
+
- test/dummy-rails3/config/initializers/devise.rb
|
389
|
+
- test/dummy-rails3/config/initializers/backtrace_silencers.rb
|
390
|
+
- test/dummy-rails3/config/database.yml
|
361
391
|
- test/dummy-rails3/config/boot.rb
|
362
|
-
- test/dummy-rails3/config/
|
392
|
+
- test/dummy-rails3/config/application.rb
|
393
|
+
- test/dummy-rails3/app/views/layouts/application.html.erb
|
394
|
+
- test/dummy-rails3/app/views/user_impersonate/_header.html.erb
|
395
|
+
- test/dummy-rails3/app/views/home/index.html.erb
|
396
|
+
- test/dummy-rails3/app/assets/javascripts/application.js
|
397
|
+
- test/dummy-rails3/app/assets/javascripts/home.js
|
398
|
+
- test/dummy-rails3/app/assets/stylesheets/home.css
|
399
|
+
- test/dummy-rails3/app/assets/stylesheets/application.css
|
400
|
+
- test/dummy-rails3/app/controllers/application_controller.rb
|
401
|
+
- test/dummy-rails3/app/controllers/home_controller.rb
|
402
|
+
- test/dummy-rails3/app/models/user.rb
|
403
|
+
- test/dummy-rails3/app/helpers/application_helper.rb
|
404
|
+
- test/dummy-rails3/app/helpers/home_helper.rb
|
405
|
+
- test/dummy-rails3/test/unit/user_test.rb
|
406
|
+
- test/dummy-rails3/test/unit/helpers/home_helper_test.rb
|
407
|
+
- test/dummy-rails3/test/fixtures/users.yml
|
408
|
+
- test/dummy-rails3/config.ru
|
363
409
|
- test/dummy-rails3/Rakefile
|
364
|
-
- test/dummy-rails3/README.rdoc
|
365
|
-
- test/dummy-rails3/lib/tasks/cucumber.rake
|
366
|
-
- test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
|
367
|
-
- test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
368
410
|
- test/dummy-rails3/db/schema.rb
|
369
|
-
- test/dummy-rails3/
|
370
|
-
- test/dummy-rails3/
|
371
|
-
- test/
|
372
|
-
- test/dummy-rails3/public/500.html
|
411
|
+
- test/dummy-rails3/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
412
|
+
- test/dummy-rails3/db/migrate/20120914174453_devise_create_users.rb
|
413
|
+
- test/integration/navigation_test.rb
|
373
414
|
- test/user_impersonate_test.rb
|
374
|
-
- test/functional/impersonate_controller_test.rb
|