exceptional 2.0.30 → 2.0.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,10 +5,13 @@ module Exceptional
5
5
  class Railtie < Rails::Railtie
6
6
 
7
7
  initializer "exceptional.middleware" do |app|
8
- Exceptional::Config.load(File.join(Rails.root, "/config/exceptional.yml"))
8
+
9
+ config_file = File.join(Rails.root, "/config/exceptional.yml")
10
+ Exceptional::Config.load config_file if File.exist?(config_file)
11
+ # On Heroku config is loaded via the ENV so no need to load it from the file
9
12
 
10
13
  if Exceptional::Config.should_send_to_api?
11
- Exceptional.logger.info("Loading Exceptional #{Exceptional::VERSION} for #{Rails::VERSION::STRING}")
14
+ Exceptional.logger.info("Loading Exceptional #{Exceptional::VERSION} for #{Rails::VERSION::STRING}")
12
15
  app.config.middleware.use "Rack::RailsExceptional"
13
16
  end
14
17
  end
@@ -1,3 +1,3 @@
1
1
  module Exceptional
2
- VERSION = '2.0.30'
2
+ VERSION = '2.0.31'
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exceptional
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 49
4
5
  prerelease: false
5
6
  segments:
6
7
  - 2
7
8
  - 0
8
- - 30
9
- version: 2.0.30
9
+ - 31
10
+ version: 2.0.31
10
11
  platform: ruby
11
12
  authors:
12
13
  - Contrast
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-12-08 00:00:00 +00:00
18
+ date: 2010-12-16 00:00:00 +00:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 3
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
@@ -102,6 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
104
  requirements:
103
105
  - - ">="
104
106
  - !ruby/object:Gem::Version
107
+ hash: 3
105
108
  segments:
106
109
  - 0
107
110
  version: "0"
@@ -110,6 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
113
  requirements:
111
114
  - - ">="
112
115
  - !ruby/object:Gem::Version
116
+ hash: 3
113
117
  segments:
114
118
  - 0
115
119
  version: "0"