rollbar 0.10.12 → 0.10.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWUyNTdhMGRhMTM0YWJkNjgyOGRlMmVmMTczY2U4ZmJmZTFjZjE1Zg==
4
+ NDc4YjdkMjFkMWM2Y2ZjODM5MjVjOTRmOTkyYzdkNTdjOWZjMGU2Mg==
5
5
  data.tar.gz: !binary |-
6
- M2M0YjEwNTJmYTYzMDczZjkxOTU0YThkZWUxZWVmOGQxYzE3N2YwMQ==
6
+ NTg3YWJmOWNjZThlZmM4ZGEyZjFiOWRjMmRmYWVkMzU4OTQ5NWU0Nw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZDBhYTFiZGNhOWE0YjVjZDI3NjJjMTFiZmViMzNhYjJmMzk4NTY1Njk1N2Vh
10
- NmJmZjk0NmZkNGJkNTA0OTU0NGIwMGVmM2NmNTY1MThhZmYzZDA3MmM4NTAw
11
- YjhlNzA5MjdjZjcyYTg5NTA3MDJkMThmYmQ1YWMyMGNjZGU3ZDM=
9
+ ZDk2YTk4NmVkYzJlZGQwZmFmZWU3ZmM0YmEzYWEzZjIwYzlhYzMxMjFhN2Uy
10
+ Mzc1YTRhNWViNzE5NjgzNGFjMzMxYjgxYTI1Y2MwZDEwZDM0ZThmNDVkYzgz
11
+ NDY5MTZkY2U2OTkyYWExZjE0OWI3NDBmOTYxMDE0MWFjZWEwMjM=
12
12
  data.tar.gz: !binary |-
13
- M2UwY2Y1OTc4ZjFkYzEzN2FjZDBlMjgyYWRiMGVlMjg4Zjk0YmM5YzEwMzEz
14
- NWM5ODE5ZGQyZWFiY2UxZDExZTk3ODNhYWQ2NWE1MGNhM2Q2ZjIwODNkNWFi
15
- OTRhMzUwM2ZkZTFiZjMwNDQ5MTJlNmUyMzljNjg2M2FiNDEwNGQ=
13
+ ODZmMzhiY2ZlNGQ3YmI5OTI3NTU5ZGRmOGExY2YwOTlkZTVkYzM0MDBmMmZk
14
+ YzQzZWNiNWNiZGM3OGY5NmQ4NzBkMTlhZjE1OWU4NGNkNmE4YzFjMTExODc2
15
+ NDZiZTUxZTIxNmRkMzE3MTUzN2IyYmMzNWIwNDg5ZTNiYzFiNjk=
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ **0.10.14**
4
+ - Fixed compatability issue with better_errors 1.0
5
+
6
+ **0.10.13**
7
+ - Added `code_version` configuration setting
8
+
3
9
  **0.10.12**
4
10
  - Exclude HTTP_COOKIE header (since cookies are already included in parsed form)
5
11
 
@@ -348,6 +348,10 @@ module Rollbar
348
348
  }
349
349
  }
350
350
 
351
+ if config.code_version
352
+ data[:code_version] = config.code_version
353
+ end
354
+
351
355
  if defined?(SecureRandom) and SecureRandom.respond_to?(:uuid)
352
356
  data[:uuid] = SecureRandom.uuid
353
357
  end
@@ -3,12 +3,13 @@ require 'better_errors'
3
3
  module BetterErrors
4
4
  class Middleware
5
5
  alias_method :orig_show_error_page, :show_error_page
6
-
6
+
7
7
  private
8
8
 
9
- def show_error_page(env)
9
+ def show_error_page(*args)
10
10
  exception = @error_page.exception
11
-
11
+
12
+ env = args.first
12
13
  exception_data = nil
13
14
  begin
14
15
  controller = env['action_controller.instance']
@@ -17,9 +18,9 @@ module BetterErrors
17
18
  exception_data = Rollbar.report_exception(exception, request_data, person_data)
18
19
  rescue => e
19
20
  # TODO use logger here?
20
- puts "[Rollbar] Exception while reporting exception to Rollbar: #{e}"
21
+ puts "[Rollbar] Exception while reporting exception to Rollbar: #{e}"
21
22
  end
22
-
23
+
23
24
  # if an exception was reported, save uuid in the env
24
25
  # so it can be displayed to the user on the error page
25
26
  if exception_data.is_a?(Hash)
@@ -30,9 +31,9 @@ module BetterErrors
30
31
  elsif exception_data == 'ignored'
31
32
  puts "[Rollbar] Exception not reported because it was ignored"
32
33
  end
33
-
34
+
34
35
  # now continue as normal
35
- orig_show_error_page(env)
36
+ orig_show_error_page(*args)
36
37
  end
37
38
  end
38
39
  end
@@ -6,6 +6,7 @@ module Rollbar
6
6
  attr_accessor :access_token
7
7
  attr_accessor :async_handler
8
8
  attr_accessor :branch
9
+ attr_accessor :code_version
9
10
  attr_accessor :custom_data_method
10
11
  attr_accessor :default_logger
11
12
  attr_accessor :enabled
@@ -35,6 +36,7 @@ module Rollbar
35
36
 
36
37
  def initialize
37
38
  @async_handler = nil
39
+ @code_version = nil
38
40
  @custom_data_method = nil
39
41
  @default_logger = lambda { Logger.new(STDERR) }
40
42
  @enabled = nil # set to true when configure is called
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "0.10.12"
2
+ VERSION = "0.10.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.12
4
+ version: 0.10.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Rue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-29 00:00:00.000000000 Z
11
+ date: 2013-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json