errplane 0.1.6 → 0.1.7

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,10 +1,13 @@
1
- # Errplane.configure(true) do |config|
2
- # config.logger ||= ::Sinatra.logger
3
- # config.rails_environment ||= ::Sinatra.environment
4
- # config.rails_root ||= ::Sinatra.root
5
- # config.framework = "Sinatra"
6
- # config.framework_version = ::Sinatra::VERSION
7
- # end
1
+ Errplane.configure(true) do |config|
2
+ config.logger ||= logger
3
+ config.rails_environment ||= settings.environment
4
+ config.rails_root ||= settings.root
5
+ config.framework = "Sinatra"
6
+ config.framework_version = ::Sinatra::VERSION
7
+ config.language = "Ruby"
8
+ config.language_version = "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
9
+ config.environment_variables = ENV.to_hash
10
+ end
8
11
 
9
12
  error do
10
13
  Errplane.transmit_unless_ignorable(request.env['sinatra.error'], request.env)
@@ -1,3 +1,3 @@
1
1
  module Errplane
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  require 'rails/generators'
2
- require 'active_support/secure_random'
2
+ require 'active_support'
3
3
 
4
4
  class ErrplaneGenerator < Rails::Generators::Base
5
5
  desc "Description:\n This creates a Rails initializer for Errplane."
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.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: