better_errors 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of better_errors might be problematic. Click here for more details.

@@ -7,7 +7,6 @@ require "better_errors/version"
7
7
  require "better_errors/error_page"
8
8
  require "better_errors/stack_frame"
9
9
  require "better_errors/middleware"
10
- require "better_errors/disable_logging_middleware"
11
10
  require "better_errors/code_formatter"
12
11
  require "better_errors/repl"
13
12
 
@@ -4,7 +4,6 @@ module BetterErrors
4
4
  initializer "better_errors.configure_rails_initialization" do
5
5
  unless Rails.env.production?
6
6
  Rails.application.middleware.use BetterErrors::Middleware
7
- Rails.application.middleware.insert_before Rails::Rack::Logger, BetterErrors::DisableLoggingMiddleware
8
7
  BetterErrors.logger = Rails.logger
9
8
  BetterErrors.application_root = Rails.root.to_s
10
9
  end
@@ -1,3 +1,3 @@
1
1
  module BetterErrors
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-16 00:00:00.000000000 Z
12
+ date: 2012-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -143,7 +143,6 @@ files:
143
143
  - lib/better_errors.rb
144
144
  - lib/better_errors/code_formatter.rb
145
145
  - lib/better_errors/core_ext/exception.rb
146
- - lib/better_errors/disable_logging_middleware.rb
147
146
  - lib/better_errors/error_page.rb
148
147
  - lib/better_errors/middleware.rb
149
148
  - lib/better_errors/rails.rb
@@ -1,16 +0,0 @@
1
- module BetterErrors
2
- # @private
3
- class DisableLoggingMiddleware
4
- def initialize(app)
5
- @app = app
6
- end
7
-
8
- def call(env)
9
- original_level = BetterErrors.logger.level
10
- BetterErrors.logger.level = Logger::ERROR if env['PATH_INFO'].index("/__better_errors") == 0
11
- @app.call(env)
12
- ensure
13
- BetterErrors.logger.level = original_level
14
- end
15
- end
16
- end