me_exceptional 0.0.1 → 0.0.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.
data/README.rdoc
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
|
2
|
-
|
3
2
|
= MeExceptional
|
4
3
|
|
5
4
|
The Gem notifies you of application exceptions by email and adds some
|
@@ -14,7 +13,7 @@ Install the gem in your Rails 3 App as usual:
|
|
14
13
|
|
15
14
|
gem install me_exceptional
|
16
15
|
|
17
|
-
|
16
|
+
After you have installed MeExceptional and added it to your Gemfile, run the generator.
|
18
17
|
|
19
18
|
rails generate me_exceptional:install
|
20
19
|
|
@@ -22,16 +21,44 @@ The generator will create an initializer which you MUST take a look at
|
|
22
21
|
and configure.
|
23
22
|
|
24
23
|
|
25
|
-
Support for Rails 2.x is not provided so far.
|
24
|
+
NOTE: Support for Rails 2.x is not provided so far.
|
26
25
|
|
27
26
|
|
28
27
|
== Getting Started
|
29
28
|
|
30
|
-
|
31
|
-
|
29
|
+
Being an engine MeExceptional has mailer and views already set up for
|
30
|
+
you to get started; if your app raises an exception production mode you
|
31
|
+
will get notified by email (note: doesn't work for routing errors so far
|
32
|
+
because of a bug in rails). You may, however change view and mailer to
|
33
|
+
suit you better.
|
32
34
|
|
33
35
|
=== Configuring views
|
34
36
|
|
35
|
-
|
37
|
+
If you want to change the email, you just need to invoke the generator
|
38
|
+
that copies it over to your application:
|
39
|
+
|
40
|
+
rails generate me_exceptional:views
|
41
|
+
|
42
|
+
This copies the mailer views to "/app/views/me_exceptional".
|
43
|
+
|
44
|
+
|
45
|
+
=== Configuring mailer
|
46
|
+
|
47
|
+
In case you also want to customize the mailer, invoke the mailer generator:
|
48
|
+
|
49
|
+
rails generate me_exceptional:mailer
|
50
|
+
|
51
|
+
This creates the directory "/app/mailers/me_exceptional" with the mailer contained.
|
52
|
+
|
53
|
+
|
54
|
+
== Outlook
|
55
|
+
|
56
|
+
* more gem side configuration options
|
57
|
+
* asynchronous mailing options
|
58
|
+
* routing errors and other errors
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
36
63
|
|
37
64
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module MeExceptional
|
2
|
+
module Generators
|
3
|
+
|
4
|
+
class MailersGenerator < Rails::Generators::Base
|
5
|
+
source_root File.expand_path("../../../../app/mailers", __FILE__)
|
6
|
+
desc "Copies all mailers to your applications"
|
7
|
+
|
8
|
+
def copy_mailers
|
9
|
+
directory "me_exceptional", "app/mailers/#{:me_exceptional}"
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module MeExceptional
|
2
|
+
module Generators
|
3
|
+
|
4
|
+
class ViewsGenerator < Rails::Generators::Base
|
5
|
+
source_root File.expand_path("../../../../app/views", __FILE__)
|
6
|
+
|
7
|
+
desc "Copies all views to your application"
|
8
|
+
|
9
|
+
def copy_views
|
10
|
+
directory "me_exceptional", "app/views/#{:me_exceptional}"
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
@@ -1,4 +1,16 @@
|
|
1
|
+
===============================================================================
|
2
|
+
|
3
|
+
Some setup you must do manually if you haven't yet:
|
4
|
+
|
5
|
+
1. Be sure you have a working ActionMailer configuration
|
6
|
+
|
7
|
+
2. Ensure you have set up sender and receiver of the exception mails:
|
8
|
+
|
9
|
+
config.mailer_from = "please-change-me@example.com"
|
10
|
+
config.mailer_to = "please-change-me@example.com"
|
11
|
+
|
12
|
+
===============================================================================
|
13
|
+
|
1
14
|
|
2
|
-
= README for MeExceptional
|
3
15
|
|
4
16
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: me_exceptional
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kai Rubarth
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-17 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -63,6 +63,8 @@ files:
|
|
63
63
|
- app/mailers/me_exceptional/mailer.rb
|
64
64
|
- app/views/me_exceptional/mailer/exceptional.html.erb
|
65
65
|
- lib/generators/me_exceptional/install_generator.rb
|
66
|
+
- lib/generators/me_exceptional/mailers_generator.rb
|
67
|
+
- lib/generators/me_exceptional/views_generator.rb
|
66
68
|
- lib/generators/templates/README
|
67
69
|
- lib/generators/templates/me_exceptional.rb
|
68
70
|
- lib/me_exceptional.rb
|