exceptional 2.0.26 → 2.0.27
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/lib/exceptional/version.rb
CHANGED
File without changes
|
@@ -124,6 +124,13 @@ describe Exceptional::ControllerExceptionData, 'with request/controller/params'
|
|
124
124
|
data.to_hash['request']['parameters'].should == {'var1' => '[FILTERED]'}
|
125
125
|
end
|
126
126
|
|
127
|
+
it "formats the occurred_at as iso8601" do
|
128
|
+
@request.stub!(:env).and_return({'SOME_VAR' => 'abc', 'HTTP_CONTENT_TYPE' => 'text/html', 'action_dispatch.parameter_filter' => [:var1]})
|
129
|
+
@request.stub!(:parameters).and_return({'var1' => 'abc'})
|
130
|
+
data = Exceptional::ControllerExceptionData.new(@error, @controller, @request)
|
131
|
+
data.to_hash['exception']['occurred_at'].should match(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.{1,6}$/)
|
132
|
+
end
|
133
|
+
|
127
134
|
it "ArgumentError bug with file object" do
|
128
135
|
file = File.new(File.expand_path('../../fixtures/favicon.png',__FILE__))
|
129
136
|
@request.stub!(:parameters).and_return({'something' => file })
|
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: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 27
|
10
|
+
version: 2.0.27
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Contrast
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09
|
18
|
+
date: 2010-11-09 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -49,6 +49,7 @@ files:
|
|
49
49
|
- lib/exceptional/startup.rb
|
50
50
|
- lib/exceptional/version.rb
|
51
51
|
- lib/exceptional.rb
|
52
|
+
- lib/tasks/exceptional_tasks.rake
|
52
53
|
- spec/bin/ginger
|
53
54
|
- spec/dj_integration_spec.rb
|
54
55
|
- spec/exceptional/alert_exception_data_spec.rb
|
@@ -72,7 +73,6 @@ files:
|
|
72
73
|
- spec/spec_helper.rb
|
73
74
|
- spec/standalone_spec.rb
|
74
75
|
- rails/init.rb
|
75
|
-
- tasks/exceptional_tasks.rake
|
76
76
|
- init.rb
|
77
77
|
- install.rb
|
78
78
|
- exceptional.gemspec
|