tkh_admin_panel 0.2.4 → 0.2.4.1

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.
@@ -0,0 +1,8 @@
1
+ class AdminMailer < ActionMailer::Base
2
+ default from: "Exception Notifier <deploy@ohlalaweb.com>"
3
+
4
+ def rescued_exceptions(exception, message)
5
+ @exception, @message = exception, message
6
+ mail to: "Swami Atma <swami@TenThousandHours.eu>", subject: "Rescued Exception - #{Setting.first.site_name}"
7
+ end
8
+ end
@@ -0,0 +1,15 @@
1
+ Hi Swami Atma,
2
+
3
+ This is Swami Atma here :-)
4
+
5
+ Here is the message sent by the controller:
6
+ <%= @message %>
7
+
8
+ And here is the actual exception:
9
+ <%= @exception %>
10
+
11
+ ... and the exception 'inspected'
12
+ <%= @exception.inspect %>
13
+
14
+ ... and the exception backtrace
15
+ <%= @exception.backtrace.join("\n") unless @exception.backtrace.nil? %>
@@ -1,3 +1,3 @@
1
1
  module TkhAdminPanel
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.4.1"
3
3
  end
@@ -11,6 +11,8 @@ Gem::Specification.new do |gem|
11
11
  gem.add_dependency "railties", "~> 3.2"
12
12
  gem.add_dependency "bootstrap-sass", '~> 2.0'
13
13
  gem.add_dependency "simple_form", '~> 2.0'
14
+ gem.add_dependency 'exception_notification'
15
+
14
16
  # This gem does not support p tags until wysihtml5 0.4 is released and linked to gem below
15
17
  # gem.add_dependency 'bootstrap-wysihtml5-rails'
16
18
  # try using my own tkh_inline_editor instead
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_admin_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-03 00:00:00.000000000 Z
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -59,6 +59,22 @@ dependencies:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: exception_notification
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
62
78
  - !ruby/object:Gem::Dependency
63
79
  name: tkh_inline_editor
64
80
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +110,9 @@ files:
94
110
  - app/assets/stylesheets/admin.css.scss
95
111
  - app/assets/stylesheets/bootstrap_and_overrides.css.scss
96
112
  - app/controllers/settings_controller.rb
113
+ - app/mailers/admin_mailer.rb
97
114
  - app/models/setting.rb
115
+ - app/views/admin_mailer/rescued_exceptions.text.erb
98
116
  - app/views/layouts/admin.html.erb
99
117
  - app/views/settings/edit.html.erb
100
118
  - app/views/settings/show.html.erb