wrangler 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,44 @@
1
+ <%#
2
+ # NOTE: be very careful pulling data out of request in the view...it is
3
+ # NOT cleaned, and may contain private data (e.g. passwords), so
4
+ # scrutinize any use of @request in the views!
5
+ #-----------------------------------------------------------------------------
6
+ -%>
7
+ <% unless @request_data.blank? -%>
8
+ <%= @protocol %><%= @host %><%= @uri %>
9
+ <% end -%>
10
+
11
+ A <%= @exception.class %> occurred:
12
+ * <%= @exception.inspect %>
13
+ in <%= @backtrace.first %>
14
+
15
+ <% unless @backtrace.blank? -%>
16
+ --------------------------------------------------
17
+ BACKTRACE
18
+ --------------------------------------------------
19
+ <%= @backtrace.join("\n") %>
20
+ <% end -%>
21
+
22
+ <% unless @request.nil? || @request.session.nil? -%>
23
+ --------------------------------------------------
24
+ SESSION
25
+ --------------------------------------------------
26
+ *** session_id ***
27
+ <%= @request.session_options[:id] %>
28
+
29
+ *** data ***
30
+ <%= @request.session.to_hash.to_yaml %>
31
+ <% end -%>
32
+
33
+ <% unless @request_data.blank? -%>
34
+ --------------------------------------------------
35
+ REQUEST DATA
36
+ --------------------------------------------------
37
+ *** params ***
38
+ <%= @request_data.delete(:params).inspect %>
39
+
40
+ *** request headers ***
41
+ <% @request_data.keys.sort.each do |k| -%>
42
+ <%= "#{k}: #{@request_data[k].inspect}" %>
43
+ <% end -%>
44
+ <% end -%>
data/wrangler.gemspec ADDED
@@ -0,0 +1,61 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{wrangler}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Brian Percival"]
12
+ s.date = %q{2009-11-13}
13
+ s.description = %q{
14
+ To Do write description
15
+
16
+ }
17
+ s.email = %q{percivalatumamibuddotcom}
18
+ s.extra_rdoc_files = [
19
+ "LICENSE",
20
+ "README"
21
+ ]
22
+ s.files = [
23
+ "lib/wrangler.rb",
24
+ "lib/wrangler/exception_handler.rb",
25
+ "lib/wrangler/exception_notifier.rb",
26
+ "lib/wrangler/wrangler_exceptions.rb",
27
+ "lib/wrangler/wrangler_helper.rb",
28
+ "rails/app/views/wrangler/400.html",
29
+ "rails/app/views/wrangler/401.html",
30
+ "rails/app/views/wrangler/403.html",
31
+ "rails/app/views/wrangler/404.html",
32
+ "rails/app/views/wrangler/405.html",
33
+ "rails/app/views/wrangler/410.html",
34
+ "rails/app/views/wrangler/422.html",
35
+ "rails/app/views/wrangler/423.html",
36
+ "rails/app/views/wrangler/500.html",
37
+ "rails/app/views/wrangler/501.html",
38
+ "rails/app/views/wrangler/503.html",
39
+ "views/wrangler/exception_notifier/exception_notification.text.plain.erb",
40
+ "wrangler.gemspec"
41
+ ]
42
+ s.homepage = %q{http://github.com/bmpercy/wrangler}
43
+ s.rdoc_options = ["--charset=UTF-8"]
44
+ s.require_paths = ["lib"]
45
+ s.rubygems_version = %q{1.3.5}
46
+ s.summary = %q{Handles exceptions in rails apps, rendering error pages and emailing when exceptions occur}
47
+
48
+ if s.respond_to? :specification_version then
49
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
50
+ s.specification_version = 3
51
+
52
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
53
+ s.add_runtime_dependency(%q<actionmailer>, [">= 0"])
54
+ else
55
+ s.add_dependency(%q<actionmailer>, [">= 0"])
56
+ end
57
+ else
58
+ s.add_dependency(%q<actionmailer>, [">= 0"])
59
+ end
60
+ end
61
+
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wrangler
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Brian Percival
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-13 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: actionmailer
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description: |+
26
+
27
+ To Do write description
28
+
29
+ email: percivalatumamibuddotcom
30
+ executables: []
31
+
32
+ extensions: []
33
+
34
+ extra_rdoc_files:
35
+ - LICENSE
36
+ - README
37
+ files:
38
+ - lib/wrangler.rb
39
+ - lib/wrangler/exception_handler.rb
40
+ - lib/wrangler/exception_notifier.rb
41
+ - lib/wrangler/wrangler_exceptions.rb
42
+ - lib/wrangler/wrangler_helper.rb
43
+ - rails/app/views/wrangler/400.html
44
+ - rails/app/views/wrangler/401.html
45
+ - rails/app/views/wrangler/403.html
46
+ - rails/app/views/wrangler/404.html
47
+ - rails/app/views/wrangler/405.html
48
+ - rails/app/views/wrangler/410.html
49
+ - rails/app/views/wrangler/422.html
50
+ - rails/app/views/wrangler/423.html
51
+ - rails/app/views/wrangler/500.html
52
+ - rails/app/views/wrangler/501.html
53
+ - rails/app/views/wrangler/503.html
54
+ - views/wrangler/exception_notifier/exception_notification.text.plain.erb
55
+ - wrangler.gemspec
56
+ - LICENSE
57
+ - README
58
+ has_rdoc: true
59
+ homepage: http://github.com/bmpercy/wrangler
60
+ licenses: []
61
+
62
+ post_install_message:
63
+ rdoc_options:
64
+ - --charset=UTF-8
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
72
+ version:
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: "0"
78
+ version:
79
+ requirements: []
80
+
81
+ rubyforge_project:
82
+ rubygems_version: 1.3.5
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: Handles exceptions in rails apps, rendering error pages and emailing when exceptions occur
86
+ test_files: []
87
+