session_logger 0.0.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +94 -1
- data/Rakefile +0 -2
- data/lib/generators/session_logger/initializer_generator.rb +12 -0
- data/lib/generators/session_logger/templates/session_logger.rb +15 -0
- data/lib/session_logger/session_logging.rb +70 -0
- data/lib/session_logger/version.rb +1 -1
- data/lib/session_logger.rb +28 -1
- data/test/dummy/app/assets/javascripts/users.js +2 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/assets/stylesheets/users.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +1 -0
- data/test/dummy/app/controllers/users_controller.rb +83 -0
- data/test/dummy/app/helpers/users_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +2 -0
- data/test/dummy/app/views/users/_form.html.erb +29 -0
- data/test/dummy/app/views/users/edit.html.erb +6 -0
- data/test/dummy/app/views/users/index.html.erb +27 -0
- data/test/dummy/app/views/users/new.html.erb +5 -0
- data/test/dummy/app/views/users/show.html.erb +20 -0
- data/test/dummy/config/database_example.yml +25 -0
- data/test/dummy/config/initializers/secret_token.rb +1 -1
- data/test/dummy/config/initializers/session_logger.rb +17 -0
- data/test/dummy/config/routes.rb +58 -2
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20111104001311_create_users.rb +11 -0
- data/test/dummy/db/migrate/20111105072946_add_sl_campaign_to_user.rb +5 -0
- data/test/dummy/db/schema.rb +25 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +7769 -0
- data/test/dummy/log/test.log +1919 -0
- data/test/dummy/test/fixtures/users.yml +11 -0
- data/test/dummy/test/functional/application_controller_test.rb +13 -0
- data/test/dummy/test/functional/users_controller_test.rb +92 -0
- data/test/dummy/test/unit/helpers/users_helper_test.rb +4 -0
- data/test/{integration/navigation_test.rb → dummy/test/unit/user_test.rb} +1 -4
- data/test/dummy/tmp/cache/assets/C70/E50/sprockets%2F076e5295d303281065f2740dfa09c02a +0 -0
- data/test/dummy/tmp/cache/assets/CAA/620/sprockets%2F87b209c0c9da28094a8d5581a21262c6 +0 -0
- data/test/dummy/tmp/cache/assets/CDC/BB0/sprockets%2Fff6ad535237265e32f00941ea62ec807 +0 -0
- data/test/dummy/tmp/cache/assets/CDF/070/sprockets%2F70e3c8a3916622c17858d520dcee0d92 +0 -0
- data/test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/FD0/sprockets%2Feda9627533d843bb16038063e48c1fbf +0 -0
- data/test/dummy/tmp/cache/assets/D11/D20/sprockets%2Fcac21eac42152981882bf9e489316af4 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124 +0 -0
- data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
- data/test/dummy/tmp/cache/assets/D73/220/sprockets%2F3dbc0a37f98fb43ec819b85a64d32c55 +0 -0
- data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
- data/test/dummy/tmp/cache/assets/DF8/7B0/sprockets%2Fb5580c4b03db7c38cfd55ab7a8f3aad8 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/session_logger_test.rb +30 -0
- data/test/test_helper.rb +29 -6
- data/test/tmp/config/initializers/session_logger.rb +15 -0
- data/test/unit/intitializer_generator_test.rb +15 -0
- data/test/unit/session_logging_test.rb +13 -0
- metadata +185 -12
- data/app/assets/javascripts/session_logger/application.js +0 -9
- data/app/assets/stylesheets/session_logger/application.css +0 -7
- data/app/controllers/session_logger/application_controller.rb +0 -4
- data/app/helpers/session_logger/application_helper.rb +0 -4
- data/app/views/layouts/session_logger/application.html.erb +0 -14
- data/config/routes.rb +0 -2
- data/lib/session_logger/engine.rb +0 -5
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ApplicationControllerTest < ActionController::TestCase
|
4
|
+
|
5
|
+
test "the truth" do
|
6
|
+
assert true
|
7
|
+
end
|
8
|
+
|
9
|
+
test "session_logging_enabled for ApplicationController" do
|
10
|
+
assert(ActiveRecord::Base.observers.include? SessionLogger::SessionObserver)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class UsersControllerTest < ActionController::TestCase
|
4
|
+
fixtures :users
|
5
|
+
|
6
|
+
setup do
|
7
|
+
@user = users(:one)
|
8
|
+
end
|
9
|
+
|
10
|
+
# --------------------------------------------- Plugin tests for model
|
11
|
+
|
12
|
+
test "enable_session_logging installed the observer" do
|
13
|
+
assert(ActiveRecord::Base.observers.include? SessionLogger::SessionObserver)
|
14
|
+
end
|
15
|
+
|
16
|
+
test "sl_campaign is saved during create" do
|
17
|
+
#once with symbol
|
18
|
+
session[:sl_campaign] = "A new test campaign"
|
19
|
+
assert_difference('User.count') do
|
20
|
+
post :create, user: @user.attributes
|
21
|
+
end
|
22
|
+
assert(assigns(:user).sl_campaign == session[:sl_campaign])
|
23
|
+
|
24
|
+
#once with string
|
25
|
+
session["sl_campaign"] = "A new test campaign"
|
26
|
+
assert_difference('User.count') do
|
27
|
+
post :create, user: @user.attributes
|
28
|
+
end
|
29
|
+
assert(assigns(:user).sl_campaign == session[:sl_campaign])
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
test "empty string sl_campaign is not written" do
|
35
|
+
session[:sl_campaign] = ""
|
36
|
+
prev_campaign = "campaign"
|
37
|
+
post :create, user: @user.attributes.merge(:sl_campaign => prev_campaign)
|
38
|
+
|
39
|
+
assert(assigns(:user).sl_campaign == prev_campaign)
|
40
|
+
end
|
41
|
+
|
42
|
+
test "empty session doesn't write anything" do
|
43
|
+
prev_campaign = "campaign"
|
44
|
+
post :create, user: @user.attributes.merge(:sl_campaign => prev_campaign)
|
45
|
+
assert(assigns(:user).sl_campaign == prev_campaign)
|
46
|
+
end
|
47
|
+
|
48
|
+
|
49
|
+
# --------------------------------------------- STD Scaffold Tests
|
50
|
+
|
51
|
+
test "should get index" do
|
52
|
+
get :index
|
53
|
+
assert_response :success
|
54
|
+
assert_not_nil assigns(:users)
|
55
|
+
end
|
56
|
+
|
57
|
+
test "should get new" do
|
58
|
+
get :new
|
59
|
+
assert_response :success
|
60
|
+
end
|
61
|
+
|
62
|
+
test "should create user" do
|
63
|
+
assert_difference('User.count') do
|
64
|
+
post :create, user: @user.attributes
|
65
|
+
end
|
66
|
+
|
67
|
+
assert_redirected_to user_path(assigns(:user))
|
68
|
+
end
|
69
|
+
|
70
|
+
test "should show user" do
|
71
|
+
get :show, id: @user.to_param
|
72
|
+
assert_response :success
|
73
|
+
end
|
74
|
+
|
75
|
+
test "should get edit" do
|
76
|
+
get :edit, id: @user.to_param
|
77
|
+
assert_response :success
|
78
|
+
end
|
79
|
+
|
80
|
+
test "should update user" do
|
81
|
+
put :update, id: @user.to_param, user: @user.attributes
|
82
|
+
assert_redirected_to user_path(assigns(:user))
|
83
|
+
end
|
84
|
+
|
85
|
+
test "should destroy user" do
|
86
|
+
assert_difference('User.count', -1) do
|
87
|
+
delete :destroy, id: @user.to_param
|
88
|
+
end
|
89
|
+
|
90
|
+
assert_redirected_to users_path
|
91
|
+
end
|
92
|
+
end
|
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
|
data/test/session_logger_test.rb
CHANGED
@@ -1,7 +1,37 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
class SessionLoggerTest < ActiveSupport::TestCase
|
4
|
+
setup do
|
5
|
+
#Force the default configuration on the system
|
6
|
+
SessionLogger.configure do |config|
|
7
|
+
config.logged_models = nil
|
8
|
+
config.model_prefix = nil
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
4
12
|
test "truth" do
|
5
13
|
assert_kind_of Module, SessionLogger
|
6
14
|
end
|
15
|
+
|
16
|
+
test "Application controller has session_logging module included" do
|
17
|
+
assert(ApplicationController.include?(SessionLogger::SessionLogging))
|
18
|
+
end
|
19
|
+
|
20
|
+
test "configure sets loggable_models and model_prefix" do
|
21
|
+
new_prefix = "session_logger"
|
22
|
+
new_model_list = []
|
23
|
+
SessionLogger.configure do |config|
|
24
|
+
config.logged_models = new_model_list
|
25
|
+
config.model_prefix = new_prefix
|
26
|
+
end
|
27
|
+
|
28
|
+
assert(SessionLogger.logged_models == new_model_list)
|
29
|
+
assert(SessionLogger.model_prefix == new_prefix)
|
30
|
+
end
|
31
|
+
|
32
|
+
test "default model_prefix is sl_" do
|
33
|
+
assert(SessionLogger.model_prefix == "sl_")
|
34
|
+
end
|
35
|
+
|
36
|
+
|
7
37
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,10 +1,33 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'spork'
|
2
|
+
require "rr"
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
Spork.prefork do
|
5
|
+
# Loading more in this block will cause your tests to run faster. However,
|
6
|
+
# if you change any configuration or code from libraries loaded here, you'll
|
7
|
+
# need to restart spork for it take effect.
|
6
8
|
|
7
|
-
Rails
|
9
|
+
# Configure Rails Environment
|
10
|
+
ENV["RAILS_ENV"] = "test"
|
11
|
+
|
12
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
13
|
+
require "rails/test_help"
|
14
|
+
require "rails/generators" #Supplies the correct classes for generator testing
|
15
|
+
|
16
|
+
|
17
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
18
|
|
9
19
|
# Load support files
|
10
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
20
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
21
|
+
|
22
|
+
|
23
|
+
#Turn output for tests
|
24
|
+
begin
|
25
|
+
require 'turn'
|
26
|
+
rescue LoadError
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
class ActiveSupport::TestCase
|
32
|
+
include RR::Adapters::TestUnit #Mocking code
|
33
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# The configure step must be run after the rails app has finished initializing
|
2
|
+
# for the models to respond to observer registration requests
|
3
|
+
Rails.application.config.after_initialize do
|
4
|
+
SessionLogger.configure do |config|
|
5
|
+
|
6
|
+
# Default is to observe all models in the models dir
|
7
|
+
config.logged_models = Dir["#{Rails.root}/app/models/**/*.rb"].map { |f| File.basename(f, '.*').camelize.constantize }
|
8
|
+
|
9
|
+
# Performance optimization for only observing certain models
|
10
|
+
# config.logged_models = [User]
|
11
|
+
|
12
|
+
# Customizable model prefixing
|
13
|
+
# config.model_prefix = "sl_"
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
require_relative "../../lib/generators/session_logger/initializer_generator"
|
3
|
+
|
4
|
+
class InitializerGeneratorTest < Rails::Generators::TestCase
|
5
|
+
tests SessionLogger::InitializerGenerator
|
6
|
+
destination File.expand_path("../tmp", File.dirname(__FILE__))
|
7
|
+
setup :prepare_destination
|
8
|
+
|
9
|
+
|
10
|
+
test "Assert all files are copied" do
|
11
|
+
run_generator
|
12
|
+
assert_file "config/initializers/session_logger.rb"
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SessionLoggingTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
test "enable_session_logging adds SessionObserver to AR observer list" do
|
6
|
+
ActiveRecord::Base.observers = []
|
7
|
+
assert(!ActiveRecord::Base.observers.include?(SessionLogger::SessionObserver), "Should not have observers")
|
8
|
+
mock(controller_mock = Class.new).around_filter(anything, anything)
|
9
|
+
controller_mock.send(:include, SessionLogger::SessionLogging).enable_session_logging
|
10
|
+
assert(ActiveRecord::Base.observers.include?(SessionLogger::SessionObserver), "should have our observer")
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: session_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version:
|
5
|
+
version: 1.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Timothy Cardenas
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-11-05 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -23,6 +23,105 @@ dependencies:
|
|
23
23
|
version: 3.1.1
|
24
24
|
type: :runtime
|
25
25
|
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: sqlite3
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "0"
|
35
|
+
type: :development
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: turn
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rr
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
type: :development
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: factory_girl
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
type: :development
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: factory_girl_rails
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
type: :development
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: spork
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.9.0.rc
|
90
|
+
type: :development
|
91
|
+
version_requirements: *id007
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: spork-testunit
|
94
|
+
prerelease: false
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: "0"
|
101
|
+
type: :development
|
102
|
+
version_requirements: *id008
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: ruby-prof
|
105
|
+
prerelease: false
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: "0"
|
112
|
+
type: :development
|
113
|
+
version_requirements: *id009
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: minitest
|
116
|
+
prerelease: false
|
117
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: "0"
|
123
|
+
type: :development
|
124
|
+
version_requirements: *id010
|
26
125
|
description: A simple rails engine that makes logging and testing easier
|
27
126
|
email:
|
28
127
|
- trcarden@gmail.com
|
@@ -33,13 +132,9 @@ extensions: []
|
|
33
132
|
extra_rdoc_files: []
|
34
133
|
|
35
134
|
files:
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
- app/helpers/session_logger/application_helper.rb
|
40
|
-
- app/views/layouts/session_logger/application.html.erb
|
41
|
-
- config/routes.rb
|
42
|
-
- lib/session_logger/engine.rb
|
135
|
+
- lib/generators/session_logger/initializer_generator.rb
|
136
|
+
- lib/generators/session_logger/templates/session_logger.rb
|
137
|
+
- lib/session_logger/session_logging.rb
|
43
138
|
- lib/session_logger/version.rb
|
44
139
|
- lib/session_logger.rb
|
45
140
|
- lib/tasks/session_logger_tasks.rake
|
@@ -47,13 +142,25 @@ files:
|
|
47
142
|
- Rakefile
|
48
143
|
- README.rdoc
|
49
144
|
- test/dummy/app/assets/javascripts/application.js
|
145
|
+
- test/dummy/app/assets/javascripts/users.js
|
50
146
|
- test/dummy/app/assets/stylesheets/application.css
|
147
|
+
- test/dummy/app/assets/stylesheets/scaffold.css
|
148
|
+
- test/dummy/app/assets/stylesheets/users.css
|
51
149
|
- test/dummy/app/controllers/application_controller.rb
|
150
|
+
- test/dummy/app/controllers/users_controller.rb
|
52
151
|
- test/dummy/app/helpers/application_helper.rb
|
152
|
+
- test/dummy/app/helpers/users_helper.rb
|
153
|
+
- test/dummy/app/models/user.rb
|
53
154
|
- test/dummy/app/views/layouts/application.html.erb
|
155
|
+
- test/dummy/app/views/users/_form.html.erb
|
156
|
+
- test/dummy/app/views/users/edit.html.erb
|
157
|
+
- test/dummy/app/views/users/index.html.erb
|
158
|
+
- test/dummy/app/views/users/new.html.erb
|
159
|
+
- test/dummy/app/views/users/show.html.erb
|
54
160
|
- test/dummy/config/application.rb
|
55
161
|
- test/dummy/config/boot.rb
|
56
162
|
- test/dummy/config/database.yml
|
163
|
+
- test/dummy/config/database_example.yml
|
57
164
|
- test/dummy/config/environment.rb
|
58
165
|
- test/dummy/config/environments/development.rb
|
59
166
|
- test/dummy/config/environments/production.rb
|
@@ -62,12 +169,18 @@ files:
|
|
62
169
|
- test/dummy/config/initializers/inflections.rb
|
63
170
|
- test/dummy/config/initializers/mime_types.rb
|
64
171
|
- test/dummy/config/initializers/secret_token.rb
|
172
|
+
- test/dummy/config/initializers/session_logger.rb
|
65
173
|
- test/dummy/config/initializers/session_store.rb
|
66
174
|
- test/dummy/config/initializers/wrap_parameters.rb
|
67
175
|
- test/dummy/config/locales/en.yml
|
68
176
|
- test/dummy/config/routes.rb
|
69
177
|
- test/dummy/config.ru
|
178
|
+
- test/dummy/db/development.sqlite3
|
179
|
+
- test/dummy/db/migrate/20111104001311_create_users.rb
|
180
|
+
- test/dummy/db/migrate/20111105072946_add_sl_campaign_to_user.rb
|
181
|
+
- test/dummy/db/schema.rb
|
70
182
|
- test/dummy/db/test.sqlite3
|
183
|
+
- test/dummy/log/development.log
|
71
184
|
- test/dummy/log/test.log
|
72
185
|
- test/dummy/public/404.html
|
73
186
|
- test/dummy/public/422.html
|
@@ -75,10 +188,31 @@ files:
|
|
75
188
|
- test/dummy/public/favicon.ico
|
76
189
|
- test/dummy/Rakefile
|
77
190
|
- test/dummy/script/rails
|
78
|
-
- test/
|
191
|
+
- test/dummy/test/fixtures/users.yml
|
192
|
+
- test/dummy/test/functional/application_controller_test.rb
|
193
|
+
- test/dummy/test/functional/users_controller_test.rb
|
194
|
+
- test/dummy/test/unit/helpers/users_helper_test.rb
|
195
|
+
- test/dummy/test/unit/user_test.rb
|
196
|
+
- test/dummy/tmp/cache/assets/C70/E50/sprockets%2F076e5295d303281065f2740dfa09c02a
|
197
|
+
- test/dummy/tmp/cache/assets/CAA/620/sprockets%2F87b209c0c9da28094a8d5581a21262c6
|
198
|
+
- test/dummy/tmp/cache/assets/CDC/BB0/sprockets%2Fff6ad535237265e32f00941ea62ec807
|
199
|
+
- test/dummy/tmp/cache/assets/CDF/070/sprockets%2F70e3c8a3916622c17858d520dcee0d92
|
200
|
+
- test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2
|
201
|
+
- test/dummy/tmp/cache/assets/D0E/FD0/sprockets%2Feda9627533d843bb16038063e48c1fbf
|
202
|
+
- test/dummy/tmp/cache/assets/D11/D20/sprockets%2Fcac21eac42152981882bf9e489316af4
|
203
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
204
|
+
- test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124
|
205
|
+
- test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
|
206
|
+
- test/dummy/tmp/cache/assets/D73/220/sprockets%2F3dbc0a37f98fb43ec819b85a64d32c55
|
207
|
+
- test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
|
208
|
+
- test/dummy/tmp/cache/assets/DF8/7B0/sprockets%2Fb5580c4b03db7c38cfd55ab7a8f3aad8
|
209
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
79
210
|
- test/session_logger_test.rb
|
80
211
|
- test/test_helper.rb
|
81
|
-
|
212
|
+
- test/tmp/config/initializers/session_logger.rb
|
213
|
+
- test/unit/intitializer_generator_test.rb
|
214
|
+
- test/unit/session_logging_test.rb
|
215
|
+
homepage: https://github.com/trcarden/session_logger
|
82
216
|
licenses: []
|
83
217
|
|
84
218
|
post_install_message:
|
@@ -107,13 +241,25 @@ specification_version: 3
|
|
107
241
|
summary: Logs rails model updates with session info
|
108
242
|
test_files:
|
109
243
|
- test/dummy/app/assets/javascripts/application.js
|
244
|
+
- test/dummy/app/assets/javascripts/users.js
|
110
245
|
- test/dummy/app/assets/stylesheets/application.css
|
246
|
+
- test/dummy/app/assets/stylesheets/scaffold.css
|
247
|
+
- test/dummy/app/assets/stylesheets/users.css
|
111
248
|
- test/dummy/app/controllers/application_controller.rb
|
249
|
+
- test/dummy/app/controllers/users_controller.rb
|
112
250
|
- test/dummy/app/helpers/application_helper.rb
|
251
|
+
- test/dummy/app/helpers/users_helper.rb
|
252
|
+
- test/dummy/app/models/user.rb
|
113
253
|
- test/dummy/app/views/layouts/application.html.erb
|
254
|
+
- test/dummy/app/views/users/_form.html.erb
|
255
|
+
- test/dummy/app/views/users/edit.html.erb
|
256
|
+
- test/dummy/app/views/users/index.html.erb
|
257
|
+
- test/dummy/app/views/users/new.html.erb
|
258
|
+
- test/dummy/app/views/users/show.html.erb
|
114
259
|
- test/dummy/config/application.rb
|
115
260
|
- test/dummy/config/boot.rb
|
116
261
|
- test/dummy/config/database.yml
|
262
|
+
- test/dummy/config/database_example.yml
|
117
263
|
- test/dummy/config/environment.rb
|
118
264
|
- test/dummy/config/environments/development.rb
|
119
265
|
- test/dummy/config/environments/production.rb
|
@@ -122,12 +268,18 @@ test_files:
|
|
122
268
|
- test/dummy/config/initializers/inflections.rb
|
123
269
|
- test/dummy/config/initializers/mime_types.rb
|
124
270
|
- test/dummy/config/initializers/secret_token.rb
|
271
|
+
- test/dummy/config/initializers/session_logger.rb
|
125
272
|
- test/dummy/config/initializers/session_store.rb
|
126
273
|
- test/dummy/config/initializers/wrap_parameters.rb
|
127
274
|
- test/dummy/config/locales/en.yml
|
128
275
|
- test/dummy/config/routes.rb
|
129
276
|
- test/dummy/config.ru
|
277
|
+
- test/dummy/db/development.sqlite3
|
278
|
+
- test/dummy/db/migrate/20111104001311_create_users.rb
|
279
|
+
- test/dummy/db/migrate/20111105072946_add_sl_campaign_to_user.rb
|
280
|
+
- test/dummy/db/schema.rb
|
130
281
|
- test/dummy/db/test.sqlite3
|
282
|
+
- test/dummy/log/development.log
|
131
283
|
- test/dummy/log/test.log
|
132
284
|
- test/dummy/public/404.html
|
133
285
|
- test/dummy/public/422.html
|
@@ -135,6 +287,27 @@ test_files:
|
|
135
287
|
- test/dummy/public/favicon.ico
|
136
288
|
- test/dummy/Rakefile
|
137
289
|
- test/dummy/script/rails
|
138
|
-
- test/
|
290
|
+
- test/dummy/test/fixtures/users.yml
|
291
|
+
- test/dummy/test/functional/application_controller_test.rb
|
292
|
+
- test/dummy/test/functional/users_controller_test.rb
|
293
|
+
- test/dummy/test/unit/helpers/users_helper_test.rb
|
294
|
+
- test/dummy/test/unit/user_test.rb
|
295
|
+
- test/dummy/tmp/cache/assets/C70/E50/sprockets%2F076e5295d303281065f2740dfa09c02a
|
296
|
+
- test/dummy/tmp/cache/assets/CAA/620/sprockets%2F87b209c0c9da28094a8d5581a21262c6
|
297
|
+
- test/dummy/tmp/cache/assets/CDC/BB0/sprockets%2Fff6ad535237265e32f00941ea62ec807
|
298
|
+
- test/dummy/tmp/cache/assets/CDF/070/sprockets%2F70e3c8a3916622c17858d520dcee0d92
|
299
|
+
- test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2
|
300
|
+
- test/dummy/tmp/cache/assets/D0E/FD0/sprockets%2Feda9627533d843bb16038063e48c1fbf
|
301
|
+
- test/dummy/tmp/cache/assets/D11/D20/sprockets%2Fcac21eac42152981882bf9e489316af4
|
302
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
303
|
+
- test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124
|
304
|
+
- test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
|
305
|
+
- test/dummy/tmp/cache/assets/D73/220/sprockets%2F3dbc0a37f98fb43ec819b85a64d32c55
|
306
|
+
- test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
|
307
|
+
- test/dummy/tmp/cache/assets/DF8/7B0/sprockets%2Fb5580c4b03db7c38cfd55ab7a8f3aad8
|
308
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
139
309
|
- test/session_logger_test.rb
|
140
310
|
- test/test_helper.rb
|
311
|
+
- test/tmp/config/initializers/session_logger.rb
|
312
|
+
- test/unit/intitializer_generator_test.rb
|
313
|
+
- test/unit/session_logging_test.rb
|
@@ -1,9 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
-
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
-
// the compiled file.
|
6
|
-
//
|
7
|
-
//= require jquery
|
8
|
-
//= require jquery_ujs
|
9
|
-
//= require_tree .
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
-
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
-
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
-
*= require_self
|
6
|
-
*= require_tree .
|
7
|
-
*/
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>SessionLogger</title>
|
5
|
-
<%= stylesheet_link_tag "session_logger/application" %>
|
6
|
-
<%= javascript_include_tag "session_logger/application" %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
data/config/routes.rb
DELETED