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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a59b10cd827731513426b228e5d19a58af562ca
4
- data.tar.gz: c9691c718cfac669916547060fe2515437ef09a6
3
+ metadata.gz: ba1be7a850ea94ace04e9efa6fa6d4c6e0ac1db6
4
+ data.tar.gz: c38fd1d1ef9abb8fe11cb6e753e492b6b8693b7e
5
5
  SHA512:
6
- metadata.gz: baaa7ad6cd490e13aa917cd02c684b3c04850b81f4943c8612aabd961b321f990ade9bcc5cb9f3f879cfd7d4b6683b7d2d4798c5f0a1a43544fb3b1a2b5df89f
7
- data.tar.gz: d91ee78cc723be8421b9c1adef00e59142558f2123f655862d070abb09f0e03aa66811094aa563d7e1b72d749ee8d27efc09c26b8cfd719012dbeb9c49020b4c
6
+ metadata.gz: 71ceaf81608805c2e63f8eff80f9e78d77c5a7e3793aa9b27d8850dcea79801d19a588f41a722388d9c1d06ff4d5feb1b30fad4860574dd0a5325329cef419f8
7
+ data.tar.gz: 1336df3462a84175207ab6c6f4fac477f2ed64ba990a0fad4bdd5472316befc2ccc40f1e720b7876c4ee75befb866a88166448e2feeb5c9f46d40d0ac937f712
@@ -50,7 +50,7 @@ module Honeybadger
50
50
  config = Config.new(config)
51
51
  end
52
52
 
53
- if !config[:enabled]
53
+ if config[:disabled]
54
54
  config.logger.info('Unable to start Honeybadger -- disabled by configuration.')
55
55
  return false
56
56
  elsif !config.valid?
@@ -81,7 +81,7 @@ module Honeybadger
81
81
 
82
82
  ENV['HONEYBADGER_LOGGING_PATH'] ||= 'STDOUT'
83
83
  ENV['HONEYBADGER_LOGGING_LEVEL'] ||= '0'
84
- ENV['HONEYBADGER_PUBLIC'] ||= 'true'
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['HONEYBADGER_PUBLIC'] ||= 'true'
111
+ ENV['HONEYBADGER_REPORT_DATA'] ||= 'true'
112
112
 
113
113
  exit(1) unless !options[:platform] || load_platform(options[:platform], options[:app])
114
114
 
@@ -80,9 +80,9 @@ module Honeybadger
80
80
  end
81
81
 
82
82
  def public?
83
- return true if self[:public]
84
- return false if self[:public] == false
85
- !self[:env] || self[:environments].include?(self[:env])
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
- hostname: {
29
- description: 'The hostname of the current box.',
30
- default: Socket.gethostname
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
- env: {
41
- description: 'The current application\'s environment name.',
42
- default: ENV['HONEYBADGER_ENV']
40
+ debug: {
41
+ description: 'Forces metrics and traces to be reported every 10 seconds rather than 60.',
42
+ default: false
43
43
  },
44
- public: {
45
- description: 'Enable reporting of data.',
46
- default: nil
44
+ disabled: {
45
+ description: 'Prevents Honeybadger from starting entirely.',
46
+ default: false
47
47
  },
48
- environments: {
49
- description: 'Public environments which are enabled for reporting automatically.',
50
- default: ['production'.freeze, 'staging'.freeze].freeze
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.',
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # Public: The current String Honeybadger version.
3
- VERSION = '2.0.0.beta.3'.freeze
3
+ VERSION = '2.0.0.beta.4'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta.3
4
+ version: 2.0.0.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Honeybadger Industries LLC