rollbar 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,31 @@
1
+ # Upgrading from ratchetio-gem
2
+
3
+ ## Required immediate steps
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ gem 'rollbar'
8
+
9
+ And remove:
10
+
11
+ gem 'ratchetio'
12
+
13
+ Then execute:
14
+
15
+ $ bundle install
16
+
17
+ Next, rename your `config/initializers/ratchetio.rb` to `config/initializers/rollbar.rb`
18
+
19
+ Open `config/initializers/rollbar.rb` and change `require 'ratchetio/rails'` to `require 'rollbar/rails'`
20
+
21
+ At this point the new Rollbar library should be properly integrated and begin to report exceptions to Rollbar.
22
+
23
+ ## Optional steps
24
+
25
+ These are not required because aliases have been set up from the Ratchetio module/functions to the respective Rollbar versions.
26
+
27
+ Replace all instances of `Ratchetio` in your rails app with `Rollbar`.
28
+
29
+ Replace all instances of `ratchetio_request_data` with `rollbar_request_data`.
30
+
31
+ Replace all instances of `ratchetio_person_data` with `rollbar_person_data`.
@@ -15,7 +15,6 @@ require 'rollbar/delayed_job' if defined?(Delayed) && defined?(Delayed::Plugins)
15
15
  require 'rollbar/sidekiq' if defined?(Sidekiq)
16
16
  require 'rollbar/goalie' if defined?(Goalie)
17
17
  require 'rollbar/rack' if defined?(Rack)
18
- require 'rollbar/rake' if defined?(Rake)
19
18
  require 'rollbar/railtie' if defined?(Rails)
20
19
 
21
20
  module Rollbar
@@ -356,3 +355,6 @@ module Rollbar
356
355
  end
357
356
  end
358
357
  end
358
+
359
+ # Setting Ratchetio as an alias to Rollbar for ratchetio-gem backwards compatibility
360
+ Ratchetio = Rollbar
@@ -23,6 +23,16 @@ module Rollbar
23
23
  extract_request_data_from_rack(request.env)
24
24
  end
25
25
 
26
+ # for backwards compatabilty with the old ratchetio-gem
27
+ def ratchetio_person_data
28
+ rollbar_person_data
29
+ end
30
+
31
+ # for backwards compatabilty with the old ratchetio-gem
32
+ def ratchetio_request_data
33
+ rollbar_request_data
34
+ end
35
+
26
36
  end
27
37
  end
28
38
  end
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-22 00:00:00.000000000 Z
12
+ date: 2013-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -122,6 +122,7 @@ files:
122
122
  - README.md
123
123
  - Rakefile
124
124
  - THANKS
125
+ - UPGRADE_FROM_RATCHET.md
125
126
  - lib/generators/rollbar/rollbar_generator.rb
126
127
  - lib/generators/rollbar/templates/initializer.rb
127
128
  - lib/rollbar.rb
@@ -136,7 +137,6 @@ files:
136
137
  - lib/rollbar/rails.rb
137
138
  - lib/rollbar/rails/controller_methods.rb
138
139
  - lib/rollbar/railtie.rb
139
- - lib/rollbar/rake.rb
140
140
  - lib/rollbar/rake_tasks.rb
141
141
  - lib/rollbar/request_data_extractor.rb
142
142
  - lib/rollbar/sidekiq.rb
@@ -1,9 +0,0 @@
1
- module Rake
2
- class Application
3
- alias_method :orig_display_error_message, :display_error_message
4
- def display_error_message(ex)
5
- Rollbar.report_exception(ex)
6
- orig_display_error_message(ex)
7
- end
8
- end
9
- end