rollbar 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/generators/rollbar/templates/initializer.rb +6 -0
- data/lib/rollbar/capistrano.rb +1 -1
- data/lib/rollbar/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
**0.9.9**
|
4
|
+
- Fix capistrano recipe on 1.9.2 ([#36](https://github.com/rollbar/rollbar-gem/pull/36))
|
5
|
+
- Add example of disable "test" env to initializer template
|
6
|
+
|
3
7
|
**0.9.8**
|
4
8
|
- Fix bug introduced in 0.9.0 where setting `config.enabled = false` in `config/initializers/rollbar.rb` would be overwritten by subsequent calls to `Rollbar.configure` (as happens normally when using inside Rails).
|
5
9
|
|
@@ -2,6 +2,12 @@ require 'rollbar/rails'
|
|
2
2
|
Rollbar.configure do |config|
|
3
3
|
config.access_token = <%= access_token_expr %>
|
4
4
|
|
5
|
+
# Rollbar is enabled by default in all environments. To disable in specific
|
6
|
+
# environments (e.g. 'test'):
|
7
|
+
# if Rails.env.test?
|
8
|
+
# config.enabled = false
|
9
|
+
# end
|
10
|
+
|
5
11
|
# By default, Rollbar will try to call the `current_user` controller method
|
6
12
|
# to fetch the logged-in user object, and then call that object's `id`,
|
7
13
|
# `username`, and `email` methods to fetch those properties. To customize:
|
data/lib/rollbar/capistrano.rb
CHANGED
@@ -32,7 +32,7 @@ module Rollbar
|
|
32
32
|
request = Net::HTTP::Post.new(uri.request_uri)
|
33
33
|
request.body = JSON.dump(params)
|
34
34
|
|
35
|
-
Net::HTTP.start(uri.
|
35
|
+
Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
|
36
36
|
http.request(request)
|
37
37
|
end
|
38
38
|
end
|
data/lib/rollbar/version.rb
CHANGED