ixtlan-error-handler 0.4.1 → 0.4.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/lib/ixtlan/errors/rack.rb +2 -2
- data/lib/ixtlan/errors/resource.rb +1 -1
- metadata +19 -35
data/lib/ixtlan/errors/rack.rb
CHANGED
|
@@ -45,10 +45,10 @@ module Ixtlan
|
|
|
45
45
|
DEFAULT_MAP[ 404 ] << ::ActiveRecord::RecordNotFound
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
def initialize(app, dumper,
|
|
48
|
+
def initialize(app, dumper, map = {} )
|
|
49
49
|
@app = app
|
|
50
50
|
@dumper = dumper
|
|
51
|
-
@dump_to_console =
|
|
51
|
+
@dump_to_console = dumper.keep_dumps == 0
|
|
52
52
|
@map = {}
|
|
53
53
|
DEFAULT_MAP.each do |status, list|
|
|
54
54
|
list.each { |exp| @map[ exp ] = status }
|
metadata
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
name: ixtlan-error-handler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.4.
|
|
5
|
+
version: 0.4.2
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Christian Meier
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: slf4r
|
|
@@ -123,22 +123,6 @@ dependencies:
|
|
|
123
123
|
none: false
|
|
124
124
|
prerelease: false
|
|
125
125
|
type: :development
|
|
126
|
-
- !ruby/object:Gem::Dependency
|
|
127
|
-
name: copyright-header
|
|
128
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
129
|
-
requirements:
|
|
130
|
-
- - "~>"
|
|
131
|
-
- !ruby/object:Gem::Version
|
|
132
|
-
version: 1.0.7
|
|
133
|
-
none: false
|
|
134
|
-
requirement: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - "~>"
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: 1.0.7
|
|
139
|
-
none: false
|
|
140
|
-
prerelease: false
|
|
141
|
-
type: :development
|
|
142
126
|
description: dump errors on filesystem and notify developers, map different errors to specific pages
|
|
143
127
|
email:
|
|
144
128
|
- m.kristian@web.de
|
|
@@ -149,31 +133,31 @@ files:
|
|
|
149
133
|
- MIT-LICENSE
|
|
150
134
|
- README.textile
|
|
151
135
|
- lib/ixtlan-error-handler.rb
|
|
152
|
-
- lib/ixtlan/errors/cuba.rb~
|
|
153
|
-
- lib/ixtlan/errors/mailer.rb
|
|
154
|
-
- lib/ixtlan/errors/cuba.rb
|
|
155
|
-
- lib/ixtlan/errors/dumper.rb
|
|
156
|
-
- lib/ixtlan/errors/error_handling.rb~
|
|
157
|
-
- lib/ixtlan/errors/error.rb~
|
|
158
|
-
- lib/ixtlan/errors/resource.rb~
|
|
159
136
|
- lib/ixtlan/errors/rescue_module.rb~
|
|
137
|
+
- lib/ixtlan/errors/mailer.rb~
|
|
138
|
+
- lib/ixtlan/errors/rack.rb
|
|
160
139
|
- lib/ixtlan/errors/resource.rb
|
|
161
|
-
- lib/ixtlan/errors/
|
|
162
|
-
- lib/ixtlan/errors/
|
|
163
|
-
- lib/ixtlan/errors/
|
|
140
|
+
- lib/ixtlan/errors/resource.rb~
|
|
141
|
+
- lib/ixtlan/errors/rack.rb~
|
|
142
|
+
- lib/ixtlan/errors/dumper.rb
|
|
143
|
+
- lib/ixtlan/errors/railtie.rb
|
|
164
144
|
- lib/ixtlan/errors/error_dumper.rb~
|
|
165
|
-
- lib/ixtlan/errors/
|
|
145
|
+
- lib/ixtlan/errors/dumper.rb~
|
|
146
|
+
- lib/ixtlan/errors/cuba.rb
|
|
147
|
+
- lib/ixtlan/errors/error_serializer.rb~
|
|
166
148
|
- lib/ixtlan/errors/railtie.rb~
|
|
167
|
-
- lib/ixtlan/errors/
|
|
168
|
-
- lib/ixtlan/errors/railtie.rb
|
|
169
|
-
- lib/ixtlan/errors/mailer.rb~
|
|
170
|
-
- lib/ixtlan/errors/rack.rb~
|
|
171
|
-
- lib/ixtlan/errors/rack.rb
|
|
149
|
+
- lib/ixtlan/errors/rescue_module.rb
|
|
172
150
|
- lib/ixtlan/errors/serializer.rb
|
|
151
|
+
- lib/ixtlan/errors/error.rb~
|
|
152
|
+
- lib/ixtlan/errors/error_handler.rb
|
|
153
|
+
- lib/ixtlan/errors/mailer.rb
|
|
154
|
+
- lib/ixtlan/errors/error_handling.rb~
|
|
155
|
+
- lib/ixtlan/errors/error_handler.rb~
|
|
156
|
+
- lib/ixtlan/errors/cuba.rb~
|
|
173
157
|
- lib/ixtlan/errors/mailer/error_notification.erb
|
|
158
|
+
- spec/error_dumper_spec.rb~
|
|
174
159
|
- spec/error_handler_spec.rb
|
|
175
160
|
- spec/dumper_spec.rb
|
|
176
|
-
- spec/error_dumper_spec.rb~
|
|
177
161
|
- spec/error_handler_spec.rb~
|
|
178
162
|
homepage: http://github.com/mkristian/ixtlan-error-handler
|
|
179
163
|
licenses:
|