rack-insight 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.5.9 / 2012-09-03 (Peter Boling)
2
+
3
+ * New Features
4
+
5
+ * FilteredBacktrace was disabled in LogicalInsight. It's now back. It is now configurable via the configure block.
6
+
1
7
  == 0.5.8 / 2012-09-03 (Peter Boling)
2
8
 
3
9
  * Bug Fixes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-insight (0.5.7)
4
+ rack-insight (0.5.9)
5
5
  rack
6
6
  sqlite3 (>= 1.3.3)
7
7
  uuidtools (>= 2.1.2)
@@ -1,13 +1,14 @@
1
1
  module Rack::Insight
2
2
  class Config
3
3
  class << self
4
- attr_reader :config, :verbosity, :log_file, :log_level, :rails_log_copy
4
+ attr_reader :config, :verbosity, :log_file, :log_level, :rails_log_copy, :filtered_backtrace
5
5
  end
6
6
  @log_file = STDOUT
7
7
  @log_level = ::Logger::DEBUG
8
8
  @logger = nil
9
9
  @verbosity = true
10
10
  @rails_log_copy = true
11
+ @filtered_backtrace = true
11
12
 
12
13
  DEFAULTS = {
13
14
  # You can augment or replace the default set of panel load paths.
@@ -24,7 +25,8 @@ module Rack::Insight
24
25
  :log_level => @log_level,
25
26
  :rails_log_copy => @rails_log_copy, # Only has effect when logger is the Rack::Insight::Logger, or a logger behaving like it
26
27
  # Can set a specific verbosity: Rack::Insight::Logging::VERBOSITY[:debug]
27
- :verbosity => @verbosity # true is equivalent to relying soley on the log level of each logged message
28
+ :verbosity => @verbosity, # true is equivalent to relying soley on the log level of each logged message
29
+ :filtered_backtrace => @filtered_backtrace # Full backtraces, or filtered ones?
28
30
  }
29
31
 
30
32
  @config ||= DEFAULTS
@@ -35,6 +37,7 @@ module Rack::Insight
35
37
  @log_level = config[:log_level]
36
38
  @log_file = config[:log_file]
37
39
  @verbosity = config[:verbosity]
40
+ @filtered_backtrace = config[:filtered_backtrace]
38
41
  unless config[:panel_load_paths].kind_of?(Array)
39
42
  raise "Rack::Insight::Config.config[:panel_load_paths] is invalid: Expected kind of Array but got #{config[:panel_load_paths].class}"
40
43
  end
@@ -16,7 +16,7 @@ module Rack::Insight
16
16
  def self.backtrace_regexp
17
17
  @backtrace_regexp ||=
18
18
  begin
19
- if true or (app_root = root_for_backtrace_filtering).nil?
19
+ if !Rack::Insight::Config.filtered_backtrace || (app_root = root_for_backtrace_filtering).nil?
20
20
  /.*/
21
21
  else
22
22
  excludes = %w{vendor}
@@ -1,7 +1,7 @@
1
1
  module Rack
2
2
  module Insight
3
3
 
4
- VERSION = '0.5.8'
4
+ VERSION = '0.5.9'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-insight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-09-04 00:00:00.000000000 Z
15
+ date: 2012-09-05 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rack