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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72beb33e7b837d68b6046abe9ca1517476500bcf
4
- data.tar.gz: de1571da013330399ff3d4f4326cab44e36488f7
3
+ metadata.gz: 21215b1cdb72f42365a1460191443806d765c367
4
+ data.tar.gz: bbf5e9ada4f544ed031c49b148f668eb30026ba3
5
5
  SHA512:
6
- metadata.gz: 19afcd6b7b350992d7ea670bf145d9f602dc0c4570a599138db8a9137d55d42619d7b0ff604e895701d9a89e5e7090e6a3e41d995d3e646ee7ca7807d94a8b2a
7
- data.tar.gz: 00914750a6fb7ac582f76262bd9cfcec0d90b5b33cf1f8553629b3eb71044f0278ca370afe9c6e4aa2750acfd9c8c5a39f726245565bf9954e9319c3b8f84566
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 RailsRailsExceptionLogger::Engine => "/rails_exception_logger"
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
- RailsRailsExceptionLogger::LoggedExceptionsController.class_eval do
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
- RailsRailsExceptionLogger::LoggedExceptionsController.class_eval do
115
+ RailsExceptionLogger::LoggedExceptionsController.class_eval do
119
116
  before_filter :authorize
120
117
 
121
118
  protected
@@ -1,4 +1,6 @@
1
1
  module RailsExceptionLogger
2
2
  module ApplicationHelper
3
+
4
+
3
5
  end
4
6
  end
@@ -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
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <%= csrf_meta_tag %>
6
- <title><%= yield(:title) || "Exception Logger" %></title>
6
+ <title><%= yield(:title) || "Rails Exception Logger" %></title>
7
7
 
8
8
  <%= stylesheet_link_tag "rails_exception_logger/application" %>
9
9
 
data/config/routes.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  RailsExceptionLogger::Engine.routes.draw do
2
2
  # Exception Logger
3
- resources :rails_logged_exceptions do
3
+ resources :logged_exceptions do
4
4
  collection do
5
5
  post :clear
6
6
  post :query
@@ -1,6 +1,6 @@
1
1
  class CreateRailsExceptionLoggerLoggedExceptions < ActiveRecord::Migration
2
2
  def change
3
- create_table :rails_logged_exceptions, :force => true do |t|
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
@@ -1,3 +1,3 @@
1
1
  module RailsExceptionLogger
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
- - Ryan Cheung
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
- - ryancheung.go@gmail.com
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/rails_logged_exceptions.css
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/exception_logger/logged_exceptions_helper.rb
73
- - app/helpers/exception_logger/application_helper.rb
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/ryancheung/rails_exception_logger
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