airbrake 3.0.rc1 → 3.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ Version 3.0.rc2 - Wed Aug 24 15:03:46 -0400 2011
2
+ ===============================================================================
3
+
4
+ Harold Gimenez:
5
+ Revert broken commit around exceptions that respond to #to_hash
6
+ Support latest versions of Rails.
7
+
8
+
1
9
  Version 3.0.rc1 - Fri Aug 19 08:51:53 -0400 2011
2
10
  ===============================================================================
3
11
 
@@ -437,5 +445,6 @@ Nick Quaranto (3):
437
445
 
438
446
 
439
447
 
448
+
440
449
 
441
450
 
@@ -12,3 +12,6 @@
12
12
  3.0.5
13
13
  3.0.6
14
14
  3.0.7
15
+ 3.0.8
16
+ 3.0.9
17
+ 3.0.10
data/lib/airbrake.rb CHANGED
@@ -20,7 +20,7 @@ require 'airbrake/railtie' if defined?(Rails::Railtie)
20
20
 
21
21
  # Gem for applications to automatically post errors to the Airbrake of their choice.
22
22
  module Airbrake
23
- API_VERSION = "2.0"
23
+ API_VERSION = "2.2"
24
24
  LOG_PREFIX = "** [Airbrake] "
25
25
 
26
26
  HEADERS = {
@@ -132,8 +132,11 @@ module Airbrake
132
132
 
133
133
  def build_notice_for(exception, opts = {})
134
134
  exception = unwrap_exception(exception)
135
- opts = opts.merge(:exception => exception)
136
- opts = opts.merge(exception.to_hash) if exception.respond_to?(:to_hash)
135
+ if exception.respond_to?(:to_hash)
136
+ opts = opts.merge(exception.to_hash)
137
+ else
138
+ opts = opts.merge(:exception => exception)
139
+ end
137
140
  Notice.new(configuration.merge(opts))
138
141
  end
139
142
 
@@ -1,3 +1,3 @@
1
1
  module Airbrake
2
- VERSION = "3.0.rc1".freeze
2
+ VERSION = "3.0.rc2".freeze
3
3
  end
@@ -82,19 +82,6 @@ class NotifierTest < Test::Unit::TestCase
82
82
  assert_sent(notice, notice_args)
83
83
  end
84
84
 
85
- should "create and send a notice for an exception that responds to to_hash" do
86
- set_public_env
87
- exception = build_exception
88
- notice = stub_notice!
89
- notice_args = { :error_message => 'uh oh' }
90
- exception.stubs(:to_hash).returns(notice_args)
91
- stub_sender!
92
-
93
- Airbrake.notify(exception)
94
-
95
- assert_sent(notice, notice_args.merge(:exception => exception))
96
- end
97
-
98
85
  should "create and sent a notice for an exception and hash" do
99
86
  set_public_env
100
87
  exception = build_exception
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424215
4
+ hash: 1276957477555352317
5
5
  prerelease: 4
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - rc
10
- - 1
11
- version: 3.0.rc1
10
+ - 2
11
+ version: 3.0.rc2
12
12
  platform: ruby
13
13
  authors:
14
14
  - thoughtbot, inc
@@ -16,7 +16,8 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-19 00:00:00 Z
19
+ date: 2011-08-24 00:00:00 -04:00
20
+ default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: builder
@@ -293,6 +294,7 @@ files:
293
294
  - test/recursion_test.rb
294
295
  - test/sender_test.rb
295
296
  - test/user_informer_test.rb
297
+ has_rdoc: true
296
298
  homepage: http://www.airbrakeapp.com
297
299
  licenses: []
298
300
 
@@ -324,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
326
  requirements: []
325
327
 
326
328
  rubyforge_project:
327
- rubygems_version: 1.8.6
329
+ rubygems_version: 1.5.2
328
330
  signing_key:
329
331
  specification_version: 3
330
332
  summary: Send your application errors to our hosted service and reclaim your inbox.