rails_exception_logger 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +3 -6
- data/app/assets/stylesheets/rails_exception_logger/{rails_logged_exceptions.css → logged_exceptions.css} +0 -0
- data/app/helpers/{exception_logger → rails_exception_logger}/application_helper.rb +2 -0
- data/app/helpers/{exception_logger → rails_exception_logger}/logged_exceptions_helper.rb +4 -1
- data/app/views/layouts/rails_exception_logger/application.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/db/migrate/20120507081835_create_rails_exception_logger_logged_exceptions.rb +1 -1
- data/lib/rails_exception_logger/version.rb +1 -1
- data/test/{exception_logger_test.rb → rails_exception_logger_test.rb} +0 -0
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21215b1cdb72f42365a1460191443806d765c367
|
4
|
+
data.tar.gz: bbf5e9ada4f544ed031c49b148f668eb30026ba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14077fabbf1fb1584ed96be2c05daba3a75c44d08f3b00786856a4887ac8e91f3e271bf796f6e1fd3f47c208472454c5580f0317396b53e6f5ea7a410cb4d4c8
|
7
|
+
data.tar.gz: b8352218653d9a9e93537fdeb2fd0ceea3d7590f7d498d19b38f95058dd641cacf806fda5ee0edccfa9a0037327a49075183eb61118a73556434d60d4109f9cc
|
data/README.rdoc
CHANGED
@@ -10,9 +10,6 @@ Inside your Gemfile:
|
|
10
10
|
# Rails 4.1.x
|
11
11
|
gem "rails_exception_logger", :github => "pvijayror/rails_exception_logger"
|
12
12
|
|
13
|
-
# Rails 4.0.x
|
14
|
-
gem "rails_exception_logger", :github => "pvijayror/rails_rails_exception_logger", tag: 'v0.1.0'
|
15
|
-
|
16
13
|
and then run:
|
17
14
|
|
18
15
|
bundle install
|
@@ -31,7 +28,7 @@ Please check if all those requirements are satisfied on your environment.
|
|
31
28
|
|
32
29
|
=== Inside your config/routes.rb
|
33
30
|
|
34
|
-
mount
|
31
|
+
mount RailsExceptionLogger::Engine => "/rails_exception_logger"
|
35
32
|
|
36
33
|
=== Database Setup
|
37
34
|
|
@@ -58,7 +55,7 @@ Example uses the declarative_authorization gem
|
|
58
55
|
in config/environment/production.rb:
|
59
56
|
|
60
57
|
config.after_initialize do
|
61
|
-
|
58
|
+
RailsExceptionLogger::LoggedExceptionsController.class_eval do
|
62
59
|
# include any custom auth modules you need
|
63
60
|
# (declarative authorization gem used)
|
64
61
|
filter_resource_access
|
@@ -115,7 +112,7 @@ To add authentication, in config/application.rb or the specific environment file
|
|
115
112
|
|
116
113
|
# set up authencation of rails_exception_logger
|
117
114
|
config.after_initialize do
|
118
|
-
|
115
|
+
RailsExceptionLogger::LoggedExceptionsController.class_eval do
|
119
116
|
before_filter :authorize
|
120
117
|
|
121
118
|
protected
|
File without changes
|
@@ -1,5 +1,6 @@
|
|
1
1
|
module RailsExceptionLogger
|
2
2
|
module LoggedExceptionsHelper
|
3
|
+
|
3
4
|
def pretty_exception_date(exception)
|
4
5
|
if Date.today == exception.created_at.to_date
|
5
6
|
if false # exception.created_at > Time.now - 4.hours
|
@@ -38,5 +39,7 @@ module RailsExceptionLogger
|
|
38
39
|
simple_format(text).html_safe
|
39
40
|
end
|
40
41
|
end
|
42
|
+
|
43
|
+
|
41
44
|
end
|
42
|
-
end
|
45
|
+
end
|
data/config/routes.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateRailsExceptionLoggerLoggedExceptions < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :logged_exceptions, :force => true do |t|
|
4
4
|
t.string :exception_class
|
5
5
|
t.string :controller_name
|
6
6
|
t.string :action_name
|
File without changes
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_exception_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- vijay p
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
@@ -55,22 +55,22 @@ dependencies:
|
|
55
55
|
description: It's evolved from the outdated version 0.11.1 and built with rails engine
|
56
56
|
and is mountable.
|
57
57
|
email:
|
58
|
-
-
|
58
|
+
- pvijay127@gmail.com
|
59
59
|
executables: []
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
63
|
- app/controllers/rails_exception_logger/application_controller.rb
|
64
64
|
- app/controllers/rails_exception_logger/logged_exceptions_controller.rb
|
65
|
-
- app/assets/stylesheets/rails_exception_logger/
|
65
|
+
- app/assets/stylesheets/rails_exception_logger/logged_exceptions.css
|
66
66
|
- app/assets/stylesheets/rails_exception_logger/application.css
|
67
67
|
- app/assets/stylesheets/rails_exception_logger/rails_exception_logger.css
|
68
68
|
- app/assets/javascripts/rails_exception_logger/rails_exception_logger.js
|
69
69
|
- app/assets/javascripts/rails_exception_logger/logged_exceptions.js
|
70
70
|
- app/assets/javascripts/rails_exception_logger/application.js
|
71
71
|
- app/models/rails_exception_logger/logged_exception.rb
|
72
|
-
- app/helpers/
|
73
|
-
- app/helpers/
|
72
|
+
- app/helpers/rails_exception_logger/logged_exceptions_helper.rb
|
73
|
+
- app/helpers/rails_exception_logger/application_helper.rb
|
74
74
|
- app/views/layouts/rails_exception_logger/application.html.erb
|
75
75
|
- app/views/rails_exception_logger/logged_exceptions/query.js.erb
|
76
76
|
- app/views/rails_exception_logger/logged_exceptions/_exceptions.html.erb
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- test/unit/exception_logger/logged_exception_test.rb
|
98
98
|
- test/unit/helpers/exception_logger/logged_exceptions_helper_test.rb
|
99
99
|
- test/fixtures/exception_logger/logged_exceptions.yml
|
100
|
+
- test/rails_exception_logger_test.rb
|
100
101
|
- test/dummy/test/unit/helpers/simulate_helper_test.rb
|
101
102
|
- test/dummy/test/functional/simulate_controller_test.rb
|
102
103
|
- test/dummy/db/migrate/20120507083836_create_exception_logger_logged_exceptions.exception_logger.rb
|
@@ -132,11 +133,10 @@ files:
|
|
132
133
|
- test/dummy/public/404.html
|
133
134
|
- test/dummy/public/422.html
|
134
135
|
- test/dummy/public/500.html
|
135
|
-
- test/exception_logger_test.rb
|
136
136
|
- test/functional/exception_logger/logged_exceptions_controller_test.rb
|
137
137
|
- test/test_helper.rb
|
138
138
|
- test/integration/navigation_test.rb
|
139
|
-
homepage: https://github.com/
|
139
|
+
homepage: https://github.com/pvijayror/rails_exception_logger
|
140
140
|
licenses: []
|
141
141
|
metadata: {}
|
142
142
|
post_install_message:
|
@@ -163,6 +163,7 @@ test_files:
|
|
163
163
|
- test/unit/exception_logger/logged_exception_test.rb
|
164
164
|
- test/unit/helpers/exception_logger/logged_exceptions_helper_test.rb
|
165
165
|
- test/fixtures/exception_logger/logged_exceptions.yml
|
166
|
+
- test/rails_exception_logger_test.rb
|
166
167
|
- test/dummy/test/unit/helpers/simulate_helper_test.rb
|
167
168
|
- test/dummy/test/functional/simulate_controller_test.rb
|
168
169
|
- test/dummy/db/migrate/20120507083836_create_exception_logger_logged_exceptions.exception_logger.rb
|
@@ -198,7 +199,6 @@ test_files:
|
|
198
199
|
- test/dummy/public/404.html
|
199
200
|
- test/dummy/public/422.html
|
200
201
|
- test/dummy/public/500.html
|
201
|
-
- test/exception_logger_test.rb
|
202
202
|
- test/functional/exception_logger/logged_exceptions_controller_test.rb
|
203
203
|
- test/test_helper.rb
|
204
204
|
- test/integration/navigation_test.rb
|