bugsnag 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.3
1
+ 1.2.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bugsnag"
8
- s.version = "1.2.3"
8
+ s.version = "1.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James Smith"]
12
- s.date = "2012-10-03"
12
+ s.date = "2012-10-04"
13
13
  s.description = "Ruby notifier for bugsnag.com"
14
14
  s.email = "james@bugsnag.com"
15
15
  s.extra_rdoc_files = [
@@ -36,7 +36,7 @@ module Bugsnag
36
36
 
37
37
  def initialize
38
38
  # Set up the defaults
39
- self.release_stage = "production"
39
+ self.release_stage = nil
40
40
  self.notify_release_stages = ["production"]
41
41
  self.auto_notify = true
42
42
  self.use_ssl = false
@@ -46,7 +46,7 @@ module Bugsnag
46
46
 
47
47
  # Set up logging
48
48
  self.logger = Logger.new(STDOUT)
49
- self.logger.level = Logger::WARN if self.release_stage == "production"
49
+ self.logger.level = Logger::WARN
50
50
 
51
51
  # Configure the bugsnag middleware stack
52
52
  self.middleware = Bugsnag::MiddlewareStack.new
@@ -54,7 +54,7 @@ module Bugsnag
54
54
  end
55
55
 
56
56
  def should_notify?
57
- @notify_release_stages.include?(@release_stage)
57
+ @release_stage.nil? || @notify_release_stages.include?(@release_stage)
58
58
  end
59
59
 
60
60
  def request_data
@@ -25,7 +25,7 @@ module Bugsnag
25
25
 
26
26
  Bugsnag.configure do |config|
27
27
  config.logger ||= rails_logger
28
- config.release_stage = RAILS_ENV if defined?(RAILS_ENV)
28
+ config.release_stage = RAILS_ENV if defined?(RAILS_ENV)
29
29
  config.project_root = RAILS_ROOT if defined?(RAILS_ROOT)
30
30
 
31
31
  config.middleware.use Bugsnag::Middleware::Rails2Request
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 3
10
- version: 1.2.3
9
+ - 4
10
+ version: 1.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Smith
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-03 00:00:00 Z
18
+ date: 2012-10-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement