ixtlan-error-handler 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,10 +45,10 @@ module Ixtlan
45
45
  DEFAULT_MAP[ 404 ] << ::ActiveRecord::RecordNotFound
46
46
  end
47
47
 
48
- def initialize(app, dumper, dump_to_console = false, map = {} )
48
+ def initialize(app, dumper, map = {} )
49
49
  @app = app
50
50
  @dumper = dumper
51
- @dump_to_console = 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 }
@@ -25,7 +25,7 @@ module Ixtlan
25
25
 
26
26
  include DataMapper::Resource
27
27
 
28
- def self.storage_name(arg)
28
+ def self.storage_name( arg = :default )
29
29
  'ixtlan_errors'
30
30
  end
31
31
 
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.1
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-02-22 00:00:00.000000000 Z
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/error_serializer.rb~
162
- - lib/ixtlan/errors/dumper.rb~
163
- - lib/ixtlan/errors/rescue_module.rb
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/error_handler.rb~
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/error_handler.rb
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: