exceptional 2.0.12 → 2.0.13
Sign up to get free protection for your applications and to get access to all the features.
data/init.rb
CHANGED
@@ -15,9 +15,6 @@ if (defined?(Exceptional::VERSION::STRING) rescue nil) && %w(development test).i
|
|
15
15
|
else
|
16
16
|
begin
|
17
17
|
Exceptional::Config.load(File.join(RAILS_ROOT, "/config/exceptional.yml"))
|
18
|
-
if Exceptional::Config.should_send_to_api?
|
19
|
-
Exceptional::Startup.announce
|
20
|
-
end
|
21
18
|
require File.join('exceptional', 'integration', 'rails')
|
22
19
|
require File.join('exceptional', 'integration', 'dj')
|
23
20
|
rescue => e
|
@@ -14,7 +14,7 @@ module Exceptional
|
|
14
14
|
'env' => extract_environment(ENV),
|
15
15
|
'host' => get_hostname,
|
16
16
|
'run_as_user' => get_username,
|
17
|
-
'application_root_directory' => application_root,
|
17
|
+
'application_root_directory' => application_root.force_encoding("UTF-8"),
|
18
18
|
'language' => 'ruby',
|
19
19
|
'language_version' => language_version_string,
|
20
20
|
'framework' => framework,
|
@@ -14,7 +14,7 @@ module Exceptional
|
|
14
14
|
'exception_class' => @exception.class.to_s,
|
15
15
|
'message' => @exception.message,
|
16
16
|
'backtrace' => @exception.backtrace,
|
17
|
-
'occurred_at' => Time.now
|
17
|
+
'occurred_at' => Time.now
|
18
18
|
}
|
19
19
|
})
|
20
20
|
hash.merge!(extra_stuff)
|
data/lib/exceptional/version.rb
CHANGED
@@ -39,7 +39,7 @@ describe Exceptional::ControllerExceptionData, 'when no request/controller/param
|
|
39
39
|
error_hash['exception_class'].should == 'Exceptional::FunkyError'
|
40
40
|
error_hash['message'].should == 'some message'
|
41
41
|
error_hash['backtrace'].should == 'backtrace'
|
42
|
-
error_hash['occurred_at'].should == Time.now
|
42
|
+
DateTime.parse(error_hash['occurred_at']).should == Time.now
|
43
43
|
client_hash = @hash['client']
|
44
44
|
client_hash['name'].should == Exceptional::CLIENT_NAME
|
45
45
|
client_hash['version'].should == Exceptional::VERSION
|
@@ -49,7 +49,7 @@ describe Exceptional::RackExceptionData do
|
|
49
49
|
error_hash['exception_class'].should == 'Exceptional::FunkyError'
|
50
50
|
error_hash['message'].should == 'some message'
|
51
51
|
error_hash['backtrace'].should == 'backtrace'
|
52
|
-
error_hash['occurred_at'].should == Time.now.
|
52
|
+
DateTime.parse(error_hash['occurred_at']).should == DateTime.parse(Time.now.to_json)
|
53
53
|
end
|
54
54
|
|
55
55
|
it "should capture request details" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exceptional
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Contrast
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-04-11 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|