user_impersonate2 0.9.0
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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +231 -0
- data/Rakefile +41 -0
- data/app/assets/javascripts/user_impersonate/application.js +15 -0
- data/app/assets/javascripts/user_impersonate/impersonate.js +2 -0
- data/app/assets/stylesheets/user_impersonate/application.css +13 -0
- data/app/assets/stylesheets/user_impersonate/impersonate.css +4 -0
- data/app/controllers/user_impersonate/application_controller.rb +4 -0
- data/app/controllers/user_impersonate/impersonate_controller.rb +146 -0
- data/app/helpers/user_impersonate/application_helper.rb +11 -0
- data/app/views/layouts/user_impersonate/application.html.erb +14 -0
- data/app/views/user_impersonate/_header.html.erb +60 -0
- data/app/views/user_impersonate/impersonate/index.html.erb +30 -0
- data/config/cucumber.yml +8 -0
- data/config/routes.rb +6 -0
- data/lib/generators/user_impersonate/USAGE +6 -0
- data/lib/generators/user_impersonate/templates/app/views/user_impersonate/_header.html.erb +60 -0
- data/lib/generators/user_impersonate/templates/config/initializers/user_impersonate.rb +15 -0
- data/lib/generators/user_impersonate/user_impersonate_generator.rb +15 -0
- data/lib/tasks/user_impersonate_tasks.rake +4 -0
- data/lib/user_impersonate.rb +5 -0
- data/lib/user_impersonate/devise_helpers.rb +31 -0
- data/lib/user_impersonate/engine.rb +17 -0
- data/lib/user_impersonate/version.rb +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/home.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +16 -0
- data/test/dummy/app/assets/stylesheets/home.css +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/home_controller.rb +4 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/home_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +12 -0
- data/test/dummy/app/views/home/index.html.erb +11 -0
- data/test/dummy/app/views/layouts/application.html.erb +22 -0
- data/test/dummy/app/views/user_impersonate/_header.html.erb +65 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +60 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +40 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/devise.rb +232 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/devise.en.yml +58 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +8 -0
- data/test/dummy/db/migrate/20120914174453_devise_create_users.rb +48 -0
- data/test/dummy/db/migrate/20120914184123_add_staff_flag_to_users.rb +5 -0
- data/test/dummy/db/schema.rb +36 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/lib/tasks/cucumber.rake +65 -0
- data/test/dummy/log/test.log +15 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/users.yml +14 -0
- data/test/dummy/test/unit/helpers/home_helper_test.rb +4 -0
- data/test/dummy/test/unit/user_test.rb +7 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/helpers/user_impersonate/impersonate_helper_test.rb +6 -0
- data/test/user_impersonate_test.rb +7 -0
- metadata +268 -0
File without changes
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
2
|
+
# It is recommended to regenerate this file in the future when you upgrade to a
|
3
|
+
# newer version of cucumber-rails. Consider adding your own code to a new file
|
4
|
+
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
5
|
+
# files.
|
6
|
+
|
7
|
+
|
8
|
+
unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
|
9
|
+
|
10
|
+
vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
|
11
|
+
$LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
|
12
|
+
|
13
|
+
begin
|
14
|
+
require 'cucumber/rake/task'
|
15
|
+
|
16
|
+
namespace :cucumber do
|
17
|
+
Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t|
|
18
|
+
t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
|
19
|
+
t.fork = true # You may get faster startup if you set this to false
|
20
|
+
t.profile = 'default'
|
21
|
+
end
|
22
|
+
|
23
|
+
Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
|
24
|
+
t.binary = vendored_cucumber_bin
|
25
|
+
t.fork = true # You may get faster startup if you set this to false
|
26
|
+
t.profile = 'wip'
|
27
|
+
end
|
28
|
+
|
29
|
+
Cucumber::Rake::Task.new({:rerun => 'db:test:prepare'}, 'Record failing features and run only them if any exist') do |t|
|
30
|
+
t.binary = vendored_cucumber_bin
|
31
|
+
t.fork = true # You may get faster startup if you set this to false
|
32
|
+
t.profile = 'rerun'
|
33
|
+
end
|
34
|
+
|
35
|
+
desc 'Run all features'
|
36
|
+
task :all => [:ok, :wip]
|
37
|
+
|
38
|
+
task :statsetup do
|
39
|
+
require 'rails/code_statistics'
|
40
|
+
::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
|
41
|
+
::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
desc 'Alias for cucumber:ok'
|
45
|
+
task :cucumber => 'cucumber:ok'
|
46
|
+
|
47
|
+
task :default => :cucumber
|
48
|
+
|
49
|
+
task :features => :cucumber do
|
50
|
+
STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
|
51
|
+
end
|
52
|
+
|
53
|
+
# In case we don't have ActiveRecord, append a no-op task that we can depend upon.
|
54
|
+
task 'db:test:prepare' do
|
55
|
+
end
|
56
|
+
|
57
|
+
task :stats => 'cucumber:statsetup'
|
58
|
+
rescue LoadError
|
59
|
+
desc 'cucumber rake task not available (cucumber not installed)'
|
60
|
+
task :cucumber do
|
61
|
+
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
3
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
6
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7
|
+
Connecting to database specified by database.yml
|
8
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
9
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10
|
+
Connecting to database specified by database.yml
|
11
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13
|
+
Connecting to database specified by database.yml
|
14
|
+
[1m[36m (1.0ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# passwords are abc123
|
2
|
+
|
3
|
+
staff:
|
4
|
+
id: 1
|
5
|
+
name: Dr Nic Williams
|
6
|
+
email: drnicwilliams@gmail.com
|
7
|
+
staff: true
|
8
|
+
encrypted_password: $2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK
|
9
|
+
|
10
|
+
normal_user:
|
11
|
+
id: 2
|
12
|
+
name: Normal User
|
13
|
+
email: normaluser@gmail.com
|
14
|
+
encrypted_password: $2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,268 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: user_impersonate2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Richard Cook
|
8
|
+
- Dr Nic Williams
|
9
|
+
- Many people at Engine Yard
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-12-30 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - '>='
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 3.2.0
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: sqlite3
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: cucumber-rails
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: database_cleaner
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: guard
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: guard-cucumber
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: launchy
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
description: Allow staff users to pretend to be your customers; to impersonate their
|
114
|
+
account.
|
115
|
+
email: rcook@rcook.org
|
116
|
+
executables: []
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
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
|
123
|
+
- app/assets/javascripts/user_impersonate/impersonate.js
|
124
|
+
- app/assets/javascripts/user_impersonate/application.js
|
125
|
+
- app/assets/stylesheets/user_impersonate/impersonate.css
|
126
|
+
- app/assets/stylesheets/user_impersonate/application.css
|
127
|
+
- app/controllers/user_impersonate/application_controller.rb
|
128
|
+
- app/controllers/user_impersonate/impersonate_controller.rb
|
129
|
+
- app/helpers/user_impersonate/application_helper.rb
|
130
|
+
- config/cucumber.yml
|
131
|
+
- config/routes.rb
|
132
|
+
- lib/user_impersonate/version.rb
|
133
|
+
- lib/user_impersonate/devise_helpers.rb
|
134
|
+
- lib/user_impersonate/engine.rb
|
135
|
+
- lib/user_impersonate.rb
|
136
|
+
- lib/generators/user_impersonate/templates/config/initializers/user_impersonate.rb
|
137
|
+
- lib/generators/user_impersonate/templates/app/views/user_impersonate/_header.html.erb
|
138
|
+
- lib/generators/user_impersonate/USAGE
|
139
|
+
- lib/generators/user_impersonate/user_impersonate_generator.rb
|
140
|
+
- lib/tasks/user_impersonate_tasks.rake
|
141
|
+
- MIT-LICENSE
|
142
|
+
- Rakefile
|
143
|
+
- README.md
|
144
|
+
- test/test_helper.rb
|
145
|
+
- test/unit/helpers/user_impersonate/impersonate_helper_test.rb
|
146
|
+
- test/integration/navigation_test.rb
|
147
|
+
- test/dummy/public/500.html
|
148
|
+
- test/dummy/public/404.html
|
149
|
+
- test/dummy/public/422.html
|
150
|
+
- test/dummy/public/favicon.ico
|
151
|
+
- test/dummy/lib/tasks/cucumber.rake
|
152
|
+
- test/dummy/README.rdoc
|
153
|
+
- test/dummy/script/rails
|
154
|
+
- test/dummy/config/locales/en.yml
|
155
|
+
- test/dummy/config/locales/devise.en.yml
|
156
|
+
- test/dummy/config/environment.rb
|
157
|
+
- test/dummy/config/environments/development.rb
|
158
|
+
- test/dummy/config/environments/production.rb
|
159
|
+
- test/dummy/config/environments/test.rb
|
160
|
+
- test/dummy/config/routes.rb
|
161
|
+
- test/dummy/config/initializers/inflections.rb
|
162
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
163
|
+
- test/dummy/config/initializers/mime_types.rb
|
164
|
+
- test/dummy/config/initializers/secret_token.rb
|
165
|
+
- test/dummy/config/initializers/session_store.rb
|
166
|
+
- test/dummy/config/initializers/devise.rb
|
167
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
168
|
+
- test/dummy/config/database.yml
|
169
|
+
- test/dummy/config/boot.rb
|
170
|
+
- test/dummy/config/application.rb
|
171
|
+
- test/dummy/app/views/layouts/application.html.erb
|
172
|
+
- test/dummy/app/views/user_impersonate/_header.html.erb
|
173
|
+
- test/dummy/app/views/home/index.html.erb
|
174
|
+
- test/dummy/app/assets/javascripts/application.js
|
175
|
+
- test/dummy/app/assets/javascripts/home.js
|
176
|
+
- test/dummy/app/assets/stylesheets/home.css
|
177
|
+
- test/dummy/app/assets/stylesheets/application.css
|
178
|
+
- test/dummy/app/controllers/application_controller.rb
|
179
|
+
- test/dummy/app/controllers/home_controller.rb
|
180
|
+
- test/dummy/app/models/user.rb
|
181
|
+
- test/dummy/app/helpers/application_helper.rb
|
182
|
+
- test/dummy/app/helpers/home_helper.rb
|
183
|
+
- test/dummy/test/unit/user_test.rb
|
184
|
+
- test/dummy/test/unit/helpers/home_helper_test.rb
|
185
|
+
- test/dummy/test/fixtures/users.yml
|
186
|
+
- test/dummy/config.ru
|
187
|
+
- test/dummy/log/test.log
|
188
|
+
- test/dummy/Rakefile
|
189
|
+
- test/dummy/db/schema.rb
|
190
|
+
- test/dummy/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
191
|
+
- test/dummy/db/migrate/20120914174453_devise_create_users.rb
|
192
|
+
- test/dummy/db/test.sqlite3
|
193
|
+
- test/user_impersonate_test.rb
|
194
|
+
homepage: https://github.com/rcook/user_impersonate2
|
195
|
+
licenses:
|
196
|
+
- MIT
|
197
|
+
metadata: {}
|
198
|
+
post_install_message:
|
199
|
+
rdoc_options: []
|
200
|
+
require_paths:
|
201
|
+
- lib
|
202
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - '>='
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - '>='
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
212
|
+
requirements: []
|
213
|
+
rubyforge_project:
|
214
|
+
rubygems_version: 2.0.14
|
215
|
+
signing_key:
|
216
|
+
specification_version: 4
|
217
|
+
summary: Allow staff users to pretend to be your customers
|
218
|
+
test_files:
|
219
|
+
- test/test_helper.rb
|
220
|
+
- test/unit/helpers/user_impersonate/impersonate_helper_test.rb
|
221
|
+
- test/integration/navigation_test.rb
|
222
|
+
- test/dummy/public/500.html
|
223
|
+
- test/dummy/public/404.html
|
224
|
+
- test/dummy/public/422.html
|
225
|
+
- test/dummy/public/favicon.ico
|
226
|
+
- test/dummy/lib/tasks/cucumber.rake
|
227
|
+
- test/dummy/README.rdoc
|
228
|
+
- test/dummy/script/rails
|
229
|
+
- test/dummy/config/locales/en.yml
|
230
|
+
- test/dummy/config/locales/devise.en.yml
|
231
|
+
- test/dummy/config/environment.rb
|
232
|
+
- test/dummy/config/environments/development.rb
|
233
|
+
- test/dummy/config/environments/production.rb
|
234
|
+
- test/dummy/config/environments/test.rb
|
235
|
+
- test/dummy/config/routes.rb
|
236
|
+
- test/dummy/config/initializers/inflections.rb
|
237
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
238
|
+
- test/dummy/config/initializers/mime_types.rb
|
239
|
+
- test/dummy/config/initializers/secret_token.rb
|
240
|
+
- test/dummy/config/initializers/session_store.rb
|
241
|
+
- test/dummy/config/initializers/devise.rb
|
242
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
243
|
+
- test/dummy/config/database.yml
|
244
|
+
- test/dummy/config/boot.rb
|
245
|
+
- test/dummy/config/application.rb
|
246
|
+
- test/dummy/app/views/layouts/application.html.erb
|
247
|
+
- test/dummy/app/views/user_impersonate/_header.html.erb
|
248
|
+
- test/dummy/app/views/home/index.html.erb
|
249
|
+
- test/dummy/app/assets/javascripts/application.js
|
250
|
+
- test/dummy/app/assets/javascripts/home.js
|
251
|
+
- test/dummy/app/assets/stylesheets/home.css
|
252
|
+
- test/dummy/app/assets/stylesheets/application.css
|
253
|
+
- test/dummy/app/controllers/application_controller.rb
|
254
|
+
- test/dummy/app/controllers/home_controller.rb
|
255
|
+
- test/dummy/app/models/user.rb
|
256
|
+
- test/dummy/app/helpers/application_helper.rb
|
257
|
+
- test/dummy/app/helpers/home_helper.rb
|
258
|
+
- test/dummy/test/unit/user_test.rb
|
259
|
+
- test/dummy/test/unit/helpers/home_helper_test.rb
|
260
|
+
- test/dummy/test/fixtures/users.yml
|
261
|
+
- test/dummy/config.ru
|
262
|
+
- test/dummy/log/test.log
|
263
|
+
- test/dummy/Rakefile
|
264
|
+
- test/dummy/db/schema.rb
|
265
|
+
- test/dummy/db/migrate/20120914184123_add_staff_flag_to_users.rb
|
266
|
+
- test/dummy/db/migrate/20120914174453_devise_create_users.rb
|
267
|
+
- test/dummy/db/test.sqlite3
|
268
|
+
- test/user_impersonate_test.rb
|