honeybadger 2.0.0.beta.3 → 2.0.0.beta.4
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.
- checksums.yaml +4 -4
- data/lib/honeybadger/agent.rb +1 -1
- data/lib/honeybadger/cli.rb +2 -2
- data/lib/honeybadger/config.rb +3 -3
- data/lib/honeybadger/config/defaults.rb +20 -20
- data/lib/honeybadger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba1be7a850ea94ace04e9efa6fa6d4c6e0ac1db6
|
4
|
+
data.tar.gz: c38fd1d1ef9abb8fe11cb6e753e492b6b8693b7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71ceaf81608805c2e63f8eff80f9e78d77c5a7e3793aa9b27d8850dcea79801d19a588f41a722388d9c1d06ff4d5feb1b30fad4860574dd0a5325329cef419f8
|
7
|
+
data.tar.gz: 1336df3462a84175207ab6c6f4fac477f2ed64ba990a0fad4bdd5472316befc2ccc40f1e720b7876c4ee75befb866a88166448e2feeb5c9f46d40d0ac937f712
|
data/lib/honeybadger/agent.rb
CHANGED
data/lib/honeybadger/cli.rb
CHANGED
@@ -81,7 +81,7 @@ module Honeybadger
|
|
81
81
|
|
82
82
|
ENV['HONEYBADGER_LOGGING_PATH'] ||= 'STDOUT'
|
83
83
|
ENV['HONEYBADGER_LOGGING_LEVEL'] ||= '0'
|
84
|
-
ENV['
|
84
|
+
ENV['HONEYBADGER_REPORT_DATA'] ||= 'true'
|
85
85
|
|
86
86
|
exit(1) unless !options[:platform] || load_platform(options[:platform], options[:app])
|
87
87
|
say("\n") if options[:platform] # Print a blank line if we just logged the platform.
|
@@ -108,7 +108,7 @@ module Honeybadger
|
|
108
108
|
|
109
109
|
ENV['HONEYBADGER_LOGGING_PATH'] ||= 'STDOUT'
|
110
110
|
ENV['HONEYBADGER_LOGGING_LEVEL'] ||= '2'
|
111
|
-
ENV['
|
111
|
+
ENV['HONEYBADGER_REPORT_DATA'] ||= 'true'
|
112
112
|
|
113
113
|
exit(1) unless !options[:platform] || load_platform(options[:platform], options[:app])
|
114
114
|
|
data/lib/honeybadger/config.rb
CHANGED
@@ -80,9 +80,9 @@ module Honeybadger
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def public?
|
83
|
-
return true if self[:
|
84
|
-
return false if self[:
|
85
|
-
!self[:env] || self[:
|
83
|
+
return true if self[:report_data]
|
84
|
+
return false if self[:report_data] == false
|
85
|
+
!self[:env] || !Array(self[:development_environments]).include?(self[:env])
|
86
86
|
end
|
87
87
|
|
88
88
|
def default_backend
|
@@ -13,41 +13,41 @@ module Honeybadger
|
|
13
13
|
'Sinatra::NotFound'].map(&:freeze).freeze
|
14
14
|
|
15
15
|
OPTIONS = {
|
16
|
-
enabled: {
|
17
|
-
description: 'Determines if Honeybadger will start.',
|
18
|
-
default: true
|
19
|
-
},
|
20
|
-
debug: {
|
21
|
-
description: 'Forces metrics and traces to be reported every 10 seconds rather than 60.',
|
22
|
-
default: false
|
23
|
-
},
|
24
16
|
api_key: {
|
25
17
|
description: 'The API key for your Honeybadger project.',
|
26
18
|
default: nil
|
27
19
|
},
|
28
|
-
|
29
|
-
description: 'The
|
30
|
-
default:
|
20
|
+
env: {
|
21
|
+
description: 'The current application\'s environment name.',
|
22
|
+
default: ENV['HONEYBADGER_ENV']
|
23
|
+
},
|
24
|
+
report_data: {
|
25
|
+
description: 'Enable/disable reporting of data. Defaults to true for non-development environments.',
|
26
|
+
default: nil
|
31
27
|
},
|
32
28
|
root: {
|
33
29
|
description: 'The project\'s absolute root path.',
|
34
30
|
default: Dir.pwd
|
35
31
|
},
|
32
|
+
hostname: {
|
33
|
+
description: 'The hostname of the current box.',
|
34
|
+
default: Socket.gethostname
|
35
|
+
},
|
36
36
|
backend: {
|
37
37
|
description: 'An alternate backend to use for reporting data.',
|
38
38
|
default: nil
|
39
39
|
},
|
40
|
-
|
41
|
-
description: '
|
42
|
-
default:
|
40
|
+
debug: {
|
41
|
+
description: 'Forces metrics and traces to be reported every 10 seconds rather than 60.',
|
42
|
+
default: false
|
43
43
|
},
|
44
|
-
|
45
|
-
description: '
|
46
|
-
default:
|
44
|
+
disabled: {
|
45
|
+
description: 'Prevents Honeybadger from starting entirely.',
|
46
|
+
default: false
|
47
47
|
},
|
48
|
-
|
49
|
-
description: '
|
50
|
-
default: ['
|
48
|
+
development_environments: {
|
49
|
+
description: 'Environments which are disabled by default (use report_data to enable/disable explicitly).',
|
50
|
+
default: ['development'.freeze, 'test'.freeze, 'cucumber'.freeze].freeze
|
51
51
|
},
|
52
52
|
plugins: {
|
53
53
|
description: 'An optional list of plugins to load. Default is to load all plugins.',
|
data/lib/honeybadger/version.rb
CHANGED