exceptional 2.0.22 → 2.0.23
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.
- data/init.rb +8 -5
- data/lib/exceptional/railtie.rb +1 -1
- data/lib/exceptional/version.rb +1 -1
- metadata +3 -3
data/init.rb
CHANGED
|
@@ -17,13 +17,16 @@ else
|
|
|
17
17
|
|
|
18
18
|
if (Rails::VERSION::MAJOR < 3)
|
|
19
19
|
Exceptional::Config.load(File.join(RAILS_ROOT, "/config/exceptional.yml"))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
if Exceptional::Config.should_send_to_api?
|
|
21
|
+
Exceptional.logger.info("Loading Exceptional #{Exceptional::VERSION} for #{Rails::VERSION::STRING}")
|
|
22
|
+
require File.join('exceptional', 'integration', 'rails')
|
|
23
|
+
require File.join('exceptional', 'integration', 'dj') if defined?(Delayed::Job)
|
|
24
|
+
end
|
|
24
25
|
else
|
|
26
|
+
Exceptional::Config.load(File.join(Rails.root, "/config/exceptional.yml"))
|
|
27
|
+
|
|
25
28
|
if Exceptional::Config.should_send_to_api?
|
|
26
|
-
Exceptional.logger.info("Loading Exceptional for #{Rails::VERSION::STRING}")
|
|
29
|
+
Exceptional.logger.info("Loading Exceptional #{Exceptional::VERSION} for #{Rails::VERSION::STRING}")
|
|
27
30
|
Rails.configuration.middleware.use "Rack::RailsExceptional"
|
|
28
31
|
require File.join('exceptional', 'integration', 'dj') if defined?(Delayed::Job)
|
|
29
32
|
end
|
data/lib/exceptional/railtie.rb
CHANGED
|
@@ -8,7 +8,7 @@ module Exceptional
|
|
|
8
8
|
Exceptional::Config.load(File.join(Rails.root, "/config/exceptional.yml"))
|
|
9
9
|
|
|
10
10
|
if Exceptional::Config.should_send_to_api?
|
|
11
|
-
Exceptional.logger.info("Loading Exceptional for #{Rails::VERSION::STRING}")
|
|
11
|
+
Exceptional.logger.info("Loading Exceptional #{Exceptional::VERSION} for #{Rails::VERSION::STRING}")
|
|
12
12
|
app.config.middleware.use "Rack::RailsExceptional"
|
|
13
13
|
end
|
|
14
14
|
end
|
data/lib/exceptional/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: exceptional
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 33
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 2.0.
|
|
9
|
+
- 23
|
|
10
|
+
version: 2.0.23
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Contrast
|