rails_exception_logger 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +135 -0
- data/Rakefile +40 -0
- data/app/assets/javascripts/rails_exception_logger/application.js +15 -0
- data/app/assets/javascripts/rails_exception_logger/logged_exceptions.js +2 -0
- data/app/assets/javascripts/rails_exception_logger/rails_exception_logger.js +69 -0
- data/app/assets/stylesheets/rails_exception_logger/application.css +13 -0
- data/app/assets/stylesheets/rails_exception_logger/rails_exception_logger.css +320 -0
- data/app/assets/stylesheets/rails_exception_logger/rails_logged_exceptions.css +4 -0
- data/app/controllers/rails_exception_logger/application_controller.rb +4 -0
- data/app/controllers/rails_exception_logger/logged_exceptions_controller.rb +105 -0
- data/app/helpers/exception_logger/application_helper.rb +4 -0
- data/app/helpers/exception_logger/logged_exceptions_helper.rb +42 -0
- data/app/models/rails_exception_logger/logged_exception.rb +83 -0
- data/app/views/layouts/rails_exception_logger/application.html.erb +20 -0
- data/app/views/rails_exception_logger/logged_exceptions/_exceptions.html.erb +32 -0
- data/app/views/rails_exception_logger/logged_exceptions/_feed.html.erb +3 -0
- data/app/views/rails_exception_logger/logged_exceptions/_show.html.erb +23 -0
- data/app/views/rails_exception_logger/logged_exceptions/destroy.js.erb +2 -0
- data/app/views/rails_exception_logger/logged_exceptions/destroy_all.js.erb +2 -0
- data/app/views/rails_exception_logger/logged_exceptions/feed.rss.builder +20 -0
- data/app/views/rails_exception_logger/logged_exceptions/index.html.erb +46 -0
- data/app/views/rails_exception_logger/logged_exceptions/index.js.erb +2 -0
- data/app/views/rails_exception_logger/logged_exceptions/query.js.erb +2 -0
- data/app/views/rails_exception_logger/logged_exceptions/show.html.erb +8 -0
- data/app/views/rails_exception_logger/logged_exceptions/show.js.erb +2 -0
- data/config/initializers/date_formats.rb +5 -0
- data/config/locales/en.yml +17 -0
- data/config/routes.rb +13 -0
- data/db/migrate/20120507081835_create_rails_exception_logger_logged_exceptions.rb +14 -0
- data/lib/rails_exception_logger/engine.rb +5 -0
- data/lib/rails_exception_logger/version.rb +3 -0
- data/lib/rails_exception_logger.rb +68 -0
- data/lib/tasks/rails_exception_logger_tasks.rake +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/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/simulate_controller.rb +10 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/simulate_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/simulate/failure.html.erb +2 -0
- data/test/dummy/config/application.rb +50 -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 +29 -0
- data/test/dummy/config/environments/production.rb +63 -0
- data/test/dummy/config/environments/test.rb +33 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -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/en.yml +5 -0
- data/test/dummy/config/routes.rb +6 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/migrate/20120507083836_create_exception_logger_logged_exceptions.exception_logger.rb +15 -0
- data/test/dummy/db/schema.rb +27 -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/functional/simulate_controller_test.rb +9 -0
- data/test/dummy/test/unit/helpers/simulate_helper_test.rb +4 -0
- data/test/exception_logger_test.rb +7 -0
- data/test/fixtures/exception_logger/logged_exceptions.yml +11 -0
- data/test/functional/exception_logger/logged_exceptions_controller_test.rb +9 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +10 -0
- data/test/unit/exception_logger/logged_exception_test.rb +9 -0
- data/test/unit/helpers/exception_logger/logged_exceptions_helper_test.rb +6 -0
- metadata +204 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20120507083836) do
|
15
|
+
|
16
|
+
create_table "rails_exception_logger_logged_exceptions", force: true do |t|
|
17
|
+
t.string "exception_class"
|
18
|
+
t.string "controller_name"
|
19
|
+
t.string "action_name"
|
20
|
+
t.text "message"
|
21
|
+
t.text "backtrace"
|
22
|
+
t.text "environment"
|
23
|
+
t.text "request"
|
24
|
+
t.datetime "created_at"
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -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,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
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 }
|
metadata
ADDED
@@ -0,0 +1,204 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_exception_logger
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ryan Cheung
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: will_paginate
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: It's evolved from the outdated version 0.11.1 and built with rails engine
|
56
|
+
and is mountable.
|
57
|
+
email:
|
58
|
+
- ryancheung.go@gmail.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- app/controllers/rails_exception_logger/application_controller.rb
|
64
|
+
- app/controllers/rails_exception_logger/logged_exceptions_controller.rb
|
65
|
+
- app/assets/stylesheets/rails_exception_logger/rails_logged_exceptions.css
|
66
|
+
- app/assets/stylesheets/rails_exception_logger/application.css
|
67
|
+
- app/assets/stylesheets/rails_exception_logger/rails_exception_logger.css
|
68
|
+
- app/assets/javascripts/rails_exception_logger/rails_exception_logger.js
|
69
|
+
- app/assets/javascripts/rails_exception_logger/logged_exceptions.js
|
70
|
+
- app/assets/javascripts/rails_exception_logger/application.js
|
71
|
+
- app/models/rails_exception_logger/logged_exception.rb
|
72
|
+
- app/helpers/exception_logger/logged_exceptions_helper.rb
|
73
|
+
- app/helpers/exception_logger/application_helper.rb
|
74
|
+
- app/views/layouts/rails_exception_logger/application.html.erb
|
75
|
+
- app/views/rails_exception_logger/logged_exceptions/query.js.erb
|
76
|
+
- app/views/rails_exception_logger/logged_exceptions/_exceptions.html.erb
|
77
|
+
- app/views/rails_exception_logger/logged_exceptions/show.js.erb
|
78
|
+
- app/views/rails_exception_logger/logged_exceptions/show.html.erb
|
79
|
+
- app/views/rails_exception_logger/logged_exceptions/destroy_all.js.erb
|
80
|
+
- app/views/rails_exception_logger/logged_exceptions/_show.html.erb
|
81
|
+
- app/views/rails_exception_logger/logged_exceptions/index.js.erb
|
82
|
+
- app/views/rails_exception_logger/logged_exceptions/index.html.erb
|
83
|
+
- app/views/rails_exception_logger/logged_exceptions/destroy.js.erb
|
84
|
+
- app/views/rails_exception_logger/logged_exceptions/feed.rss.builder
|
85
|
+
- app/views/rails_exception_logger/logged_exceptions/_feed.html.erb
|
86
|
+
- config/locales/en.yml
|
87
|
+
- config/routes.rb
|
88
|
+
- config/initializers/date_formats.rb
|
89
|
+
- db/migrate/20120507081835_create_rails_exception_logger_logged_exceptions.rb
|
90
|
+
- lib/rails_exception_logger.rb
|
91
|
+
- lib/rails_exception_logger/version.rb
|
92
|
+
- lib/rails_exception_logger/engine.rb
|
93
|
+
- lib/tasks/rails_exception_logger_tasks.rake
|
94
|
+
- MIT-LICENSE
|
95
|
+
- Rakefile
|
96
|
+
- README.rdoc
|
97
|
+
- test/unit/exception_logger/logged_exception_test.rb
|
98
|
+
- test/unit/helpers/exception_logger/logged_exceptions_helper_test.rb
|
99
|
+
- test/fixtures/exception_logger/logged_exceptions.yml
|
100
|
+
- test/dummy/test/unit/helpers/simulate_helper_test.rb
|
101
|
+
- test/dummy/test/functional/simulate_controller_test.rb
|
102
|
+
- test/dummy/db/migrate/20120507083836_create_exception_logger_logged_exceptions.exception_logger.rb
|
103
|
+
- test/dummy/db/schema.rb
|
104
|
+
- test/dummy/Rakefile
|
105
|
+
- test/dummy/app/controllers/application_controller.rb
|
106
|
+
- test/dummy/app/controllers/simulate_controller.rb
|
107
|
+
- test/dummy/app/assets/stylesheets/application.css
|
108
|
+
- test/dummy/app/assets/javascripts/application.js
|
109
|
+
- test/dummy/app/helpers/simulate_helper.rb
|
110
|
+
- test/dummy/app/helpers/application_helper.rb
|
111
|
+
- test/dummy/app/views/layouts/application.html.erb
|
112
|
+
- test/dummy/app/views/simulate/failure.html.erb
|
113
|
+
- test/dummy/config/locales/en.yml
|
114
|
+
- test/dummy/config/routes.rb
|
115
|
+
- test/dummy/config/initializers/mime_types.rb
|
116
|
+
- test/dummy/config/initializers/secret_token.rb
|
117
|
+
- test/dummy/config/initializers/inflections.rb
|
118
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
119
|
+
- test/dummy/config/initializers/session_store.rb
|
120
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
121
|
+
- test/dummy/config/environments/test.rb
|
122
|
+
- test/dummy/config/environments/development.rb
|
123
|
+
- test/dummy/config/environments/production.rb
|
124
|
+
- test/dummy/config/boot.rb
|
125
|
+
- test/dummy/config/database.yml
|
126
|
+
- test/dummy/config/application.rb
|
127
|
+
- test/dummy/config/environment.rb
|
128
|
+
- test/dummy/config.ru
|
129
|
+
- test/dummy/script/rails
|
130
|
+
- test/dummy/README.rdoc
|
131
|
+
- test/dummy/public/favicon.ico
|
132
|
+
- test/dummy/public/404.html
|
133
|
+
- test/dummy/public/422.html
|
134
|
+
- test/dummy/public/500.html
|
135
|
+
- test/exception_logger_test.rb
|
136
|
+
- test/functional/exception_logger/logged_exceptions_controller_test.rb
|
137
|
+
- test/test_helper.rb
|
138
|
+
- test/integration/navigation_test.rb
|
139
|
+
homepage: https://github.com/ryancheung/rails_exception_logger
|
140
|
+
licenses: []
|
141
|
+
metadata: {}
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options: []
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 2.0.0.rc.2
|
159
|
+
signing_key:
|
160
|
+
specification_version: 4
|
161
|
+
summary: Log exceptions inside a database table. No avaliable with rails 3.2.x.
|
162
|
+
test_files:
|
163
|
+
- test/unit/exception_logger/logged_exception_test.rb
|
164
|
+
- test/unit/helpers/exception_logger/logged_exceptions_helper_test.rb
|
165
|
+
- test/fixtures/exception_logger/logged_exceptions.yml
|
166
|
+
- test/dummy/test/unit/helpers/simulate_helper_test.rb
|
167
|
+
- test/dummy/test/functional/simulate_controller_test.rb
|
168
|
+
- test/dummy/db/migrate/20120507083836_create_exception_logger_logged_exceptions.exception_logger.rb
|
169
|
+
- test/dummy/db/schema.rb
|
170
|
+
- test/dummy/Rakefile
|
171
|
+
- test/dummy/app/controllers/application_controller.rb
|
172
|
+
- test/dummy/app/controllers/simulate_controller.rb
|
173
|
+
- test/dummy/app/assets/stylesheets/application.css
|
174
|
+
- test/dummy/app/assets/javascripts/application.js
|
175
|
+
- test/dummy/app/helpers/simulate_helper.rb
|
176
|
+
- test/dummy/app/helpers/application_helper.rb
|
177
|
+
- test/dummy/app/views/layouts/application.html.erb
|
178
|
+
- test/dummy/app/views/simulate/failure.html.erb
|
179
|
+
- test/dummy/config/locales/en.yml
|
180
|
+
- test/dummy/config/routes.rb
|
181
|
+
- test/dummy/config/initializers/mime_types.rb
|
182
|
+
- test/dummy/config/initializers/secret_token.rb
|
183
|
+
- test/dummy/config/initializers/inflections.rb
|
184
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
185
|
+
- test/dummy/config/initializers/session_store.rb
|
186
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
187
|
+
- test/dummy/config/environments/test.rb
|
188
|
+
- test/dummy/config/environments/development.rb
|
189
|
+
- test/dummy/config/environments/production.rb
|
190
|
+
- test/dummy/config/boot.rb
|
191
|
+
- test/dummy/config/database.yml
|
192
|
+
- test/dummy/config/application.rb
|
193
|
+
- test/dummy/config/environment.rb
|
194
|
+
- test/dummy/config.ru
|
195
|
+
- test/dummy/script/rails
|
196
|
+
- test/dummy/README.rdoc
|
197
|
+
- test/dummy/public/favicon.ico
|
198
|
+
- test/dummy/public/404.html
|
199
|
+
- test/dummy/public/422.html
|
200
|
+
- test/dummy/public/500.html
|
201
|
+
- test/exception_logger_test.rb
|
202
|
+
- test/functional/exception_logger/logged_exceptions_controller_test.rb
|
203
|
+
- test/test_helper.rb
|
204
|
+
- test/integration/navigation_test.rb
|