exception_engine 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +4 -4
- data/README.rdoc +33 -6
- data/lib/exception_engine/version.rb +1 -1
- data/test/dummy/app/controllers/application_controller.rb +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +15 -0
- data/test/dummy/log/development.log +122 -0
- data/test/dummy/log/test.log +29 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- metadata +6 -2
data/LICENSE.txt
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
|
1
|
+
ExceptionEngine
|
2
2
|
Copyright (C) 2011 Consoci8 Sdn Bhd
|
3
3
|
|
4
|
-
This file is part of
|
4
|
+
This file is part of ExceptionEngine.
|
5
5
|
|
6
|
-
|
6
|
+
ExceptionEngine is free software: you can redistribute it and/or modify
|
7
7
|
it under the terms of the GNU General Public License as published by
|
8
8
|
the Free Software Foundation, either version 3 of the License, or
|
9
9
|
(at your option) any later version.
|
10
10
|
|
11
|
-
|
11
|
+
ExceptionEngine is distributed in the hope that it will be useful,
|
12
12
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
13
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
14
|
GNU General Public License for more details.
|
data/README.rdoc
CHANGED
@@ -1,22 +1,43 @@
|
|
1
1
|
= ExceptionEngine
|
2
2
|
Copyright (C) 2011 Consoci8 Sdn Bhd
|
3
3
|
|
4
|
-
The
|
4
|
+
The ExceptionEngine logs your Rails exceptions in your mongodb database and provides a web interface to manage them
|
5
5
|
|
6
|
-
It assumes
|
7
|
-
installed and running in your machine
|
6
|
+
It assumes you have mongodb installed and running in your machine
|
8
7
|
|
9
8
|
|
10
9
|
To use this in your rails engine, add the following line to your gemfile:
|
11
10
|
|
12
|
-
gem "exception_engine"
|
11
|
+
gem "exception_engine"
|
13
12
|
|
14
13
|
And then run
|
15
14
|
|
16
15
|
bundle install
|
17
16
|
|
18
17
|
|
19
|
-
|
18
|
+
Setup authentication:
|
19
|
+
|
20
|
+
Define an exception_engine_authentication method in ApplicationController:
|
21
|
+
|
22
|
+
# app/controllers/application_controller.rb
|
23
|
+
|
24
|
+
def exception_engine_authentication
|
25
|
+
# authentication_logic_goes_here
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
For example, if you are using the Devise gem and have an Admin model:
|
30
|
+
|
31
|
+
# app/controllers/application_controller.rb
|
32
|
+
|
33
|
+
def exception_engine_authentication
|
34
|
+
authenticate_admin!
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
View the exceptions interface:
|
39
|
+
|
40
|
+
http://localhost:3000/exceptions
|
20
41
|
|
21
42
|
|
22
43
|
|
@@ -35,7 +56,13 @@ After you installed mongodb, make sure you run the mongod server
|
|
35
56
|
This project uses GPLv3 License.
|
36
57
|
Check Gemfile for other dependencies.
|
37
58
|
|
59
|
+
|
38
60
|
Credits:
|
39
61
|
|
40
62
|
1. José Valim for enginex
|
41
|
-
2. Thoughtbot's HoptoadNotifier gem
|
63
|
+
2. Thoughtbot's HoptoadNotifier gem
|
64
|
+
|
65
|
+
|
66
|
+
TODO
|
67
|
+
|
68
|
+
1. Needs pretty UI
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended to check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(:version => 0) do
|
14
|
+
|
15
|
+
end
|
@@ -460,3 +460,125 @@ Started GET "/exceptions" for 127.0.0.1 at 2011-02-09 18:28:34 +0800
|
|
460
460
|
Processing by ExceptionsController#index as HTML
|
461
461
|
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (121.6ms)
|
462
462
|
Completed 200 OK in 160ms (Views: 129.8ms | ActiveRecord: 0.0ms)
|
463
|
+
[1m[36mSQL (0.4ms)[0m [1m SELECT name
|
464
|
+
FROM sqlite_master
|
465
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
466
|
+
[0m
|
467
|
+
[1m[35mSQL (0.3ms)[0m select sqlite_version(*)
|
468
|
+
[1m[36mSQL (2.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
469
|
+
[1m[35mSQL (0.1ms)[0m PRAGMA index_list("schema_migrations")
|
470
|
+
[1m[36mSQL (2.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
471
|
+
[1m[35mSQL (0.3ms)[0m SELECT name
|
472
|
+
FROM sqlite_master
|
473
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
474
|
+
[1m[36mSQL (0.3ms)[0m [1m SELECT name
|
475
|
+
FROM sqlite_master
|
476
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
477
|
+
[0m
|
478
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
479
|
+
FROM sqlite_master
|
480
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
481
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
482
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
483
|
+
FROM sqlite_master
|
484
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
485
|
+
|
486
|
+
|
487
|
+
Started GET "/" for 127.0.0.1 at 2011-02-10 12:22:41 +0800
|
488
|
+
|
489
|
+
ActionController::RoutingError (No route matches "/"):
|
490
|
+
|
491
|
+
|
492
|
+
Rendered /Users/fadhlirahim/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.8ms)
|
493
|
+
|
494
|
+
|
495
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:23:08 +0800
|
496
|
+
Processing by ExceptionsController#index as HTML
|
497
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (478.1ms)
|
498
|
+
Completed 200 OK in 597ms (Views: 505.5ms | ActiveRecord: 0.0ms)
|
499
|
+
|
500
|
+
|
501
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:32:46 +0800
|
502
|
+
Processing by ExceptionsController#index as HTML
|
503
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (67.5ms)
|
504
|
+
Completed in 106ms
|
505
|
+
|
506
|
+
ActionView::Template::Error (undefined method `to_strftime' for 2011-02-07 17:54:24 +0800:Time):
|
507
|
+
10: <tbody>
|
508
|
+
11: <% @exceptions.each do |e| %>
|
509
|
+
12: <tr>
|
510
|
+
13: <td><%= e.created_at.to_strftime("%d %m %Y %H:%M") if !e.created_at.nil? %></td>
|
511
|
+
14: <td><%= e.error_message %><br /> <p>Backtrace</p> <br />
|
512
|
+
15:
|
513
|
+
16: <% if !e.backtraces.empty? %>
|
514
|
+
|
515
|
+
|
516
|
+
Rendered /Users/fadhlirahim/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (4.9ms)
|
517
|
+
Rendered /Users/fadhlirahim/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (71.1ms)
|
518
|
+
Rendered /Users/fadhlirahim/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (89.1ms)
|
519
|
+
|
520
|
+
|
521
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:33:06 +0800
|
522
|
+
Processing by ExceptionsController#index as HTML
|
523
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (90.8ms)
|
524
|
+
Completed 200 OK in 127ms (Views: 99.2ms | ActiveRecord: 0.0ms)
|
525
|
+
|
526
|
+
|
527
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:34:26 +0800
|
528
|
+
Processing by ExceptionsController#index as HTML
|
529
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (88.2ms)
|
530
|
+
Completed 200 OK in 168ms (Views: 96.4ms | ActiveRecord: 0.0ms)
|
531
|
+
|
532
|
+
|
533
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:35:33 +0800
|
534
|
+
Processing by ExceptionsController#index as HTML
|
535
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (89.8ms)
|
536
|
+
Completed 200 OK in 181ms (Views: 98.3ms | ActiveRecord: 0.0ms)
|
537
|
+
|
538
|
+
|
539
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:37:13 +0800
|
540
|
+
Processing by ExceptionsController#index as HTML
|
541
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (90.3ms)
|
542
|
+
Completed 200 OK in 127ms (Views: 98.7ms | ActiveRecord: 0.0ms)
|
543
|
+
|
544
|
+
|
545
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:39:00 +0800
|
546
|
+
Processing by ExceptionsController#index as HTML
|
547
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (90.3ms)
|
548
|
+
Completed 200 OK in 128ms (Views: 98.9ms | ActiveRecord: 0.0ms)
|
549
|
+
|
550
|
+
|
551
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:39:43 +0800
|
552
|
+
Processing by ExceptionsController#index as HTML
|
553
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (93.1ms)
|
554
|
+
Completed 200 OK in 130ms (Views: 101.5ms | ActiveRecord: 0.0ms)
|
555
|
+
|
556
|
+
|
557
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:40:15 +0800
|
558
|
+
Processing by ExceptionsController#index as HTML
|
559
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (88.9ms)
|
560
|
+
Completed 200 OK in 126ms (Views: 97.5ms | ActiveRecord: 0.0ms)
|
561
|
+
|
562
|
+
|
563
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:40:34 +0800
|
564
|
+
Processing by ExceptionsController#index as HTML
|
565
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (89.3ms)
|
566
|
+
Completed 200 OK in 127ms (Views: 98.1ms | ActiveRecord: 0.0ms)
|
567
|
+
|
568
|
+
|
569
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:40:59 +0800
|
570
|
+
Processing by ExceptionsController#index as HTML
|
571
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (88.6ms)
|
572
|
+
Completed 200 OK in 130ms (Views: 97.3ms | ActiveRecord: 0.0ms)
|
573
|
+
|
574
|
+
|
575
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:43:00 +0800
|
576
|
+
Processing by ExceptionsController#index as HTML
|
577
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (90.0ms)
|
578
|
+
Completed 200 OK in 127ms (Views: 98.4ms | ActiveRecord: 0.0ms)
|
579
|
+
|
580
|
+
|
581
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:43:54 +0800
|
582
|
+
Processing by ExceptionsController#index as HTML
|
583
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (89.5ms)
|
584
|
+
Completed 200 OK in 127ms (Views: 98.0ms | ActiveRecord: 0.0ms)
|
data/test/dummy/log/test.log
CHANGED
@@ -545,3 +545,32 @@ Started GET "/exceptions" for 127.0.0.1 at 2011-02-09 18:33:49 +0800
|
|
545
545
|
Processing by ExceptionsController#index as HTML
|
546
546
|
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (22.2ms)
|
547
547
|
Completed 200 OK in 33ms (Views: 31.8ms | ActiveRecord: 0.5ms)
|
548
|
+
[1m[36mSQL (0.5ms)[0m [1m SELECT name
|
549
|
+
FROM sqlite_master
|
550
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
551
|
+
[0m
|
552
|
+
|
553
|
+
|
554
|
+
Started GET "/posts" for 127.0.0.1 at 2011-02-10 12:46:54 +0800
|
555
|
+
Processing by PostsController#index as HTML
|
556
|
+
Completed in 11ms
|
557
|
+
|
558
|
+
|
559
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:46:54 +0800
|
560
|
+
Processing by ExceptionsController#index as HTML
|
561
|
+
Completed in 2ms
|
562
|
+
[1m[36mSQL (0.5ms)[0m [1m SELECT name
|
563
|
+
FROM sqlite_master
|
564
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
565
|
+
[0m
|
566
|
+
|
567
|
+
|
568
|
+
Started GET "/posts" for 127.0.0.1 at 2011-02-10 12:48:18 +0800
|
569
|
+
Processing by PostsController#index as HTML
|
570
|
+
Completed in 11ms
|
571
|
+
|
572
|
+
|
573
|
+
Started GET "/exceptions" for 127.0.0.1 at 2011-02-10 12:48:19 +0800
|
574
|
+
Processing by ExceptionsController#index as HTML
|
575
|
+
Rendered /Users/fadhlirahim/Projects/exception_engine/app/views/exceptions/index.html.erb within layouts/application (19.1ms)
|
576
|
+
Completed 200 OK in 28ms (Views: 27.2ms | ActiveRecord: 0.5ms)
|
@@ -0,0 +1 @@
|
|
1
|
+
1545
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: exception_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.3.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Muhammad Fadhli Rahim
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-02-
|
13
|
+
date: 2011-02-10 00:00:00 +08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- test/dummy/config/routes.rb
|
88
88
|
- test/dummy/config.ru
|
89
89
|
- test/dummy/db/development.sqlite3
|
90
|
+
- test/dummy/db/schema.rb
|
90
91
|
- test/dummy/db/test.sqlite3
|
91
92
|
- test/dummy/log/development.log
|
92
93
|
- test/dummy/log/production.log
|
@@ -104,6 +105,7 @@ files:
|
|
104
105
|
- test/dummy/public/javascripts/rails.js
|
105
106
|
- test/dummy/Rakefile
|
106
107
|
- test/dummy/script/rails
|
108
|
+
- test/dummy/tmp/pids/server.pid
|
107
109
|
- test/exception_engine_test.rb
|
108
110
|
- test/integration/navigation_test.rb
|
109
111
|
- test/support/integration_case.rb
|
@@ -157,6 +159,7 @@ test_files:
|
|
157
159
|
- test/dummy/config/routes.rb
|
158
160
|
- test/dummy/config.ru
|
159
161
|
- test/dummy/db/development.sqlite3
|
162
|
+
- test/dummy/db/schema.rb
|
160
163
|
- test/dummy/db/test.sqlite3
|
161
164
|
- test/dummy/log/development.log
|
162
165
|
- test/dummy/log/production.log
|
@@ -174,6 +177,7 @@ test_files:
|
|
174
177
|
- test/dummy/public/javascripts/rails.js
|
175
178
|
- test/dummy/Rakefile
|
176
179
|
- test/dummy/script/rails
|
180
|
+
- test/dummy/tmp/pids/server.pid
|
177
181
|
- test/exception_engine_test.rb
|
178
182
|
- test/integration/navigation_test.rb
|
179
183
|
- test/support/integration_case.rb
|