errplane 0.4.4 → 0.4.5

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.
@@ -1,12 +1,14 @@
1
1
  Errplane.configure(true) do |config|
2
2
  config.logger ||= ENV['rack.logger']
3
- config.rails_environment ||= settings.environment
4
- config.application_root ||= settings.root
3
+ config.rails_environment ||= settings.environment if defined?(settings)
4
+ config.application_root ||= settings.root if defined?(settings)
5
5
  config.framework = "Sinatra"
6
6
  config.framework_version = ::Sinatra::VERSION
7
7
  end
8
8
 
9
- error do
10
- Errplane.transmit_unless_ignorable(request.env['sinatra.error'], request.env)
11
- raise request.env['sinatra.error']
12
- end
9
+ if defined?(error)
10
+ error do
11
+ Errplane.transmit_unless_ignorable(request.env['sinatra.error'], request.env)
12
+ raise request.env['sinatra.error']
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Errplane
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errplane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: