rollbar 0.12.17 → 0.12.18
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/THANKS.md +1 -0
- data/lib/rollbar/middleware/rails/rollbar_request_store.rb +1 -1
- data/lib/rollbar/railtie.rb +1 -2
- data/lib/rollbar/tasks/rollbar.cap +20 -16
- data/lib/rollbar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7972522be3a3b32407ddead874e370a12831fada
|
4
|
+
data.tar.gz: 4f143b6ce99c6326789ae830069806ff36913bf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 746dd26aa8b253e1060b9583cceaed883b701c5f69afcb520c676970a209a6ae3d001414366160b4475f95351d487be261c507f4ade2c6ae066dbdd8797c738d
|
7
|
+
data.tar.gz: 7ba139d6221bad36afde2c32fe67930969790b930dd1b02f52609062e63debd993feb4923ccf10e9e189fd9c9183da9091af889f3276325849d1cf5d39162336
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
**0.12.18**
|
4
|
+
- Insert RollbarRequestStore middleware at the end in case the ActiveRecord ConnectionManagement middleware isn't used
|
5
|
+
- Scope Capistrano 3 task by server role [#110](https://github.com/rollbar/rollbar-gem/pull/110)
|
6
|
+
|
3
7
|
**0.12.17**
|
4
8
|
- Replace usage of `puts` with a configurable logger in different areas of the notifier
|
5
9
|
- Fix error in `RollbarRequestStore` when `rollbar_person_data` isn't defined for a controller
|
data/README.md
CHANGED
data/THANKS.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
Huge thanks to the following contributors (by github username). For the most up-to-date list, see https://github.com/rollbar/rollbar-gem/graphs/contributors
|
4
4
|
|
5
|
+
- [alexdunae](https://github.com/alexdunae)
|
5
6
|
- [allspiritseve](https://github.com/allspiritseve)
|
6
7
|
- [arr-ee](https://github.com/arr-ee)
|
7
8
|
- [awmichel](https://github.com/awmichel)
|
@@ -14,7 +14,7 @@ module Rollbar
|
|
14
14
|
rescue
|
15
15
|
controller = env["action_controller.instance"]
|
16
16
|
if controller and controller.respond_to? :rollbar_person_data
|
17
|
-
env['rollbar.person_data'] = controller.rollbar_person_data
|
17
|
+
env['rollbar.person_data'] = controller.rollbar_person_data rescue {}
|
18
18
|
end
|
19
19
|
raise
|
20
20
|
end
|
data/lib/rollbar/railtie.rb
CHANGED
@@ -10,8 +10,7 @@ module Rollbar
|
|
10
10
|
if defined? ActiveRecord
|
11
11
|
initializer 'rollbar.middleware.rails' do |app|
|
12
12
|
require 'rollbar/middleware/rails/rollbar_request_store'
|
13
|
-
app.config.middleware.
|
14
|
-
Rollbar::Middleware::Rails::RollbarRequestStore
|
13
|
+
app.config.middleware.use Rollbar::Middleware::Rails::RollbarRequestStore
|
15
14
|
end
|
16
15
|
end
|
17
16
|
|
@@ -6,22 +6,25 @@ namespace :rollbar do
|
|
6
6
|
|
7
7
|
desc 'Send the deployment notification to Rollbar.'
|
8
8
|
task :deploy do
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
9
|
+
on roles fetch(:rollbar_role) do
|
10
|
+
uri = URI.parse 'https://api.rollbar.com/api/1/deploy/'
|
11
|
+
params = {
|
12
|
+
:local_username => fetch(:rollbar_user),
|
13
|
+
:access_token => fetch(:rollbar_token),
|
14
|
+
:environment => fetch(:rollbar_env),
|
15
|
+
:revision => fetch(:current_revision) }
|
16
|
+
|
17
|
+
debug "Building Rollbar POST to #{uri} with #{params.inspect}"
|
18
|
+
|
19
|
+
request = Net::HTTP::Post.new(uri.request_uri)
|
20
|
+
request.body = JSON.dump(params)
|
22
21
|
|
23
|
-
|
24
|
-
|
22
|
+
Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
|
23
|
+
http.request(request)
|
24
|
+
end
|
25
|
+
|
26
|
+
info 'Rollbar notification complete.'
|
27
|
+
end
|
25
28
|
end
|
26
29
|
end
|
27
30
|
|
@@ -34,5 +37,6 @@ namespace :load do
|
|
34
37
|
set :rollbar_user, Proc.new { ENV['USER'] || ENV['USERNAME'] }
|
35
38
|
set :rollbar_env, Proc.new { fetch :rails_env, 'production' }
|
36
39
|
set :rollbar_token, Proc.new { abort "Please specify the Rollbar access token, set :rollbar_token, 'your token'" }
|
40
|
+
set :rollbar_role, Proc.new { :app }
|
37
41
|
end
|
38
|
-
end
|
42
|
+
end
|
data/lib/rollbar/version.rb
CHANGED
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.12.
|
4
|
+
version: 0.12.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Rue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|